1 2015-08-13 Richard Biener <rguenther@suse.de>
3 PR tree-optimization/67191
4 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
5 assert we value-numbered last stmts operand because it can validly
6 trigger for unreachable code.
8 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10 PR rtl-optimization/67103
11 * ifcvt.c (noce_try_store_flag_constants): Move
12 x = (-(test != 0) & (b - a)) + a transformation to...
13 (noce_try_cmove): ... Here. Try it if normal conditional
16 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
18 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
20 * config/mips/mips.md (processor): Remove w32 and w64.
22 2015-08-13 Richard Biener <rguenther@suse.de>
24 PR tree-optimization/66502
25 PR tree-optimization/67167
26 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
28 (vn_phi_lookup): Adjust.
29 (vn_phi_insert): Likewise.
30 (visit_phi): Prefer to value-number to another PHI node
31 over value-numbering to a PHI argument.
32 (init_scc_vn): Mark DFS back edges.
34 2015-08-13 Richard Biener <rguenther@suse.de>
36 * gimple.h (gcall::code_): New constant static member.
37 (gcond::code_): Likewise.
38 * gimple.c (gcall::code_): Define.
39 (gcond::code_): Likewise.
40 (is_a_helper <const gcond *>): Add.
41 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
42 and forward to a new gcall overload with less checking and a
43 cheaper way to access the operand.
44 (gimple_call_lhs_ptr): Likewise.
45 (gimple_call_set_lhs): Likewise.
46 (gimple_call_internal_p): Likewise.
47 (gimple_call_with_bounds_p): Likewise.
48 (gimple_call_set_with_bounds): Likewise.
49 (gimple_call_internal_fn): Likewise.
50 (gimple_call_set_ctrl_altering): Likewise.
51 (gimple_call_ctrl_altering_p): Likewise.
52 (gimple_call_fntype): Likewise.
53 (gimple_call_fn): Likewise.
54 (gimple_call_fn_ptr): Likewise.
55 (gimple_call_set_fndecl): Likewise.
56 (gimple_call_fndecl): Likewise.
57 (gimple_call_chain): Likewise.
58 (gimple_call_num_args): Likewise.
59 (gimple_call_arg): Likewise.
60 (gimple_call_arg_ptr): Likewise.
61 (gimple_call_set_arg): Likewise.
62 (gimple_call_noreturn_p): Likewise.
63 (gimple_cond_code): Likewise.
64 (gimple_cond_lhs): Likewise.
65 (gimple_cond_rhs): Likewise.
66 (gimple_has_lhs): Reduce checking.
68 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
71 * match.pd (div (mult @0 @1) @1) : New simplifier.
73 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
76 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
77 predicate to allow construction of vector constants using the
78 VSLDOI vector shift instruction.
80 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
83 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
84 the number of bytes to be shifted left and filled in with either
85 all zero or all one bits.
86 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
88 (output_vec_const_move): On power8, generate XXLORC to generate
89 a vector constant with all 1's. Do a split if we need to use a
92 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
93 properly test for the MSB.
95 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
96 vector constants that can be created with VSLDOI.
98 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
101 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
102 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
103 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
104 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
105 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
106 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
107 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
108 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
109 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
111 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
113 * config/xtensa/constraints.md (define_constraint "Y"): New
115 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
116 * config/xtensa/linux.h (ASM_SPEC): Likewise.
117 * config/xtensa/predicates.md (move_operand): Match constants
118 and symbols in the presence of TARGET_AUTO_LITPOOLS.
119 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
120 immediate references to TLS data.
121 (xtensa_emit_move_sequence): Don't force constants to memory in
122 the presence of TARGET_AUTO_LITPOOLS.
123 (print_operand): Add 'y' format, same as default, but capable of
124 printing SF mode constants as well.
125 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
126 (movsf_internal): Add movi pattern that loads literal.
127 (movsf, movdf): Don't force constants to memory in the presence
128 of TARGET_AUTO_LITPOOLS.
129 (movdf_internal): Add 'Y' constraint.
130 * config/xtensa/xtensa.opt (mauto-litpools): New option.
131 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
133 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
135 * config/arm/arm-fpus.def: Replace booleans with feature flags.
137 * config/arm/arm.c (ARM_FPU): Update macro.
138 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
139 (TARGET_FP16): Likewise.
140 (TARGET_CRYPTO): Likewise.
141 (TARGET_NEON): Likewise.
142 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
145 2015-08-12 Tom de Vries <tom@codesourcery.com>
149 * doc/install.texi: Remove --with_host_libstdcxx item. Update
150 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
151 accordingly. Mention default for --with-stage1-ldflags.
153 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
155 * config/arm/arm.h (arm_fpu_feature_set): New.
156 (ARM_FPU_FSET_HAS): New.
160 (FPU_FL_CRYPTO): New.
162 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
164 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
165 after -mcmodel=large -fPIC sorry.
167 2015-08-12 Richard Biener <rguenther@suse.de>
169 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
170 comparison operand order and commutative ternary op operand order.
171 (sccvn_dom_walker::cond_stack): New state to track temporary
173 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
175 (sccvn_dom_walker::record_cond): Add a single temporary conditional
177 (sccvn_dom_walker::record_conds): Add a temporary conditional
178 expressions and all related expressions also true/false.
179 (sccvn_dom_walker::before_dom_children): Record temporary
180 expressions based on the controlling condition of a single
181 predecessor. When trying to simplify a conditional statement
182 lookup expressions we might have inserted earlier.
184 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
187 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
188 to ARM core registers.
190 2015-08-12 Nathan Sidwell <nathan@acm.org>
192 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
193 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
195 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
197 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
199 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
201 2015-08-12 Richard Biener <rguenther@suse.de>
203 * gimple.h (remove_pointer): New trait.
204 (GIMPLE_CHECK2): New inline template function.
205 (gassign::code_): New constant static member.
206 (is_a_helper<const gassign *>): Add.
207 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
208 and forward to a new gassign overload with less checking and a
209 cheaper way to access the operand.
210 (gimple_assign_lhs_ptr): Likewise.
211 (gimple_assign_set_lhs): Likewise.
212 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
214 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
216 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
218 (gimple_assign_rhs_code): Likewise.
219 * gimple.c (gassign::code_): Define.
221 2015-08-12 Richard Biener <rguenther@suse.de>
223 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
224 Eliminate edges marked as not executable by SCCVN.
225 * tree-ssa-sccvn.c: Include gimple-iterator.h.
226 (cond_dom_walker): Rename to sccvn_dom_walker.
227 (sccvn_dom_walker::before_dom_children): Value-number defs
229 (run_scc_vn): Remove loop value-numbering all SSA names.
230 Drop not visited SSA names to varying.
232 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
234 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
235 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
236 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
237 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
238 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
239 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
240 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
241 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
242 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
244 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
247 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
248 to enum feature_priority and feature_list.
249 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
252 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
254 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
257 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
261 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
262 account when deciding what was the command-line status.
264 2015-08-11 Nathan Sidwell <nathan@acm.org>
266 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
268 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
269 we're not the only contributor to target phi.
271 2015-08-11 Jiong Wang <jiong.wang@arm.com>
273 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
276 2015-08-11 Tom de Vries <tom@codesourcery.com>
278 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
280 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
282 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
284 * config/i386/i386.md (cpu): Remove knl.
286 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
290 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
292 * omp-low.c (oacc_process_reduction_data): Remove handline of
293 GOMP_DEVICE_HOST_NONSHM.
295 * lto-streamer-in.c (lto_input_mode_table): Adjust to
296 GET_MODE_INNER changes.
298 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
299 Ilya Verbin <ilya.verbin@intel.com>
301 * lto-streamer-in.c (lto_input_mode_table): Correctly advance
304 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
306 * doc/options.texi (EnabledBy): Document that the argument must be
308 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
309 Not enabled by -Wall.
310 * optc-gen.awk: Give nicer error messages. Detect if the argument
311 of EnabledBy is not a Common option.
312 * common.opt (Wnull-dereference): Not enabled by -Wall.
313 * opt-functions.awk (lang_enabled_by): Nicer error messages.
315 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
317 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
318 model == 0x4f as Broadwell.
320 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
322 PR rtl-optimization/67028
323 * combine.c (simplify_comparison): Fix comment. Rearrange code.
324 Add test to see if a const_int fits in the new mode.
326 2015-08-07 DJ Delorie <dj@redhat.com>
328 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
330 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
332 PR rtl-optimization/67029
333 * ira-color.c: Include "recog.h" before including "ira-int.h".
334 * target-globals.c: Likewise.
335 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
336 adds an alternative_mask argument and use it instead of
337 preferred_alternatives.
338 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
339 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
340 * sched-deps.c: Include "ira-int.h" after including "ira.h".
341 (sched_analyze_insn): Update call to
342 ira_implicitly_set_insn_hard_regs.
343 * sel-sched.c: Include "ira-int.h" after including "ira.h".
344 (implicit_clobber_conflict_p): Update call to
345 ira_implicitly_set_insn_hard_regs.
347 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
349 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
351 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
354 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
355 currently_expanding_to_rtl is set.
357 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
359 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
360 * configure: Regenerate.
362 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
363 Jiong Wang <jiong.wang@arm.com>
365 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
366 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
367 (REG_CLASS_NAMES): Likewise.
368 (REG_CLASS_CONTENTS): Likewise.
369 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
370 (aarch64_register_move_cost): Likewise.
371 (aarch64_load_symref_appropriately): Invoke the new added pattern if
373 * config/aarch64/constraints.md (Uc0): New constraint.
375 2015-08-06 Jiong Wang <jiong.wang@arm.com>
377 * config/aarch64/constraints.md (Usf): Add the test of
378 aarch64_is_noplt_call_p.
380 2015-08-06 Jiong Wang <jiong.wang@arm.com>
382 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
384 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
385 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
386 (call_symbol): Likewise.
388 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
390 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
391 for vectorizing multiplication patterns.
392 * tree-vectorizer.h: Adjust the number of patterns.
394 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
396 * config/i386/sse.md (*vec_concatv2df): Declare added
397 alternatives as sselog type.
399 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
401 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
404 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
406 * config/s390/s390.c (s390_expand_tbegin): Expand either
407 tbegin_1_z13 or tbegin_1 depending on VX flag.
408 * config/s390/s390.md ("tbegin_1_z13"): New expander.
410 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
412 * config/s390/s390.opt: Clarify description for -mzvector
413 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
416 2015-08-06 Richard Biener <rguenther@suse.de>
418 * gimple.h (gimple_call_set_fn): Access op member directly.
419 (gimple_call_chain_ptr): Likewise.
420 (gimple_call_set_chain): Likewise.
421 (gimple_cond_lhs_ptr): Likewise.
422 (gimple_cond_set_lhs): Likewise.
423 (gimple_cond_rhs_ptr): Likewise.
424 (gimple_cond_set_rhs): Likewise.
425 (gimple_cond_true_label): Likewise.
426 (gimple_cond_set_true_label): Likewise.
427 (gimple_cond_set_false_label): Likewise.
428 (gimple_cond_false_label): Likewise.
429 (gimple_label_label): Likewise.
430 (gimple_label_set_label): Likewise.
431 (gimple_goto_set_dest): Likewise.
432 (gimple_asm_input_op): Likewise.
433 (gimple_asm_input_op_ptr): Likewise.
434 (gimple_asm_set_input_op): Likewise.
435 (gimple_asm_output_op): Likewise.
436 (gimple_asm_output_op_ptr): Likewise.
437 (gimple_asm_set_output_op): Likewise.
438 (gimple_asm_clobber_op): Likewise.
439 (gimple_asm_set_clobber_op): Likewise.
440 (gimple_asm_label_op): Likewise.
441 (gimple_asm_set_label_op): Likewise.
442 (gimple_switch_index): Likewise.
443 (gimple_switch_index_ptr): Likewise.
444 (gimple_return_retval_ptr): Likewise.
445 (gimple_return_retval): Likewise.
446 (gimple_return_set_retval): Likewise.
447 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
448 (gimple_switch_label): Likewise.
449 (gimple_switch_set_label): Likewise.
451 2015-08-06 Richard Biener <rguenther@suse.de>
453 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
454 bool comparison canonicalization and restrict to integers.
456 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
458 * coretypes.h (enum symbol_visibility): Relocate here.
459 * flag-types.h (enum symbol_visibility): Remove.
460 * tree-core.h (enum symbol_visibility): Remove.
462 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
465 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
466 for no_split_stack function attribute along with
468 (rs6000_expand_split_stack_prologue): Likewise.
470 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
471 Jeff Law <law@redhat.com>
474 * doc/invoke.texi (Wnull-dereference): New.
475 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
476 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
477 Warn for potential NULL dereferences.
478 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
479 * ubsan.c (instrument_nonnull_arg): Call
480 infer_nonnull_range_by_attribute.
481 (instrument_nonnull_return): Likewise.
482 * common.opt (Wnull-dereference); New.
483 * gimple.c (infer_nonnull_range): Remove bool arguments.
484 (infer_nonnull_range_by_dereference): New.
485 (infer_nonnull_range_by_attribute): New.
486 * gimple.h: Update declarations.
488 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
490 * gensupport.c (sequence_num): Replace with...
491 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
492 ...these new variables.
493 (init_rtx_reader_args_cb): Update accordingly.
494 (get_num_code_insns): Likewise.
495 (read_md_rtx): Rework to use a while loop and get_c_test.
496 Use the new counters. Remove redundant DEFINE_SUBST case.
497 * genoutput.c (gen_split): Delete.
498 (main): Don't call it.
500 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
502 * gensupport.h (get_c_test): Declare.
503 * gensupport.c (get_c_test): New function.
504 * genconditions.c (main): Use it.
505 * genrecog.c (validate_pattern): Likewise.
506 (match_pattern_1): Likewise. Remove c_test argument.
507 (match_pattern): Update accordingly and remove c_test argument.
508 (main): Update accordingly.
510 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
512 * gensupport.h (get_num_insn_codes): Declare.
513 * gensupport.c (get_num_insn_codes): New function.
514 * genattrtab.c (optimize_attrs): Rename max_insn_code to
516 (main): Likewise. Use get_num_insn_codes.
517 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
519 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
522 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
523 is zero- rather than sign-extended.
525 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
527 * target-insns.def (can_extend): Delete.
529 2015-08-05 Richard Biener <rguenther@suse.de>
531 PR tree-optimization/67121
532 * tree-if-conv.c (combine_blocks): Clear range-info produced
533 by stmts no longer executed conditionally.
535 2015-08-05 Nick Clifton <nickc@redhat.com>
537 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
538 to allow identical far pointers to remain.
540 2015-08-05 Richard Biener <rguenther@suse.de>
543 * match.pd: Compare address bases with == if they are decls
544 or SSA names, not operand_equal_p. Otherwise fail.
546 2015-08-05 Richard Biener <rguenther@suse.de>
548 PR tree-optimization/67055
549 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
552 * g++.dg/torture/pr67055.C: New testcase.
554 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
556 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
558 (define_attr "enabled"): Handle avx521vl and noavx512vl.
559 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
560 AVX-512 alternative out of SSE.
561 (define_insn "*vec_concatv2df"): Ditto.
563 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
565 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
566 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
567 CODE_FOR_avx_ptestv4di.
568 * config/i386/sse.md (define_mode_iterator V_AVX): New.
569 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
570 (define_insn "avx_ptest256"): Merge this ...
571 (define_insn "sse4_1_ptest"): And this ...
572 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
574 2015-08-05 Richard Biener <rguenther@suse.de>
576 PR tree-optimization/67109
577 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
578 against too big groups. Print whether this is a load or store
579 group. Rename from ...
580 (vect_analyze_group_access): ... this which is now a wrapper
581 dissolving an invalid group.
582 (vect_analyze_data_ref_accesses): Print whether this is a load
585 2015-08-05 Richard Biener <rguenther@suse.de>
588 * match.pd: Guard const_binop result checking against NULL_TREE
591 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
593 * cse.c (cse_insn): Restoring old behaviour for src_eqv
594 when dest and value in the REG_EQUAL are same and dest
597 2015-08-04 Anatoly Sokolov <aesok@post.ru>
599 * config/moxie/moxie.h (PRINT_OPERAND,
600 PRINT_OPERAND_ADDRESS): Remove macros.
601 * config/moxie/moxie-protos.h (moxie_print_operand,
602 moxie_print_operand_address): Remove declaration.
603 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
604 TARGET_PRINT_OPERAND_ADDRESS): Define.
605 (moxie_print_operand, moxie_print_operand_address): Make static.
607 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
610 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
611 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
613 2015-08-04 Richard Biener <rguenther@suse.de>
615 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
617 (dt_operand::gen_gimple_expr): Adjust.
619 2015-08-04 Richard Biener <rguenther@suse.de>
621 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
622 bool compares on RHS.
623 * match.pd: Add X ==/!= !X is false/true pattern.
625 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
627 * config/aarch64/aarch64.c: Change inner loop statement cost
628 to be consistent with other targets.
630 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
632 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
635 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
637 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
638 (machine_function): Remove pseudos field.
640 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
642 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
643 Exit early and use target_option_current_node if processing current
646 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
648 * doc/extend.texi (AArch64 Function Attributes): New node.
649 (AArch64 Pragmas): Likewise.
651 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
653 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
654 Initialize simd builtins if TARGET_SIMD.
655 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
656 Make sure that the builtins are initialized only once no matter how
657 many times the function is called.
658 (aarch64_init_builtins): Unconditionally initialize crc builtins.
659 (aarch64_relayout_simd_param): New function.
660 (aarch64_simd_expand_args): Use above during argument expansion.
661 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
662 simd builtins if TARGET_SIMD.
663 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
665 (aarch64_relayout_simd_types): Likewise.
667 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
669 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
670 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
671 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
672 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
674 (aarch64_reset_previous_fndecl): New function.
675 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
677 * config/aarch64/aarch64-c.c: New file.
678 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
679 Push and pop options at beginning and end. Remove ifdef
681 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
682 Add pragma +nothing+simd and +nothing+crypto where appropriate.
683 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
684 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
686 (aarch64_register_pragmas): Likewise.
687 (aarch64_reset_previous_fndecl): Likewise.
688 (aarch64_process_target_attr): Likewise.
689 (aarch64_override_options_internal): Likewise.
691 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
693 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
695 (aarch64_can_inline_p): Likewise.
696 (TARGET_CAN_INLINE_P): Define.
698 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
700 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
701 Remove static. Handle OPT_mgeneral_regs_only,
702 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
703 OPT_momit_leaf_frame_pointer.
704 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
705 (aarch64_attr_opt_type): New enum.
706 (aarch64_attribute_info): New struct.
707 (aarch64_handle_attr_arch): New function.
708 (aarch64_handle_attr_cpu): Likewise.
709 (aarch64_handle_attr_tune): Likewise.
710 (aarch64_handle_attr_isa_flags): Likewise.
711 (aarch64_attributes): New table.
712 (aarch64_process_one_target_attr): New function.
713 (num_occurences_in_str): Likewise.
714 (aarch64_process_target_attr): Likewise.
715 (aarch64_option_valid_attribute_p): Likewise.
716 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
717 * config/aarch64/aarch64-protos.h: Include input.h
718 (aarch64_handle_option): Declare prototype.
720 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
722 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
723 * config/aarch64/aarch64.c: Include target-globals.h
724 (aarch64_previous_fndecl): New variable.
725 (aarch64_set_current_function): New function.
726 (TARGET_SET_CURRENT_FUNCTION): Define.
728 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
730 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
731 (explicit_arch): Likewise.
732 (x_aarch64_isa_flags): Likewise.
733 (mgeneral-regs-only): Mark as Save.
734 (mfix-cortex-a53-835769): Likewise.
735 (mcmodel=): Likewise.
736 (mstrict-align): Likewise.
737 (momit-leaf-frame-pointer): Likewise.
738 (mtls-dialect): Likewise.
740 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
741 (aarch64_isa_flags): Remove extern declaration.
742 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
743 to indicate success or failure.
744 (aarch64_validate_march): Likewise.
745 (aarch64_validate_mtune): Likewise.
746 (aarch64_isa_flags): Delete.
747 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
748 instead of aarch64_isa_flags.
749 (aarch64_get_tune_cpu): New function.
750 (aarch64_get_arch): Likewise.
751 (aarch64_override_options): Use above and set up explicit_tune_core
753 (aarch64_print_extension): Move earlier in file. Add isa_flags
754 argument and use that instead of the global aarch64_isa_flags.
755 (aarch64_option_save): New function.
756 (aarch64_option_restore): Likewise.
757 (aarch64_option_print): Likewise.
758 (aarch64_declare_function_name): Likewise.
759 (aarch64_start_file): Delete.
760 (TARGET_ASM_FILE_START): Do not define.
761 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
762 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
765 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
767 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
768 flag_omit_leaf_frame_pointer to 2.
770 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
772 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
774 (TARGET_FIX_ERR_A53_835769): New macro.
775 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
776 handling of opts->x_aarch64_fix_a53_err835769.
777 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
778 than aarch64_fix_a53_err835769.
779 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
780 * config/aarch64/aarch64-linux.h: Likewise.
782 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
784 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
785 ix86_expand_int_movcc as boolean.
787 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
789 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
790 (aarch64_cpu_string): Likewise.
791 (aarch64_tune_string): Likewise.
792 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
793 (aarch64_parse_extension): Return aarch64_parse_opt_result.
794 Add extra argument to put result into.
795 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
796 (aarch64_parse_cpu): Add arguments to put results into. Return
797 aarch64_parse_opt_result.
798 (aarch64_parse_tune): Likewise.
799 (aarch64_override_options_after_change_1): New function.
800 (aarch64_override_options_internal): New function.
801 (aarch64_validate_mcpu): Likewise.
802 (aarch64_validate_march): Likewise.
803 (aarch64_validate_mtune): Likewise.
804 (aarch64_override_options): Update to reflect above changes.
805 Move some logic into aarch64_override_options_internal.
806 Initialize target_option_default_node and target_option_current_node.
807 (aarch64_override_options_after_change): Move logic into
808 aarch64_override_options_after_change_1 and call it with global_options.
809 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
810 flag values from that.
812 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
814 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
815 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
816 * config/aarch64/aarch64.c (struct processor): Add arch field.
817 (all_architectures): Handle above, move above all_cores.
818 (all_cores): Handle above.
819 (aarch64_parse_arch): Handle above changes.
820 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
821 above. Update comments.
822 (armv8.1-a): Likewise.
823 * config/aarch64/aarch64-cores.def: Update according to above.
824 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
825 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
826 aarch64_arch_driver_info.
828 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
830 * config/aarch64/aarch64.c (struct processor): Add ident field.
831 Rename core sched_core.
832 (all_cores): Handle above changes.
833 (all_architectures): Likewise.
834 (aarch64_parse_arch): Likewise.
835 (aarch64_override_options): Likewise.
837 2015-08-04 Richard Biener <rguenther@suse.de>
839 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
840 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
841 comparisons embedded in [VEC_]COND_EXPRs.
843 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
845 * tree-if-conv.c: Fix various typos in comments.
846 * tree-vect-stmts.c: Likewise.
848 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
850 PR tree-optimization/67043
851 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
852 preheader after hoisting invariant in it.
853 (find_defs): Force recomputation of all luids.
855 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
857 * config/rs6000/htm.md (tabort.): Restrict the source operand to
858 using a base register.
860 2015-08-03 David Malcolm <dmalcolm@redhat.com>
862 * main.c (main): Pass in NULL for toplev's external_timer.
863 * timevar.c: Include coretypes.h.
864 (class timer::named_items): New.
865 (timer::named_items::named_items): New.
866 (timer::named_items::~named_items): New.
867 (timer::named_items::push): New.
868 (timer::named_items::pop): New.
869 (timer::named_items::print): New.
870 (timer::timer): Initialize field "m_jit_client_items".
871 (timer::~timer): New.
872 (timer::push): Move bulk of implementation to...
873 (timer::push_internal): ...here. New function.
874 (timer::pop): Move bulk of implementation to...
875 (timer::pop_internal): ...here. New function.
876 (timer::push_client_item): New.
877 (timer::pop_client_item): New.
878 (timer::print_row): New function, taken from timer::print.
879 (timer::print): Print "GCC items" header if we also have client
880 items. Move row-printing to timer::print_row. Print any client
882 (timer::get_topmost_item_name): New method.
883 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
884 (TV_JIT_CLIENT_CODE): New.
885 * timevar.h (timer::push_client_item): New declaration.
886 (timer::pop_client_item): New declaration.
887 (timer::get_topmost_item_name): New method.
888 (timer::push_internal): New declaration.
889 (timer::pop_internal): New declaration.
890 (timer::print_row): New declaration.
891 (timer::named_items): New declaration.
892 (timer::m_jit_client_items): New field.
893 (timer): Add friend class named_items.
894 (auto_timevar::auto_timevar): Add timer param.
895 (auto_timevar::~auto_timevar): Use field "m_timer".
896 (auto_timevar::m_timer): New field.
897 * toplev.c (initialize_rtl): Add g_timer as param when
898 constructing auto_timevar instance.
899 (toplev::toplev): Add "external_timer" param, and use it to
900 initialize the "g_timer" global if non-NULL.
901 (toplev::~toplev): If this created "g_timer", delete it.
902 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
903 with "external_timer" timer *.
905 2015-08-03 Alexander Basov <coohpt@gmail.com>
910 * cfgexpand.c (expand_one_var): Add check if stack is going to
911 be used in naked function.
912 * expr.c (expand_expr_addr_expr_1): Remove excess checking
913 whether expression should not reside in MEM.
914 * function.c (use_register_for_decl): Do not use registers for
915 non-register things (volatile, float, BLKMode) in naked functions.
917 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
920 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
921 Adjust splits to match new pattern.
923 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
925 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
928 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
929 point in VSX registers.
931 * config/rs6000/constraints.md (wb constraint): Document unused
933 (we constraint): Likewise.
934 (wo constraint): Likewise.
935 (wp constraint): New constraint for IEEE 128-bit floating point in
937 (wq constraint): Likewise.
939 * config/rs6000/predicates.md (easy_fp_constant): Add support for
940 IEEE 128-bit floating point in VSX registers.
941 (easy_scalar_constant): Likewise.
943 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
944 constraints (wp, wq) for IEEE 128-bit floating point in VSX
946 (rs6000_init_hard_regno_mode_ok): Likewise.
948 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
949 floating point in VSX registers.
958 (vsx_le_permute_<mode>): Add support to properly swap bytes for
959 IEEE 128-bit floating point in VSX registers on little endian.
960 (vsx_le_undo_permute_<mode>): Likewise.
961 (vsx_le_perm_load_<mode>): Likewise.
962 (vsx_le_perm_store_<mode>): Likewise.
963 (splitters for IEEE 128-bit fp moves): Likewise.
965 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
968 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
969 floating point in VSX registers.
972 * doc/md.text (Machine Constraints): Document wp and wq
973 constraints on PowerPC.
975 2015-08-03 Jeff Law <law@redhat.com>
978 PR gcov-profile/66899
979 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
980 iterate over the jump threading paths when an element in the
981 jump threading paths array is eliminated.
983 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
985 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
987 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
989 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
990 is_use_properly_guarded the variable def_preds. Free its
991 contents before returning.
992 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
993 (is_use_properly_guarded): Replace local variable def_preds with
994 a parameter. Adjust accordingly. Only update *def_preds if it's
997 2015-08-03 Richard Biener <rguenther@suse.de>
999 * genmatch.c (simplify::for_subst_vec): New member.
1000 (binary_ok): New helper for for lowering.
1001 (lower_for): Delay substituting operators into result expressions
1002 if we can merge the results eventually again.
1003 (capture_info::walk_result): Adjust for user_id appearing as
1004 result expression operator.
1005 (expr::gen_transform): Likewise.
1006 (dt_simplify::gen_1): Likewise.
1007 (dt_simplify::gen): Pass not substituted operators to tail
1008 functions or initialize local variable with it.
1009 (decision_tree::gen): Adjust function signature.
1010 * match.pd: Fix tests against global code and add default
1011 cases to switch stmts.
1013 2015-08-03 Richard Biener <rguenther@suse.de>
1015 * genmatch.c (dt_simplify::gen): Create captures array
1016 with an initializer.
1018 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1020 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
1021 the host compiler is affected by placement new aliasing bug.
1022 * configure: Regenerate.
1023 * Makefile.in (ALIASING_FLAGS): New variable.
1024 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
1026 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1029 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
1030 (negmulsf3_vfp): Likewise.
1031 (muldf3negdf_vfp): Disable for -frounding-math.
1032 (mulsf3negsf_vfp): Likewise.
1033 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
1034 fix MULT cost with -frounding-math.
1036 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1038 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
1039 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
1040 explicit. Prefer to add the flag whenever possible.
1041 (noce_process_if_block): Try noce_try_store_flag_constants before
1044 2015-08-03 Richard Biener <rguenther@suse.de>
1046 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
1047 New hash-map to record equivalent transforms.
1048 (dt_node::analyze): Populate the equivalent transforms hash-map.
1049 (dt_simplify::info): Add reference to hash-map entry.
1050 (dt_simplify::gen): If we have split out a function for the
1051 transform, generate a call to it.
1052 (sinfo_hashmap_traits::hash): New function.
1053 (compare_op): New helper function for ...
1054 (sinfo_hashmap_traits::equal_keys): ... this new function.
1055 (decision_tree::gen): Split out common equivalent transforms
1058 2015-08-03 Richard Biener <rguenther@suse.de>
1060 * gimple-fold.c (fold_gimple_assign): Remove folding of
1061 the comparison in COND_EXPRs.
1063 2015-08-03 Richard Biener <rguenther@suse.de>
1065 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
1066 on the rhs of assignments first simplify the embedded
1069 2015-08-03 Richard Biener <rguenther@suse.de>
1071 PR tree-optimization/66917
1072 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
1074 (DR_VECT_AUX): New macro.
1075 (set_dr_misalignment): Adjust.
1076 (dr_misalignment): Likewise.
1077 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
1078 Compute whether the base is at least element aligned.
1079 * tree-vect-stmts.c (ensure_base_align): Adjust.
1080 (vectorizable_store): If the base is not element aligned
1081 preserve alignment of the original access if misalignment is unknown.
1082 (vectorizable_load): Likewise.
1084 2015-08-02 Martin Sebor <msebor@redhat.com>
1086 * c-family/c.opt (-Wframe-address): New warning option.
1087 * doc/invoke.texi (Wframe-address): Document it.
1088 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
1089 Clarify possible effects of calling the functions with non-zero
1090 arguments and mention -Wframe-address.
1091 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
1093 2015-08-01 Michael Collison <michael.collison@linaro.org
1094 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1096 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
1097 (*arm_umin_cmp): Likewise.
1099 2015-08-01 Caroline Tice <cmtice@google.com>
1102 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
1104 (vtbl_find_mangled_name): New function.
1105 (vtbl_register_mangled_name): New function.
1106 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
1107 mangled name in mangled name vectors.
1108 (find_or_create_vtbl_map_node): Ditto.
1109 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
1110 update recursion_depth on function entry; pass it to every recursive
1111 call; automatically exit if depth > 25 (give up looking at that point).
1112 (verify_bb_vtables): Initialize recursion_depth and pass it to
1113 var_is_used_for_virtual_call_p.
1114 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
1115 global variable decls.
1116 (vtbl_register_mangled_name): New extern function decl.
1118 2015-08-01 Tom de Vries <tom@codesourcery.com>
1120 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
1122 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
1124 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
1125 operation_no_trapping_overflow. Allow non-overflow operations.
1126 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
1129 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
1132 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
1134 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1136 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
1137 Enable for TARGET_32BIT.
1138 (*if_move_neg): Likewise.
1140 2015-07-31 Nick Clifton <nickc@redhat.com>
1142 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
1143 Returns true for __model__.
1144 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
1146 2015-07-31 Alan Modra <amodra@gmail.com>
1149 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
1150 (rs6000_emit_prologue): Set it.
1151 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
1153 2015-07-31 Richard Biener <rguenther@suse.de>
1155 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
1156 -> X == (C1 ^ C2) which is already implemented in match.pd.
1157 Remove redundant dispatching to fold_relational_const.
1158 Move unordered self and NaN compares ...
1159 * match.pd: ... as patterns here. Remove some stray captures
1162 2015-07-31 Petr Murzin <petr.murzin@intel.com>
1164 * config/i386/i386.c
1165 (bdesc_special_args): Convert mask type from signed to unsigned for
1167 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
1168 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
1169 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
1170 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
1171 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
1172 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
1173 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
1174 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
1175 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
1176 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
1177 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
1178 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
1179 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
1180 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
1181 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
1182 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
1183 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
1184 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
1185 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
1186 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
1187 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
1188 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
1189 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
1190 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
1191 * config/i386/i386-builtin-types.def
1192 (V16QI_FTYPE_V16SI): Remove.
1193 (V8DF_FTYPE_V8SI): Ditto.
1194 (V8HI_FTYPE_V8DI): Ditto.
1195 (V8SI_FTYPE_V8DI): Ditto.
1196 (V8SF_FTYPE_V8DF): Ditto.
1197 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
1198 (V16HI_FTYPE_V16SI): Ditto.
1199 (V16SF_FTYPE_V16HI): Ditto.
1200 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
1201 (V16SF_FTYPE_V16SI): Ditto.
1202 (V4DI_FTYPE_V4DI): Ditto.
1203 (V16SI_FTYPE_V16SF): Ditto.
1204 (V16SF_FTYPE_FLOAT): Ditto.
1205 (V8DF_FTYPE_DOUBLE): Ditto.
1206 (V8DI_FTYPE_INT64): Ditto.
1207 (V8DI_FTYPE_V4DI): Ditto.
1208 (V16QI_FTYPE_V8DI): Ditto.
1209 (UINT_FTYPE_V4SF): Ditto.
1210 (UINT64_FTYPE_V4SF): Ditto.
1211 (UINT_FTYPE_V2DF): Ditto.
1212 (UINT64_FTYPE_V2DF): Ditto.
1213 (V16SI_FTYPE_V16SI): Ditto.
1214 (V8DI_FTYPE_V8DI): Ditto.
1215 (V16SI_FTYPE_PV4SI): Ditto.
1216 (V16SF_FTYPE_PV4SF): Ditto.
1217 (V8DI_FTYPE_PV2DI): Ditto.
1218 (V8DF_FTYPE_PV2DF): Ditto.
1219 (V4DI_FTYPE_PV2DI): Ditto.
1220 (V4DF_FTYPE_PV2DF): Ditto.
1221 (V16SI_FTYPE_PV2SI): Ditto.
1222 (V16SF_FTYPE_PV2SF): Ditto.
1223 (V8DI_FTYPE_PV4DI): Ditto.
1224 (V8DF_FTYPE_PV4DF): Ditto.
1225 (V8SF_FTYPE_FLOAT): Ditto.
1226 (V4SF_FTYPE_FLOAT): Ditto.
1227 (V4DF_FTYPE_DOUBLE): Ditto.
1228 (V8SF_FTYPE_PV4SF): Ditto.
1229 (V8SI_FTYPE_PV4SI): Ditto.
1230 (V4SI_FTYPE_PV2SI): Ditto.
1231 (V8SF_FTYPE_PV2SF): Ditto.
1232 (V8SI_FTYPE_PV2SI): Ditto.
1233 (V16SF_FTYPE_PV8SF): Ditto.
1234 (V16SI_FTYPE_PV8SI): Ditto.
1235 (V8DI_FTYPE_V8SF): Ditto.
1236 (V4DI_FTYPE_V4SF): Ditto.
1237 (V2DI_FTYPE_V4SF): Ditto.
1238 (V64QI_FTYPE_QI): Ditto.
1239 (V32HI_FTYPE_HI): Ditto.
1240 (V8UHI_FTYPE_V8UHI): Ditto.
1241 (V16UHI_FTYPE_V16UHI): Ditto.
1242 (V32UHI_FTYPE_V32UHI): Ditto.
1243 (V2UDI_FTYPE_V2UDI): Ditto.
1244 (V4UDI_FTYPE_V4UDI): Ditto.
1245 (V8UDI_FTYPE_V8UDI): Ditto.
1246 (V4USI_FTYPE_V4USI): Ditto.
1247 (V8USI_FTYPE_V8USI): Ditto.
1248 (V16USI_FTYPE_V16USI): Ditto.
1249 (V2DF_FTYPE_V2DF_UINT64): Ditto.
1250 (V2DI_FTYPE_V2DF_V2DF): Ditto.
1251 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
1252 (V8DF_FTYPE_V8DF_V8DI): Ditto.
1253 (V4SF_FTYPE_V4SF_UINT64): Ditto.
1254 (V4SI_FTYPE_V4SF_V4SF): Ditto.
1255 (V16SF_FTYPE_V16SF_V16SI): Ditto.
1256 (V64QI_FTYPE_V32HI_V32HI): Ditto.
1257 (V32HI_FTYPE_V16SI_V16SI): Ditto.
1258 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
1259 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
1260 (V32HI_FTYPE_V64QI_V64QI): Ditto.
1261 (V32HI_FTYPE_V32HI_V32HI): Ditto.
1262 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
1263 (V16SI_FTYPE_V16SI_V4SI): Ditto.
1264 (V16SI_FTYPE_V16SI_V16SI): Ditto.
1265 (V16SI_FTYPE_V32HI_V32HI): Ditto.
1266 (V16SI_FTYPE_V16SI_SI): Ditto.
1267 (V8DI_FTYPE_V8DI_V8DI): Ditto.
1268 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
1269 (V8DI_FTYPE_V16SI_V16SI): Ditto.
1270 (V8DI_FTYPE_V8DI_V2DI): Ditto.
1271 (QI_FTYPE_QI): Ditto.
1272 (SI_FTYPE_SI): Ditto.
1273 (DI_FTYPE_DI): Ditto.
1274 (QI_FTYPE_QI_QI): Ditto.
1275 (QI_FTYPE_QI_INT): Ditto.
1276 (HI_FTYPE_HI_INT): Ditto.
1277 (SI_FTYPE_SI_INT): Ditto.
1278 (DI_FTYPE_DI_INT): Ditto.
1279 (HI_FTYPE_V16QI_V16QI): Ditto.
1280 (SI_FTYPE_V32QI_V32QI): Ditto.
1281 (DI_FTYPE_V64QI_V64QI): Ditto.
1282 (QI_FTYPE_V8HI_V8HI): Ditto.
1283 (HI_FTYPE_V16HI_V16HI): Ditto.
1284 (SI_FTYPE_V32HI_V32HI): Ditto.
1285 (QI_FTYPE_V4SI_V4SI): Ditto.
1286 (QI_FTYPE_V8SI_V8SI): Ditto.
1287 (QI_FTYPE_V2DI_V2DI): Ditto.
1288 (QI_FTYPE_V4DI_V4DI): Ditto.
1289 (QI_FTYPE_V8DI_V8DI): Ditto.
1290 (HI_FTYPE_V16SI_V16SI): Ditto.
1291 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
1292 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
1293 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
1294 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
1295 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
1296 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
1297 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
1298 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
1299 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
1300 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
1301 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
1302 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
1303 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
1304 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
1305 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
1306 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
1307 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
1308 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
1309 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
1310 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
1311 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
1312 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
1313 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
1314 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
1315 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
1316 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
1317 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
1318 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
1319 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
1320 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
1321 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
1322 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
1323 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
1324 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
1325 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
1326 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
1327 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
1328 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
1329 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
1330 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
1331 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
1332 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
1333 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
1334 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
1335 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
1336 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
1337 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
1338 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
1339 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
1340 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
1341 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
1342 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
1343 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
1344 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
1345 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
1346 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
1347 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
1348 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
1349 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
1350 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
1351 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
1352 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
1353 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
1354 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
1355 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
1356 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
1357 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
1358 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
1359 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
1360 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
1361 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
1362 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
1363 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
1364 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
1365 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
1366 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
1367 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
1368 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
1369 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
1370 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
1371 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
1372 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
1373 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
1374 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
1375 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
1376 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
1377 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
1378 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
1379 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
1380 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
1381 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
1382 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
1383 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
1384 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
1385 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
1386 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
1387 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
1388 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
1389 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
1390 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
1391 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
1392 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
1393 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
1394 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
1395 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
1396 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
1397 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
1398 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
1399 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
1400 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
1401 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
1402 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
1403 (HI_FTYPE_HI): Ditto.
1404 (HI_FTYPE_V16QI): Ditto.
1405 (SI_FTYPE_V32QI): Ditto.
1406 (DI_FTYPE_V64QI): Ditto.
1407 (QI_FTYPE_V8HI): Ditto.
1408 (HI_FTYPE_V16HI): Ditto.
1409 (SI_FTYPE_V32HI): Ditto.
1410 (QI_FTYPE_V4SI): Ditto.
1411 (QI_FTYPE_V8SI): Ditto.
1412 (HI_FTYPE_V16SI): Ditto.
1413 (QI_FTYPE_V2DI): Ditto.
1414 (QI_FTYPE_V4DI): Ditto.
1415 (QI_FTYPE_V8DI): Ditto.
1416 (V16QI_FTYPE_HI): Ditto.
1417 (V32QI_FTYPE_SI): Ditto.
1418 (V64QI_FTYPE_DI): Ditto.
1419 (V8HI_FTYPE_QI): Ditto.
1420 (V16HI_FTYPE_HI): Ditto.
1421 (V32HI_FTYPE_SI): Ditto.
1422 (V4SI_FTYPE_QI): Ditto.
1423 (V4SI_FTYPE_HI): Ditto.
1424 (V8SI_FTYPE_QI): Ditto.
1425 (V8SI_FTYPE_HI): Ditto.
1426 (V2DI_FTYPE_QI): Ditto.
1427 (V4DI_FTYPE_QI): Ditto.
1428 (HI_FTYPE_HI_HI): Ditto.
1429 (SI_FTYPE_SI_SI): Ditto.
1430 (DI_FTYPE_DI_DI): Ditto.
1431 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
1432 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
1433 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
1434 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
1435 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
1436 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
1437 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
1438 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
1439 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
1440 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
1441 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
1442 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
1443 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
1444 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
1445 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
1446 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
1447 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
1448 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
1449 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
1450 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
1451 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
1452 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
1453 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
1454 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
1455 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
1456 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
1457 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
1458 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
1459 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
1460 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
1461 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
1462 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
1463 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
1464 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
1465 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
1466 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
1467 (V16SI_FTYPE_HI): Ditto.
1468 (V8DI_FTYPE_QI): Ditto.
1469 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
1470 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
1471 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
1472 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
1473 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
1474 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
1475 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
1476 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
1477 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
1478 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
1479 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
1480 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
1481 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
1482 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
1483 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
1484 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
1485 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
1486 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
1487 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
1488 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
1489 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
1490 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
1491 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
1492 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
1493 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
1494 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
1495 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
1496 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
1497 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
1498 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
1499 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
1500 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
1501 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
1502 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
1503 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
1504 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
1505 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
1506 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
1507 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
1508 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
1509 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
1510 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
1511 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
1512 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
1513 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
1514 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
1515 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
1516 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
1517 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
1518 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
1519 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
1520 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
1521 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
1522 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
1523 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
1524 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
1525 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
1526 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
1527 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
1528 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
1529 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
1530 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
1531 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
1532 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
1533 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
1534 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
1535 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
1536 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
1537 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
1538 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
1539 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
1540 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
1541 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
1542 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
1543 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
1544 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
1545 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
1546 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
1547 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
1548 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
1549 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
1550 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
1551 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
1552 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
1553 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
1554 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
1555 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
1556 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
1557 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
1558 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
1559 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
1560 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
1561 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
1562 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
1563 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
1564 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
1565 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
1566 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
1567 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
1568 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
1569 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
1570 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
1571 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
1572 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
1573 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
1574 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
1575 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
1576 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
1577 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
1578 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
1579 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
1580 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
1581 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
1582 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
1583 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
1584 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
1585 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
1586 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
1587 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
1588 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
1589 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
1590 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
1591 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
1592 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
1593 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
1594 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
1595 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
1596 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
1597 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
1598 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
1599 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
1600 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
1601 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
1602 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
1603 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
1604 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
1605 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
1606 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
1607 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
1608 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
1609 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
1610 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
1611 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
1612 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
1613 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
1614 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
1615 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
1616 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
1617 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
1618 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
1619 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
1620 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
1621 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
1622 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
1623 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
1624 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
1625 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
1626 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
1627 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
1628 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
1629 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
1630 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
1631 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
1632 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
1633 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
1634 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
1635 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
1636 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
1637 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
1638 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
1639 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
1640 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
1641 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
1642 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
1643 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
1644 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
1645 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
1646 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
1647 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
1648 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
1649 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
1650 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
1651 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
1652 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
1653 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
1654 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
1655 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
1656 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
1657 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
1658 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
1659 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
1660 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
1661 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
1662 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
1663 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
1664 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
1665 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
1666 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
1667 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
1668 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
1669 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
1670 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
1671 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
1672 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
1673 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
1674 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
1675 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
1676 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
1677 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
1678 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
1679 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
1680 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
1681 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
1682 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
1683 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
1684 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
1685 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
1686 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
1687 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
1688 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
1689 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
1690 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
1691 (QI_FTYPE_V8DF_INT_QI): Ditto.
1692 (QI_FTYPE_V4DF_INT_QI): Ditto.
1693 (QI_FTYPE_V2DF_INT_QI): Ditto.
1694 (HI_FTYPE_V16SF_INT_HI): Ditto.
1695 (QI_FTYPE_V8SF_INT_QI): Ditto.
1696 (QI_FTYPE_V4SF_INT_QI): Ditto.
1697 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
1699 2015-07-31 Richard Biener <rguenther@suse.de>
1701 * gimple-fold.c (fold_gimple_assign): Remove folding of
1704 2015-07-31 Tom de Vries <tom@codesourcery.com>
1706 PR tree-optimization/66846
1707 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
1708 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
1709 (expand_omp_target) [ENABLE_CHECKING]: Same.
1710 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
1711 cfun if !LOOPS_NEED_FIXUP.
1712 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
1713 that omp_for already has its own loop struct.
1714 * tree-parloops.c (create_phi_for_local_result)
1715 (create_call_for_reduction): Handle simple latch bb.
1716 (create_parallel_loop): Add simple latch bb to preserve
1717 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
1718 (gen_parallel_loop): Remove call to cancel_loop_tree.
1719 (parallelize_loops): Skip loops that are inner loops of parallelized
1721 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
1722 verify_loop_structure.
1724 2015-07-30 Anatoly Sokolov <aesok@post.ru>
1726 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
1727 * config/v850/v850.md (RV_REGNUM): New constants.
1728 * config/v850/v850.c (v850_libcall_value): New functions.
1729 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
1730 (TARGET_LIBCALL_VALUE): Define.
1732 2015-07-30 Anatoly Sokolov <aesok@post.ru>
1734 * rtl.h (lowpart_subreg): Move in file.
1735 * loop-iv.c (lowpart_subreg): Move to...
1736 * simplify-rtx.c (lowpart_subreg): ...here.
1737 (simplify_binary_operation_1): Use lowpart_subreg instead of
1738 simplify_gen_subreg.
1739 * expr.c (expand_expr_real_2): Ditto.
1740 * emit-rtl.c (gen_lowpart_common): Ditto.
1741 * combine.c (gen_lowpart_for_combine): Ditto.
1742 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
1743 expand_debug_source_expr): Ditto.
1745 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
1747 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
1748 (expand_builtin_atomic_clear): Remove support for atomic_clear
1751 2015-07-30 Richard Biener <rguenther@suse.de>
1753 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
1754 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
1755 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
1756 redundant operand canonicalization.
1758 2015-07-30 David Sherwood <david.sherwood@arm.com>
1760 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
1761 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
1762 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
1763 * config/arm/arm.c (neon_valid_immediate): Likewise.
1764 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
1765 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
1766 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
1767 (expand_vec_perm_vpshufb2_vpermq): Likewise.
1768 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
1769 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
1770 * config/i386/sse.md
1771 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
1772 (*ssse3_palignr<mode>_perm): Likewise.
1773 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
1774 * config/spu/spu.c (arith_immediate_p): Likewise.
1775 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1776 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
1778 2015-07-30 Richard Biener <rguenther@suse.de>
1780 * genmatch.c (decision_tree::gen_gimple): Merge with ...
1781 (decision_tree::gen_generic): ... this into ...
1782 (decision_tree::gen): ... this.
1783 (main): Adjust callers.
1785 2015-07-30 Richard Biener <rguenther@suse.de>
1787 * genmatch.c (verbose): New global.
1788 (warning_at): Add overload with source_location.
1789 (capture_info::capture_info): Add bool whether generating gimple
1790 or generic. Add gimple member.
1791 (capture_info::cinfo): Add capture member.
1792 (capture_info::walk_match): Record capture. Warn on
1794 (capture_info::walk_c_expr): Add more fragments captures cannot
1795 escape through. Warn on escaped captures.
1796 (dt_simplify::gen_1): Warn on operands we force to have no
1798 (main): Initialize verbose.
1799 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
1801 2015-07-30 Richard Biener <rguenther@suse.de>
1804 * match.pd: Allow both operands to independently have conversion
1805 when simplifying compares of addresses.
1807 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
1811 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
1812 around those cases that need one.
1814 2015-07-29 Aditya Kumar <hiraditya@msn.com>
1816 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
1818 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
1820 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
1821 New. Copied from config/i386/gnu-user.h.
1822 (ASM_COMMENT_START): Likewise.
1823 (DBX_REGISTER_NUMBER): Likewise.
1825 2015-07-29 Richard Biener <rguenther@suse.de>
1827 * gimple-fold.c (fold_gimple_cond): Remove.
1828 (fold_stmt_1): Do not call it.
1830 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
1832 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
1833 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
1835 * config/aarch64/aarch64-modes.def: Add HFmode.
1837 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1838 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
1840 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
1841 aarch64_promoted_type): New.
1843 (aarch64_float_const_representable_p): Disable HFmode.
1844 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
1845 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
1846 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
1848 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
1849 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
1851 * config/aarch64/iterators.md (GPF_F16): New.
1853 2015-07-29 Richard Biener <rguenther@suse.de>
1855 * match.pd: Merge address comparison patterns and make them
1856 handle some more cases.
1858 2015-07-29 Richard Biener <rguenther@suse.de>
1860 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
1861 (parser::parse_capture): Add bool argument on whether to reject
1863 (parser::parse_expr): Adjust.
1864 (parser::parse_op): Likewise.
1865 (parser::parse_pattern): Likewise.
1867 2015-07-29 Richard Biener <rguenther@suse.de>
1869 * gimple-fold.c (has_use_on_stmt): New function.
1870 (replace_stmt_with_simplification): Use it to allow
1871 abnormals originally referenced in the stmt.
1872 (fold_stmt_1): Canonicalize operand order.
1874 2015-07-28 David Sherwood <david.sherwood@arm.com>
1876 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
1877 GET_MODE_INNER unconditionally.
1878 * config/spu/spu.c (arith_immediate_p): Likewise.
1879 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
1880 * expmed.c (synth_mult): Remove check for VOIDmode result from
1882 (expand_mult_const): Likewise.
1883 * fold-const.c (fold_binary_loc): Replace call to element_precision
1884 with call to GET_MODE_PRECISION.
1885 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
1887 (emit_mode_inner): Likewise.
1888 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
1890 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
1891 (GET_MODE_UNIT_PRECISION): Likewise.
1892 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
1893 * simplify-rtx.c (simplify_immed_subreg): Likewise.
1894 * stor-layout.c (bitwise_type_for_mode): Update assert.
1895 (element_precision): Remove.
1897 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1899 * target-insns.def (reload_load_address): New targetm instruction
1901 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
1903 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1905 * target-insns.def (atomic_test_and_set): New targetm instruction
1907 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
1908 HAVE_*/gen_* interface.
1910 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1912 * target-insns.def (can_extend, ptr_extend): New targetm instruction
1914 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
1915 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1916 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
1917 * rtlanal.c (nonzero_bits1): Likewise.
1918 (num_sign_bit_copies1): Likewise.
1920 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1922 * target-insns.def (eh_return): New targetm instruction pattern.
1923 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
1925 * function.c (thread_prologue_and_epilogue_insns): Remove
1926 preprocessor condition.
1928 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1930 * target-insns.def (indirect_jump): New targetm instruction pattern.
1931 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
1934 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1936 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
1937 instead of nonimmediate_operand. Remove C condiition.
1939 2015-07-28 Richard Biener <rguenther@suse.de>
1941 * match.pd: Add more simplification of address comparisons.
1943 2015-07-28 Richard Biener <rguenther@suse.de>
1945 * match.pd: Re-order two cases in comparison with max/min
1946 value simplification to make it apply for bools.
1948 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1950 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
1951 Handle simple SIGN_EXTEND or ZERO_EXTEND.
1952 (aarch64_rtx_costs): Properly strip extend or extract before
1953 passing down to rtx costs again.
1955 2015-07-28 Nick Clifton <nickc@redhat.com>
1957 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
1958 Optimizes the case where -mes0 is active and a constant symbolic
1960 * config/rl78/rl78-protos.h: Prototype the new function.
1961 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
1963 2015-07-28 Tom de Vries <tom@codesourcery.com>
1965 * tree-parloops.c (reduc_stmt_res): New function.
1966 (initialize_reductions, add_field_for_reduction)
1967 (create_phi_for_local_result, create_loads_for_reductions)
1968 (create_stores_for_reduction, build_new_reduction): Handle case that
1969 reduc_stmt is a phi.
1970 (gather_scalar_reductions): Allow double_reduc reductions.
1972 2015-07-28 Richard Biener <rguenther@suse.de>
1974 * fold-const.c (fold_comparison): Remove equality folding
1975 of decl addresses ...
1976 * match.pd: ... here and merge with existing pattern.
1978 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
1980 PR tree-optimization/66828
1981 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
1982 from int64_t to uint64_t.
1984 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
1986 * opts-common.c (read_cmdline_option): List DriverOnly enum values
1987 as valid only in the error message of the driver, not in the
1988 messages of the language compilers.
1990 2015-07-27 Tom de Vries <tom@codesourcery.com>
1992 * tree-parloops.c (gather_scalar_reductions): Simplify function
1995 2015-07-27 Marek Polacek <polacek@redhat.com>
1997 * ipa-devirt.c (types_same_for_odr): Fix typo.
1999 2015-07-27 Jason Merrill <jason@redhat.com>
2002 * dwarf2out.c (gen_inlined_subroutine_die): Check
2003 cgraph_function_possibly_inlined_p.
2005 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
2007 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
2008 Place integer variant first.
2009 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
2011 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
2014 * config/arm/arm-builtins.c (enum arm_builtins):
2015 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
2016 (ARM_BUILTIN_NEON_BASE): Rename macro to....
2017 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
2018 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
2019 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
2021 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
2024 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
2025 Add qualifier_lane_index.
2026 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
2027 (arm_getlane_qualifiers): Use qualifier_lane_index.
2028 (arm_lanemac_qualifiers): Rename to...
2029 (arm_mac_n_qualifiers): ...this.
2030 (LANEMAC_QUALIFIERS): Rename to...
2031 (MAC_N_QUALIFIERS): ...this.
2032 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
2033 (arm_setlane_qualifiers): Use qualifier_lane_index.
2034 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
2035 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
2036 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
2037 (arm_expand_neon_builtin): Handle qualifier_lane_index.
2039 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
2040 * config/arm/arm.c (bounds_check): Likewise, improve error message.
2041 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
2042 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
2043 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
2044 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
2045 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
2046 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
2047 qualifiers to TERNOP_IMM.
2048 (vdup_lane): Change qualifiers to GETLANE.
2049 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
2050 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
2051 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
2052 vqdmlsl_n): Change qualifiers to MAC_N.
2054 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
2055 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
2056 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
2057 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
2058 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
2059 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
2060 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
2061 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
2062 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
2063 Remove call to neon_lane_bounds.
2065 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
2067 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
2068 Place integer variant first.
2070 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
2072 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
2073 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
2074 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
2075 for armv6kz targets.
2076 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
2077 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
2078 (FL_FOR_ARCH6ZK): Remove.
2079 (FL_FOR_ARCH6KZ): New.
2080 (arm_arch6zk): New declaration.
2081 * config/arm/arm-tables.opt: Regenerate.
2082 * config/arm/arm.c (arm_arch6kz): New.
2083 (arm_option_override): Set arm_arch6kz.
2084 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
2085 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
2086 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
2088 2015-07-27 Marek Polacek <polacek@redhat.com>
2092 * doc/invoke.texi: Document -Wtautological-compare.
2094 2015-07-27 Richard Biener <rguenther@suse.de>
2096 * genmatch.c (decision_tree::gen_gimple): Split out large
2097 subtrees into separate functions.
2098 (decision_tree::gen_generic): Likewise.
2100 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
2102 * config/alpha/alpha.c: Use SUBREG_P predicate.
2103 * config/alpha/predicates.md: Ditto.
2105 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
2107 * config.host (s390*-*-*): Include driver-native.c only when
2108 building with s390* as host *and* target.
2110 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
2113 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
2114 T bit register modified_between_p check.
2116 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2118 * config/i386/i386.c: Use SUBREG_P predicate.
2119 * config/i386/i386.md: Ditto.
2120 * config/i386/sse.md: Ditto.
2121 * config/i386/predicates.md: Ditto.
2123 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2126 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
2127 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
2129 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2131 * Makefile.in: Remove use of TREEBROWSER.
2132 * config.in: Regenerated.
2133 * configure: Regenerated.
2134 * configure.ac: Remove definition of TREEBROWSER.
2135 * tree-browser.c: Removed.
2136 * tree-browser.def: Removed.
2138 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2140 * graphite-scop-detection.c: Include gimple-pretty-print.h.
2141 (stmt_simple_for_scop_p): Print when a stmt is not handled in
2143 (scopdet_basic_block_info): Print when a loop or bb cannot be
2144 represented in Graphite.
2146 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2149 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
2150 execution guard when min_size is less than size_needed.
2152 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2154 * doc/install.texi: Document supported versions of ISL.
2156 2015-07-25 Jeff Law <law@redhat.com>
2160 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2161 unable to find X NE 0 in the tables, return X as the simplified
2163 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2164 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2166 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2167 after removing the control flow statement and unnecessary edges.
2169 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
2172 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
2174 PR rtl-optimization/64164
2175 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2176 * tree-ssa-copyrename.c: Removed.
2177 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2178 -ftree-coalesce-vars.
2179 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2180 * common.opt (ftree-copyrename): Ignore.
2181 (ftree-coalesce-inlined-vars): Likewise.
2182 * doc/invoke.texi: Remove the ignored options above.
2183 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2184 * tree-ssa-coalesce.h: ... here.
2185 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2186 headers required by it.
2187 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2188 across variables when flag_tree_coalesce_vars. Check register
2189 use and promoted modes to allow coalescing. Moved to
2190 tree-ssa-coalesce.c.
2191 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2192 with its member functions to tree-ssa-coalesce.c.
2193 (var_map_base_init): Likewise. Renamed to
2194 compute_samebase_partition_bases.
2195 (partition_view_normal): Drop want_bases parameter.
2196 (partition_view_bitmap): Likewise.
2197 * tree-ssa-live.h: Adjust declarations.
2198 * tree-ssa-coalesce.c: Include explow.h.
2199 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2200 default defs at the entry point.
2201 (dump_part_var_map): New.
2202 (compute_optimized_partition_bases): New, called by...
2203 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2204 of compute_samebase_partition_bases. Adjust.
2205 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2206 * cfgexpand.c (leader_merge): New.
2207 (get_rtl_for_parm_ssa_default_def): New.
2208 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2209 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2210 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2211 redundant MEM attr setting.
2212 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2214 (expand_one_stack_var): ... this. New wrapper to check and
2215 skip already expanded SSA partitions.
2216 (record_alignment_for_reg_var): New, factored out of...
2217 (expand_one_var): ... this.
2218 (expand_one_ssa_partition): New.
2219 (adjust_one_expanded_partition_var): New.
2220 (expand_one_register_var): Check and skip already expanded SSA
2222 (expand_used_vars): Don't create DECLs for anonymous SSA
2223 names. Expand all SSA partitions, then adjust all SSA names.
2224 (pass::execute): Replace the loops that set
2225 SA.partition_to_pseudo from partition leaders and cleared
2226 DECL_RTL for multi-location variables, and that which used to
2227 rename vars and set attrs, with one that clears DECL_RTL and
2228 checks that PARMs and RESULTs default_defs match DECL_RTL.
2229 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2230 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2231 * explow.c (promote_ssa_mode): New.
2232 * explow.h (promote_ssa_mode): Declare.
2233 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2234 * function.c: Include cfgexpand.h.
2235 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2236 (use_register_for_parm_decl): Wrapper for the above to
2237 special-case the result_ptr.
2238 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2239 (split_complex_args): Take assign_parm_data_all argument.
2240 Pass it to rtl_for_parm. Set up rtl and context for split
2242 (assign_parms_augmented_arg_list): Adjust.
2243 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2244 multiple locations. Recognize split complex args.
2245 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2246 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2247 (assign_parm_setup_block): Prefer SSA-assigned location.
2248 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2249 if stack_parm is NULL.
2250 (assign_parm_setup_stack): Prefer SSA-assigned location.
2251 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2252 rtl before testing for pointer bounds. Special-case result_ptr.
2253 (expand_function_start): Maybe reset DECL_RTL of result.
2254 Prefer SSA-assigned location for result and static chain.
2255 Factor out DECL_RESULT and SET_DECL_RTL.
2256 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2257 anonymous SSA names. Use promote_ssa_mode.
2258 (get_temp_reg): Likewise.
2259 (remove_ssa_form): Adjust.
2260 * stor-layout.c (layout_decl): Don't set mem attributes of
2262 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2263 and get its reg_usage for reg invalidation.
2264 (compute_bb_dataflow): Pass it insn.
2265 (emit_notes_in_bb): Likewise.
2267 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2269 * config/i386/i386.c (ix86_va_start): Remove
2270 unneeded !TARGET_64BIT check.
2271 (ix86_gimplify_va_arg): Ditto.
2273 2015-07-24 Tom de Vries <tom@codesourcery.com>
2275 * graphite-sese-to-poly.c (build_poly_scop): Always call
2276 rewrite_commutative_reductions_out_of_ssa.
2278 2015-07-24 Tom de Vries <tom@codesourcery.com>
2280 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
2281 flag_associative_math to FLOAT_TYPE_P. Honour
2282 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
2284 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
2287 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
2288 and "%qD" in warning_at instead of "%q+D" in warning.
2290 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
2292 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
2293 (ix86_function_abi): Cleanup.
2295 2015-07-24 Michael Darling <darlingm@gmail.com>
2298 * acinclude.m4: Reflects renaming of configure.in to configure.ac
2299 * configure: Likewise
2300 * configure.ac: Likewise
2301 * doc/install.texi: Likewise
2302 * doc/tm.texi: Likewise
2303 * doc/tm.texi.in: Likewise
2305 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2307 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
2308 manually swapping values.
2309 * cse.c (fold_rtx): Likewise.
2310 * lra-eliminations.c (form_sum): Likewise.
2312 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
2315 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
2316 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
2317 (*jcc_1, *jcc_2, jump, simple_return_internal)
2318 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
2319 Set length_nobnd attribute instead of length attribute.
2320 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
2321 (length_nobnd): Remove attribute.
2322 (length): Remove length_nobnd processing.
2324 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
2326 * gimplify.c (omp_default_clause): New function. Reorganize flow
2327 for clarity. Broken out of ...
2328 (omp_notice_variable): ... here.
2330 2015-07-24 Gary Funck <gary@intrepid.com>
2333 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
2334 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
2336 2015-07-24 Tom de Vries <tom@codesourcery.com>
2338 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
2339 exit-first loop transform.
2341 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
2344 * tree-cfg.c (struct replace_decls_d): New struct.
2345 (replace_block_vars_by_duplicates_1): New function.
2346 (replace_block_vars_by_duplicates): Use it to replace the decls
2347 in the value exprs by duplicates.
2349 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2351 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
2352 -shared, -symbolic, -rdynamic.
2354 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2357 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
2358 -dynamic-linker within %{!static %{!shared, and -rdynamic within
2361 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
2364 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
2365 edge summary is available.
2367 2015-07-24 Richard Biener <rguenther@suse.de>
2369 * genmatch.c (struct dt_node): Add statistic fields.
2370 (dt_node::analyze): New method.
2371 (decision_tree::gen_gimple): Call analyze on the root node
2372 and print statistics to stderr.
2373 (decision_tree::gen_generic): Likewise.
2375 2015-07-24 Richard Biener <rguenther@suse.de>
2377 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
2378 against the highest or lowest possible integer ...
2379 * match.pd: ... as patterns here.
2381 2015-07-24 Richard Biener <rguenther@suse.de>
2383 * genmatch.c (struct capture_info): Add same_as field.
2384 (capture_info::capture_info): Initialize same_as.
2385 (capture_info::walk_match): Compute same_as.
2386 (capture_info::walk_result): Compute stuff for the leader.
2387 (capture_info::walk_c_expr): Likewise.
2388 (dt_simplify::gen_1): Only look at leaders when deciding
2389 to force no side-effects or emit side-effects of omitted operands.
2391 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2393 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
2394 reg note to the GPR -> FPR save instructions.
2396 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2398 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
2400 (s390_expand_insv): Don't generate risbg pattern for constant zero
2402 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
2403 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
2406 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2408 * config/s390/s390.c (s390_reorg): Clean up handling of processors
2411 (s390_issue_rate): Likewise.
2412 (s390_sched_reorder): Likewise.
2413 (s390_sched_variable_issue): Likewise.
2414 (s390_loop_unroll_adjust): Likewise.
2415 (s390_option_override): Likewise.
2417 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2419 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
2420 processor capabilities with -march=native.
2421 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
2422 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
2423 (S390_TARGET_BITS_STRING): Macro to simplify specs.
2425 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2427 * config/s390/s390.c (s390_issue_rate): Handle
2428 PROCESSOR_2094_Z9_EC.
2429 (s390_option_override): Likewise.
2430 (s390_adjust_priority): Likewise.
2432 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2434 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
2435 when cross compiling.
2437 2015-07-24 Richard Biener <rguenther@suse.de>
2439 * fold-const.c (maybe_canonicalize_comparison_1): Move
2440 A code CST canonicalization ...
2441 * match.pd: ... to a pattern here.
2443 2015-07-24 Jiong Wang <jiong.wang@arm.com>
2446 2015-07-22 Jiong Wang <jiong.wang@arm.com>
2448 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
2449 (HONOR_REG_ALLOC_ORDER): Define.
2451 2015-07-24 Richard Biener <rguenther@suse.de>
2453 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
2454 * fold-const.c (fold_comparison): Move parameter does not
2455 alias &local simplification ...
2456 * match.pd: ... as a pattern here.
2458 2015-07-24 Richard Biener <rguenther@suse.de>
2460 * gimple-fold.c (replace_stmt_with_simplification): Special-case
2461 valueizing call operands.
2462 * gimple-match-head.c (maybe_push_res_to_seq): Take
2463 number of call arguments from ops array.
2464 (do_valueize): New function.
2465 (gimple_simplify): Return true if valueization changed
2466 any operand even if the result didn't simplify further.
2468 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2471 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
2473 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2476 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
2478 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2480 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
2483 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2485 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
2488 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
2490 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
2491 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
2493 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
2494 ms_va_list_type_node initialization.
2496 2015-07-23 Jeff Law <law@redhat.com>
2499 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2500 unable to find X NE 0 in the tables, return X as the simplified
2502 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2503 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2505 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2506 after removing the control flow statement and unnecessary edges.
2508 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2510 * tree-pass.h (get_current_pass_name): Removed.
2512 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
2514 PR rtl-optimization/64164
2515 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2516 * tree-ssa-copyrename.c: Removed.
2517 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2518 -ftree-coalesce-vars.
2519 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2520 * common.opt (ftree-copyrename): Ignore.
2521 (ftree-coalesce-inlined-vars): Likewise.
2522 * doc/invoke.texi: Remove the ignored options above.
2523 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2524 * tree-ssa-coalesce.h: ... here.
2525 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2526 headers required by it.
2527 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2528 across variables when flag_tree_coalesce_vars. Check register
2529 use and promoted modes to allow coalescing. Moved to
2530 tree-ssa-coalesce.c.
2531 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2532 with its member functions to tree-ssa-coalesce.c.
2533 (var_map_base_init): Likewise. Renamed to
2534 compute_samebase_partition_bases.
2535 (partition_view_normal): Drop want_bases parameter.
2536 (partition_view_bitmap): Likewise.
2537 * tree-ssa-live.h: Adjust declarations.
2538 * tree-ssa-coalesce.c: Include explow.h.
2539 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2540 default defs at the entry point.
2541 (dump_part_var_map): New.
2542 (compute_optimized_partition_bases): New, called by...
2543 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2544 of compute_samebase_partition_bases. Adjust.
2545 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2546 * cfgexpand.c (leader_merge): New.
2547 (get_rtl_for_parm_ssa_default_def): New.
2548 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2549 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2550 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2551 redundant MEM attr setting.
2552 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2554 (expand_one_stack_var): ... this. New wrapper to check and
2555 skip already expanded SSA partitions.
2556 (record_alignment_for_reg_var): New, factored out of...
2557 (expand_one_var): ... this.
2558 (expand_one_ssa_partition): New.
2559 (adjust_one_expanded_partition_var): New.
2560 (expand_one_register_var): Check and skip already expanded SSA
2562 (expand_used_vars): Don't create DECLs for anonymous SSA
2563 names. Expand all SSA partitions, then adjust all SSA names.
2564 (pass::execute): Replace the loops that set
2565 SA.partition_to_pseudo from partition leaders and cleared
2566 DECL_RTL for multi-location variables, and that which used to
2567 rename vars and set attrs, with one that clears DECL_RTL and
2568 checks that PARMs and RESULTs default_defs match DECL_RTL.
2569 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2570 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2571 * explow.c (promote_ssa_mode): New.
2572 * explow.h (promote_ssa_mode): Declare.
2573 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2574 * function.c: Include cfgexpand.h.
2575 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2576 (use_register_for_parm_decl): Wrapper for the above to
2577 special-case the result_ptr.
2578 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2579 (split_complex_args): Take assign_parm_data_all argument.
2580 Pass it to rtl_for_parm. Set up rtl and context for split
2582 (assign_parms_augmented_arg_list): Adjust.
2583 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2584 multiple locations. Recognize split complex args.
2585 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2586 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2587 (assign_parm_setup_block): Prefer SSA-assigned location.
2588 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2589 if stack_parm is NULL.
2590 (assign_parm_setup_stack): Prefer SSA-assigned location.
2591 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2592 rtl before testing for pointer bounds. Special-case result_ptr.
2593 (expand_function_start): Maybe reset DECL_RTL of result.
2594 Prefer SSA-assigned location for result and static chain.
2595 Factor out DECL_RESULT and SET_DECL_RTL.
2596 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2597 anonymous SSA names. Use promote_ssa_mode.
2598 (get_temp_reg): Likewise.
2599 (remove_ssa_form): Adjust.
2600 * stor-layout.c (layout_decl): Don't set mem attributes of
2602 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2603 and get its reg_usage for reg invalidation.
2604 (compute_bb_dataflow): Pass it insn.
2605 (emit_notes_in_bb): Likewise.
2607 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
2610 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
2612 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
2613 (rs6000_emit_2insn_and): Handle dot forms.
2614 * config/rs6000/rs6000.md (and<mode>3): Adjust.
2615 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
2616 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
2618 2015-07-23 Richard Biener <rguenther@suse.de>
2620 * generic-match-head.c: Include cgraph.h.
2621 * gimple-match-head.c: Likewise.
2622 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
2624 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
2625 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
2628 2015-07-23 Richard Biener <rguenther@suse.de>
2630 * gimple-fold.c (fold_gimple_cond): Do not require folding
2631 results to pass valid_gimple_rhs_p.
2632 * tree-cfg.h (fold_cond_expr_cond): Remove.
2633 * tree-cfg.c (fold_cond_expr_cond): Likewise.
2634 (make_edges): Do not call it.
2635 * tree-inline.c (tree_function_versioning): Likewise.
2637 2015-07-23 Tom de Vries <tom@codesourcery.com>
2639 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
2640 vect_force_simple_reduction.
2641 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
2642 (vect_is_simple_reduction_1): Add and handle
2643 need_wrapping_integral_overflow parameter.
2644 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
2645 need_wrapping_integral_overflow parameter.
2646 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
2647 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
2650 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
2652 PR tree-optimization/66926,66951
2653 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
2654 INNER_LOOP and fix up condition for renaming virtual operands.
2656 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2658 * combine.c (try_combine): Use std::swap instead of manually
2661 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
2663 * config/mips/i6400.md: New file.
2664 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
2665 (mips64r6): Likewise.
2667 * config/mips/mips-tables.opt: Regenerate.
2668 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
2669 (mips_issue_rate): Add support for i6400.
2670 (mips_multipass_dfa_lookahead): Likewise.
2671 * config/mips/mips.h (TUNE_I6400): Define.
2672 * config/mips/mips.md: Include i6400.md.
2673 (processor): Add i6400.
2674 * doc/invoke.texi (-march=@var{arch}): Add i6400.
2676 2015-07-23 Richard Biener <rguenther@suse.de>
2679 * match.pd: Guard widen and sign-change comparison simplification
2682 2015-07-23 Richard Biener <rguenther@suse.de>
2684 PR tree-optimization/66945
2685 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
2686 ::before_dom_children): Force the propagators idea of
2687 non-executable edges to materialize, not what the folder
2690 2015-07-23 Richard Biener <rguenther@suse.de>
2692 * gimple.h (gimple_cond_make_false): Use 0 != 0.
2693 (gimple_cond_make_true): Use 1 != 0.
2695 2015-07-22 DJ Delorie <dj@redhat.com>
2697 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
2700 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
2701 (ashrhi3): Likewise.
2702 (lshrhi3): Likewise.
2703 (movhi): Take advantage of zero-extend to load small constants.
2705 (and<mode>3): Likewise.
2706 (zero_extendqihi2): Likewise.
2707 (zero_extendqisi2): New.
2708 * config/msp430/constraints.md (N,O): New.
2709 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
2711 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
2714 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
2715 to enum feature_priority and feature_list.
2716 (fold_builtin_cpu): Add F_AES to enum processor_features
2717 and isa_names_table.
2719 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
2722 * config/i386/linux-common.h (MPX_SPEC): Use linker option
2723 for 64bit target only.
2725 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
2727 * config/nvptx/nvptx.c: Expand some comments.
2729 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
2731 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
2732 (cortex_a53_advsimd): ...This.
2734 2015-07-22 Richard Biener <rguenther@suse.de>
2736 * genmatch.c (expr::gen_transform): Clarify error message
2737 and display location.
2739 2015-07-22 Richard Biener <rguenther@suse.de>
2741 * genmatch.c (struct operand): Add location member.
2742 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
2744 (struct simplify): Remove match_location and result_location
2746 (elsehwere): Adjust.
2748 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
2750 * config/mips/m5100.md: New file.
2751 * config/mips/mips-cpus.def (m5100, m5101): Define.
2752 * config/mips/mips-tables.opt: Regenerate.
2753 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
2754 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
2755 -march=m5101 to -mips32r5.
2756 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
2757 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
2759 * config/mips/mips.md: Include m5100.md.
2760 (processor): Add m5100.
2761 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
2763 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
2765 * config/mips/mips-cpus.def (interaptiv): Define.
2766 * config/mips/mips-tables.opt: Regenerate.
2767 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
2769 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
2770 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
2772 2015-07-22 Jiong Wang <jiong.wang@arm.com>
2775 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
2776 (HONOR_REG_ALLOC_ORDER): Define.
2778 2015-07-22 Richard Biener <rguenther@suse.de>
2780 PR tree-optimization/66952
2781 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
2782 blocks we end up executing unconditionally reset all SSA
2783 info such as range and alignment.
2784 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
2785 * tree-ssanames.c (reset_flow_sensitive_info): New function.
2787 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
2789 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
2792 2015-07-22 Richard Biener <rguenther@suse.de>
2794 * genmatch.c (parser::parse_result): Properly handle
2795 match with result operands and conditions.
2797 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
2800 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
2801 Add qualifier_struct_load_store_lane_index.
2802 (aarch64_types_loadstruct_lane_qualifiers): Use
2803 qualifier_struct_load_store_lane_index for lane index argument for
2805 (aarch64_types_storestruct_lane_qualifiers): Ditto.
2806 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2807 (aarch64_simd_expand_args): Add new argument describing mode of
2808 builtin. Check lane bounds for arguments with
2809 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2810 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
2811 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2812 (aarch64_simd_expand_builtin): Handle arguments with
2813 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
2814 aarch64_simd_expand_args.
2815 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
2816 vst[234]_lane with BUILTIN_VALLDIF.
2817 * config/aarch64/aarch64-simd.md:
2818 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
2819 endianness reversal on lane index.
2820 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
2821 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
2822 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
2823 (vec_store_lanesci_lane<mode>): Ditto.
2824 (vec_store_lanesxi_lane<mode>): Ditto.
2825 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
2826 reversal of lane index.
2827 (aarch64_ld3_lane<mode>): Ditto.
2828 (aarch64_ld4_lane<mode>): Ditto.
2829 (aarch64_st2_lane<mode>): Ditto.
2830 (aarch64_st3_lane<mode>): Ditto.
2831 (aarch64_st4_lane<mode>): Ditto.
2832 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
2833 to qmode. Add new mode parameter. Update uses.
2834 (__LD3_LANE_FUNC): Ditto.
2835 (__LD4_LANE_FUNC): Ditto.
2836 (__ST2_LANE_FUNC): Ditto.
2837 (__ST3_LANE_FUNC): Ditto.
2838 (__ST4_LANE_FUNC): Ditto.
2840 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
2842 * doc/invoke.texi (Language Independent Options): Rename node to
2843 Diagnostic Message Formatting Options.
2845 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
2848 * lra-remat.c (operand_to_remat): Prevent using insns with input
2849 subregs processed separately by IRA.
2851 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
2853 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
2855 (single_imm_use): Check for iterator node.
2856 (num_imm_uses): Likewise.
2857 * tree-ssa-operands.c (has_zero_uses_1): Delete.
2858 (single_imm_use_1): Check for iterator node.
2860 2015-07-21 Mike Frysinger <vapier@gentoo.org>
2861 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2863 * configure.ac: Add check for new options in isl-0.15.
2864 * config.in, configure: Rebuilt.
2865 * graphite-blocking.c: Include <isl/constraint.h>
2866 * graphite-interchange.c, graphite-poly.c: Likewise.
2867 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
2868 * graphite.c: Likewise.
2869 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
2871 * graphite-dependences.c: Include <isl/constraint.h>.
2872 (max_number_of_out_dimensions): Returns isl_stat.
2873 (extend_schedule_1): Likewise
2874 (extend_schedule): Corresponding changes.
2875 * graphite-optimize-isl.c: Include <isl/constraint.h> and
2877 (getSingleMap): Change return type of isl_stat.
2878 (optimize_isl): Conditionally use
2879 isl_options_set_schedule_serialize_sccs.
2880 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
2881 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
2883 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
2886 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
2887 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
2889 2015-07-21 Richard Biener <rguenther@suse.de>
2891 PR tree-optimization/66948
2892 * genmatch.c (capture_info::walk_match): Also recurse to
2893 captures. Properly compute expr state from captures of
2895 * match.pd: Add single-use guards to
2896 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
2898 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
2900 * config/nvptx/mkoffload.c (process): Add static destructor call.
2902 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2905 * match.pd (A - B -> A + (-B)): Don't allow folding
2906 when type if a fixed-point type.
2908 2015-07-20 DJ Delorie <dj@redhat.com>
2910 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
2911 (iorqi3_real): Likewise for set1.
2913 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
2915 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
2918 2015-07-20 Aditya Kumar <hiraditya@msn.com>
2920 * graphite-isl-ast-to-gimple.c:
2921 Refactor so that each function can access 'region'. This will help
2922 maintain a parameter rename_map within a region.
2924 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2926 * config/rs6000/rs6000.md (*lt0_disi): New.
2928 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2931 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
2932 "available letters" comment.
2933 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
2934 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
2935 and_2rld_operand): Delete.
2936 (and_operand): Adjust.
2937 (rotate_mask_operator): New.
2938 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
2939 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
2940 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
2941 extract_ME): Delete.
2942 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
2943 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
2944 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
2945 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
2946 rs6000_emit_2insn_and): New.
2947 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
2948 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
2949 includes_rldic_lshift_p, includes_rldicr_lshift_p,
2950 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
2951 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
2952 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
2953 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
2954 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
2955 rs6000_emit_2insn_and): New.
2956 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
2957 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
2959 <NOT>: Don't fall through to next case.
2960 <AND>: Handle the various rotate-and-mask cases directly.
2961 <IOR>: Always cost as one insn.
2962 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
2963 (and<mode>3): Adjust expander for the new patterns.
2964 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
2965 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
2966 (*and<mode>3_imm_dot_shifted): New.
2967 (*and<mode>3_mask): Delete, rewrite as ...
2968 (and<mode>3_mask): ... New.
2969 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
2970 (andsi3_internal0_nomc): Delete.
2971 (*andsi3_internal6): Delete.
2972 (*and<mode>3_2insn): New.
2973 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
2974 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
2975 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
2976 *insvdi_internal3): Delete.
2977 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
2978 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
2979 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
2980 *ior<mode>_mask): New.
2981 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
2982 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
2983 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
2984 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
2986 (ashr<mode>3): Delete expander.
2987 (*ashr<mode>3): Rename to ...
2988 (ashr<mode>3): ... This.
2989 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
2990 (*rotldi3_internal4, *rotldi3_internal5 and split,
2991 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
2992 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
2993 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
2994 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
2995 (splitter for loading a mask): Adjust.
2996 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
2998 2015-07-20 Marek Polacek <polacek@redhat.com>
3000 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
3001 output_add_clobbers, output_added_clobbers_hard_reg_p,
3002 gen_rtx_scratch): Remove declarations.
3004 2015-07-20 Marek Polacek <polacek@redhat.com>
3007 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
3009 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3011 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
3012 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
3014 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3016 * combine.c (combine_simplify_rtx): Move simplification step
3017 before various transformations/substitutions.
3019 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
3021 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
3022 (struct int_traits): Likewise.
3024 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3026 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
3027 function to vmsdbgout_function_decl.
3029 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
3032 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
3033 from misaligned positions.
3034 (ix86_expand_pinsr): Reject insertions to misaligned positions.
3036 2015-07-18 Sebastian Pop <s.pop@samsung.com>
3040 * Makefile.in: Removed omega.o.
3041 * common.opt: Document flag fcheck-data-deps as deprecated.
3042 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
3043 its associated params: omega-max-vars, omega-max-geqs,
3044 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
3045 omega-max-keys, omega-eliminate-redundant-constraints.
3046 * doc/loop.texi: Remove all the section on Omega.
3047 * graphite-blocking.c: Include missing params.h: it used to be
3048 included through tree-data-ref.h and omega.h.
3049 * graphite-isl-ast-to-gimple.c: Same.
3050 * graphite-optimize-isl.c: Same.
3051 * graphite-sese-to-poly.c: Same.
3055 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
3056 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
3057 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
3058 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
3059 * passes.def: Remove pass_check_data_deps.
3060 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
3061 (dump_conflict_function): Same.
3062 (dump_subscript): Same.
3063 (print_direction_vector): Same.
3064 (print_dir_vectors): Same.
3065 (print_lambda_vector): Same.
3066 (print_dist_vectors): Same.
3067 (dump_data_dependence_relation): Same.
3068 (dump_data_dependence_relations): Same.
3069 (dump_dist_dir_vectors): Same.
3071 (init_omega_eq_with_af): Removed.
3072 (omega_extract_distance_vectors): Removed.
3073 (omega_setup_subscript): Removed.
3074 (init_omega_for_ddr_1): Removed.
3075 (init_omega_for_ddr): Removed.
3076 (ddr_consistent_p): Removed.
3077 (compute_affine_dependence): Do not use omega to check data
3079 (compute_data_dependences_for_bb): Removed.
3080 (analyze_all_data_dependences): Removed.
3081 (tree_check_data_deps): Removed.
3082 * tree-data-ref.h: Do not include omega.h.
3083 (compute_data_dependences_for_bb): Removed.
3084 (tree_check_data_deps): Removed.
3085 * tree-ssa-loop.c (pass_check_data_deps): Removed.
3086 (make_pass_check_data_deps): Removed.
3087 * tree-ssa-phiopt.c: Include params.h.
3088 * tree-vect-data-refs.c: Same.
3089 * tree-vect-slp.c: Same.
3091 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
3093 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
3094 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
3095 (mem->fpreg splitters): Ditto.
3096 (general_operand->nonimmediate_operand splitter): Use explicit modes.
3097 Disable DFmode for TARGET_64BIT.
3099 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
3102 * config/i386/i386.c (ix86_expand_prologue): Replicate static
3105 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
3107 * config/nvptx/mkoffload.c (process): Constify host data.
3108 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
3110 (generate_host_descr_file): Likewise.
3112 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
3113 Sebastian Pop <s.pop@samsung.com>
3116 * graphite-dependences.c (add_pdr_constraints): Renamed
3117 pdr->extent to pdr->subscript_sizes.
3118 * graphite-interchange.c (build_linearized_memory_access): Add
3119 back all gcc_assert's that the "isl_int to isl_val conversion"
3120 patch has removed. Refactored.
3121 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
3122 * graphite-poly.c (new_poly_dr): Same.
3123 (free_poly_dr): Same.
3124 * graphite-poly.h (struct poly_dr): Same.
3125 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
3126 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
3127 * graphite-scop-detection.h: Fix space.
3128 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
3129 back all gcc_assert's removed by a previous patch.
3130 (wrap): Remove the_isl_ctx global variable that the same patch has
3132 (build_loop_iteration_domains): Same.
3133 (add_param_constraints): Same.
3134 (pdr_add_data_dimensions): Same. Refactored.
3135 (build_poly_dr): Renamed extent to subscript_sizes.
3137 2015-07-17 Marek Polacek <polacek@redhat.com>
3139 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
3140 * match.pd: ... here.
3142 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
3144 * config/nvptx/mkoffload.c (process): Constify target data.
3145 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
3146 Constify target data.
3147 (generate_target_offloadend_file): Likewise.
3149 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
3151 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
3152 to allow renaming of PHI arguments on edges incoming from outer
3153 loop header, add corresponding check before start PHI iterator.
3154 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
3155 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
3156 with true force_vectorize. Set-up dominator for outer loop too.
3157 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
3158 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
3159 was marked with force_vectorize and has restricted cfg.
3160 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
3162 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3163 do peeling for outer loops.
3165 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
3166 Matthias Klose <doko@ubuntu.com>
3168 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
3169 build-sysroot, sysroot from the `Miscenalleous configure options' to
3170 the `Directories' section and strip trailing `/' from with_sysroot.
3171 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
3172 * configure: Regenerated.
3174 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
3177 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
3178 (TARGET_HARD_DF_REGS): Ditto.
3179 (TARGET_HARD_XF_REGS): Ditto.
3180 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
3181 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
3182 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
3183 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
3184 (*movsf_internal): Add alternatives 16 and 17. Enable
3185 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
3187 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
3189 PR rtl-optimization/66891
3190 * calls.c (expand_call): Wrap precompute_register_parameters with
3191 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
3193 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
3195 * config/nvptx/mkoffload.c (process): Constify mapping variables.
3196 Define target data struct and initialize it.
3198 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
3200 PR rtl-optimization/66626
3201 * ira.h (emit-rtl.h): Include.
3202 (non_spilled_static_chain_regno_p): New.
3203 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
3204 unless it is non spilled static chain pseudo.
3205 (assign_hard_rego): Spill memory profitable allocno unless it is
3206 non spilled static chain pseudo.
3207 (allocno_spill_priority_compare): Put non spilled static chain
3208 pseudo at the end of sorted array.
3209 (improve_allocation): Do nothing if we have static chain and
3211 (allocno__priority_compare_func): Put non spilled static chain
3212 pseudo at the beginning of sorted array.
3213 (move_spill_restore): Ignore non spilled static chain pseudo.
3214 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
3215 to non spilled static chain pseudo.
3216 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
3217 pseudo at the beginning of sorted array.
3218 (spill_for): Spill non spilled static chain pseudo last.
3219 * lra-constraints.c (lra_constraints): Remove static chain pseudo
3220 check for equivalence.
3222 2015-07-16 Martin Liska <mliska@suse.cz>
3225 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
3226 dst_ctx if it does not exist.
3228 2015-07-16 Martin Liska <mliska@suse.cz>
3230 * hash-set.h (remove): New function.
3231 (iterator): New iteration class for hash_set.
3233 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3235 * genattrtab.c (make_canonical): Add a file_location parameter.
3236 Use fatal_at rather than fatal.
3237 (get_attr_value): Likewise. Update call to make_canonical.
3238 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
3239 (make_internal_attr): Update calls accordingly.
3241 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3243 * read-md.h (message_with_line, error_with_line): Delete.
3244 * read-md.c (message_with_line, error_with_line): Delete.
3245 * gensupport.h: Include read-md.h.
3246 (md_rtx_info): New structure.
3247 (read_md_rtx): Use it. Return a bool success value.
3248 * gensupport.c (read_md_rtx): Likewise.
3249 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
3250 (main): Update after interface changes.
3251 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
3252 (main): Update after interface changes.
3253 * genattrtab.c (insn_code_number): Delete.
3254 (optimize_attrs): Add a max_insn_code parameter and use it instead
3255 of insn_code_number.
3256 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
3257 Use *_at rather than *_with_line functions.
3258 (gen_insn): Likewise.
3259 (gen_delay): Likewise.
3260 (gen_insn_reserv): Likewise.
3261 (gen_bypass): Take an md_rtx_info rather than an rtx.
3262 (main): Update after interface changes. Use a local max_insn_code
3263 variable instead of insn_code_number.
3264 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
3265 an rtx. Use fatal_at rather than fatal.
3266 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
3267 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
3268 (gen_absence_set, gen_final_absence_set, gen_automaton)
3269 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
3270 (main): Update after interface changes.
3271 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
3273 (main): Update after interface changes.
3274 * genconditions.c (main): Use new read_md_rtx interface.
3275 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
3276 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
3277 (main): Update after interface changes.
3278 * genemit.c (insn_code_number, insn_index_number): Delete.
3279 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3280 Use fatal_at rather than fatal.
3281 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
3283 (gen_split): Likewise.
3284 (main): Update after interface changes.
3285 * genextract.c (line_no): Delete.
3286 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3287 Update call to walk_rtx.
3288 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
3289 rather than message_with_line.
3290 (walk_rtx): Add an md_rtx_info argument. Update call to
3291 VEC_safe_set_locstr.
3292 (main): Update after interface changes.
3293 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
3294 and lineno. Use error_at rather than separate message_with_line
3295 calls and have_error assignments.
3296 (main): Update after interface changes.
3297 * genmddump.c (main): Use new read_md_rtx interface.
3298 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
3299 (main): Update after interface changes.
3300 * genoutput.c (next_code_number): Delete.
3301 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3302 (gen_peephole, gen_expand, gen_split): Likewise.
3303 (note_constraint): Likewise. Use *_at rather than *_with_line
3305 (main): Update after interface changes.
3306 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
3308 (main): Update after interface changes.
3309 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
3310 than an rtx and lineno.
3311 (process_define_constraint): Likewise.
3312 (process_define_register_constraint): Likewise.
3313 (main): Update after interface changes.
3314 * genrecog.c (next_insn_code, pattern_lineno): Delete.
3315 (validate_pattern): Replace top-level rtx with an md_rtx_info.
3316 Use *_at rather than *_with_line functions.
3317 (match_pattern_2): Likewise.
3318 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
3319 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
3320 Use *_at rather than *_with_line functions.
3321 * gentarget-def.c (add_insn): New function.
3322 (main): Use it. Use new read_md_rtx interface.
3324 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3326 * gensupport.h (compute_test_codes): Take a file_location rather
3328 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
3329 rather than *_with_line functions.
3330 (process_define_predicate): Update call to compute_test_codes.
3331 * genpreds.c (validate_exp): Take a file_location rather than a
3332 line number. Use *_at functions rather than *_with_line functions.
3333 (process_define_predicate): Update call to validate_exp.
3334 (constraint_data): Replace lineno field with a file_location.
3335 (add_constraint): Take a file_location rather than a line number.
3336 Use *_at functions rather than *_with_line functions. Fix error
3337 message for address constraints. Update after changes to
3338 validate_exp, constraint_data and compute_test_codes.
3339 (process_define_constraint): Update accordingly.
3340 (process_define_register_constraint): Likewise.
3342 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3344 * genoutput.c (data): Use a file_location to record the source
3347 (idata, idata_end): Remove initialization.
3348 (constraint_data): Replace lineno with a file_location.
3349 (output_insn_data): Update after changes to data.
3350 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
3351 (scan_operands): Likewise, using *_at rather than *_with_line
3353 (process_template): Likewise.
3354 (validate_insn_alternatives): Likewise.
3355 (validate_insn_operands): Likewise.
3356 (validate_optab_operands): Likewise.
3357 (init_insn_for_nothing): Initialize idata and idata_end.
3358 (note_constraint): Update after changes to constraint_data,
3359 using at rather than with_line functions.
3360 (mdep_constraint_len): Take a file_location rather than a
3361 line number. Use at rather than with_line functions.
3363 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3365 * read-md.h (fatal_at): Declare.
3366 * read-md.c (fatal_at): New function.
3367 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
3368 to record the source position.
3369 (check_attr_test): Take a file_location instead of a line number.
3370 Use fatal_at instead of fatal.
3371 (check_attr_value): Update after above changes, using "at"
3372 rather than "with_line" reporting functions.
3373 (convert_set_attr_alternative): Likewise.
3374 (gen_attr): Likewise.
3375 (check_defs): Likewise. Don't assign to read_md_filename.
3376 (gen_insn): Update initialization after above changes.
3377 (gen_delay): Likewise.
3378 (write_insn_cases): Print the filename for a define_peephole.
3379 (gen_insn_reserv): Take a line number as argument and update
3380 the call to check_attr_test.
3381 (main): Pass a line number to gen_insn_reserv.
3383 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3385 * read-md.h (file_location): New structure.
3386 (directive_handler_t): Take a file_location rather than a line number.
3387 (message_at, error_at): Declare.
3388 (read_skip_construct): Delete.
3389 * read-md.c (message_with_line_1): Replace with...
3390 (message_at_1): ...this new function.
3391 (message_at, error_at): New functions.
3392 (message_with_line, error_with_line): Update to use message_at_1.
3393 (handle_enum): Take a file_location rather than a line number
3394 and use error_at for error reporting.
3395 (handle_include): Likewise.
3396 (read_skip_construct): Likewise. Make static.
3397 (handle_file): Update after above changes. Pass a file_location
3398 rather than a line number to handle_directive.
3399 * gensupport.c (queue_elem): Replace separate filename and lineno
3400 with a file_location.
3401 (queue_pattern): Replace filename and lineno arguments with a
3402 file_location. Update after change to queue_elem.
3403 (process_define_predicate): Replace lineno argument with a
3404 file_location and use error_at for error reporting. Update
3405 after above changes.
3406 (process_rtx): Likewise.
3407 (subst_pattern_match): Likewise.
3408 (get_alternatives_number): Likewise.
3409 (alter_predicate_for_insn): Likewise.
3410 (rtx_handle_directive): Likewise.
3411 (is_predicable): Update after above changes, using error_at rather
3412 than error_with_line.
3413 (has_subst_attribute): Likewise.
3414 (identify_predicable_attribute): Likewise.
3415 (alter_attrs_for_subst_insn): Likewise.
3416 (process_one_cond_exec): Likewise.
3417 (process_substs_on_one_elem): Likewise.
3418 (process_define_subst): Likewise.
3419 (check_define_attr_duplicates): Likewise.
3420 (read_md_rtx): Update after change to queue_elem.
3422 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3424 * genoutput.c (next_index_number): Delete.
3425 (data): Remove index_number.
3426 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
3427 (main): Remove manipulation of next_index_number.
3429 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3431 * genattrtab.c (check_attr_value): Remove handling of null attrs.
3432 (make_canonical): Likewise.
3434 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
3436 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
3437 instead of adjust_address_nv.
3438 (restore_stack_nonlocal): Likewise.
3439 (nonlocal_goto): Likewise.
3441 2015-07-16 Tom de Vries <tom@codesourcery.com>
3443 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
3444 not have a corresponding loop header phi.
3446 2015-07-16 Tom de Vries <tom@codesourcery.com>
3448 * tree-parloops.c (create_loads_for_reductions): Handle case that
3449 reduction is unused.
3451 2015-07-16 Richard Biener <rguenther@suse.de>
3453 PR tree-optimization/66894
3454 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
3455 about deriving NE_EXPR from truncated values.
3457 2015-07-16 Martin Liska <mliska@suse.cz>
3460 (object_allocator): Add new class.
3461 (pool_allocator::initialize): Use the underlying class.
3462 (pool_allocator::allocate): Likewise.
3463 (pool_allocator::remove): Likewise.
3464 (operator new): A new generic allocator.
3465 * asan.c (struct asan_mem_ref): Remove unused members.
3466 (asan_mem_ref_new): Replace new operator with
3467 object_allocator::allocate.
3468 (free_mem_ref_resources): Change deallocation.
3469 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
3470 with object_allocator.
3471 * config/sh/sh.c (add_constant): Replace new operator with
3472 object_allocator::allocate.
3473 (sh_reorg): Change call to a release method.
3474 * cselib.c (struct elt_list): Remove unused members.
3475 (new_elt_list): Replace new operator with
3476 object_allocator::allocate.
3477 (new_elt_loc_list): Likewise.
3478 (new_cselib_val): Likewise.
3479 (unchain_one_elt_list): Change delete operator with remove method.
3480 (unchain_one_elt_loc_list): Likewise.
3481 (unchain_one_value): Likewise.
3482 (cselib_finish): Release newly added static allocators.
3483 * cselib.h (struct cselib_val): Remove unused members.
3484 (struct elt_loc_list): Likewise.
3485 * df-problems.c (df_chain_alloc): Replace pool_allocator with
3487 * df-scan.c (struct df_scan_problem_data): Likewise.
3488 (df_scan_alloc): Likewise.
3489 * df.h (struct dataflow): Likewise.
3490 * dse.c (struct read_info_type): Likewise.
3491 (struct insn_info_type): Likewise.
3492 (struct dse_bb_info_type): Likewise.
3493 (struct group_info): Likewise.
3494 (struct deferred_change): Likewise.
3495 (get_group_info): Likewise.
3496 (delete_dead_store_insn): Likewise.
3497 (free_read_records): Likewise.
3498 (replace_read): Likewise.
3499 (check_mem_read_rtx): Likewise.
3500 (scan_insn): Likewise.
3501 (dse_step1): Likewise.
3502 (dse_step7): Likewise.
3503 * et-forest.c (struct et_occ): Remove unused members.
3504 (et_new_occ): Use allocate instead of new operator.
3505 (et_new_tree): Likewise.
3506 (et_free_tree): Call release method explicitly.
3507 (et_free_tree_force): Likewise.
3508 (et_free_pools): Likewise.
3509 (et_split): Use remove instead of delete operator.
3510 * et-forest.h (struct et_node): Remove unused members.
3511 * ipa-cp.c: Change pool_allocator to object_allocator.
3512 * ipa-inline-analysis.c: Likewise.
3513 * ipa-profile.c: Likewise.
3514 * ipa-prop.c: Likewise.
3515 * ipa-prop.h: Likewise.
3516 * ira-build.c (initiate_cost_vectors): Cast return value.
3517 (ira_allocate_cost_vector): Likewise.
3518 * ira-color.c (struct update_cost_record): Remove unused members.
3519 * lra-int.h (struct lra_live_range): Likewise.
3520 (struct lra_copy): Likewise.
3521 (struct lra_insn_reg): Likewise.
3522 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
3523 * lra.c (new_insn_reg): Replace new operator with allocate method.
3524 (free_insn_regs): Same for operator delete.
3525 (finish_insn_regs): Release new static allocator.
3526 (finish_insn_recog_data): Likewise.
3527 (lra_free_copies): Replace delete operator with remove method.
3528 (lra_create_copy): Replace operator new with allocate method.
3529 (invalidate_insn_data_regno_info): Same for remove method.
3530 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
3531 (free_debug_insn_changes): Replace delete operator with remove method.
3532 (replace_oldest_value_reg): Replace operator new with allocate method.
3533 (pass_cprop_hardreg::execute): Release new static variable.
3534 * sched-deps.c (sched_deps_init): Change pool_allocator to
3536 * sel-sched-ir.c: Likewise.
3537 * sel-sched-ir.h: Likewise.
3538 * stmt.c (expand_case): Likewise.
3539 (expand_sjlj_dispatch_table): Likewise.
3540 * tree-sra.c (struct access): Remove unused members.
3541 (struct assign_link): Likewise.
3542 (sra_deinitialize): Release newly added static pools.
3543 (create_access_1):Replace operator new with allocate method.
3544 (build_accesses_from_assign): Likewise.
3545 (create_artificial_child_access): Likewise.
3546 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
3547 pool_allocator to object_allocator.
3548 * tree-ssa-pre.c: Likewise.
3549 * tree-ssa-reassoc.c: Likewise.
3550 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
3551 * tree-ssa-strlen.c: Likewise.
3552 * tree-ssa-structalias.c: Likewise.
3553 * var-tracking.c (onepart_pool_allocate): New function.
3554 (unshare_variable): Use the newly added function.
3555 (variable_merge_over_cur): Likewise.
3556 (variable_from_dropped): Likewise.
3557 (variable_was_changed): Likewise.
3558 (set_slot_part): Likewise.
3559 (emit_notes_for_differences_1): Likewise.
3560 (vt_finalize): Release newly added static pools.
3562 2015-07-16 Martin Jambor <mjambor@suse.cz>
3564 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
3565 all uses. Fix two typos in its general comment.
3566 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
3568 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
3570 * config/i386/linux-common.h (LINK_MPX): New.
3571 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
3572 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
3573 indicating '-z bndplt' support by linker.
3574 * configure: Regenerate.
3575 * config.in: Regenerate.
3577 2015-07-16 Richard Biener <rguenther@suse.de>
3579 * fold-const.c (fold_widened_comparison): Remove.
3580 (fold_sign_changed_comparison): Likewise.
3581 (fold_comparison): Move widened and sign-changed comparison
3583 * match.pd: ... to patterns here.
3584 * generic-match-head.c: Include target.h.
3585 * gimple-match-head.c: Likewise.
3587 2015-07-16 Richard Biener <rguenther@suse.de>
3589 * tree-ssa-dom.c (dom_valueize): New function.
3590 (record_temporary_equivalences): Also record equivalences
3591 for dominating stmts that have uses of equivalences we are
3594 2015-07-16 Bin Cheng <bin.cheng@arm.com>
3596 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
3597 add_autoinc_candidates.
3598 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
3599 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
3600 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
3601 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
3603 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
3604 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
3605 Remove parameter struct iv*. Call add_autoinc_candidates here.
3606 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
3607 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
3609 (find_iv_candidates): Call new functions.
3611 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
3613 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
3614 uninitialized-variable warning.
3616 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
3619 * config/sh/sh.md (movdi): Split simple reg move to two movsi
3620 when the destination is R0.
3622 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
3625 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
3626 * config/i386/i386.c (ix86_expand_pextr): New function.
3627 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
3628 for non-lowpart subregs.
3629 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
3630 (insv<mode>): Use SWI248 mode iterator.
3631 (insv<mode>_1): Ditto.
3633 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3634 Sebastian Pop <s.pop@samsung.com>
3636 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
3637 iterator to use_stmt.
3639 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3640 Sebastian Pop <s.pop@samsung.com>
3642 * graphite-scop-detection.c (build_scops_1): Discard scops for
3645 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3646 Sebastian Pop <s.pop@samsung.com>
3648 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
3649 case of a return statement in scop.
3651 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3652 Sebastian Pop <s.pop@samsung.com>
3654 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
3655 INTEGER_TYPE parameters.
3656 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
3657 VECTOR_CST in scan_tree_for_params.
3658 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
3660 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
3662 * gimple-pretty-print.h: Don't include pretty-print.h.
3663 * tree-streamer.h: Don't include lto-streamer.h.
3664 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
3665 * gimple-streamer-in.c: Remove redundant includes.
3666 * gimple-streamer-out.c: Likewise.
3667 * ipa-devirt.c: Likewise.
3668 * ipa-icf.c: Likewise.
3669 * ipa-inline-analysis.c: Likewise.
3670 * ipa-polymorphic-call.c: Likewise.
3671 * ipa-profile.c: Likewise.
3672 * ipa-prop.c: Likewise.
3673 * ipa-pure-const.c: Likewise.
3674 * lto-cgraph.c: Likewise.
3675 * lto-streamer-in.c: Likewise.
3676 * lto-streamer-out.c: Likewise.
3677 * lto-streamer.c: Likewise.
3678 * tree-streamer-in.c: Likewise.
3679 * tree-streamer-out.c: Likewise.
3680 * tree-streamer.c: Likewise.
3682 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
3684 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
3686 * opts.c: Remove multiline #include comment.
3688 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
3690 * config/nvptx/mkoffload.c (process): Add C++ protection to
3693 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3696 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
3697 null before IEEE 128-bit floating point support patch.
3699 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3701 * simplify-rtx.c (simplify_ternary_operation): Add simplification
3702 for (!c) != {0,...,0} ? a : b for vector modes.
3704 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
3705 Martin Jambor <mjambor@suse.cz>
3707 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
3708 struct func_body_info* instead of struct ipa_node_params*, expecting
3709 fbi->info to be filled in. Replace throughout. Adjust call to
3710 ipa_load_from_parm_agg.
3711 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
3712 instead of struct ipa_node_params*. Adjust calls to other functions
3713 so that they pass either fbi or fbi->info.
3714 (set_switch_stmt_execution_predicate): Likewise.
3715 (will_be_nonconstant_predicate): Likewise.
3716 (compute_bb_predicates): Likewise.
3717 (estimate_function_body_sizes): Move asserts earlier. Fill in
3718 struct func_body_info, replace parms_info with fbi.info. Adjust
3719 calls to functions that now accept struct func_body_info.
3720 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
3721 (struct func_body_info): Likewise.
3722 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
3723 remove static. Adjust callers.
3724 (ipa_load_from_parm_agg): Remove.
3725 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
3726 (func_body_info): Likewise.
3727 (ipa_load_from_parm_agg): Adjust prototype.
3729 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3731 * gensupport.c (rtx_handle_directive): Adjust.
3732 * read-rtl.c (apply_iterators): Take vector to add rtxs to
3733 instead of expr list rtx.
3734 (add_define_attr_for_define_subst): Likewise.
3735 (add_define_subst_attr): Likewise.
3736 (read_subst_mapping): Likewise.
3737 (read_rtx): Likewise.
3738 * rtl.h (read_rtx): Adjust.
3740 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3742 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
3744 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
3747 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
3748 (*tls_local_dynamic_base_64_<mode>): Ditto.
3749 (*tls_local_dynamic_base_64_largepic): Ditto.
3750 (tls_global_dynamic_64_<mode>): Update expander pattern.
3751 (tls_local_dynamic_base_64_<mode>): Ditto.
3753 2015-07-15 Richard Biener <rguenther@suse.de>
3755 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
3756 and bool_var == 1 -> bool_var simplifications ...
3757 * match.pd: ... to patterns here. Factor out negate_expr_p
3758 cases from the A - B -> A + (-B) patterns as negate_expr_p
3759 predicate and add a -(A + B) -> (-B) - A pattern.
3761 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
3763 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
3765 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
3766 Robert Suchanek <robert.suchanek@imgtec.com>
3768 * config/mips/mips.c (mips_int_mask): New enum.
3769 (mips_shadow_set): Likewise.
3770 (int_mask): New variable.
3771 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
3772 (machine_function): Add int_mask and use_shadow_register_set.
3773 (mips_attribute_table): Add attribute handlers for interrupt and
3774 use_shadow_register_set.
3775 (mips_interrupt_mask): New static function.
3776 (mips_handle_interrupt_attr): Likewise.
3777 (mips_handle_use_shadow_register_set_attr): Likewise.
3778 (mips_use_shadow_register_set): Change return type to enum
3779 mips_shadow_set. Add argument handling for use_shadow_register_set
3781 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
3782 compare with mips_shadow_set enum.
3783 (mips_compute_frame_info): Add interrupt mask and
3784 use_shadow_register_set to per-function information structure.
3785 Add a stack slot for EPC unconditionally.
3786 (mips_expand_prologue): Compare use_shadow_register_set value
3787 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
3788 masked interrupt register but in EIC mode use K0 and save Cause in K0.
3789 EPC saved and restored unconditionally. Use PMODE_INSN macro when
3790 copying the stack pointer from the shadow register set.
3791 * config/mips/mips.h (SR_IM0): New define.
3792 * config/mips/mips.md (mips_rdpgpr): Rename to...
3793 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
3794 * doc/extend.texi (Declaring Attributes of Functions): Document
3795 optional arguments for interrupt and use_shadow_register_set
3798 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
3800 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
3801 interrupt attribute.
3802 (mips_expand_prologue): Disable the floating point unit in an ISR.
3803 * config/mips/mips.h (SR_COP1): New define.
3805 2015-07-15 Richard Biener <rguenther@suse.de>
3807 * genmatch.c (parser::peek, parser::peek_ident): Add argument
3808 to tell how many tokens to peek ahead (default 1).
3809 (parser::eat_token, parser::eat_ident): Return token consumed.
3810 (parser::parse_result): Parse new switch statement.
3811 * match.pd: Use case statements where appropriate.
3813 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
3815 PR rtl-optimization/58066
3816 * calls.c (expand_call): Precompute register parameters before stack
3817 alignment is performed.
3819 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
3821 PR rtl-optimization/66838
3822 * postreload.c (reload_cse_move2add): Also process
3823 CALL_INSN_FUNCTION_USAGE when resetting information of
3824 call-clobbered registers.
3826 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3827 Cesar Philippidis <cesar@codesourcery.com>
3828 Chung-Lin Tang <cltang@codesourcery.com>
3830 * config/nios2/constraints.md (U, v): New constraints.
3831 * config/nios2/predicates.md (rdprs_dcache_operand): New.
3832 (ldstex_memory_operand): New.
3833 * config/nios2/sync.md: New file.
3834 * config/nios2/nios2.md (unspecv): Add new builtin function
3836 (rdprs, flushd, flushda, wrpie, eni): New patterns.
3837 (top-level): Include sync.md.
3838 * config/nios2/nios2.c (N2_FTYPES): Add function types for
3840 (N2_BUILTINS): Add arch field setting, add new builtins.
3841 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
3843 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
3844 Also handle ldex/stex/ldsex/stsex builtins.
3845 (nios2_expand_rdprs_builtin): New function.
3846 (nios2_expand_cache_builtin): New function.
3847 (nios2_expand_wrpie_builtin): New function.
3848 (nios2_expand_eni_builtin): New function.
3849 (nios2_expand_builtin): Add arch field handling and new builtin
3851 * doc/extend.texi (Altera Nios II Built-in Functions): Document
3853 * doc/md.texi (Machine Constraints): Document U and v constraints.
3855 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3856 Cesar Philippidis <cesar@codesourcery.com>
3857 Chung-Lin Tang <cltang@codesourcery.com>
3859 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
3860 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
3861 callee_save_reg_size and uses_anonymous_args fields.
3862 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
3863 (nios2_create_cfa_notes): New function.
3864 (nios2_adjust_stack): New function for adjusting stack.
3865 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
3866 Use nios2_adjust_stack.
3867 (nios2_expand_epilogue): Likewise.
3868 (nios2_expand_return): New function.
3869 (nios2_can_use_return_insn): Update for CDX pop.n usage.
3870 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
3871 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
3872 * config/nios2/nios2.md (return): Use nios2_expand_return.
3874 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3875 Cesar Philippidis <cesar@codesourcery.com>
3876 Chung-Lin Tang <cltang@codesourcery.com>
3878 * config/nios2/predicates.md (pop_operation): New.
3879 (ldwm_operation, stwm_operation): New.
3880 (nios2_hard_register_operand): New.
3881 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
3882 (ldstwm_operation_p): Declare.
3883 (gen_ldstwm_peep): Declare.
3884 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
3885 (base_reg_adjustment_p): New.
3886 (pop_operation_p): New.
3887 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
3888 (nios2_ldstwm_regset_p): New.
3889 (ldstwm_operation_p): New.
3891 (nios2_ldst_parallel): New.
3892 (struct ldswm_operand): Declare.
3893 (compare_ldstwm_operands): New.
3894 (can_use_cdx_ldstw): New.
3895 (gen_ldstwm_peep): New.
3896 * config/nios2/nios2-ldstwm.sml: New.
3897 * config/nios2/nios2.md: Include ldstwm.md.
3898 * config/nios2/ldstwm.md: Generated.
3900 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3901 Cesar Philippidis <cesar@codesourcery.com>
3902 Chung-Lin Tang <cltang@codesourcery.com>
3904 * config/nios2/nios2.h (LABEL_ALIGN): Define.
3905 (REG_ALLOC_ORDER): Define.
3906 (ADJUST_REG_ALLOC_ORDER): Define.
3907 (HONOR_REG_ALLOC_ORDER): Define.
3908 (CDX_REG_P): Define.
3909 (ANDCLEAR_INT): Define.
3910 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
3911 (nios2_label_align): Declare.
3912 (nios2_cdx_narrow_form_p): Declare.
3913 (nios2_adjust_reg_alloc_order): Declare.
3914 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
3916 (nios2_large_unspec_reloc_p): New function, split from...
3917 (nios2_legitimate_pic_operand_p): ...here.
3918 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
3919 (nios2_print_operand_punct_valid_p): New.
3920 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
3921 (split_mem_address): New.
3922 (split_alu_insn): New.
3924 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
3925 (enum nios2_add_insn_kind): New.
3926 (nios2_add_insn_names, nios2_add_insn_narrow): New.
3927 (nios2_add_insn_classify): New.
3928 (nios2_add_insn_asm): New.
3929 (nios2_cdx_narrow_form_p): New.
3930 (label_align, min_labelno, max_labelno): New.
3932 (nios2_label_align): New.
3933 (nios2_adjust_reg_alloc_order): New.
3934 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3935 (TARGET_MACHINE_DEPENDENT_REORG): Define.
3936 * config/nios2/constraints.md (P): New constraint.
3937 * config/nios2/predicates.md (const_and_operand): New.
3939 (stack_memory_operand): New.
3940 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
3941 (length): Update to use nios2_cdx_narrow_form_p().
3942 (type): Add new insn type values.
3943 (control, alu, st, ld, shift): Update insn reservations with
3944 new insn type values.
3945 (*high, *lo_sum): Define new insn patterns for constant generation.
3946 (movqi_internal, movhi_internal, movsi_internal): Reduce
3947 alternatives, update asm template to handle CDX variants, update
3949 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
3950 template, update type attributes.
3951 (extendhisi2, extendqi<mode>2): Likewise.
3952 (addsi3): Change to use function for asm string.
3953 (subsi3): Add CDX notation to asm template, update type attributes.
3954 (negsi3, one_cmplsi3): Likewise.
3955 (andsi3): New pattern, specialized from logical patterns.
3956 (<code>si3): Remove and case, combine alternatives, update asm
3958 (<shift_op>si3): Add CDX notation, update type attributes.
3959 (rotrsi3): Update type attribute.
3960 (*merge, extzv, insv): New insn patterns.
3961 (return): Change to define_expand.
3962 (simple_return): Add CDX notation, update type attributes.
3963 (indirect_jump): Add CDX notation.
3964 (jump): Update asm cases, update length attribute expression.
3965 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
3966 (nios2_cbranch): Update asm cases and length attribute expression
3967 to handle CDX variants.
3968 (nios2_cmp<code>): Update asm template.
3969 (nop): Add CDX notation, update type attributes.
3970 (trap): Add CDX notation.
3971 (ctrapsi4): Update asm cases and length attribute expression to
3973 * doc/md.texi (Machine Constraints): Document P constraint.
3975 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3976 Cesar Philippidis <cesar@codesourcery.com>
3977 Chung-Lin Tang <cltang@codesourcery.com>
3979 * config/nios2/nios2.h (SMALL_INT12): New macro.
3980 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
3981 (nios2_valid_addr_expr_p): Use it.
3982 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
3983 with implicit "io" instructions on R2.
3984 * config/nios2/constraints.md (w): New constraint.
3985 * config/nios2/predicates.md (ldstio_memory_operand): New.
3986 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
3987 operand predicate and constraint.
3988 (ld<bh>io_signed, st<bhw>io>): Likewise.
3989 * doc/md.texi (Machine Constraints): Document w constraint.
3991 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3992 Cesar Philippidis <cesar@codesourcery.com>
3993 Chung-Lin Tang <cltang@codesourcery.com>
3995 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
3996 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
3997 Nios II architecture level.
3998 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
3999 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
4000 (OPTION_DEFAULT_SPECS): Define.
4001 (ASM_SPEC): Add -march= spec strings.
4002 * config/nios2/nios2.c (nios2_option_override): Check for
4003 conflicts involving new options.
4004 * config.gcc (nios2*-*-*): Support --with-arch=.
4005 * doc/invoke.texi (Option Summary, Nios II Options): Document
4006 -march=, -mbmx, and -mcdx.
4008 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
4010 PR rtl-optimization/66626
4011 * lra-constraints.c (lra_constraints): Prevent equivalence
4012 substitution for static chain pseudo in functions with nonlocal
4015 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4017 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
4018 (nios2_emit_stack_limit_check): Add size parameter. Handle
4019 -fstack-limit-symbol as well as -fstack-limit-register.
4020 (nios2_expand_prologue): Emit only a single stack limit check,
4021 even if multiple stack adjustments are required.
4022 (nios2_option_override): Diagnose unsupported combination of -fpic
4023 and -stack-limit-symbol.
4025 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
4027 * Makefile.in (top_srcdir): New.
4028 * configure.ac: Use AM_ZLIB.
4029 * configure: Regeneated.
4031 2015-07-14 Matthias Klose <doko@ubuntu.com>
4034 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
4036 2015-07-14 Richard Biener <rguenther@suse.de>
4038 PR tree-optimization/66863
4039 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
4040 what we record for conversion use stmt lhs inequalities.
4042 2015-07-14 Richard Biener <rguenther@suse.de>
4044 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
4045 (decision_tree::gen_gimple): Likewise.
4047 2015-07-14 Tom de Vries <tom@codesourcery.com>
4049 * gcc.c (greater_than_spec_func): Declare forward.
4050 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
4051 -ftree-parallelize-loops={0,1}.
4052 (static_spec_functions): Add greater_than_spec_func function with name
4054 (greater_than_spec_func): New function.
4056 2015-07-14 Richard Biener <rguenther@suse.de>
4058 * tree-ssa-dom.c (record_temporary_equivalences): Merge
4059 wideing type conversion case from record_equivalences_from_incoming_edge
4060 and use record_equality to record equivalences.
4061 (record_equivalences_from_incoming_edge): Call
4062 record_temporary_equivalences.
4064 2015-07-14 Richard Biener <rguenther@suse.de>
4066 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
4067 (struct if_expr): New.
4068 (struct with_expr): Likewise.
4069 (is_a_helper): Add helpers for if_expr and with_expr.
4070 (struct simplify): Add simplify_kind enum and member. Remove
4072 (simplify::simplify): Adjust.
4073 (lower_commutative): Adjust.
4074 (lower_opt_convert): Likewise.
4075 (lower_cond): Likewise.
4076 (replace_id): Handle with_expr and if_expr.
4077 (lower_for): Adjust.
4078 (dt_simplify::gen_1): New recursive worker, split out from ...
4079 (dt_simplify::gen): ... here. Deal with if and with expansion
4081 (capture_info::capture_info): Take context argument
4082 (capture_info::walk_result): Only analyze specific result.
4083 (parser::parse_result): New function.
4084 (parser::parse_simplify): Adjust to parse ifs with then end
4086 (parser::parse_if): Simplify.
4087 (parser::parse_pattern): Pass down simplify kind.
4088 * match.pd: Convert if structure to new syntax.
4090 2015-07-13 Marek Polacek <polacek@redhat.com>
4092 * rtl.c (rtx_equal_p_cb): Fix typo.
4094 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
4096 * omega.h: Don't include config.h, don't include params.h again if
4097 omega.h has already been included.
4098 * graphite-poly.h: Include sese.h.
4099 * graphite.c: Don't include sese.h, remove needless includes and
4100 minimize includes outside #ifdef HAVE_isl block.
4101 * graphite-blocking.c: Don't include sese.h, remove needless includes,
4102 and wrap entire file in #ifdef HAVE_isl
4103 * graphite-dependences.c: Likewise.
4104 * graphite-interchange.c: Likewise.
4105 * graphite-isl-ast-to-gimple.c: Likewise.
4106 * graphite-optimize-isl.c: Likewise.
4107 * graphite-poly.c: Likewise.
4108 * graphite-scop-detection.c: Likewise.
4109 * graphite-sese-to-poly.c: Likewise.
4111 2015-07-13 Tom de Vries <tom@codesourcery.com>
4113 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
4115 2015-07-13 Renlin Li <renlin.li@arm.com>
4118 * simplify-rtx.c (simplify_const_relational_operation): Add
4119 side_effects_p checks.
4121 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
4123 * bitmap.h: Fix double word typos.
4126 * cfgloopmanip.c: Same.
4129 * cgraphclones.c: Same.
4131 * config/aarch64/aarch64-protos.h: Same.
4132 * config/aarch64/aarch64.c: Same.
4133 * config/aarch64/aarch64.md: Same.
4134 * config/arm/arm.md: Same.
4135 * config/arm/arm1020e.md: Same.
4136 * config/arm/arm1026ejs.md: Same.
4137 * config/arm/arm926ejs.md: Same.
4138 * config/arm/fa526.md: Same.
4139 * config/arm/fa606te.md: Same.
4140 * config/arm/fa626te.md: Same.
4141 * config/arm/fa726te.md: Same.
4142 * config/arm/fmp626.md: Same.
4143 * config/darwin.c: Same.
4144 * config/epiphany/epiphany.c: Same.
4145 * config/frv/frv.c: Same.
4146 * config/ft32/ft32.c: Same.
4147 * config/gnu-user.h: Same.
4148 * config/h8300/constraints.md: Same.
4149 * config/i386/i386.c: Same.
4150 * config/i386/i386.md: Same.
4151 * config/iq2000/iq2000.md: Same.
4152 * config/mips/mips.c: Same.
4153 * config/mmix/mmix.md: Same.
4154 * config/moxie/moxie.c: Same.
4155 * config/nds32/nds32.md: Same.
4156 * config/pa/pa.h: Same.
4157 * config/rs6000/aix.h: Same.
4158 * config/rs6000/rs6000.h: Same.
4159 * config/sh/sh.c: Same.
4160 * config/tilegx/tilegx.md: Same.
4161 * config/tilepro/gen-mul-tables.cc: Same.
4164 * doc/invoke.texi: Same.
4166 * dwarf2out.c: Same.
4171 * hash-table.h: Same.
4172 * internal-fn.c: Same.
4174 * ipa-devirt.c: Same.
4177 * ipa-profile.c: Same.
4182 * reg-stack.c: Same.
4188 * tree-inline.c: Same.
4190 * tree-ssa-dom.c: Same.
4191 * tree-ssa-loop-ivopts.c: Same.
4192 * tree-ssa-structalias.c: Same.
4193 * tree-ssa-tail-merge.c: Same.
4194 * tree-ssa-ter.c: Same.
4195 * tree-ssa-threadupdate.c: Same.
4196 * tree-ssa-uninit.c: Same.
4197 * tree-ssanames.c: Same.
4198 * tree-vect-loop-manip.c: Same.
4204 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4207 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
4208 tree_ssa_phiopt_worker): Call it.
4210 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4212 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
4213 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
4216 2015-07-11 Marek Polacek <polacek@redhat.com>
4219 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
4220 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
4221 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
4222 rather than bb_has_abnormal_call_pred.
4223 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
4224 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
4225 rather than bb_has_abnormal_call_pred.
4227 2015-07-10 Anatoly Sokolov <aesok@post.ru>
4229 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4230 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
4231 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4232 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
4233 v850_legitimate_address_p): New functions.
4234 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4236 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
4239 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
4240 indirect sibcall with register arguments if register available
4241 for argument passing.
4242 (init_cumulative_args): Set cfun->machine->arg_reg_available
4243 to (cum->nregs > 0) or to true if function has a variable
4245 (function_arg_advance_32): Set cfun->machine->arg_reg_available
4246 to false if cum->nregs <= 0.
4247 * config/i386/i386.h (machine_function): Add arg_reg_available.
4249 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
4251 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
4252 and gen_higpart instead of gen_rtx_SUBREG.
4253 * config/i386/i386.md
4254 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
4255 (read-modify peephole2): Use gen_lowpart instead of
4256 gen_rtx_SUBREG for operand 5.
4258 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
4260 * config/tilepro/gen-mul-tables.cc (main): Change include list for
4262 * config/tilepro/mul-tables.c: Regenerate.
4263 * config/tilegx/mul-tables.c: Regenerate.
4265 2015-07-10 Richard Biener <rguenther@suse.de>
4267 * fold-const.c (distribute_bit_expr): Remove.
4268 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
4269 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
4270 to A & (B | C) and simplifying A << C1 << C2 to ...
4271 * match.pd: ... patterns here.
4273 2015-07-10 Jiong Wang <jiong.wang@arm.com>
4275 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4276 Mark mem as READONLY and NOTRAP for PIC symbol.
4278 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
4280 * gimple-predict.h: New file.
4281 (gimple_predict_predictor, gimple_predict_set_predictor,
4282 gimple_predict_outcome, gimple_predict_set_outcome,
4283 gimple_build_predict): Relocate here.
4284 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
4285 gimple_predict_outcome, gimple_predict_set_outcome): Move to
4287 * gimple.c (gimple_build_predict): Move to gimple-predict.h
4288 * basic-block.h: Don't include cfghooks.h.
4289 * backend.h: Don't include predict.h.
4290 * cfghooks.h: Include predict.h.
4291 * gimple-pretty-print.c: Include gimple-predict.h.
4292 * gimplify.c: Likwise.
4293 * predict.c: Adjust includes.
4294 * tree-inline.c: Likewise.
4296 * auto-inc-dec.c: Likewise.
4297 * auto-profile.c: Likewise.
4298 * bb-reorder.c: Likewise.
4299 * builtins.c: Likewise.
4300 * caller-save.c: Likewise.
4301 * calls.c: Likewise.
4302 * cfganal.c: Likewise.
4303 * cfgbuild.c: Likewise.
4305 * cfgcleanup.c: Likewise.
4306 * cfgexpand.c: Likewise.
4307 * cfghooks.c: Likewise.
4308 * cfgloopanal.c: Likewise.
4309 * cfgloop.c: Likewise.
4310 * cfgloopmanip.c: Likewise.
4311 * cfgrtl.c: Likewise.
4312 * cgraph.c: Likewise.
4313 * cgraphunit.c: Likewise.
4314 * combine.c: Likewise.
4315 * cprop.c: Likewise.
4318 * dojump.c: Likewise.
4320 * except.c: Likewise.
4321 * expmed.c: Likewise.
4323 * final.c: Likewise.
4324 * fold-const.c: Likewise.
4325 * function.c: Likewise.
4326 * fwprop.c: Likewise.
4327 * gcc-plugin.h: Likewise.
4329 * genattrtab.c: Likewise.
4330 * genemit.c: Likewise.
4331 * gengtype.c: Likewise.
4332 * genopinit.c: Likewise.
4333 * genoutput.c: Likewise.
4334 * genpreds.c: Likewise.
4335 * genrecog.c: Likewise.
4336 * gimple-fold.c: Likewise.
4337 * gimple-iterator.c: Likewise.
4338 * gimple-ssa-isolate-paths.c: Likewise.
4339 * gimple-ssa-strength-reduction.c: Likewise.
4340 * graph.c: Likewise.
4341 * graphite-blocking.c: Likewise.
4342 * graphite.c: Likewise.
4343 * graphite-dependences.c: Likewise.
4344 * graphite-interchange.c: Likewise.
4345 * graphite-isl-ast-to-gimple.c: Likewise.
4346 * graphite-optimize-isl.c: Likewise.
4347 * graphite-poly.c: Likewise.
4348 * graphite-scop-detection.c: Likewise.
4349 * graphite-sese-to-poly.c: Likewise.
4350 * haifa-sched.c: Likewise.
4351 * ifcvt.c: Likewise.
4352 * internal-fn.c: Likewise.
4353 * ipa-cp.c: Likewise.
4354 * ipa-profile.c: Likewise.
4355 * ipa-split.c: Likewise.
4356 * ipa-utils.c: Likewise.
4357 * ira-build.c: Likewise.
4358 * ira-color.c: Likewise.
4359 * ira-conflicts.c: Likewise.
4360 * ira-costs.c: Likewise.
4361 * ira-emit.c: Likewise.
4362 * ira-lives.c: Likewise.
4364 * loop-doloop.c: Likewise.
4365 * loop-init.c: Likewise.
4366 * loop-invariant.c: Likewise.
4367 * loop-unroll.c: Likewise.
4368 * lower-subreg.c: Likewise.
4369 * lra-assigns.c: Likewise.
4371 * lra-coalesce.c: Likewise.
4372 * lra-constraints.c: Likewise.
4373 * lra-lives.c: Likewise.
4374 * lto-cgraph.c: Likewise.
4375 * lto-streamer-in.c: Likewise.
4376 * mode-switching.c: Likewise.
4377 * modulo-sched.c: Likewise.
4378 * omp-low.c: Likewise.
4379 * optabs.c: Likewise.
4380 * passes.c: Likewise.
4381 * postreload.c: Likewise.
4382 * postreload-gcse.c: Likewise.
4383 * profile.c: Likewise.
4384 * recog.c: Likewise.
4385 * regstat.c: Likewise.
4386 * reload1.c: Likewise.
4387 * reorg.c: Likewise.
4388 * rtlanal.c: Likewise.
4389 * sched-ebb.c: Likewise.
4390 * sel-sched-ir.c: Likewise.
4392 * shrink-wrap.c: Likewise.
4393 * simplify-rtx.c: Likewise.
4395 * store-motion.c: Likewise.
4396 * tracer.c: Likewise.
4397 * trans-mem.c: Likewise.
4398 * tree-call-cdce.c: Likewise.
4399 * tree-cfg.c: Likewise.
4400 * tree-cfgcleanup.c: Likewise.
4401 * tree-chkp.c: Likewise.
4402 * tree-complex.c: Likewise.
4403 * tree-eh.c: Likewise.
4404 * tree-if-conv.c: Likewise.
4405 * tree-loop-distribution.c: Likewise.
4406 * tree-outof-ssa.c: Likewise.
4407 * tree-parloops.c: Likewise.
4408 * tree-predcom.c: Likewise.
4409 * tree-pretty-print.c: Likewise.
4410 * tree-profile.c: Likewise.
4411 * tree-sra.c: Likewise.
4412 * tree-ssa.c: Likewise.
4413 * tree-ssa-coalesce.c: Likewise.
4414 * tree-ssa-dce.c: Likewise.
4415 * tree-ssa-dom.c: Likewise.
4416 * tree-ssa-forwprop.c: Likewise.
4417 * tree-ssa-ifcombine.c: Likewise.
4418 * tree-ssa-loop-ch.c: Likewise.
4419 * tree-ssa-loop-im.c: Likewise.
4420 * tree-ssa-loop-ivcanon.c: Likewise.
4421 * tree-ssa-loop-ivopts.c: Likewise.
4422 * tree-ssa-loop-manip.c: Likewise.
4423 * tree-ssa-loop-prefetch.c: Likewise.
4424 * tree-ssa-loop-unswitch.c: Likewise.
4425 * tree-ssa-math-opts.c: Likewise.
4426 * tree-ssa-phiopt.c: Likewise.
4427 * tree-ssa-pre.c: Likewise.
4428 * tree-ssa-reassoc.c: Likewise.
4429 * tree-ssa-sink.c: Likewise.
4430 * tree-ssa-tail-merge.c: Likewise.
4431 * tree-ssa-threadedge.c: Likewise.
4432 * tree-ssa-threadupdate.c: Likewise.
4433 * tree-switch-conversion.c: Likewise.
4434 * tree-tailcall.c: Likewise.
4435 * tree-vect-data-refs.c: Likewise.
4436 * tree-vect-loop.c: Likewise.
4437 * tree-vect-loop-manip.c: Likewise.
4438 * tree-vectorizer.c: Likewise.
4439 * tree-vrp.c: Likewise.
4440 * ubsan.c: Likewise.
4441 * value-prof.c: Likewise.
4442 * varasm.c: Likewise.
4443 * var-tracking.c: Likewise.
4444 * config/aarch64/aarch64-builtins.c: Likewise.
4445 * config/aarch64/aarch64.c: Likewise.
4446 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4447 * config/alpha/alpha.c: Likewise.
4448 * config/arc/arc.c: Likewise.
4449 * config/arm/arm.c: Likewise.
4450 * config/avr/avr.c: Likewise.
4451 * config/bfin/bfin.c: Likewise.
4452 * config/c6x/c6x.c: Likewise.
4453 * config/cr16/cr16.c: Likewise.
4454 * config/cris/cris.c: Likewise.
4455 * config/darwin.c: Likewise.
4456 * config/darwin-c.c: Likewise.
4457 * config/epiphany/epiphany.c: Likewise.
4458 * config/epiphany/mode-switch-use.c: Likewise.
4459 * config/epiphany/resolve-sw-modes.c: Likewise.
4460 * config/fr30/fr30.c: Likewise.
4461 * config/frv/frv.c: Likewise.
4462 * config/ft32/ft32.c: Likewise.
4463 * config/h8300/h8300.c: Likewise.
4464 * config/i386/i386.c: Likewise.
4465 * config/i386/winnt.c: Likewise.
4466 * config/ia64/ia64.c: Likewise.
4467 * config/iq2000/iq2000.c: Likewise.
4468 * config/lm32/lm32.c: Likewise.
4469 * config/m32c/m32c.c: Likewise.
4470 * config/m32r/m32r.c: Likewise.
4471 * config/m68k/m68k.c: Likewise.
4472 * config/mcore/mcore.c: Likewise.
4473 * config/mep/mep.c: Likewise.
4474 * config/microblaze/microblaze.c: Likewise.
4475 * config/mips/mips.c: Likewise.
4476 * config/mmix/mmix.c: Likewise.
4477 * config/mn10300/mn10300.c: Likewise.
4478 * config/moxie/moxie.c: Likewise.
4479 * config/msp430/msp430.c: Likewise.
4480 * config/nds32/nds32.c: Likewise.
4481 * config/nds32/nds32-cost.c: Likewise.
4482 * config/nds32/nds32-fp-as-gp.c: Likewise.
4483 * config/nds32/nds32-intrinsic.c: Likewise.
4484 * config/nds32/nds32-isr.c: Likewise.
4485 * config/nds32/nds32-md-auxiliary.c: Likewise.
4486 * config/nds32/nds32-memory-manipulation.c: Likewise.
4487 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4488 * config/nds32/nds32-predicates.c: Likewise.
4489 * config/nios2/nios2.c: Likewise.
4490 * config/nvptx/nvptx.c: Likewise.
4491 * config/pa/pa.c: Likewise.
4492 * config/pdp11/pdp11.c: Likewise.
4493 * config/rl78/rl78.c: Likewise.
4494 * config/rs6000/rs6000.c: Likewise.
4495 * config/rx/rx.c: Likewise.
4496 * config/s390/s390.c: Likewise.
4497 * config/sh/sh.c: Likewise.
4498 * config/sh/sh-mem.cc: Likewise.
4499 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4500 * config/sh/sh_treg_combine.cc: Likewise.
4501 * config/sparc/sparc.c: Likewise.
4502 * config/spu/spu.c: Likewise.
4503 * config/stormy16/stormy16.c: Likewise.
4504 * config/tilegx/tilegx.c: Likewise.
4505 * config/tilepro/tilepro.c: Likewise.
4506 * config/v850/v850.c: Likewise.
4507 * config/vax/vax.c: Likewise.
4508 * config/visium/visium.c: Likewise.
4509 * config/xtensa/xtensa.c: Likewise.
4511 2015-07-10 Richard Biener <rguenther@suse.de>
4513 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
4514 (decision_tree::gen_gimple): Likewise.
4515 (decision_tree::gen_generic): Likewise.
4517 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
4520 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
4521 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
4523 2015-07-10 Jakub Jelinek <jakub@redhat.com>
4526 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
4527 or ORT_TASK contexts.
4528 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
4531 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4533 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
4536 2015-07-10 Tom de Vries <tom@codesourcery.com>
4538 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
4539 insert nit + 1 bound.
4541 2015-07-10 Richard Biener <rguenther@suse.de>
4543 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
4544 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
4545 (if_convertible_loop_p_1): For this always compute bb predicates.
4546 (if_convertible_loop_p): And free them.
4548 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4550 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
4553 2015-07-10 Richard Biener <rguenther@suse.de>
4555 PR tree-optimization/66823
4556 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
4559 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
4561 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
4562 to handle mips[32|64]r3 and mips[32|64]r5.
4564 2015-07-09 Jakub Jelinek <jakub@redhat.com>
4567 * tree-nested.c (get_static_chain): Or in a flag into
4568 info->static_chain_added.
4569 (get_frame_field, get_nonlocal_debug_decl): Likewise.
4570 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
4572 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
4573 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
4576 PR tree-optimization/66718
4577 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
4579 (vect_simd_lane_linear): New function.
4580 (vectorizable_simd_clone_call): Support using linear arguments for
4581 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
4583 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4586 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
4588 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4590 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
4591 Use machine mode, not enum machine_mode in the prototype.
4593 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
4594 classify 128-bit floating point support.
4595 (FLOAT128_IBM_P): Likewise.
4596 (FLOAT128_VECTOR_P): Likewise.
4597 (FLOAT128_2REG_P): Likewise.
4598 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
4599 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
4600 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
4601 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
4603 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
4604 tests against TFmode/TDmode, since those modes do not use VSX
4606 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
4608 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
4609 tests against TFmode, etc.
4610 (invalid_e500_subreg): Add tests against IFmode/KFmode.
4611 (reg_offset_addressing_ok_p): Likewise.
4612 (rs6000_legitimate_offset_address_p): Likewise.
4613 (rs6000_legitimize_address): Likewise.
4614 (rs6000_legitimize_reload_address): Likewise.
4615 (rs6000_legitimate_address_p): Clean up tests against TFmode and
4616 TDmode to use the new helper macros, which will include IFmode and
4618 (rs6000_emit_move): Likewise.
4619 (rs6000_darwin64_record_arg_recurse): Likewise.
4620 (print_operand): Likewise.
4621 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
4622 that uses a single vector register as a vector and not as a
4623 floating point register in terms of the calling sequence.
4624 (rs6000_discover_homogeneous_aggregate): Likewise.
4625 (rs6000_return_in_memory): Likewise.
4626 (init_cumulative_args): Likewise.
4627 (rs6000_function_arg_boundary): Likewise.
4628 (rs6000_function_arg_advance_1): Likewise.
4629 (rs6000_function_arg): Likewise.
4630 (rs6000_pass_by_reference): Likewise.
4631 (rs6000_gimplify_va_arg): Likewise.
4632 (rs6000_secondary_reload_memory): Use machine_mode not enum
4634 (rs6000_split_multireg_move): Use new helper macros.
4635 (spe_func_has_64bit_regs_p): Likewise.
4636 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
4637 (output_toc): Use new helper macros.
4638 (rs6000_register_move_cost): Likewise.
4639 (rs6000_function_value): Add IEEE 128-bit floating point calling
4641 (rs6000_libcall_value): Likewise.
4642 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
4643 floating point support.
4644 (rs6000_vector_mode_supported_p): Likewise.
4646 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
4648 PR rtl-optimization/66782
4649 * lra-int.h (struct lra_insn_recog_data): Add comment about
4650 clobbered hard regs for arg_hard_regs.
4651 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
4652 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
4653 Add condition for processing used hard regs.
4654 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
4655 Process clobbered hard regs.
4657 2015-07-09 Michael Matz <matz@suse.de>
4659 * genmatch.c (fprintf_indent): New function.
4660 (operand::gen_transform): Add indent parameter.
4661 (expr::gen_transform, c_expr::gen_transform,
4662 capture::gen_transform): Ditto and use fprintf_indent.
4663 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
4664 (dt_operand::gen, dt_operand::gen_predicate,
4665 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
4666 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
4667 (decision_tree::gen_gimple): Adjust calls and indent generated
4669 (decision_tree::gen_generic): Ditto.
4670 (write_predicate): Ditto.
4672 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
4675 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
4676 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
4677 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
4678 {GENERAL,SSE,MMX}_REG_P where appropriate.
4680 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
4682 * lto-streamer.h: Don't include target.h and alloc-pool.h.
4683 * builtins.c: Adjust includes.
4684 * gimple.c: Likewise.
4685 * ipa-icf.c: Likewise.
4686 * lto-opts.c: Likewise.
4687 * ipa-reference.c: Likewise.
4688 * lto-section-out.c: Likewise.
4689 * lto-streamer-in.c: Likewise.
4690 * lto-streamer-out.c: Likewise.
4691 * opts-global.c: Likewise.
4692 * symtab.c: Likewise.
4693 * tree-chkp.c: Likewise.
4694 * tree-ssa-live.c: Likewise.
4695 * tree-streamer-in.c: Likewise.
4696 * tree-streamer-out.c: Likewise.
4697 * config/darwin.c: Likewise.
4698 * config/i386/winnt.c: Likewise.
4700 2015-07-09 Richard Biener <rguenther@suse.de>
4702 * genmatch.c (struct expr): Add force_single_use flag.
4703 (expr::expr): Add copy constructor.
4704 (capture_info::walk_match): Gather force_single_use captures.
4705 (expr::gen_transform): Use possibly NULLified sequence.
4706 (dt_simplify::gen): Apply single-use restrictions by NULLifying
4707 seq if any constrained expr is not single-use.
4708 (parser::parse_expr): Refactor to allow multiple flags. Handle
4709 's' flag to force an expression have a single-use if the pattern
4710 simplifies to more than one statement.
4711 * match.pd: Convert most single_use conditionals to :s flags.
4713 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4715 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
4716 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
4717 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
4719 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
4721 * flags.h: Don't include flag-types.h or options.h.
4722 * opts-common.c: Adjust includes.
4723 * opts-global.c: Likewise.
4724 * common/config/epiphany/epiphany-common.c: Likewise.
4726 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4729 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
4732 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4735 * config/i386/i386.c (ix86_return_in_memory): Return true
4736 if int_size_in_bytes returns negative for IA MCU.
4738 2015-07-09 Marek Polacek <polacek@redhat.com>
4740 PR tree-optimization/66718
4741 * Makefile.in (OBJS): Add gimple-laddress.o.
4742 * passes.def: Schedule pass_laddress.
4743 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
4744 * tree-pass.h (make_pass_laddress): Declare.
4745 * gimple-laddress.c: New file.
4747 2015-07-09 Richard Biener <rguenther@suse.de>
4749 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
4751 2015-07-09 Richard Biener <rguenther@suse.de>
4753 PR tree-optimization/66807
4754 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
4756 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
4758 * function.c (stack_protect_epilogue): Use if rather than switch for
4759 check targetm.have_stack_protect_test.
4761 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4763 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
4764 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
4765 * config/arc/arc.h: Likewise.
4766 * config/arm/arm.h: Likewise.
4767 * config/bfin/bfin.h: Likewise.
4768 * config/epiphany/epiphany.h: Likewise.
4769 * config/frv/frv.h: Likewise.
4770 * config/ia64/ia64.h: Likewise.
4771 * config/iq2000/iq2000.h: Likewise.
4772 * config/lm32/lm32.h: Likewise.
4773 * config/m32r/m32r.h: Likewise.
4774 * config/mcore/mcore.h: Likewise.
4775 * config/mep/mep.h: Likewise.
4776 * config/microblaze/microblaze.h: Likewise.
4777 * config/mips/mips.h: Likewise.
4778 * config/mmix/mmix.h: Likewise.
4779 * config/mn10300/mn10300.h: Likewise.
4780 * config/nds32/nds32.h: Likewise.
4781 * config/nios2/nios2.h: Likewise.
4782 * config/pa/pa.h: Likewise.
4783 * config/rl78/rl78.h: Likewise.
4784 * config/sh/sh.h: Likewise.
4785 * config/sparc/sparc.h: Likewise.
4786 * config/stormy16/stormy16.h: Likewise.
4787 * config/tilegx/tilegx.h: Likewise.
4788 * config/tilepro/tilepro.h: Likewise.
4789 * config/v850/v850.h: Likewise.
4790 * config/xtensa/xtensa.h: Likewise.
4791 * doc/tm.texi: Regenerate.
4792 * doc/tm.texi.in: Adjust.
4793 * combine.c (simplify_set): Likewise.
4794 (simplify_comparison): Likewise.
4795 * expr.c (store_constructor): Likewise.
4796 * internal-fn.c (expand_arith_overflow): Likewise.
4797 * reload.c (push_reload): Likewise.
4798 (find_reloads): Likewise.
4799 (find_reloads_subreg_address): Likewise.
4800 * reload1.c (eliminate_regs_1): Likewise.
4801 * rtlanal.c (nonzero_bits1): Likewise.
4802 (num_sign_bit_copies1): Likewise.
4803 * simplify-rtx.c (simplify_truncation): Likewise.
4805 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4807 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
4808 of AUTO_INC_DEC with the preprocessor.
4809 * combine.c (combine_instructions): Likewise.
4810 (can_combine_p): Likewise.
4811 (try_combine): Likewise.
4812 * emit-rtl.c (try_split): Likewise.
4813 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4814 * lower-subreg.c (resolve_simple_move): Likewise.
4815 * lra.c (update_inc_notes): Likewise.
4816 * recog.c (asm_operand_ok): Likewise.
4817 (constrain_operands): Likewise.
4818 * regrename.c (scan_rtx_address): Likewise.
4819 * reload.c (update_auto_inc_notes): Likewise.
4820 (reg_inc_found_and_valid_p): Likewise.
4821 * reload1.c (reload): Likewise.
4822 (emit_input_reload_insns): Likewise.
4823 (delete_output_reload): Likewise.
4824 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4825 * valtrack.c (cleanup_auto_inc_dec): Likewise.
4827 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4829 * rtl.h: Always define AUTO_INC_DEC.
4830 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
4831 * combine.c (combine_instructions): Likewise.
4832 (can_combine_p): Likewise.
4833 (try_combine): Likewise.
4834 * emit-rtl.c (try_split): Likewise.
4835 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4836 * lower-subreg.c (resolve_simple_move): Likewise.
4837 * lra.c (update_inc_notes): Likewise.
4838 * recog.c (asm_operand_ok): Likewise.
4839 (constrain_operands): Likewise.
4840 * regrename.c (scan_rtx_address): Likewise.
4841 * reload.c (update_auto_inc_notes): Likewise.
4842 (find_equiv_reg): Likewise.
4843 * reload1.c (reload): Likewise.
4844 (reload_as_needed): Likewise.
4845 (choose_reload_regs): Likewise.
4846 (emit_input_reload_insns): Likewise.
4847 (delete_output_reload): Likewise.
4848 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4849 * valtrack.c (cleanup_auto_inc_dec): Likewise.
4851 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4853 * combine.c (can_combine_def_p): Don't check the value of
4854 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
4855 (combinable_i3pat): Likewise.
4856 (mark_used_regs_combine): Likewise.
4857 * regrename.c (rename_chains): Likewise.
4858 * reload.c (find_reloads_address): Likewise.
4859 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4861 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4863 * combine.c (update_rsp_from_reg_equal): Don't check if
4864 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
4865 (reg_nonzero_bits_for_combine): Likewise.
4866 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
4868 * config/frv/frv.h: Likewise.
4869 * config/lm32/lm32.h: Likewise.
4870 * config/mep/mep.h: Likewise.
4871 * config/mips/mips.h: Likewise.
4872 * config/rs6000/rs6000.h: Likewise.
4873 * config/sh/sh.h: Likewise.
4874 * config/tilegx/tilegx.h (enum reg_class): Likewise.
4875 * config/tilepro/tilepro.h: Likewise.
4876 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
4877 * doc/tm.texi: Regenerate.
4878 * doc/tm.texi.in: Adjust.
4879 * rtlanal.c (nonzero_bits1): Likewise.
4881 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4883 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
4884 with the preprocessor.
4885 (combine_instructions): Likewise.
4886 (try_combine): Likewise.
4888 (distribute_notes): Likewise.
4890 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4892 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
4894 (simplify_set): Likewise.
4895 * cse.c (cse_insn): Likewise.
4896 * fold-const.c (fold_single_bit_test): Likewise.
4897 (fold_unary_loc): Likewise.
4898 * postreload.c (reload_cse_simplify_set): Likewise.
4899 (reload_cse_simplify_operands): Likewise.
4901 2015-07-08 Jiong Wang <jiong.wang@arm.com>
4903 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
4904 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
4906 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
4909 * config/i386/x86intrin.h: Include <adxintrin.h> even if
4910 __iamcu__ is defined.
4912 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
4914 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
4916 2015-07-08 Iain Sandoe <iain@codesourcery.com>
4919 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
4920 names from preservation.
4922 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
4925 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
4927 (function_arg_advance_32): Don't pass vectors in registers for
4929 (function_arg_32): Likewise.
4930 (ix86_return_in_memory): Don't return vectors in registers for
4933 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
4936 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
4937 hard regno live at the start of BB with incoming abnormal edges.
4938 * lra-lives.c (process_bb_lives): Ditto.
4940 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
4943 * config/nvptx/mkoffload.c (main): Create an offload image only in
4944 64-bit configurations.
4946 2015-07-08 Martin Liska <mliska@suse.cz>
4949 * tree-sra.c (create_access_1): Call ctor without brackets.
4950 (create_artificial_child_access): Likewise.
4952 2015-07-08 Richard Biener <rguenther@suse.de>
4954 PR tree-optimization/66793
4955 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
4956 Properly split the block after stmts ending it.
4958 2015-07-08 Richard Biener <rguenther@suse.de>
4960 PR tree-optimization/66794
4961 * passes.c (execute_function_todo): Assert that post-dominators
4963 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
4964 Free post-dominators.
4966 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4968 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
4971 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
4973 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
4974 more than or equal 8 and less than 32 when optimizing for size.
4976 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4978 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
4979 COSTS_N_INSNS (1) and increment it appropriately throughout the
4982 2015-07-08 Richard Biener <rguenther@suse.de>
4984 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
4986 2015-07-08 Alan Modra <amodra@gmail.com>
4988 * target.def (rtx_costs): Remove "code" param, add "mode".
4989 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
4990 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
4991 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
4992 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
4993 call. Track mode when given in rtx.
4994 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
4995 (default_address_cost): Pass Pmode to rtx_cost.
4996 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
4997 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
4999 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
5000 (notreg_cost): Add mode param. Use it.
5001 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
5002 mode param and pass to set_src_cost. Update all calls.
5003 (hash_scan_set): Formatting.
5004 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
5005 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
5007 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
5008 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
5009 emit_store_flag): Update set_src_cost and rtx_cost calls.
5010 * auto-inc-dec.c (attempt_change): Likewise.
5011 * calls.c (precompute_register_parameters): Likewise.
5012 * combine.c (expand_compound_operation, make_extraction,
5013 force_to_mode, distribute_and_simplify_rtx): Likewise.
5014 * dojump.c (prefer_and_bit_test): Likewise.
5015 * dse.c (find_shift_sequence): Likewise.
5016 * expr.c (compress_float_constant): Likewise.
5017 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
5018 * ifcvt.c (noce_try_sign_mask): Likewise.
5019 * loop-doloop.c (doloop_optimize): Likewise.
5020 * loop-invariant.c (create_new_invariant): Likewise.
5021 * lower-subreg.c (shift_cost, compute_costs): Likewise.
5022 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
5023 lshift_cheap_p): Likewise.
5024 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
5025 try_replace_in_use, reload_cse_move2add): Likewise.
5026 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
5028 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5029 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5030 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
5031 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
5032 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
5033 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
5035 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
5036 * config/arc/arc.c (arc_rtx_costs): Likewise.
5037 * config/arm/arm.c (arm_rtx_costs): Likewise.
5038 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
5039 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
5040 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
5041 * config/cris/cris.c (cris_rtx_costs): Likewise.
5042 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
5043 * config/frv/frv.c (frv_rtx_costs): Likewise.
5044 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
5045 * config/i386/i386.c (ix86_rtx_costs): Likewise.
5046 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
5047 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
5048 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
5049 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
5050 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
5051 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
5052 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
5053 * config/mep/mep.c (mep_rtx_cost): Likewise.
5054 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
5055 * config/mips/mips.c (mips_rtx_costs): Likewise.
5056 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
5057 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
5058 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
5059 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
5060 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
5061 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
5062 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
5063 * config/pa/pa.c (hppa_rtx_costs): Likewise.
5064 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
5065 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
5066 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
5067 * config/s390/s390.c (s390_rtx_costs): Likewise.
5068 * config/sh/sh.c (sh_rtx_costs): Likewise.
5069 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
5070 * config/spu/spu.c (spu_rtx_costs): Likewise.
5071 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
5072 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
5073 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
5074 * config/v850/v850.c (v850_rtx_costs): Likewise.
5075 * config/vax/vax.c (vax_rtx_costs): Likewise.
5076 * config/visium/visium.c (visium_rtx_costs): Likewise.
5077 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
5078 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
5079 "code" param, and pass as outer_code to first rtx_cost call. Pass
5080 mode to rtx_cost calls.
5081 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
5083 (aarch64_rtx_costs_wrapper): Update.
5084 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
5085 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
5087 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
5089 (avr_operand_rtx_cost): Similarly.
5090 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
5091 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
5092 * config/mips/mips.c (mips_stack_address_p): Comment typo.
5093 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
5094 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
5095 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
5097 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
5098 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
5099 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
5100 * doc/tm.texi: Regenerate.
5102 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
5104 * tree-core.h: Include symtab.h.
5105 * rtl.h: Include hard-reg-set.h but not flags.h.
5106 (HARD_CONST): Remove condition compilation involving HARD_CONST since
5107 hard-reg-set.h is always included.
5108 * regs.h: Don't include hard-reg-set.h or rtl.h.
5109 * cfg.h: Include dominance.h.
5110 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
5111 * backend.h: New. Aggregate commonly used backend header files.
5112 * gimple-ssa.h: Don't include tree-hasher.h.
5113 * ssa.h: New. Aggregate commonly used SSA header files.
5114 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
5115 * sel-sched-ir.h: Flatten includes.
5116 * lra-int.h: Flatten completely.
5117 * sel-sched-dump.h: Flatten includes.
5118 * ira-int.h: Flatten includes.
5119 * gimple-streamer.h: Remove all includes.
5120 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
5121 * resource.h: Flatten hard-reg-set.h and df.h.
5122 * sched-int.h: Flatten insn-arrt.h and df.h.
5123 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
5124 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
5125 * genattrtab.c (write_header): Adjust generated includes.
5126 * genautomata.c (main): Likewise.
5127 * genconditions.c (write-header): Likewise.
5128 * genemit.c (main): Likewise.
5129 * gengtype.c (open_base_files): Likewise.
5130 * genopinit.c (main): Likewise.
5131 * genoutput.c (output_prologue): Likewise.
5132 * genpeep.c (main): Likewise.
5133 * genpreds.c (write_insn_preds_c): Likewise.
5134 * genrecog.c (write_header): Likewise.
5135 * alias.c: Adjust includes.
5137 * attribs.c: Likewise.
5138 * auto-inc-dec.c: Likewise.
5139 * auto-profile.c: Likewise.
5140 * bb-reorder.c: Likewise.
5141 * bt-load.c: Likewise.
5142 * builtins.c: Likewise.
5143 * caller-save.c: Likewise.
5144 * calls.c: Likewise.
5147 * cfganal.c: Likewise.
5148 * cfgbuild.c: Likewise.
5149 * cfgcleanup.c: Likewise.
5150 * cfgexpand.c: Likewise.
5151 * cfghooks.c: Likewise.
5152 * cfgloop.c: Likewise.
5153 * cfgloopanal.c: Likewise.
5154 * cfgloopmanip.c: Likewise.
5155 * cfgrtl.c: Likewise.
5156 * cgraph.c: Likewise.
5157 * cgraphbuild.c: Likewise.
5158 * cgraphclones.c: Likewise.
5159 * cgraphunit.c: Likewise.
5160 * cilk-common.c: Likewise.
5161 * combine-stack-adj.c: Likewise.
5162 * combine.c: Likewise.
5163 * compare-elim.c: Likewise.
5164 * convert.c: Likewise.
5165 * coverage.c: Likewise.
5166 * cppbuiltin.c: Likewise.
5167 * cprop.c: Likewise.
5169 * cselib.c: Likewise.
5170 * data-streamer-in.c: Likewise.
5171 * data-streamer-out.c: Likewise.
5172 * data-streamer.c: Likewise.
5173 * dbxout.c: Likewise.
5176 * debug.c: Likewise.
5177 * df-core.c: Likewise.
5178 * df-problems.c: Likewise.
5179 * df-scan.c: Likewise.
5181 * dojump.c: Likewise.
5182 * dominance.c: Likewise.
5183 * domwalk.c: Likewise.
5184 * double-int.c: Likewise.
5186 * dumpfile.c: Likewise.
5187 * dwarf2asm.c: Likewise.
5188 * dwarf2cfi.c: Likewise.
5189 * dwarf2out.c: Likewise.
5190 * emit-rtl.c: Likewise.
5191 * et-forest.c: Likewise.
5192 * except.c: Likewise.
5193 * explow.c: Likewise.
5194 * expmed.c: Likewise.
5196 * final.c: Likewise.
5197 * fixed-value.c: Likewise.
5198 * fold-const.c: Likewise.
5199 * function.c: Likewise.
5200 * fwprop.c: Likewise.
5201 * gcc-plugin.h: Likewise.
5202 * gcse-common.c: Likewise.
5204 * generic-match-head.c: Likewise.
5205 * ggc-page.c: Likewise.
5206 * gimple-builder.c: Likewise.
5207 * gimple-expr.c: Likewise.
5208 * gimple-fold.c: Likewise.
5209 * gimple-iterator.c: Likewise.
5210 * gimple-low.c: Likewise.
5211 * gimple-match-head.c: Likewise.
5212 * gimple-pretty-print.c: Likewise.
5213 * gimple-ssa-isolate-paths.c: Likewise.
5214 * gimple-ssa-strength-reduction.c: Likewise.
5215 * gimple-streamer-in.c: Likewise.
5216 * gimple-streamer-out.c: Likewise.
5217 * gimple-walk.c: Likewise.
5218 * gimple.c: Likewise.
5219 * gimplify-me.c: Likewise.
5220 * gimplify.c: Likewise.
5221 * godump.c: Likewise.
5222 * graph.c: Likewise.
5223 * graphite-blocking.c: Likewise.
5224 * graphite-dependences.c: Likewise.
5225 * graphite-interchange.c: Likewise.
5226 * graphite-isl-ast-to-gimple.c: Likewise.
5227 * graphite-optimize-isl.c: Likewise.
5228 * graphite-poly.c: Likewise.
5229 * graphite-scop-detection.c: Likewise.
5230 * graphite-sese-to-poly.c: Likewise.
5231 * graphite.c: Likewise.
5232 * haifa-sched.c: Likewise.
5233 * hw-doloop.c: Likewise.
5234 * ifcvt.c: Likewise.
5235 * init-regs.c: Likewise.
5236 * internal-fn.c: Likewise.
5237 * ipa-chkp.c: Likewise.
5238 * ipa-comdats.c: Likewise.
5239 * ipa-cp.c: Likewise.
5240 * ipa-devirt.c: Likewise.
5241 * ipa-icf-gimple.c: Likewise.
5242 * ipa-icf.c: Likewise.
5243 * ipa-inline-analysis.c: Likewise.
5244 * ipa-inline-transform.c: Likewise.
5245 * ipa-inline.c: Likewise.
5246 * ipa-polymorphic-call.c: Likewise.
5247 * ipa-profile.c: Likewise.
5248 * ipa-prop.c: Likewise.
5249 * ipa-pure-const.c: Likewise.
5250 * ipa-ref.c: Likewise.
5251 * ipa-reference.c: Likewise.
5252 * ipa-split.c: Likewise.
5253 * ipa-utils.c: Likewise.
5254 * ipa-visibility.c: Likewise.
5256 * ira-build.c: Likewise.
5257 * ira-color.c: Likewise.
5258 * ira-conflicts.c: Likewise.
5259 * ira-costs.c: Likewise.
5260 * ira-emit.c: Likewise.
5261 * ira-lives.c: Likewise.
5264 * langhooks.c: Likewise.
5266 * loop-doloop.c: Likewise.
5267 * loop-init.c: Likewise.
5268 * loop-invariant.c: Likewise.
5269 * loop-iv.c: Likewise.
5270 * loop-unroll.c: Likewise.
5271 * lower-subreg.c: Likewise.
5272 * lra-assigns.c: Likewise.
5273 * lra-coalesce.c: Likewise.
5274 * lra-constraints.c: Likewise.
5275 * lra-eliminations.c: Likewise.
5276 * lra-lives.c: Likewise.
5277 * lra-remat.c: Likewise.
5278 * lra-spills.c: Likewise.
5280 * lto-cgraph.c: Likewise.
5281 * lto-compress.c: Likewise.
5282 * lto-opts.c: Likewise.
5283 * lto-section-in.c: Likewise.
5284 * lto-section-out.c: Likewise.
5285 * lto-streamer-in.c: Likewise.
5286 * lto-streamer-out.c: Likewise.
5287 * lto-streamer.c: Likewise.
5289 * mode-switching.c: Likewise.
5290 * modulo-sched.c: Likewise.
5291 * omega.c: Likewise.
5292 * omp-low.c: Likewise.
5293 * optabs.c: Likewise.
5294 * opts-global.c: Likewise.
5295 * passes.c: Likewise.
5296 * plugin.c: Likewise.
5297 * postreload-gcse.c: Likewise.
5298 * postreload.c: Likewise.
5299 * predict.c: Likewise.
5300 * print-rtl.c: Likewise.
5301 * print-tree.c: Likewise.
5302 * profile.c: Likewise.
5304 * realmpfr.c: Likewise.
5305 * recog.c: Likewise.
5307 * reg-stack.c: Likewise.
5308 * regcprop.c: Likewise.
5309 * reginfo.c: Likewise.
5310 * regrename.c: Likewise.
5311 * regstat.c: Likewise.
5312 * reload.c: Likewise.
5313 * reload1.c: Likewise.
5314 * reorg.c: Likewise.
5315 * resource.c: Likewise.
5316 * rtl-chkp.c: Likewise.
5317 * rtlanal.c: Likewise.
5318 * rtlhooks.c: Likewise.
5319 * sanopt.c: Likewise.
5320 * sched-deps.c: Likewise.
5321 * sched-ebb.c: Likewise.
5322 * sched-rgn.c: Likewise.
5323 * sched-vis.c: Likewise.
5324 * sdbout.c: Likewise.
5325 * sel-sched-dump.c: Likewise.
5326 * sel-sched-ir.c: Likewise.
5327 * sel-sched.c: Likewise.
5329 * shrink-wrap.c: Likewise.
5330 * simplify-rtx.c: Likewise.
5331 * stack-ptr-mod.c: Likewise.
5333 * stor-layout.c: Likewise.
5334 * store-motion.c: Likewise.
5335 * stringpool.c: Likewise.
5336 * symtab.c: Likewise.
5337 * target-globals.c: Likewise.
5338 * targhooks.c: Likewise.
5339 * toplev.c: Likewise.
5340 * tracer.c: Likewise.
5341 * trans-mem.c: Likewise.
5342 * tree-affine.c: Likewise.
5343 * tree-browser.c: Likewise.
5344 * tree-call-cdce.c: Likewise.
5345 * tree-cfg.c: Likewise.
5346 * tree-cfgcleanup.c: Likewise.
5347 * tree-chkp-opt.c: Likewise.
5348 * tree-chkp.c: Likewise.
5349 * tree-chrec.c: Likewise.
5350 * tree-complex.c: Likewise.
5351 * tree-data-ref.c: Likewise.
5352 * tree-dfa.c: Likewise.
5353 * tree-diagnostic.c: Likewise.
5354 * tree-dump.c: Likewise.
5355 * tree-eh.c: Likewise.
5356 * tree-emutls.c: Likewise.
5357 * tree-if-conv.c: Likewise.
5358 * tree-inline.c: Likewise.
5359 * tree-into-ssa.c: Likewise.
5360 * tree-iterator.c: Likewise.
5361 * tree-loop-distribution.c: Likewise.
5362 * tree-nested.c: Likewise.
5363 * tree-nrv.c: Likewise.
5364 * tree-object-size.c: Likewise.
5365 * tree-outof-ssa.c: Likewise.
5366 * tree-parloops.c: Likewise.
5367 * tree-phinodes.c: Likewise.
5368 * tree-predcom.c: Likewise.
5369 * tree-pretty-print.c: Likewise.
5370 * tree-profile.c: Likewise.
5371 * tree-scalar-evolution.c: Likewise.
5372 * tree-sra.c: Likewise.
5373 * tree-ssa-address.c: Likewise.
5374 * tree-ssa-alias.c: Likewise.
5375 * tree-ssa-ccp.c: Likewise.
5376 * tree-ssa-coalesce.c: Likewise.
5377 * tree-ssa-copy.c: Likewise.
5378 * tree-ssa-copyrename.c: Likewise.
5379 * tree-ssa-dce.c: Likewise.
5380 * tree-ssa-dom.c: Likewise.
5381 * tree-ssa-dse.c: Likewise.
5382 * tree-ssa-forwprop.c: Likewise.
5383 * tree-ssa-ifcombine.c: Likewise.
5384 * tree-ssa-live.c: Likewise.
5385 * tree-ssa-loop-ch.c: Likewise.
5386 * tree-ssa-loop-im.c: Likewise.
5387 * tree-ssa-loop-ivcanon.c: Likewise.
5388 * tree-ssa-loop-ivopts.c: Likewise.
5389 * tree-ssa-loop-manip.c: Likewise.
5390 * tree-ssa-loop-niter.c: Likewise.
5391 * tree-ssa-loop-prefetch.c: Likewise.
5392 * tree-ssa-loop-unswitch.c: Likewise.
5393 * tree-ssa-loop.c: Likewise.
5394 * tree-ssa-math-opts.c: Likewise.
5395 * tree-ssa-operands.c: Likewise.
5396 * tree-ssa-phiopt.c: Likewise.
5397 * tree-ssa-phiprop.c: Likewise.
5398 * tree-ssa-pre.c: Likewise.
5399 * tree-ssa-propagate.c: Likewise.
5400 * tree-ssa-reassoc.c: Likewise.
5401 * tree-ssa-sccvn.c: Likewise.
5402 * tree-ssa-scopedtables.c: Likewise.
5403 * tree-ssa-sink.c: Likewise.
5404 * tree-ssa-strlen.c: Likewise.
5405 * tree-ssa-structalias.c: Likewise.
5406 * tree-ssa-tail-merge.c: Likewise.
5407 * tree-ssa-ter.c: Likewise.
5408 * tree-ssa-threadedge.c: Likewise.
5409 * tree-ssa-threadupdate.c: Likewise.
5410 * tree-ssa-uncprop.c: Likewise.
5411 * tree-ssa-uninit.c: Likewise.
5412 * tree-ssa.c: Likewise.
5413 * tree-ssanames.c: Likewise.
5414 * tree-stdarg.c: Likewise.
5415 * tree-streamer-in.c: Likewise.
5416 * tree-streamer-out.c: Likewise.
5417 * tree-streamer.c: Likewise.
5418 * tree-switch-conversion.c: Likewise.
5419 * tree-tailcall.c: Likewise.
5420 * tree-vect-data-refs.c: Likewise.
5421 * tree-vect-generic.c: Likewise.
5422 * tree-vect-loop-manip.c: Likewise.
5423 * tree-vect-loop.c: Likewise.
5424 * tree-vect-patterns.c: Likewise.
5425 * tree-vect-slp.c: Likewise.
5426 * tree-vect-stmts.c: Likewise.
5427 * tree-vectorizer.c: Likewise.
5428 * tree-vrp.c: Likewise.
5431 * ubsan.c: Likewise.
5432 * valtrack.c: Likewise.
5433 * value-prof.c: Likewise.
5434 * var-tracking.c: Likewise.
5435 * varasm.c: Likewise.
5436 * varpool.c: Likewise.
5437 * vmsdbgout.c: Likewise.
5438 * vtable-verify.c: Likewise.
5440 * wide-int.cc: Likewise.
5441 * xcoffout.c: Likewise.
5442 * config/aarch64/aarch64-builtins.c: Likewise.
5443 * config/aarch64/aarch64.c: Likewise.
5444 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5445 * config/alpha/alpha.c: Likewise.
5446 * config/arc/arc.c: Likewise.
5447 * config/arm/aarch-common.c: Likewise.
5448 * config/arm/arm-builtins.c: Likewise.
5449 * config/arm/arm-c.c: Likewise.
5450 * config/arm/arm.c: Likewise.
5451 * config/avr/avr-c.c: Likewise.
5452 * config/avr/avr-log.c: Likewise.
5453 * config/avr/avr.c: Likewise.
5454 * config/bfin/bfin.c: Likewise.
5455 * config/c6x/c6x.c: Likewise.
5456 * config/cr16/cr16.c: Likewise.
5457 * config/cris/cris.c: Likewise.
5458 * config/darwin-c.c: Likewise.
5459 * config/darwin.c: Likewise.
5460 * config/epiphany/epiphany.c: Likewise.
5461 * config/epiphany/mode-switch-use.c: Likewise.
5462 * config/epiphany/resolve-sw-modes.c: Likewise.
5463 * config/fr30/fr30.c: Likewise.
5464 * config/frv/frv.c: Likewise.
5465 * config/ft32/ft32.c: Likewise.
5466 * config/h8300/h8300.c: Likewise.
5467 * config/i386/i386-c.c: Likewise.
5468 * config/i386/i386.c: Likewise.
5469 * config/i386/msformat-c.c: Likewise.
5470 * config/i386/winnt-cxx.c: Likewise.
5471 * config/i386/winnt-stubs.c: Likewise.
5472 * config/i386/winnt.c: Likewise.
5473 * config/ia64/ia64-c.c: Likewise.
5474 * config/ia64/ia64.c: Likewise.
5475 * config/iq2000/iq2000.c: Likewise.
5476 * config/lm32/lm32.c: Likewise.
5477 * config/m32c/m32c-pragma.c: Likewise.
5478 * config/m32c/m32c.c: Likewise.
5479 * config/m32r/m32r.c: Likewise.
5480 * config/m68k/m68k.c: Likewise.
5481 * config/mcore/mcore.c: Likewise.
5482 * config/mep/mep-pragma.c: Likewise.
5483 * config/mep/mep.c: Likewise.
5484 * config/microblaze/microblaze-c.c: Likewise.
5485 * config/microblaze/microblaze.c: Likewise.
5486 * config/mips/mips.c: Likewise.
5487 * config/mmix/mmix.c: Likewise.
5488 * config/mn10300/mn10300.c: Likewise.
5489 * config/moxie/moxie.c: Likewise.
5490 * config/msp430/msp430-c.c: Likewise.
5491 * config/msp430/msp430.c: Likewise.
5492 * config/nds32/nds32-cost.c: Likewise.
5493 * config/nds32/nds32-fp-as-gp.c: Likewise.
5494 * config/nds32/nds32-intrinsic.c: Likewise.
5495 * config/nds32/nds32-isr.c: Likewise.
5496 * config/nds32/nds32-md-auxiliary.c: Likewise.
5497 * config/nds32/nds32-memory-manipulation.c: Likewise.
5498 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5499 * config/nds32/nds32-predicates.c: Likewise.
5500 * config/nds32/nds32.c: Likewise.
5501 * config/nios2/nios2.c: Likewise.
5502 * config/nvptx/nvptx.c: Likewise.
5503 * config/pa/pa.c: Likewise.
5504 * config/pdp11/pdp11.c: Likewise.
5505 * config/rl78/rl78-c.c: Likewise.
5506 * config/rl78/rl78.c: Likewise.
5507 * config/rs6000/rs6000-c.c: Likewise.
5508 * config/rs6000/rs6000.c: Likewise.
5509 * config/rx/rx.c: Likewise.
5510 * config/s390/s390-c.c: Likewise.
5511 * config/s390/s390.c: Likewise.
5512 * config/sh/sh-c.c: Likewise.
5513 * config/sh/sh-mem.cc: Likewise.
5514 * config/sh/sh.c: Likewise.
5515 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5516 * config/sh/sh_treg_combine.cc: Likewise.
5517 * config/sol2-c.c: Likewise.
5518 * config/sol2-cxx.c: Likewise.
5519 * config/sol2-stubs.c: Likewise.
5520 * config/sol2.c: Likewise.
5521 * config/sparc/sparc-c.c: Likewise.
5522 * config/sparc/sparc.c: Likewise.
5523 * config/spu/spu-c.c: Likewise.
5524 * config/spu/spu.c: Likewise.
5525 * config/stormy16/stormy16.c: Likewise.
5526 * config/tilegx/mul-tables.c: Likewise.
5527 * config/tilegx/tilegx-c.c: Likewise.
5528 * config/tilegx/tilegx.c: Likewise.
5529 * config/tilepro/mul-tables.c: Likewise.
5530 * config/tilepro/tilepro-c.c: Likewise.
5531 * config/tilepro/tilepro.c: Likewise.
5532 * config/v850/v850-c.c: Likewise.
5533 * config/v850/v850.c: Likewise.
5534 * config/vax/vax.c: Likewise.
5535 * config/visium/visium.c: Likewise.
5536 * config/vms/vms-c.c: Likewise.
5537 * config/vms/vms.c: Likewise.
5538 * config/vxworks.c: Likewise.
5539 * config/xtensa/xtensa.c: Likewise.
5541 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
5543 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
5544 Remove operand constraints. Change operand 2 predicate to
5545 nonmemory operand. Limit const_int values to mode bitsize. Only
5546 allow const_int values less than 32 when optimizing for size.
5547 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
5548 Remove operand constraints.
5549 (*bt<mode>): Use SImode for const_int values less than 32.
5550 (regmode): Remove mode attribute.
5552 2015-07-07 Anatoly Sokolov <aesok@post.ru>
5554 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5555 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
5556 moxie_legitimate_address_p): New functions.
5557 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5559 2015-07-07 Tom de Vries <tom@codesourcery.com>
5561 PR tree-optimization/66642
5562 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
5563 header comment. Rename split_edge variable to edge_at_split. Split
5564 exit edge to create new loop exit bb. Insert loop exit phis in new
5567 2015-07-07 Tom de Vries <tom@codesourcery.com>
5569 * tree-cfg.c (get_virtual_phi): New function.
5570 * tree-cfg.h (get_virtual_phi): Declare.
5571 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
5572 (rewrite_virtuals_into_loop_closed_ssa): New function.
5573 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
5575 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
5576 (transform_to_exit_first_loop_alt): Use
5577 rewrite_virtuals_into_loop_closed_ssa.
5579 2015-07-07 Richard Biener <rguenther@suse.de>
5581 * fold-const.c (fold_binary_loc): Move
5582 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
5583 * match.pd: ... here.
5584 Add (X * C1) % C2 -> 0 simplification pattern derived from
5587 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
5590 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
5591 change for target/65249.
5593 2015-07-07 Paulo Matos <pmatos@broadcom.com>
5595 * symtab.c (address_matters_1): Fix typo in comment above.
5596 (can_increase_alignment_p): Likewise.
5598 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5600 * function.c (free_after_compilation): Clear PROP_cfg in
5603 2015-07-07 Richard Biener <rguenther@suse.de>
5605 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
5607 (add_control_edge): Remove excessive vertical space in dumping.
5608 (process_ssa_edge_worklist): Simulate at most one statement and
5609 return whether we did. Do not simulate PHIs if they are in a
5610 BB not yet simulated.
5611 (ssa_propagate): Adjust to always drain the BB worklist whenever
5612 a BB is available there, likewise the VARYING edges list before
5613 the interesting edge list.
5615 2015-07-07 Christian Bruel <christian.bruel@st.com>
5618 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
5620 2015-07-07 Richard Biener <rguenther@suse.de>
5623 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
5626 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
5628 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
5629 modes for operands 0 and 3. Use SImode for operands 2 and 3.
5630 Copy operand 0 to a temporary if !ext_register_operand. Remove
5631 ancient extract_bit_field workaround.
5632 (insv<mode>_1): Rename from mov<mode>_insv_1.
5633 (*insvqi): Rename from *movqi_insv_2.
5634 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
5635 for renamed insvsi_1.
5636 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
5638 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
5640 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
5641 call to nvptx_reorg_subreg.
5643 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
5645 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
5646 * graphite-dependencies.c, graphite-interchange.c,
5647 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
5648 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
5651 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
5653 * match.pd: Remove element_mode inside HONOR_*.
5654 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
5655 (~X | X -> -1, ~X ^ X -> -1): Merge.
5656 * tree.c (build_each_one_cst): New function.
5657 * tree.h (build_each_one_cst): Likewise.
5659 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
5661 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5664 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
5666 * config.gcc <mips*-*-*>: Add fused-madd.opt.
5667 * config/mips/mips.opt (mfused-madd): Remove.
5668 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
5669 * config/mips/mips.h (TARGET_MIPS8000): New.
5670 (ISA_HAS_FP_MADD4_MSUB4): Remove.
5671 (ISA_HAS_FP_MADDF_MSUBF): Remove.
5672 (ISA_HAS_FP_MADD3_MSUB3): Remove.
5673 (ISA_HAS_NMADD4_NMSUB4): Remove.
5674 (ISA_HAS_NMADD3_NMSUB3): Remove.
5675 (ISA_HAS_FUSED_MADD4): New.
5676 (ISA_HAS_UNFUSED_MADD4): New.
5677 (ISA_HAS_FUSED_MADDF): New.
5678 (ISA_HAS_FUSED_MADD3): New.
5679 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
5680 (*fma<mode>4_madd3) New.
5681 (*fma<mode>4_madd4) New.
5682 (*fma<mode>4_maddf) New.
5684 (*fms<mode>4_msub3) New.
5685 (*fms<mode>4_msub4) New.
5687 (*fnma<mode>4_nmadd3) New.
5688 (*fnma<mode>4_nmadd4) New.
5690 (*fnms<mode>4_nmsub3) New.
5691 (*fnms<mode>4_nmsub4) New.
5692 (*madd4<mode>) Modify to be unfused only.
5693 (*msub4<mode>) Modify to be unfused only.
5694 (*nmadd4<mode>) Modify to be unfused only.
5695 (*nmsub4<mode>) Modify to be unfused only.
5696 (*madd3<mode>) Remove.
5697 (*msub3<mode>) Remove.
5698 (*nmadd3<mode>) Remove.
5699 (*nmsub3<mode>) Remove.
5700 (*nmadd3<mode>_fastmath) Remove.
5701 (*nmsub3<mode>_fastmath) Remove.
5702 (*nmadd4<mode>_fastmath) Update condition.
5703 (*nmsub4<mode>_fastmath) Update condition.
5705 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
5708 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
5709 alignment attribute, exploring one level down for records and arrays.
5711 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
5713 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
5714 modes for operands 0 and 1. Use SImode for operands 2 and 3.
5715 Copy operand 1 to a temporary if !ext_register_operand. Remove
5716 ancient extract_bit_field workaround.
5717 (*extv<mode>): Rename from *mov<mode>_extv_1.
5718 (*extvqi): Rename from *movqi_extv_1.
5719 (extzv<mode>): Rename from extzv. Use SWI248 modes for
5720 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
5721 to a temporary if !ext_register_operand. Remove ancient
5722 extract_bit_field workaround.
5723 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
5724 (*extzvqi): Rename from *movqi_extzv_2.
5725 (*testqi_ext_3): Remove modes from const_int_operand predicated
5726 operands. Add "n" constraint.
5727 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
5728 operand. Add "J" constraint.
5729 (*btsq, *btrq, *btcq peephole2s): Remove mode from
5730 const_0_to_63 predicated operand.
5731 (regmode): New insn attribute.
5732 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
5733 to nonmemory_operand. Use regmode insn attribute.
5734 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
5735 (*jcc_bt<mode>_mask): Remove mode from operand 3.
5736 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
5737 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
5738 operands. Use "N" constraint instead of "n".
5740 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
5742 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
5744 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
5747 * config/i386/i386.c (iamcu_cost): New.
5748 (m_IAMCU): Likewise.
5749 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
5750 (processor_target_table): Add an entry for "iamcu".
5751 (processor_alias_table): Likewise.
5752 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
5753 (ix86_adjust_cost): Likewise.
5754 (ia32_multipass_dfa_lookahead): Likewise.
5755 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
5756 * config/i386/x86-tune.def: Updated for m_IAMCU.
5758 2015-07-06 Richard Biener <rguenther@suse.de>
5760 PR tree-optimization/66772
5761 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
5762 values are available in the PHI node BB when there are
5763 still unexecutable edges.
5765 2015-07-06 Richard Biener <rguenther@suse.de>
5767 PR tree-optimization/66767
5768 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
5769 Make sure to build the alignment test on a SSA name without
5770 final alignment info valid only if the alignment test
5773 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
5776 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
5777 loop start when inserting LSETUP.
5779 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
5782 * config/i386/i386.c (ix86_option_override_internal): Allow
5783 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
5785 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5787 * read-md.c (decimal_string): Rename to ...
5788 (md_decimal_string): ... this.
5789 (handle_enum): Reflect this.
5791 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
5794 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
5796 2015-07-06 Richard Biener <rguenther@suse.de>
5799 * match.pd: Add missing constraint of y to REAL_CST in
5800 REAL_CST - x CMP y to y - CST CMP x simplification.
5802 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
5804 PR tree-optimization/66757
5805 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
5807 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
5808 Sandra Loosemore <sandra@codesourcery.com>
5810 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
5811 Delete extern declaration.
5812 (gprel_constant_p): Add extern declaration.
5813 * config/nios2/constraints.md ("S"): Use gprel_constant_p
5814 instead of nios2_symbol_ref_in_small_data_p.
5815 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
5816 (nios2_symbol_ref_in_small_data_p): Make static.
5817 (gprel_constant_p): Make non-static.
5819 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
5821 * doc/fragments.texi (Target Fragment): Convert debian.org
5823 * doc/install.texi (Configuration): Ditto.
5825 2015-07-05 Jakub Jelinek <jakub@redhat.com>
5827 PR tree-optimization/66718
5828 * tree-vect-stmts.c (vectorizable_call): Replace uses of
5829 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
5831 PR tree-optimization/66718
5832 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
5833 vectorizable_load, vectorizable_condition): Move vectype,
5834 nunits, ncopies computation after checking what kind of statement
5837 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5839 * target-insns.def (extv, extzv, insv): New targetm instruction
5841 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
5843 * recog.c (simplify_while_replacing): Likewise.
5845 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5847 * target-insns.def (doloop_begin, doloop_end): New targetm
5848 instruction patterns.
5849 * loop-init.c: Include target.h.
5850 (pass_loop2::gate): Use the new targetm patterns instead of
5851 HAVE_*/gen_* interface.
5852 (pass_rtl_doloop::gate): Likewise.
5853 (pass_rtl_doloop::execute): Remove preprocessor condition.
5854 * hw-doloop.c: Build unconditionally.
5855 * loop-doloop.c: Likewise.
5856 (doloop_optimize): Use the new targetm patterns instead of
5857 HAVE_*/gen_* interface.
5858 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
5859 * modulo-sched.c (doloop_register_get): Likewise.
5861 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5863 * target-insns.def (clear_cache): New targetm instruction pattern.
5864 * builtins.c (expand_builtin___clear_cache): Use it instead of
5865 HAVE_*/gen_* interface.
5867 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5869 * target-insns.def (allocate_stack, check_stack, probe_stack)
5870 (probe_stack_address, split_stack_prologue, split_stack_space_check):
5871 New targetm instruction patterns.
5872 * explow.c (allocate_dynamic_stack_space): Use them instead of
5873 HAVE_*/gen_* interface.
5874 (emit_stack_probe): Likewise.
5875 (probe_stack_range): Likewise.
5876 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5878 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5880 * target-insns.def (stack_protect_set, stack_protect_test): New
5881 targetm instruction patterns.
5882 * cfgexpand.c (stack_protect_prologue): Use them instead of
5883 HAVE_*/gen_* interface.
5884 * function.c (stack_protect_epilogue): Likewise.
5886 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5888 * expr.h (gen_move_insn_uncast): Delete.
5889 * expr.c (gen_move_insn_uncast): Delete.
5891 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5893 * target-insns.def (restore_stack_block, restore_stack_function)
5894 (restore_stack_nonlocal, save_stack_block, save_stack_function)
5895 (save_stack_nonlocal): New targetm instruction patterns.
5896 * builtins.c (expand_builtin_apply): Use them instead of
5897 HAVE_*/gen_* interface.
5898 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
5900 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5902 * target-insns.def (trap): New targetm instruction pattern.
5903 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
5905 * explow.c (allocate_dynamic_stack_space): Likewise.
5906 * ifcvt.c (find_if_header): Likewise.
5908 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5910 * target-insns.def (prefetch): New targetm instruction pattern.
5911 * tree-ssa-loop-prefetch.c: Include targeth.
5912 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
5913 of HAVE_*/gen_* interface.
5914 * builtins.c (expand_builtin_prefetch): Likewise.
5915 * toplev.c (process_options): Likewise.
5917 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5919 * target-insns.def (untyped_call, untyped_return): New targetm
5920 instruction patterns.
5921 * builtins.c (expand_builtin_apply): Use them instead of
5922 HAVE_*/gen_* interface.
5923 (result_vector): Define unconditionally.
5925 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5927 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
5928 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
5929 (nonlocal_goto_receiver): New targetm instruction patterns.
5930 * builtins.c (expand_builtin_setjmp_setup): Use them instead
5931 of HAVE_*/gen_* interface.
5932 (expand_builtin_setjmp_receiver): Likewise.
5933 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5934 * except.c (expand_dw2_landing_pad_for_region): Likewise.
5936 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5938 * target.def: Add code_for_* hooks.
5939 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
5940 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
5941 * target-insns.def (casesi, tablejump): New targetm instruction
5943 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
5944 (do_tablejump): Likewise.
5945 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
5946 (expand_sjlj_dispatch_table): Likewise.
5947 * targhooks.c (default_case_values_threshold): Likewise.
5949 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
5951 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
5952 Use rtx_insn * instead of rtx.
5953 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
5954 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
5955 (nios2_call_tls_get_addr): Likewise.
5956 (nios2_emit_expensive_div): Likewise.
5957 (nios2_emit_move_sequence): Change return type to bool.
5958 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
5959 Change return type to bool.
5961 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
5964 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
5966 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
5969 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
5970 of register_operand. Remove constraint.
5972 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
5974 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
5977 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
5979 * attribs.c (decl_attributes): Guard inform with the return value
5980 of the preceding warning.
5982 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
5984 * doc/invoke.texi (moverride): Move to correct section.
5986 2015-07-03 Richard Biener <rguenther@suse.de>
5988 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
5990 (dt_operand::gen_gimple_expr): After valueizing operands
5991 re-canonicalize operand order for commutative tree codes.
5993 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
5996 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
5998 (__crc32w): Likewise.
5999 (__crc32d): Likewise.
6000 (__rdpmc): Likewise.
6001 (__rdtscp): Likewise.
6003 (_rdtscp): Likewise.
6004 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
6007 2015-07-03 Richard Biener <rguenther@suse.de>
6009 * fold-const.c (fold_mathfn_compare): Remove.
6010 (fold_inf_compare): Likewise.
6011 (fold_comparison): Move floating point comparison simplifications...
6012 * match.pd: ... to patterns here. Introduce simple_comparisons
6013 operator list and use it for patterns formerly in fold_comparison.
6015 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
6017 PR tree-optimization/66119
6018 * toplev.c (process_options): Don't set up default values for
6019 the sra_max_scalarization_size_{speed,size} parameters.
6020 * tree-sra (analyze_all_variable_accesses): If no values
6021 have been set for the sra_max_scalarization_size_{speed,size}
6022 parameters, call get_move_ratio to get target defaults.
6024 2015-07-03 Richard Biener <rguenther@suse.de>
6026 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
6027 * match.pd: ... here.
6029 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
6032 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
6033 is not actually the default on FreeBSD.
6035 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6037 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
6039 (CMPGE_8HI): Likewise.
6040 (CMPGE_4SI): Likewise.
6041 (CMPGE_2DI): Likewise.
6042 (CMPGE_U16QI): Likewise.
6043 (CMPGE_U8HI): Likewise.
6044 (CMPGE_U4SI): Likewise.
6045 (CMPGE_U2DI): Likewise.
6046 (CMPLE_16QI): Likewise.
6047 (CMPLE_8HI): Likewise.
6048 (CMPLE_4SI): Likewise.
6049 (CMPLE_2DI): Likewise.
6050 (CMPLE_U16QI): Likewise.
6051 (CMPLE_U8HI): Likewise.
6052 (CMPLE_U4SI): Likewise.
6053 (CMPLE_U2DI): Likewise.
6054 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6055 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
6056 ALTIVEC_BUILTIN_VEC_CMPLE.
6057 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
6058 floating-point vector modes.
6059 (vector_nlt<mode>): New define_expand.
6060 (vector_nltu<mode>): Likewise.
6061 (vector_ngt<mode>): Likewise.
6062 (vector_ngtu<mode>): Likewise.
6064 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
6066 PR rtl-optimization/66706
6067 * combine.c (make_compound_operation): If an AND of SUBREG of
6068 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
6070 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
6072 * tree-pass.h (make_pass_ch_vect): New.
6073 * passes.def: Add pass_ch_vect just before pass_if_conversion.
6075 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
6076 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
6077 make_pass_ch_vect): New.
6078 (pass_ch): Extend ch_base.
6080 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
6081 (ch_base::copy_headers): ...here.
6083 2015-07-02 Richard Biener <rguenther@suse.de>
6085 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
6086 * fold-const.c (get_pointer_modulus_and_residue): Remove.
6087 (fold_binary_loc): Implement (T)ptr & CST in terms of
6088 get_pointer_alignment_1.
6089 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
6090 Make sure to build the alignment test on a SSA name without
6091 final alignment info valid only after the prologue.
6093 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
6095 * config/cris/cris.md ("epilogue"): Remove condition.
6096 ("prologue"): Ditto.
6098 2015-07-02 Richard Biener <rguenther@suse.de>
6100 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
6101 parameter to record a condition that is false.
6102 (record_conditions): When recording an extra NE_EXPR that is
6103 true also record a EQ_EXPR that is false.
6105 2015-07-02 Bin Cheng <bin.cheng@arm.com>
6107 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
6108 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
6109 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
6110 (set_iv, find_interesting_uses_address, add_candidate_1): New
6111 argument to alloc_iv.
6112 (find_interesting_uses_op, find_interesting_uses_cond): Don't
6113 duplicate struct iv.
6114 (free_loop_data): Don't free struct iv explicitly.
6115 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
6117 2015-07-01 DJ Delorie <dj@redhat.com>
6119 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
6121 (SUPPORTS_DISCRIMINATOR): Define.
6123 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
6126 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
6127 there are no CALLs in the same pattern.
6129 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6131 PR rtl-optimization/61047
6132 * rtlanal.c (get_initial_register_offset): New function.
6133 (rtx_addr_can_trap_p_1): Check offsets of stack references.
6135 2015-07-01 Richard Biener <rguenther@suse.de>
6137 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
6138 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
6139 ~X CMP C -> X CMP' ~C to ...
6140 * match.pd: ... patterns here.
6142 2015-07-01 Nick Clifton <nickc@redhat.com>
6144 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
6145 a 16-bit value into a 20-bit memory slot.
6147 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6149 * doc/sourcebuild.texi (AArch64-specific attributes): Document
6150 "aarch64_tiny", "aarch64_small", "aarch64_large",
6151 "aarch64_little_endian", "aarch64_big_endian".
6153 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6155 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
6156 Document "aarch64_small_fpic".
6158 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6160 * configure.ac: Add check for aarch64 assembler -fpic relocation
6162 * configure: Regenerate.
6163 * config.in: Regenerate.
6164 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
6165 to -fPIC if not support of -fpic relocation modifier in assembler.
6167 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
6170 * rtl.c (classify_insn): Handle returns in PARALLELs.
6172 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
6175 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
6176 to true if the function is nested and if not optimizing.
6177 (convert_local_omp_clauses): Initialize need_frame to true if the
6178 function contains nested functions and if not optimizing.
6180 2015-07-01 Richard Biener <rguenther@suse.de>
6182 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
6183 (X & Y) ^ Y -> ~X & Y transforms to ...
6184 * match.pd: ... here.
6186 2015-07-01 Richard Biener <rguenther@suse.de>
6188 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
6189 of converts to avoid uninteresting noise from the conversion
6190 simplifying patterns.
6192 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
6194 * config/c6x/c6x.c (try_rename_operands): Do not depend on
6195 gcc_assert evaluating its argument for side-effect.
6197 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
6200 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
6203 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
6205 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
6206 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
6207 (hash_scc): Add this_ref_p and ref_p parameters and pass them
6208 to the inner DFS walk.
6210 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6212 * target-insns.def (jump): New targetm instruction pattern.
6213 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
6214 instead of gen_jump.
6215 (fix_up_crossing_landing_pad): Likewise.
6216 (add_labels_and_missing_jumps): Likewise.
6217 (fix_crossing_conditional_branches): Likewise.
6218 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6219 (force_nonfallthru_and_redirect): Likewise.
6220 * cse.c (cse_insn): Likewise.
6221 * expmed.c (expand_divmod): Likewise.
6222 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
6223 * haifa-sched.c (init_before_recovery): Likewise.
6224 (sched_create_recovery_edges): Likewise.
6225 * ifcvt.c (find_cond_trap): Likewise.
6226 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
6227 (expand_float, expand_fix): Likewise.
6228 * stmt.c (emit_jump): Likewise.
6230 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6232 * defaults.h (HAVE_load_multiple, gen_load_multiple)
6233 (HAVE_store_multiple, gen_store_multiple): Delete.
6234 * target-insns.def (load_multiple, store_multiple): New targetm
6235 instruction patterns.
6236 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
6237 of HAVE_*/gen_* interface.
6239 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6241 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
6242 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
6243 (gen_mem_signal_fence): Delete.
6244 * target-insns.def (mem_signal_fence, mem_thread_fence)
6245 (memory_barrier): New targetm instruction patterns.
6246 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
6248 (expand_mem_signal_fence): Likewise.
6250 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6252 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
6253 * target-insns.def (epilogue, prologue, sibcall_prologue): New
6254 targetm instruction patterns.
6255 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
6257 * calls.c (expand_call): Likewise.
6258 * cfgrtl.c (cfg_layout_finalize): Likewise.
6259 * df-scan.c (df_get_entry_block_def_set): Likewise.
6260 (df_get_exit_block_use_set): Likewise.
6261 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
6262 * final.c (final_start_function): Likewise.
6263 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6264 (reposition_prologue_and_epilogue_notes): Likewise.
6265 * reorg.c (find_end_label): Likewise.
6266 * toplev.c (process_options): Likewise.
6268 2015-06-30 David Malcolm <dmalcolm@redhat.com>
6270 * typed-splay-tree.h: New file.
6272 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
6275 * lra-int.h (lra_substitute_pseudo): Add a parameter.
6276 (lra_substitute_pseudo_within_insn): Ditto.
6277 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
6279 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
6280 to lra_substitute_pseudo.
6281 * lra-lives.c (process_bb_lives): Add an argument to
6282 lra_substitute_pseudo_within_insn call.
6283 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
6284 argument to lra_substitute_pseudo and
6285 lra_substitute_pseudo_within_insn calls.
6286 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
6288 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
6290 * configure: Regenerated.
6292 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
6294 * config.gcc: Support i[34567]86-*-elfiamcu target.
6295 * config/i386/iamcu.h: New.
6296 * config/i386/i386.opt: Add -miamcu.
6297 * doc/invoke.texi: Document -miamcu.
6298 * common/config/i386/i386-common.c (ix86_handle_option): Turn
6299 off x87/MMX/SSE/AVX codegen for -miamcu.
6300 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6301 __iamcu/__iamcu__ for -miamcu.
6302 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
6303 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
6304 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
6305 * config/i386/i386.c (ix86_option_override_internal): Ignore and
6306 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
6307 MCU by default. Default long double to 64-bit for Intel MCU.
6308 Turn on -freg-struct-return for Intel MCU. Issue an error when
6309 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
6311 (function_arg_advance_32): Pass value whose size is no larger
6312 than 8 bytes in registers for Intel MCU.
6313 (function_arg_32): Likewise.
6314 (ix86_return_in_memory): Return value whose size is no larger
6315 than 8 bytes in registers for Intel MCU.
6316 (iamcu_alignment): New function.
6317 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
6319 (ix86_local_alignment): Don't increase alignment for Intel MCU.
6320 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
6323 2015-06-30 Marek Polacek <polacek@redhat.com>
6325 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
6326 both operands of the resulting expression.
6328 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
6329 the final expression with the operand's type and then convert
6330 it to the type of the expression.
6332 2015-06-30 Richard Biener <rguenther@suse.de>
6334 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
6335 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
6336 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
6337 * match.pd: ... to patterns here.
6339 2015-06-30 Richard Biener <rguenther@suse.de>
6341 PR tree-optimization/66704
6342 * tree-vect-data-refs.c (vect_setup_realignment): Use
6343 make_ssa_name for non-SSA name source.
6345 2015-06-30 Jakub Jelinek <jakub@redhat.com>
6348 * omp-low.c (simd_clone_adjust): Handle addressable linear
6349 or uniform parameters or non-gimple type uniform parameters.
6351 2015-06-30 Richard Biener <rguenther@suse.de>
6353 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
6354 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
6355 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
6356 * match.pd: ... here.
6357 Add a few cases of A - B -> A + (-B) when B "easily" negates.
6358 Move (x & y) | x -> x and friends before
6359 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
6361 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
6363 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
6364 -mfix-ut699 is not specified.
6365 (leon3_load): Rename into...
6366 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
6369 2015-06-30 Marek Polacek <polacek@redhat.com>
6371 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
6372 * match.pd: ... here.
6374 2015-06-30 Richard Biener <rguenther@suse.de>
6376 * target-insns.def (canonicalize_funcptr_for_compare): Add.
6377 * fold-const.c (build_range_check): Replace uses of
6378 HAVE_canonicalize_funcptr_for_compare.
6379 (fold_widened_comparison): Likewise.
6380 (fold_sign_changed_comparison): Likewise.
6381 * dojump.c: Include "target.h".
6382 (do_compare_and_jump): Replace uses of
6383 HAVE_canonicalize_funcptr_for_compare and
6384 gen_canonicalize_funcptr_for_compare.
6385 * expr.c (do_store_flag): Likewise.
6387 2015-06-30 Tom de Vries <tom@codesourcery.com>
6389 PR tree-optimization/66652
6390 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
6391 max_loop_iterations to determine if nit + 1 overflows.
6393 2015-06-30 Richard Biener <rguenther@suse.de>
6395 * tree-vrp.c (register_edge_assert_for_2): Also register
6396 asserts for dominating conversion results.
6398 2015-06-30 Bin Cheng <bin.cheng@arm.com>
6400 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
6403 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
6406 * configure.ac: Fix filds and fildq test for 64-bit.
6407 * configure: Regenerated.
6409 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
6411 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
6412 (nvptx_reorg): Here. Keep the non-subreg pieces.
6414 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
6416 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
6417 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
6419 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
6421 * config/i386/i386.md (*jcc_1): Use %! in asm template.
6422 Set attribute "length_nobnd" instead of "length".
6425 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
6427 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
6429 * config/nios2/nios2.c (nios2_delegitimize_address): Make
6430 assert less restrictive.
6432 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6435 * cgraphunit.c (cgraph_node::finalize_function): Do not call
6436 do_warn_unused_parameter.
6437 * function.c (do_warn_unused_parameter): Move from here.
6438 * function.h (do_warn_unused_parameter): Do not declare.
6440 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6443 * gcc.target/arm/armv-sync-comp-swap.c: New.
6444 * gcc.target/arm/armv-sync-op-acquire.c: New.
6445 * gcc.target/arm/armv-sync-op-full.c: New.
6446 * gcc.target/arm/armv-sync-op-release.c: New.
6448 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6451 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
6452 initial acquire barrier with final barrier.
6454 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6457 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
6458 initial acquire barrier with final barrier.
6460 2015-06-29 Richard Henderson <rth@redhat.com>
6462 * config/i386/constraints.md (Bf): New constraint.
6463 * config/i386/i386-c.c (ix86_target_macros): Define
6464 __GCC_ASM_FLAG_OUTPUTS__.
6465 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
6467 * doc/extend.texi (FlagOutputOperands): Document them.
6469 2015-06-29 Jiong Wang <jiong.wang@arm.com>
6471 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
6472 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
6474 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
6475 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
6476 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
6477 (aarch64_symbol_context): Ditto.
6478 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
6479 and use new pattern name.
6480 (aarch64_expand_mov_immediate): Ditto.
6481 (aarch64_print_operand): Ditto.
6482 (aarch64_classify_tls_symbol): Ditto.
6484 2015-06-29 Marek Polacek <polacek@redhat.com>
6485 Marc Glisse <marc.glisse@inria.fr>
6487 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
6488 * match.pd: ... pattern here.
6490 2015-06-29 Tom de Vries <tom@codesourcery.com>
6492 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
6495 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6497 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
6498 feature description, split out the native option, add a link to
6499 the feature documentation, rearrange and slightly rewrite text.
6500 (Aarch64 options, -mcpu): Likewise.
6501 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
6502 +rdma implies Adv. SIMD.
6504 2015-06-29 Marek Polacek <polacek@redhat.com>
6507 * function.c (stack_protect_epilogue): Remove a cast to int.
6508 * doc/invoke.texi: Update -Wswitch-bool description.
6510 2015-06-29 Richard Biener <rguenther@suse.de>
6512 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
6513 * fold-const.c (fold_binary_loc): Move &A - &B simplification
6514 via ptr_difference_const ...
6515 * match.pd: ... here.
6516 When matching (X ^ Y) == Y also match with swapped operands.
6518 2015-06-29 Richard Biener <rguenther@suse.de>
6520 * lto-streamer.h (LTO_major_version): Bump to 5.
6522 2015-06-29 Richard Biener <rguenther@suse.de>
6524 PR tree-optimization/66677
6525 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
6526 STMT_VINFO_VEC_STMT clobbering less strict.
6528 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
6531 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
6532 division, compute max and min when value ranges for dividend and
6533 divisor are available.
6535 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
6536 Sandra Loosemore <sandra@codesourcery.com>
6538 * regrename.h (regrename_do_replace): Change to return bool.
6539 * regrename.c (rename_chains): Check return value of
6541 (regrename_do_replace): Re-validate the modified insns and
6543 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
6544 Update to match rename_chains changes.
6545 * config/c6x/c6x.c (try_rename_operands): Assert that
6546 regrename_do_replace returns true.
6548 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
6550 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
6551 operand 2 here. Use copy_addr_to_reg to copy non-index
6552 register operand 2 to a temporary.
6553 (<mode>_stx): Ditto for operand 1.
6554 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
6555 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
6556 (ix86_store_bounds): Ditto.
6558 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
6560 * print-tree.c (print_node) [TREE_VEC]: Print its length.
6562 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
6564 * gimple.c (gimple_call_set_fndecl): Remove.
6565 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
6566 build1_loc directly instead of build_fold_addr_expr_loc.
6568 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
6570 * hash-map.h (hash_map::traverse): Use the definition of the
6571 Key typedef rather than the typedef itself.
6573 2015-06-26 Martin Jambor <mjambor@suse.cz>
6576 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
6577 NULL instead of calling dump_enabled_p.
6579 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6581 * config/aarch64/aarch64.opt: (override): New.
6582 * doc/invoke.texi (override): Document.
6583 * config/aarch64/aarch64.c (aarch64_flag_desc): New
6584 (aarch64_fusible_pairs): Likewise.
6585 (aarch64_tuning_flags): Likewise.
6586 (aarch64_tuning_override_function): Likewise.
6587 (aarch64_tuning_override_functions): Likewise.
6588 (aarch64_parse_one_option_token): Likewise.
6589 (aarch64_parse_boolean_options): Likewise.
6590 (aarch64_parse_fuse_string): Likewise.
6591 (aarch64_parse_tune_string): Likewise.
6592 (aarch64_parse_one_override_token): Likewise.
6593 (aarch64_parse_override_string): Likewise.
6594 (aarch64_override_options): Parse the -override string if it
6597 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6599 * config/aarch64/aarch64-protos.h (tune_params): Remove
6601 (aarch64_tune_params): Remove const, change to no longer be
6603 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
6604 change to no longer be a pointer, initialize to generic_tunings.
6605 (aarch64_min_divisions_for_recip_mul): Change dereference of
6606 aarch64_tune_params to member access.
6607 (aarch64_reassociation_width): Likewise.
6608 (aarch64_rtx_mult_cost): Likewise.
6609 (aarch64_address_cost): Likewise.
6610 (aarch64_branch_cost): Likewise.
6611 (aarch64_rtx_costs): Likewise.
6612 (aarch64_register_move_cost): Likewise.
6613 (aarch64_memory_move_cost): Likewise.
6614 (aarch64_sched_issue_rate): Likewise.
6615 (aarch64_builtin_vectorization_cost): Likewise.
6616 (aarch64_override_options): Take a copy of the selected tuning
6617 struct in to aarch64_tune_params, rather than just setting
6618 a pointer, change dereferences of aarch64_tune_params to member
6620 (aarch64_override_options_after_change): Change dereferences of
6621 aarch64_tune_params to member access.
6622 (aarch64_macro_fusion_p): Likewise.
6623 (aarch_macro_fusion_pair_p): Likewise.
6624 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
6626 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6628 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
6629 (aarch64_tune_flags): Likewise.
6630 (AARCH64_TUNE_FMA_STEERING): Likewise.
6631 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
6632 to AARCH64_FL_USE_FMA_STEERING_PASS.
6633 (cortex-a57.cortex-a53): Likewise.
6634 (cortex-a72): Use cortexa72_tunings.
6635 (cortex-a72.cortex-a53): Likewise.
6636 (exynos-m1): Likewise.
6637 * config/aarch64/aarch64-protos.h (tune_params): Add
6638 a field: extra_tuning_flags.
6639 * config/aarch64/aarch64-tuning-flags.def: New.
6640 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
6641 (aarch64_extra_tuning_flags): Likewise.
6642 (aarch64_tune_params): Declare here.
6643 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
6644 (cortexa53_tunings): Likewise.
6645 (cortexa57_tunings): Likewise.
6646 (thunderx_tunings): Likewise.
6647 (xgene1_tunings): Likewise.
6648 (cortexa72_tunings): New.
6649 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
6650 (gate): Check against aarch64_tune_params.
6651 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
6654 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6656 * config/aarch64/aarch64-fusion-pairs.def: New.
6657 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
6658 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
6659 aarch64_fusion_pairs.
6660 (AARCH64_FUSE_MOV_MOVK): Likewise.
6661 (AARCH64_FUSE_ADRP_ADD): Likewise.
6662 (AARCH64_FUSE_MOVK_MOVK): Likewise.
6663 (AARCH64_FUSE_ADRP_LDR): Likewise.
6664 (AARCH64_FUSE_CMP_BRANCH): Likewise.
6666 2015-06-26 Jiong Wang <jiong.wang@arm.com>
6668 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
6669 SYMBOL_SMALL_GOT_28K.
6670 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
6671 relocation modifiers.
6672 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
6673 (ldr_got_small_28k_<mode>): New.
6674 (ldr_got_small_28k_sidi): New.
6675 * config/aarch64/iterators.md (got_modifier): New mode iterator.
6676 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
6677 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
6678 SYMBOL_SMALL_GOT_28K.
6679 (aarch64_rtx_costs): Add costs for new instruction sequences.
6680 (initialize_aarch64_code_model): Initialize new model.
6681 (aarch64_classify_symbol): Recognize new model and new symbol classification.
6682 (aarch64_asm_preferred_eh_data_format): Support new model.
6683 (aarch64_load_symref_appropriately): Generate new instruction
6684 sequences for -fpic.
6685 (TARGET_USE_PSEUDO_PIC_REG): New definition.
6686 (aarch64_use_pseudo_pic_reg): New function.
6688 2015-06-26 Jiong Wang <jiong.wang@arm.com>
6690 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
6691 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
6692 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
6693 (aarch64_expand_mov_immediate): Ditto.
6694 (aarch64_print_operand): Ditto.
6695 (aarch64_classify_symbol): Ditto.
6697 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
6699 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
6701 2015-06-26 Bin Cheng <bin.cheng@arm.com>
6704 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
6705 assertion failed. Remove assertion itself.
6707 2015-06-26 Richard Biener <rguenther@suse.de>
6709 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
6710 and -A CMP CST -> A CMP -CST which is redundant with a pattern
6712 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
6713 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
6714 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
6715 * match.pd: ... patterns here.
6717 2015-06-26 Marek Polacek <polacek@redhat.com>
6719 * match.pd ((x | y) & ~(x & y) -> x ^ y,
6720 (x | y) & (~x ^ y) -> x & y): New patterns.
6722 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
6724 * rtl.h (emit): Add an optional boolean parameter to control
6725 whether barriers are emitted.
6726 * emit-rtl.c (emit): Likewise.
6727 * gensupport.c (get_emit_function): Return null rather than "emit".
6728 * genemit.c (gen_emit_seq): Handle the null return value.
6729 Don't emit barriers after the final instruction in the sequence.
6730 * gentarget-def.c (main): Don't emit barriers after the instruction.
6732 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6734 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
6737 2015-06-26 Richard Biener <rguenther@suse.de>
6739 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
6741 2015-06-26 Richard Biener <rguenther@suse.de>
6743 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
6744 irrespective on whether the inner operation has a single use
6745 of both off are constant.
6747 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
6748 Segher Boessenkool <segher@kernel.crashing.org>
6751 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
6752 before doing PUT_MODE or PUT_CODE on operands to avoid
6753 in-place RTX modification.
6755 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
6757 * gentarget-def.c (def_target_insn): Cast return of strtol to
6760 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
6762 * gimple.h (gimple_call_set_fn): Move inline function.
6763 * gimple.c (gimple_call_set_fn): Relocate here.
6765 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
6769 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
6770 the replacement insn will work.
6772 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
6774 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
6777 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
6779 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
6780 * cgraph.h: Include ipa-ref.h and plugin-api.h.
6781 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
6782 (symtab_node::address_can_be_compared_p): Move function.
6783 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
6785 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
6786 * auto-profile.c: Likewise.
6787 * bb-reorder.c: Likewise.
6788 * builtins.c: Likewise.
6789 * calls.c: Likewise.
6790 * cfgexpand.c: Likewise.
6791 * cgraphbuild.c: Likewise.
6792 * cgraphclones.c: Likewise.
6793 * cgraphunit.c: Likewise.
6794 * combine.c: Likewise.
6795 * coverage.c: Likewise.
6796 * data-streamer-in.c: Likewise.
6797 * data-streamer-out.c: Likewise.
6798 * data-streamer.c: Likewise.
6799 * dbxout.c: Likewise.
6800 * dwarf2out.c: Likewise.
6801 * except.c: Likewise.
6803 * final.c: Likewise.
6804 * fold-const.c: Likewise.
6805 * ggc-page.c: Likewise.
6806 * gimple-fold.c: Likewise.
6807 * gimple-iterator.c: Likewise.
6808 * gimple-pretty-print.c: Likewise.
6809 * gimple-streamer-in.c: Likewise.
6810 * gimple-streamer-out.c: Likewise.
6811 * gimple.c: Likewise.
6812 * gimplify.c: Likewise.
6813 * ipa-chkp.c: Likewise.
6814 * ipa-comdats.c: Likewise.
6815 * ipa-cp.c: Likewise.
6816 * ipa-devirt.c: Likewise.
6817 * ipa-icf-gimple.c: Likewise.
6818 * ipa-icf.c: Likewise.
6819 * ipa-inline-analysis.c: Likewise.
6820 * ipa-inline-transform.c: Likewise.
6821 * ipa-inline.c: Likewise.
6822 * ipa-polymorphic-call.c: Likewise.
6823 * ipa-profile.c: Likewise.
6824 * ipa-prop.c: Likewise.
6825 * ipa-pure-const.c: Likewise.
6826 * ipa-ref.c: Likewise.
6827 * ipa-reference.c: Likewise.
6828 * ipa-split.c: Likewise.
6829 * ipa-utils.c: Likewise.
6830 * ipa-visibility.c: Likewise.
6832 * langhooks.c: Likewise.
6833 * lto-cgraph.c: Likewise.
6834 * lto-compress.c: Likewise.
6835 * lto-opts.c: Likewise.
6836 * lto-section-in.c: Likewise.
6837 * lto-section-out.c: Likewise.
6838 * lto-streamer-in.c: Likewise.
6839 * lto-streamer-out.c: Likewise.
6840 * lto-streamer.c: Likewise.
6841 * omp-low.c: Likewise.
6842 * opts-global.c: Likewise.
6843 * passes.c: Likewise.
6844 * predict.c: Likewise.
6845 * print-tree.c: Likewise.
6846 * profile.c: Likewise.
6848 * sanopt.c: Likewise.
6849 * stor-layout.c: Likewise.
6850 * symtab.c: Likewise.
6851 * toplev.c: Likewise.
6852 * trans-mem.c: Likewise.
6853 * tree-cfg.c: Likewise.
6854 * tree-chkp.c: Likewise.
6855 * tree-eh.c: Likewise.
6856 * tree-emutls.c: Likewise.
6857 * tree-inline.c: Likewise.
6858 * tree-nested.c: Likewise.
6859 * tree-parloops.c: Likewise.
6860 * tree-pretty-print.c: Likewise.
6861 * tree-profile.c: Likewise.
6862 * tree-sra.c: Likewise.
6863 * tree-ssa-alias.c: Likewise.
6864 * tree-ssa-live.c: Likewise.
6865 * tree-ssa-loop-ivcanon.c: Likewise.
6866 * tree-ssa-loop-ivopts.c: Likewise.
6867 * tree-ssa-pre.c: Likewise.
6868 * tree-ssa-sccvn.c: Likewise.
6869 * tree-ssa-strlen.c: Likewise.
6870 * tree-ssa-structalias.c: Likewise.
6871 * tree-streamer-in.c: Likewise.
6872 * tree-streamer-out.c: Likewise.
6873 * tree-streamer.c: Likewise.
6874 * tree-switch-conversion.c: Likewise.
6875 * tree-tailcall.c: Likewise.
6876 * tree-vect-data-refs.c: Likewise.
6877 * tree-vect-stmts.c: Likewise.
6878 * tree-vectorizer.c: Likewise.
6881 * ubsan.c: Likewise.
6882 * value-prof.c: Likewise.
6883 * varasm.c: Likewise.
6884 * varpool.c: Likewise.
6885 * config/arm/arm.c: Likewise.
6886 * config/bfin/bfin.c: Likewise.
6887 * config/c6x/c6x.c: Likewise.
6888 * config/cris/cris.c: Likewise.
6889 * config/darwin-c.c: Likewise.
6890 * config/darwin.c: Likewise.
6891 * config/i386/i386.c: Likewise.
6892 * config/i386/winnt.c: Likewise.
6893 * config/microblaze/microblaze.c: Likewise.
6894 * config/mips/mips.c: Likewise.
6895 * config/rs6000/rs6000.c: Likewise.
6896 * config/rx/rx.c: Likewise.
6897 * config/s390/s390.c: Likewise.
6898 * config/tilegx/mul-tables.c: Likewise.
6900 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6902 * config/aarch64/aarch64.c, config/alpha/alpha.c,
6903 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
6904 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
6905 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
6906 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
6907 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6908 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
6909 config/microblaze/microblaze.c, config/mips/mips.c,
6910 config/mmix/mmix.c, config/mn10300/mn10300.c,
6911 config/moxie/moxie.c, config/msp430/msp430.c,
6912 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
6913 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
6914 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
6915 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
6916 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6917 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6918 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
6919 target-def.h include.
6920 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
6922 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6924 * Makefile.in (TARGET_DEF): Add target-insns.def.
6925 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
6926 (build/gentarget-def.o): New rule.
6927 (genprogrtl): Add target-def.
6928 * target-insns.def, gentarget-def.c: New files.
6929 * target.def: Add targetm.have_* and targetm.gen_* hooks,
6930 based on the contents of target-insns.def.
6931 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
6932 (HAVE_return, gen_return): Delete.
6933 * target-def.h: Include insn-target-def.h.
6934 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
6935 instead of direct calls. Rely on them to do the appropriate assertions.
6936 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
6937 (convert_jumps_to_returns): Use targetm interface instead of
6939 (thread_prologue_and_epilogue_insns): Likewise.
6940 * reorg.c (find_end_label, dbr_schedule): Likewise.
6941 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
6942 * shrink-wrap.c (convert_to_simple_return): Likewise.
6943 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
6945 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6947 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
6948 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6949 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
6950 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
6951 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
6952 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6953 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
6954 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
6955 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
6956 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
6957 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
6958 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
6959 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
6960 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6961 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6962 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
6965 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6967 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
6968 (unbounded_int_hashmap_traits::key_type): Likewise.
6969 * hash-map.h (hash_map): Get the key type from the traits.
6970 * hash-traits.h (default_hash_traits): By default, inherit from the
6972 * alias.c (alias_set_traits): Delete.
6973 (alias_set_entry_d::children): Use alias_set_hash as the first
6975 (record_alias_subset): Update accordingly.
6976 * except.c (tree_hash_traits): Delete.
6977 (type_to_runtime_map): Use tree_hash as the first template parameter.
6978 (init_eh): Update accordingly.
6979 * genmatch.c (capture_id_map_hasher): Delete.
6980 (cid_map_t): Use nofree_string_hash as first template parameter.
6981 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
6982 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
6983 Use symbol_compare_hash as the first template parameter in
6985 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
6986 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
6988 * passes.c (pass_registry_hasher): Delete.
6989 (name_to_pass_map): Use nofree_string_hash as the first template
6991 (register_pass_name): Update accordingly.
6992 * sanopt.c (sanopt_tree_map_traits): Delete.
6993 (sanopt_tree_triplet_map_traits): Delete.
6994 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
6996 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
6997 the first template parameter.
6998 * sese.c (rename_map_hasher): Delete.
6999 (rename_map_type): Use tree_ssa_name_hash as the first template
7001 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
7002 (function_summary::m_map): Use map_hash as the first template
7004 (function_summary::release): Update accordingly.
7005 * tree-if-conv.c (phi_args_hash_traits): Delete.
7006 (predicate_scalar_phi): Use tree_operand_hash as the first template
7007 parameter to phi_arg_map.
7008 * tree-inline.h (dependence_hasher): Delete.
7009 (copy_body_data::dependence_map): Use dependence_hash as the first
7011 * tree-inline.c (remap_dependence_clique): Update accordingly.
7012 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
7013 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
7015 (addr_stridxptr): Update accordingly.
7016 * value-prof.c (profile_id_traits): Delete.
7017 (cgraph_node_map): Use profile_id_hash as the first template
7019 (init_node_map): Update accordingly.
7020 * config/alpha/alpha.c (string_traits): Delete.
7021 (machine_function::links): Use nofree_string_hash as the first
7023 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
7024 * config/m32c/m32c.c (pragma_traits): Delete.
7025 (pragma_htab): Use nofree_string_hash as the first template parameter.
7026 (m32c_note_pragma_address): Update accordingly.
7027 * config/mep/mep.c (pragma_traits): Delete.
7028 (pragma_htab): Use nofree_string_hash as the first template parameter.
7029 (mep_note_pragma_flag): Update accordingly.
7030 * config/mips/mips.c (mips16_flip_traits): Delete.
7031 (mflip_mips16_htab): Use nofree_string_hash as the first template
7033 (mflip_mips16_use_mips16_p): Update accordingly.
7034 (local_alias_traits): Delete.
7035 (mips16_local_aliases): Use nofree_string_hash as the first template
7037 (mips16_local_alias): Update accordingly.
7039 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7041 * hash-map-traits.h (default_hashmap_traits): Delete.
7043 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7045 * hash-map-traits.h (unbounded_hashmap_traits): New class.
7046 (unbounded_int_hashmap_traits): Likewise.
7047 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
7049 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7051 * ipa-icf.h (symbol_compare_hash): New class.
7052 (symbol_compare_hashmap_traits): Use it.
7053 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
7054 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
7055 (mem_alloc_description::reverse_mem_map_t): Remove redundant
7056 default_hashmap_traits.
7057 * sanopt.c (sanopt_tree_triplet_hash): New class.
7058 (sanopt_tree_triplet_map_traits): Use it.
7060 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7062 * gengtype-parse.c (require_template_declaration): Allow '+' in
7063 template parameters. Consolidate cases.
7064 * hash-traits.h (int_hash): New class.
7065 * alias.c (alias_set_hash): New structure.
7066 (alias_set_traits): Use it.
7067 * symbol-summary.h (function_summary::map_hash): New class.
7068 (function_summary::summary_hashmap_traits): Use it.
7069 * tree-inline.h (dependence_hash): New class.
7070 (dependence_hasher): Use it.
7071 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
7072 * value-prof.c (profile_id_hash): New class.
7073 (profile_id_traits): Use it.
7075 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7077 * config/mips/mips.c (mips16_flip_traits): Use it.
7078 (local_alias_traits, mips16_local_aliases): Convert from a map of
7079 rtxes to a map of symbol names.
7080 (mips16_local_alias): Update accordingly.
7082 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7084 * hash-traits.h (string_hash, nofree_string_hash): New classes.
7085 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
7086 * passes.c (pass_registry_hasher): Likewise.
7087 * config/alpha/alpha.c (string_traits): Likewise.
7088 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
7089 * config/m32c/m32c.c (pragma_traits): Likewise.
7090 * config/mep/mep.c (pragma_traits): Likewise.
7092 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7094 * tree-hash-traits.h (tree_hash): New class.
7095 * except.c: Include tree-hash-traits.h.
7096 (tree_hash_traits): Use tree_hash.
7098 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7100 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
7101 * sese.c: Include tree-hash-traits.h.
7102 (rename_map_hasher): Use tree_ssa_name_hasher.
7104 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7106 * tree-hash-traits.h (tree_decl_hash): New class.
7107 * tree-ssa-strlen.c: Include tree-hash-traits.h.
7108 (stridxlist_hash_traits): Use tree_decl_hash.
7110 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7112 * tree-hash-traits.h: New file.
7113 (tree_operand_hash): New class.
7114 * sanopt.c: Include tree-hash-traits.h.
7115 (sanopt_tree_map_traits): Use tree_operand_hash.
7116 * tree-if-conv.c: Include tree-hash-traits.h.
7117 (phi_args_hash_traits): Use tree_operand_hash.
7118 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
7119 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
7121 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7123 * hash-map-traits.h: Include hash-traits.h.
7124 (simple_hashmap_traits): New class.
7125 * mem-stats.h (hash_map): Change the default traits to
7126 simple_hashmap_traits<default_hash_traits<Key> >.
7128 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7130 * hash-table.h: Update comments.
7132 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7134 * hash-traits.h (default_hash_traits): New structure.
7135 * hash-set.h (default_hashset_traits): Delete.
7136 (hash_set): Use default_hash_traits<Key> instead of
7137 default_hashset_traits. Delete hash_entry type and use Key directly.
7138 * ipa-devirt.c (pair_traits): Delete.
7139 (default_hash_traits <type_pair>): Override.
7140 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
7141 (odr_types_equivalent_p, add_type_duplicate): Likewise.
7143 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7145 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
7147 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7149 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
7150 (has_is_empty, is_empty_helper): Delete.
7151 (has_mark_deleted, mark_deleted_helper): Delete.
7152 (has_mark_empty, mark_empty_helper): Delete.
7153 (hash_table::is_deleted): Call the Descriptor unconditionally.
7154 (hash_table::is_empty): Likewise.
7155 (hash_table::mark_deleted): Likewise.
7156 (hash_table::mark_empty): Likewise.
7158 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7160 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
7161 redundant typedefs and members.
7162 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
7164 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
7165 * ipa-devirt.c (odr_name_hasher): Likewise.
7166 (polymorphic_call_target_hasher): Likewise.
7167 * ira-costs.c (cost_classes_hasher): Likewise.
7168 * statistics.c (stats_counter_hasher): Likewise.
7169 * trans-mem.c (log_entry_hasher): Likewise.
7170 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
7171 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
7172 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
7173 * var-tracking.c (variable_hasher): Likewise.
7174 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
7175 Remove redundant typedefs and members.
7177 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7179 * hash-traits.h (ggc_cache_hasher): Rename to...
7180 (ggc_cache_remove): ...this and remove typedefs.
7181 (ggc_cache_ptr_hash): New class.
7182 * hash-table.h: Update commentary.
7183 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
7184 rather than ggc_cache_hasher.
7185 (const_wide_int_hasher, reg_attr_hasher): Likewise.
7186 (const_double_hasher, const_fixed_hasher): Likewise.
7187 * function.c (insn_cache_hasher): Likewise.
7188 * trans-mem.c (tm_wrapper_hasher): Likewise.
7189 * tree.h (tree_decl_map_cache_hasher): Likewise.
7190 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
7191 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
7192 * ubsan.c (tree_type_map_cache_hasher): Likewise.
7193 * varasm.c (tm_clone_hasher): Likewise.
7194 * config/i386/i386.c (dllimport_hasher): Likewise.
7195 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
7196 (tree_hasher): Likewise.
7198 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7200 * hash-traits.h (ggc_hasher): Rename to...
7201 (ggc_remover): ...this and remove typedefs.
7202 (ggc_cache_hasher): Update accordingly. Add typedefs.
7203 (ggc_ptr_hash): New class.
7204 * hash-table.h: Update comment.
7205 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
7207 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
7208 (tree_descriptor_hasher): Likewise.
7209 * cgraph.c (function_version_hasher): Likewise.
7210 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
7211 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
7212 (dw_loc_list_hasher, addr_hasher): Likewise.
7213 * function.h (used_type_hasher): Likewise.
7214 * function.c (temp_address_hasher): Likewise.
7215 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
7216 * libfuncs.h (libfunc_hasher): Likewise.
7217 * lto-streamer.h (decl_state_hasher): Likewise.
7218 * optabs.c (libfunc_decl_hasher): Likewise.
7219 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
7220 * varasm.c (section_hasher, object_block_hasher): Likewise.
7221 (const_rtx_desc_hasher): Likewise.
7222 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
7223 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
7225 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7227 * hash-traits.h (free_ptr_hash): New class.
7228 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
7229 rather than typed_free_remove. Remove redudant typedefs.
7230 (external_ref_hasher): Likewise.
7231 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
7232 (ehspec_hasher): Likewise.
7233 * ggc-common.c (saving_hasher): Likewise.
7234 * gimplify.c (gimplify_hasher): Likewise.
7235 * haifa-sched.c (delay_i2_hasher): Likewise.
7236 * loop-invariant.c (invariant_expr_hasher): Likewise.
7237 * loop-iv.c (biv_entry_hasher): Likewise.
7238 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
7239 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
7240 * tree-cfg.c (locus_discrim_hasher): Likewise.
7241 * tree-eh.c (finally_tree_hasher): Likewise.
7242 * tree-into-ssa.c (var_info_hasher): Likewise.
7243 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
7244 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
7245 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
7246 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
7247 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
7248 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
7249 (shared_bitmap_hasher): Likewise.
7250 * tree-ssa-threadupdate.c (redirection_data): Likewise.
7251 * tree-vectorizer.h (peel_info_hasher): Likewise.
7252 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
7253 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
7255 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7257 * hash-table.h: Update comments.
7258 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
7259 (nofree_ptr_hash): New class.
7260 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
7261 than typed_noop_remove. Remove redudant typedefs.
7262 * attribs.c (attribute_hasher): Likewise.
7263 * cfg.c (bb_copy_hasher): Likewise.
7264 * cselib.c (cselib_hasher): Likewise.
7265 * dse.c (invariant_group_base_hasher): Likewise.
7266 * dwarf2cfi.c (trace_info_hasher): Likewise.
7267 * dwarf2out.c (macinfo_entry_hasher): Likewise.
7268 (comdat_type_hasher, loc_list_hasher): Likewise.
7269 * gcse.c (pre_ldst_expr_hasher): Likewise.
7270 * genmatch.c (id_base): Likewise.
7271 * genrecog.c (test_pattern_hasher): Likewise.
7272 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
7273 * haifa-sched.c (delay_i1_hasher): Likewise.
7274 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
7275 * ipa-icf.h (congruence_class_group_hash): Likewise.
7276 * ipa-profile.c (histogram_hash): Likewise.
7277 * ira-color.c (allocno_hard_regs_hasher): Likewise.
7278 * lto-streamer.h (string_slot_hasher): Likewise.
7279 * lto-streamer.c (tree_entry_hasher): Likewise.
7280 * plugin.c (event_hasher): Likewise.
7281 * postreload-gcse.c (expr_hasher): Likewise.
7282 * store-motion.c (st_expr_hasher): Likewise.
7283 * tree-sra.c (uid_decl_hasher): Likewise.
7284 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
7285 (ssa_name_var_hash): Likewise.
7286 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
7287 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
7288 * tree-ssa-pre.c (pre_expr_d): Likewise.
7289 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
7290 * vtable-verify.h (registration_hasher): Likewise.
7291 * vtable-verify.c (vtbl_map_hasher): Likewise.
7292 * config/arm/arm.c (libcall_hasher): Likewise.
7293 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
7294 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
7295 * config/sol2.c (comdat_entry_hasher): Likewise.
7296 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
7297 (print_fold_checksum, fold_checksum_tree): Likewise.
7298 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
7299 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
7300 (fold_build_call_array_loc): Likewise.
7301 * tree-ssa-ccp.c (gimple_htab): Likewise.
7302 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
7303 rather than pointer_type.
7305 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7307 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
7308 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
7310 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7312 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
7313 (ggc_hasher::ggc_mx): Likewise.
7314 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
7315 that duplicate ggc_hasher ones.
7317 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7319 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
7320 (gt_cleare_cache): Check here for deleted and empty entries.
7321 Replace handle_cache_entry with a call to keep_cache_entry.
7322 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
7323 (ggc_cache_hasher::keep_cache_entry): New function.
7324 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
7325 (tm_wrapper_hasher::keep_cache_entry): New function.
7326 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
7327 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
7328 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
7329 (type_cache_hasher::keep_cache_entry): New function.
7330 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
7331 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
7332 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
7333 (tree_type_map_cache_hasher::keep_cache_entry): New function.
7334 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
7335 (tm_clone_hasher::keep_cache_entry): New function.
7336 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
7337 (dllimport_hasher::keep_cache_entry): New function.
7339 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7341 * hash-table.h: Include hash-traits.h.
7342 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
7343 (ggc_cache_hasher): Move to...
7344 * hash-traits.h: ...this new file.
7346 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7348 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
7349 struct cl_optimization.
7350 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
7351 * tree.c (make_node_stat): Allocate cl_optimization struct.
7352 (copy_node_stat): Allocate and copy cl_optimization struct.
7354 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7356 * function.h (struct incoming_args): Move struct.
7357 (pass_by_reference, reference_callee_copied): Remove prototypes.
7358 * emit-rtl.h (struct incoming_args): Relocate struct here.
7359 * calls.h (pass_by_reference, reference_callee_copied): Relocate
7361 * function.c (pass_by_reference, reference_callee_copied): Move.
7362 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
7363 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
7364 * ipa-chkp.c: Include calls.h.
7366 2015-06-25 Andrew Macleod <amacleod@redhat.com>
7368 * alias.h (alias_set_type): Move typedef.
7369 * coretypes.h (alias_set_type): Relocate typedef here.
7370 * rtl.h: Don't include alias.h.
7372 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7374 * cgraph.h (cgraph_rtl_info): Move to rtl.h
7375 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
7377 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
7378 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
7380 * calls.c: Include hard-reg-set.h before rtl.h.
7383 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7384 Vladimir Makarov <vmakarov@redhat.com>
7386 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
7389 2015-06-25 Richard Biener <rguenther@suse.de>
7391 * fold-const.c (fold_binary_loc): Move simplification of
7392 (X <<>> C1) & C2 ...
7393 * match.pd: ... here.
7395 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
7397 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
7399 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7401 * match.pd: Add patterns for vec_conds between 1 and 0.
7403 2015-06-25 Richard Biener <rguenther@suse.de>
7405 * tree-vect-stmts.c (vectorizable_conversion): Do not set
7406 STMT_VINFO_VEC_STMT for SLP.
7407 (vectorizable_store): Likewise.
7408 (vectorizable_load): Likewise.
7409 (vect_transform_stmt): Catch SLP vectorization clobbering
7410 STMT_VINFO_VEC_STMT.
7412 2015-06-25 Richard Biener <rguenther@suse.de>
7414 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
7416 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
7417 cleanup resulting dead code and parameters.
7418 (vect_transform_slp_perm_load): Adjust.
7420 2015-06-25 Nick Clifton <nickc@redhat.com>
7422 * config/bfin/bfin.c (bfin_expand_prologue): Set
7423 current_function_static_stack_size if flag_stack_usage_info is set.
7424 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
7425 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
7426 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7427 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
7429 2015-06-25 Tom de Vries <tom@codesourcery.com>
7431 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
7432 comment that the generated IV is unsigned.
7434 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7437 * config/arm/arm.c (arm_dbx_register_number): Return
7438 DWARF_FRAME_REGISTERS by default.
7440 2015-06-25 Tom de Vries <tom@codesourcery.com>
7442 * dominance.c (calculate_dominance_info): Fix verify_dominators call
7443 argument. Call verify_dominator when reusing dominator info.
7445 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
7448 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
7449 an additional element of the unspec vector. Modify indices
7451 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
7452 * config/sh/sh.c (prepare_move_operands): Pass incremented
7453 const_int to gen_GOTaddr2picreg.
7454 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
7456 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7458 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
7459 Condition on TARGET_FLOAT.
7461 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7463 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
7466 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7468 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
7470 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
7471 aarch64_err_no_fpadvsimd.
7473 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
7474 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
7475 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
7476 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
7477 Turn error into assert, test TARGET_FLOAT.
7478 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
7481 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
7484 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
7486 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
7488 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
7490 2015-06-24 Renlin Li <renlin.li@arm.com>
7492 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
7493 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
7495 2015-06-24 Richard Biener <rguenther@suse.de>
7497 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
7499 (lower_opt_convert): Support lowering of conditional view_convert.
7500 (parser::parse_operation): Likewise.
7501 (parser::parse_for): Likewise.
7503 2015-06-24 Renlin Li <renlin.li@arm.com>
7505 * varasm.c (emit_local): Use unsigned int for align variable.
7507 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7510 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
7511 for negative numbers.
7513 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7515 PR rtl-optimization/66306
7516 * reload.c (find_reloads): Swap the match_dup info for
7517 commutative operands.
7519 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7521 * config/s390/vx-builtins.md
7522 ("vec_scatter_element<mode>_<non_vec_int>")
7523 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
7524 attribute with bhfgq.
7526 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7528 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
7530 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7532 * config/s390/s390-builtin-types.def: Add flag to indicate the
7533 options under which the function type is needed.
7534 * config/s390/s390-builtins.def: Add flag to indicate the options
7535 under which the builtin is enabled.
7536 * config/s390/s390-builtins.h: Add flags parameter to macro
7538 (bflags_for_builtin): New function.
7539 (flags_for_builtin): Renamed to ...
7540 (opflags_for_builtin): ... this.
7541 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
7542 flags_for_builtin to bflags_for_builtin and
7543 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
7544 * config/s390/s390.c: Add initialization of bflags_builtin and
7545 opflags_builtin arrays.
7546 Remove code for flags_builtin.
7547 (s390_init_builtins): Only create builtin function types if one of
7548 their flags is active.
7549 Only create builtins if all of their flags are active.
7550 (s390_expand_builtin): Rename flags_for_builtin to
7551 opflags_for_builtin.
7553 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7555 * config/s390/vecintrin.h: Remove internal builtins.
7557 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7559 * config/s390/s390.c (s390_secondary_reload): Fix check for
7560 GENERAL_REGS register class.
7562 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7564 * config/s390/s390.c (s390_support_vector_misalignment): Call
7565 default implementation for !TARGET_VX.
7567 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7569 * config/s390/s390.c (s390_legitimate_constant_p): Add
7572 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7574 * config/s390/s390.c (s390_vector_abi): New variable definition.
7575 (s390_check_type_for_vector_abi): New function.
7576 (TARGET_ASM_FILE_END): New macro definition.
7577 (s390_asm_file_end): New function.
7578 (s390_function_arg): Call s390_check_type_for_vector_abi.
7579 (s390_gimplify_va_arg): Likewise.
7580 * configure: Regenerate.
7581 * configure.ac: Check for .gnu_attribute Binutils feature.
7583 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
7586 * config/bfin/bfin.c (hwloop_optimize): Initialize
7587 JUMP_LABEL for newly created jump.
7589 2015-06-23 Tristan Gingold <gingold@adacore.com>
7591 * collect-utils.c (collect_wait): Unlink the response file here
7594 (utils_cleanup): ...and here.
7596 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
7598 * df-scan.c: Don't include target-def.h.
7599 * targhooks.c: Likewise.
7600 * config/arm/arm-c.c: Likewise.
7601 * config/i386/i386-c.c: Likewise.
7602 * config/nds32/nds32-cost.c: Likewise.
7603 * config/nds32/nds32-fp-as-gp.c: Likewise.
7604 * config/nds32/nds32-intrinsic.c: Likewise.
7605 * config/nds32/nds32-isr.c: Likewise.
7606 * config/nds32/nds32-md-auxiliary.c: Likewise.
7607 * config/nds32/nds32-memory-manipulation.c: Likewise.
7608 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7609 * config/nds32/nds32-predicates.c: Likewise.
7611 2015-06-23 Richard Biener <rguenther@suse.de>
7613 PR tree-optimization/66636
7614 * tree-vect-stmts.c (vectorizable_store): Properly compute the
7615 def type for further defs for strided stores.
7617 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
7619 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
7620 conditional selects.
7621 (setcc_int<mode>, setcc_float<mode>): Reformat.
7623 2015-06-23 Marek Polacek <polacek@redhat.com>
7625 * match.pd ((x + y) - (x | y) -> x & y,
7626 (x + y) - (x & y) -> x | y): New patterns.
7628 2015-06-23 Ludovic Courtès <ludo@gnu.org>
7631 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
7632 '-dynamic-linker' within %{!shared: ...}.
7634 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
7637 * config/i386/predicates.md (addsub_vm_operator): New predicate.
7638 (addsub_vs_operator): Ditto.
7639 (addsub_vs_parallel): Ditto.
7640 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
7641 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
7642 Put minus RTX before plus and adjust vec_merge selector.
7643 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
7644 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
7645 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
7646 (addsub vec_merge splitters): New combiner splitters.
7647 (addsub vec_select/vec_concat splitters): Ditto.
7649 2015-06-23 Bin Cheng <bin.cheng@arm.com>
7651 PR tree-optimization/66449
7652 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
7653 POINTER_PLUS_EXPR for pointers.
7655 2015-06-23 Alan Modra <amodra@gmail.com>
7657 * rtlanal.c (commutative_operand_precedence): Correct comments.
7658 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
7659 declaration. Return an int. Distinguish REG,REG return from
7661 (struct simplify_plus_minus_op_data): Make local to function.
7662 (simplify_plus_minus): Don't set canonicalized if merely sorting
7663 registers. Avoid packing ops if nothing changes. White space fixes.
7665 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
7667 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
7668 -fdump-ada-spec is passed but not if -fsyntax-only is.
7670 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
7673 * lra-lives.c (process_bb_lives): Check insn copying the same
7674 reload pseudo and don't create a copy for it.
7676 2015-06-22 Tom de Vries <tom@codesourcery.com>
7678 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
7681 2015-06-22 Tom de Vries <tom@codesourcery.com>
7683 * builtins.def (DEF_GOMP_BUILTIN): Test
7684 'flag_tree_parallelize_loops > 1' instead of
7685 'flag_tree_parallelize_loops'. Test flag_cilkplus.
7687 2015-06-22 Tom de Vries <tom@codesourcery.com>
7689 * dominance.c (calculate_dominance_info): Verify dominators if
7692 2015-06-22 Marek Polacek <polacek@redhat.com>
7694 * match.pd ((x ^ y) ^ (x | y) -> x & y,
7695 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
7696 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
7697 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
7699 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
7702 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
7703 cost of embedded comparison.
7705 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7708 * config/rs6000/predicates.md (altivec_register_operand): Permit
7709 virtual stack registers.
7710 (vsx_register_operand): Likewise.
7711 (vfloat_operand): Likewise.
7712 (vint_operand): Likewise.
7713 (vlogical_operand): Likewise.
7715 2015-06-22 Richard Biener <rguenther@suse.de>
7717 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
7718 and single_scalar_iteration_cost members.
7719 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
7720 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
7721 (vect_get_single_scalar_iteration_cost): Remove.
7722 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
7723 Use LOOP_VINFO_SCALAR_ITERATION_COST.
7724 * tree-vect-loop.c (destroy_loop_vec_info): Free
7726 (vect_get_single_scalar_iteration_cost): Compute result into
7727 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
7728 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
7729 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
7730 (vect_estimate_min_profitable_iters): Use them.
7732 2015-06-22 Christian Bruel <christian.bruel@st.com>
7735 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
7736 (TARGET_INSERT_ATTRIBUTES): Define.
7737 (thumb_flipper): New var.
7738 * config/arm/arm.opt (-mflip-thumb): New switch.
7740 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
7741 Martin Liska <mliska@suse.cz>
7744 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
7745 construction of arg_types.
7746 (sem_function::sem_function): Likewise.
7747 (sem_function::~sem_function): Remove destruction of arg_types.
7748 (sem_function::compatible_parm_types_p): New function.
7749 (sem_function::equals_wpa): Reorg matching of return values
7750 and parameter types.
7751 (sem_function::equals_private): Reorg mathcing of argument types.
7752 (sem_function::parse_tree_args): Remove.
7753 * ipa-icf.h (init_wpa): Do not call it.
7754 (parse_tree_args): Remove.
7755 (compatible_parm_types_p): Declare.
7756 (result_type): Remove.
7757 (arg_types): Remove.
7759 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
7762 * ipa-polymorphic-call.c
7763 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
7764 initializing alias oracle; fix formating; set base_alias_set if it
7767 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
7769 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
7770 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
7771 (find_inc): Likewise.
7772 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
7774 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
7775 * df-scan.c (df_swap_refs): Remove.
7776 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
7777 * dominance.c (link_roots): Use std::swap instead of manually swapping.
7778 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
7779 * fold-const.c (fold_relational_const): Likewise.
7780 * genattrtab.c (simplify_test_exp): Likewise.
7781 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
7782 gimple_simplify): Likewise.
7783 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
7784 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
7785 * ipa-devirt.c (add_type_duplicate): Likewise.
7786 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
7787 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
7788 * lra.c (lra_create_copy): Likewise.
7789 * lto-streamer-out.c (DFS::DFS): Likewise.
7790 * modulo-sched.c (get_sched_window): Likewise.
7791 * omega.c (omega_pretty_print_problem): Likewise.
7792 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
7793 * reload1.c (reloads_unique_chain_p): Likewise.
7794 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
7795 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
7797 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
7799 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
7800 predicate_mem_writes): Likewise.
7801 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
7802 * tree-predcom.c (combine_chains): Likewise.
7803 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
7804 refs_may_alias_p_1): Likewise.
7805 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
7806 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
7807 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
7808 number_of_iterations_cond): Likewise.
7809 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
7810 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
7811 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7812 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7813 * tree-vrp.c (extract_range_from_binary_expr_1,
7814 extract_range_from_unary_expr_1): Likewise.
7816 2015-06-20 Marek Polacek <polacek@redhat.com>
7818 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
7820 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
7823 * config/sh/sh.c (prepare_move_operands): Replace subreg
7824 index term with R0 for base and index addressing.
7826 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
7828 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
7830 (movsf_aarch64): Change condition from register_operand to
7831 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
7832 load1. Change type for alternative 7 to store1.
7833 (movdf_aarch64): Likewise.
7835 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
7837 * config/vax/vax.md: Adjust sign/zero extend patterns to
7838 handle SUBREGs in operands[1].
7840 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7842 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
7843 of manually swapping.
7844 (expand_vec_perm_interleave2): Likewise.
7846 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
7848 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
7849 reuse bounds created for abnormal ssa names.
7851 2015-06-19 Jakub Jelinek <jakub@redhat.com>
7853 * config/nvptx/nvptx.md (allocate_stack): Rename to...
7854 (allocate_stack_<mode>): ... this, and add :P on both
7855 match_operand and unspec.
7856 (allocate_stack): New expander.
7858 2015-06-19 Christian Bruel <christian.bruel@st.com>
7862 * config/arm/arm.c (arm_set_current_function): Handle
7863 explicit default options.
7865 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
7867 * config/i386/i386.md (*movsicc_noc_zext): New insn.
7868 (zero-extended cmove with mem peephole2): New pattern.
7869 (cmove with mem peephole2): Merge patterns.
7871 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
7873 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
7875 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
7877 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
7878 * config/mips/mips.md (*madd4<mode>): Ditto.
7879 (*nmadd3<mode>) Ditto.
7880 (*nmadd4<mode>_fastmath): Ditto.
7881 (*nmadd3<mode>_fastmath): Ditto.
7882 (*nmsub4<mode>): Ditto.
7883 (*nmsub3<mode>): Ditto.
7884 (*nmsub4<mode>_fastmath): Ditto.
7885 (*nmsub3<mode>_fastmath): Ditto.
7887 2015-06-18 Michael Matz <matz@suse.de>
7890 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
7891 grouped strided stores.
7892 (vectorizable_load): Don't use the DR from first_stmt in
7893 the non-SLP grouped strided case.
7895 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7898 * function.c (assign_bounds): Add arguments assign_regs,
7899 assign_special, assign_bt.
7900 (assign_parms): For vararg functions handle bounds in BT
7901 and special slots after incoming vararg bounds.
7903 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7906 * cfgexpand.c (expand_return): Handle missing bounds.
7907 (expand_gimple_stmt_1): Likewise.
7908 * tree-chkp.c (chkp_expand_zero_bounds): New.
7909 * tree-chkp.h (chkp_expand_zero_bounds): New.
7911 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7914 * ipa-chkp.c (chkp_maybe_create_clone): Require
7915 functions to be instrumentable.
7916 * tree-chkp.c (chkp_replace_function_pointer): Use
7917 chkp_instrumentable_p instead of attribute check.
7919 2015-06-18 Richard Biener <rguenther@suse.de>
7921 PR tree-optimization/66510
7922 * tree-vect-stmts.c (vectorizable_load): Properly compute the
7923 number of vector loads for SLP permuted loads.
7924 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
7925 check the stride for loop vectorization.
7926 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
7927 vectorization factor.
7928 (vect_analyze_group_access): If the group size is not a power
7929 of two require a epilogue loop.
7930 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
7931 compute and optimizing and alias test pruning after final
7932 vectorization factor computation.
7933 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
7935 (vect_transform_slp_perm_load): Properly compute the original
7936 number of vector load stmts.
7938 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
7940 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
7941 "unlikely character , in @var" warning.
7943 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
7945 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
7946 (ix86_function_arg_advance): Ditto.
7947 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
7949 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
7951 * function.h (struct rtl_data): Remove struct and accessor macros.
7952 * emit-rtl.h (struct rtl_data): Relocate to here.
7953 * Makefile.in (GTFILES): Add emit-rtl.h.
7954 * df-core.c: Include emit-rtl.h.
7955 * genattrtab.c: Likewise.
7956 * genconditions.c: Likewise.
7957 * genpreds.c: Likewise.
7958 * genrecog.c: Likewise.
7959 * regcprop.c: Likewise.
7960 * resource.c: Likewise.
7961 * sched-rgn.c: Likewise.
7962 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7963 * config/i386/winnt.c: Likewise.
7965 2015-06-17 Jakub Jelinek <jakub@redhat.com>
7968 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
7969 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
7970 and has_force_vectorize_loops flags from cfun into
7972 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
7973 if simduid is non-NULL.
7974 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
7975 * passes.def (pass_simduid_cleanup): Add new pass after loop
7977 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
7978 indirection from htab argument's type.
7979 (shrink_simd_arrays): New function.
7980 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
7981 Don't call adjust_simduid_builtins if there are no loops.
7982 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
7983 (pass_simduid_cleanup::execute): New method.
7984 (make_pass_simduid_cleanup): New function.
7986 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
7988 * tree-core.h (tree_target_option): Make opts field a pointer to a
7989 cl_target_option instead of an instance of the struct.
7990 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
7992 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
7994 (copy_node_stat): Allocate and copy struct cl_target_option.
7996 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
7998 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
7999 Remove conditional exposure of prototypes.
8000 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
8001 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
8002 definitions in tree.h with functions.
8003 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
8005 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
8007 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
8009 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
8010 (*cmp<mode>_signed): ... this.
8011 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
8012 (*cmp<mode>_unsigned): ... this. Remove %b.
8014 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
8016 * coretypes.h: Include input.h and as-a.h.
8017 * rtl.h: Include input.h and as-a.h for generator files.
8018 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
8019 * vec.c: Don't include diagnostic-core.h.
8020 * alias.c: Do not include input.h, line-map.h or is-a.h.
8022 * attribs.c: Likewise.
8023 * auto-inc-dec.c: Likewise.
8024 * auto-profile.c: Likewise.
8025 * bb-reorder.c: Likewise.
8026 * bt-load.c: Likewise.
8027 * builtins.c: Likewise.
8028 * caller-save.c: Likewise.
8029 * calls.c: Likewise.
8032 * cfganal.c: Likewise.
8033 * cfgbuild.c: Likewise.
8034 * cfgcleanup.c: Likewise.
8035 * cfgexpand.c: Likewise.
8036 * cfghooks.c: Likewise.
8037 * cfgloop.c: Likewise.
8038 * cfgloop.h: Likewise.
8039 * cfgloopanal.c: Likewise.
8040 * cfgloopmanip.c: Likewise.
8041 * cfgrtl.c: Likewise.
8042 * cgraph.c: Likewise.
8043 * cgraphbuild.c: Likewise.
8044 * cgraphclones.c: Likewise.
8045 * cgraphunit.c: Likewise.
8046 * cilk-common.c: Likewise.
8047 * combine-stack-adj.c: Likewise.
8048 * combine.c: Likewise.
8049 * compare-elim.c: Likewise.
8050 * convert.c: Likewise.
8051 * coverage.c: Likewise.
8052 * cppbuiltin.c: Likewise.
8053 * cprop.c: Likewise.
8055 * cselib.c: Likewise.
8056 * data-streamer-in.c: Likewise.
8057 * data-streamer-out.c: Likewise.
8058 * data-streamer.c: Likewise.
8059 * dbxout.c: Likewise.
8062 * debug.c: Likewise.
8063 * df-core.c: Likewise.
8064 * df-problems.c: Likewise.
8065 * df-scan.c: Likewise.
8068 * diagnostic-core.h: Likewise.
8069 * diagnostic.c: Likewise.
8070 * dojump.c: Likewise.
8071 * dominance.c: Likewise.
8072 * domwalk.c: Likewise.
8073 * double-int.c: Likewise.
8075 * dumpfile.c: Likewise.
8076 * dumpfile.h: Likewise.
8077 * dwarf2asm.c: Likewise.
8078 * dwarf2cfi.c: Likewise.
8079 * dwarf2out.c: Likewise.
8080 * emit-rtl.c: Likewise.
8081 * et-forest.c: Likewise.
8082 * except.c: Likewise.
8083 * explow.c: Likewise.
8084 * expmed.c: Likewise.
8086 * final.c: Likewise.
8087 * fixed-value.c: Likewise.
8088 * fold-const.c: Likewise.
8089 * function.c: Likewise.
8090 * fwprop.c: Likewise.
8091 * gcc-plugin.h: Likewise.
8093 * generic-match-head.c: Likewise.
8094 * ggc-page.c: Likewise.
8095 * gimple-builder.c: Likewise.
8096 * gimple-expr.c: Likewise.
8097 * gimple-fold.c: Likewise.
8098 * gimple-iterator.c: Likewise.
8099 * gimple-low.c: Likewise.
8100 * gimple-match-head.c: Likewise.
8101 * gimple-pretty-print.c: Likewise.
8102 * gimple-ssa-isolate-paths.c: Likewise.
8103 * gimple-ssa-strength-reduction.c: Likewise.
8104 * gimple-streamer-in.c: Likewise.
8105 * gimple-streamer-out.c: Likewise.
8106 * gimple-streamer.h: Likewise.
8107 * gimple-walk.c: Likewise.
8108 * gimple.c: Likewise.
8109 * gimplify-me.c: Likewise.
8110 * gimplify.c: Likewise.
8111 * godump.c: Likewise.
8112 * graph.c: Likewise.
8113 * graphite-blocking.c: Likewise.
8114 * graphite-dependences.c: Likewise.
8115 * graphite-interchange.c: Likewise.
8116 * graphite-isl-ast-to-gimple.c: Likewise.
8117 * graphite-optimize-isl.c: Likewise.
8118 * graphite-poly.c: Likewise.
8119 * graphite-scop-detection.c: Likewise.
8120 * graphite-sese-to-poly.c: Likewise.
8121 * graphite.c: Likewise.
8122 * haifa-sched.c: Likewise.
8123 * hw-doloop.c: Likewise.
8124 * ifcvt.c: Likewise.
8125 * init-regs.c: Likewise.
8126 * input.c: Likewise.
8127 * internal-fn.c: Likewise.
8128 * ipa-chkp.c: Likewise.
8129 * ipa-comdats.c: Likewise.
8130 * ipa-cp.c: Likewise.
8131 * ipa-devirt.c: Likewise.
8132 * ipa-icf-gimple.c: Likewise.
8133 * ipa-icf.c: Likewise.
8134 * ipa-inline-analysis.c: Likewise.
8135 * ipa-inline-transform.c: Likewise.
8136 * ipa-inline.c: Likewise.
8137 * ipa-polymorphic-call.c: Likewise.
8138 * ipa-profile.c: Likewise.
8139 * ipa-prop.c: Likewise.
8140 * ipa-pure-const.c: Likewise.
8141 * ipa-ref.c: Likewise.
8142 * ipa-reference.c: Likewise.
8143 * ipa-split.c: Likewise.
8144 * ipa-utils.c: Likewise.
8145 * ipa-visibility.c: Likewise.
8147 * ira-build.c: Likewise.
8148 * ira-color.c: Likewise.
8149 * ira-conflicts.c: Likewise.
8150 * ira-costs.c: Likewise.
8151 * ira-emit.c: Likewise.
8152 * ira-lives.c: Likewise.
8155 * langhooks.c: Likewise.
8157 * loop-doloop.c: Likewise.
8158 * loop-init.c: Likewise.
8159 * loop-invariant.c: Likewise.
8160 * loop-iv.c: Likewise.
8161 * loop-unroll.c: Likewise.
8162 * lower-subreg.c: Likewise.
8163 * lra-assigns.c: Likewise.
8164 * lra-coalesce.c: Likewise.
8165 * lra-constraints.c: Likewise.
8166 * lra-eliminations.c: Likewise.
8167 * lra-lives.c: Likewise.
8168 * lra-remat.c: Likewise.
8169 * lra-spills.c: Likewise.
8171 * lto-cgraph.c: Likewise.
8172 * lto-compress.c: Likewise.
8173 * lto-opts.c: Likewise.
8174 * lto-section-in.c: Likewise.
8175 * lto-section-out.c: Likewise.
8176 * lto-streamer-in.c: Likewise.
8177 * lto-streamer-out.c: Likewise.
8178 * lto-streamer.c: Likewise.
8180 * mode-switching.c: Likewise.
8181 * modulo-sched.c: Likewise.
8182 * omega.c: Likewise.
8183 * omp-low.c: Likewise.
8184 * optabs.c: Likewise.
8185 * opts-global.c: Likewise.
8187 * passes.c: Likewise.
8188 * plugin.c: Likewise.
8189 * postreload-gcse.c: Likewise.
8190 * postreload.c: Likewise.
8191 * predict.c: Likewise.
8192 * pretty-print.h: Likewise.
8193 * print-rtl.c: Likewise.
8194 * print-tree.c: Likewise.
8195 * profile.c: Likewise.
8197 * realmpfr.c: Likewise.
8198 * recog.c: Likewise.
8200 * reg-stack.c: Likewise.
8201 * regcprop.c: Likewise.
8202 * reginfo.c: Likewise.
8203 * regrename.c: Likewise.
8204 * regstat.c: Likewise.
8205 * reload.c: Likewise.
8206 * reload1.c: Likewise.
8207 * reorg.c: Likewise.
8208 * resource.c: Likewise.
8209 * rtl-chkp.c: Likewise.
8210 * rtl-error.c: Likewise.
8211 * rtlanal.c: Likewise.
8212 * rtlhooks.c: Likewise.
8213 * sanopt.c: Likewise.
8214 * sched-deps.c: Likewise.
8215 * sched-ebb.c: Likewise.
8216 * sched-rgn.c: Likewise.
8217 * sched-vis.c: Likewise.
8218 * sdbout.c: Likewise.
8219 * sel-sched-dump.c: Likewise.
8220 * sel-sched-ir.c: Likewise.
8221 * sel-sched.c: Likewise.
8223 * shrink-wrap.c: Likewise.
8224 * simplify-rtx.c: Likewise.
8225 * stack-ptr-mod.c: Likewise.
8226 * statistics.c: Likewise.
8228 * stor-layout.c: Likewise.
8229 * store-motion.c: Likewise.
8230 * streamer-hooks.c: Likewise.
8231 * stringpool.c: Likewise.
8232 * symtab.c: Likewise.
8233 * target-globals.c: Likewise.
8234 * targhooks.c: Likewise.
8235 * toplev.c: Likewise.
8236 * tracer.c: Likewise.
8237 * trans-mem.c: Likewise.
8238 * tree-affine.c: Likewise.
8239 * tree-browser.c: Likewise.
8240 * tree-call-cdce.c: Likewise.
8241 * tree-cfg.c: Likewise.
8242 * tree-cfgcleanup.c: Likewise.
8243 * tree-chkp-opt.c: Likewise.
8244 * tree-chkp.c: Likewise.
8245 * tree-chrec.c: Likewise.
8246 * tree-complex.c: Likewise.
8247 * tree-data-ref.c: Likewise.
8248 * tree-dfa.c: Likewise.
8249 * tree-diagnostic.c: Likewise.
8250 * tree-dump.c: Likewise.
8251 * tree-eh.c: Likewise.
8252 * tree-emutls.c: Likewise.
8253 * tree-if-conv.c: Likewise.
8254 * tree-inline.c: Likewise.
8255 * tree-into-ssa.c: Likewise.
8256 * tree-iterator.c: Likewise.
8257 * tree-loop-distribution.c: Likewise.
8258 * tree-nested.c: Likewise.
8259 * tree-nrv.c: Likewise.
8260 * tree-object-size.c: Likewise.
8261 * tree-outof-ssa.c: Likewise.
8262 * tree-parloops.c: Likewise.
8263 * tree-phinodes.c: Likewise.
8264 * tree-predcom.c: Likewise.
8265 * tree-pretty-print.c: Likewise.
8266 * tree-profile.c: Likewise.
8267 * tree-scalar-evolution.c: Likewise.
8268 * tree-sra.c: Likewise.
8269 * tree-ssa-address.c: Likewise.
8270 * tree-ssa-alias.c: Likewise.
8271 * tree-ssa-ccp.c: Likewise.
8272 * tree-ssa-coalesce.c: Likewise.
8273 * tree-ssa-copy.c: Likewise.
8274 * tree-ssa-copyrename.c: Likewise.
8275 * tree-ssa-dce.c: Likewise.
8276 * tree-ssa-dom.c: Likewise.
8277 * tree-ssa-dse.c: Likewise.
8278 * tree-ssa-forwprop.c: Likewise.
8279 * tree-ssa-ifcombine.c: Likewise.
8280 * tree-ssa-live.c: Likewise.
8281 * tree-ssa-loop-ch.c: Likewise.
8282 * tree-ssa-loop-im.c: Likewise.
8283 * tree-ssa-loop-ivcanon.c: Likewise.
8284 * tree-ssa-loop-ivopts.c: Likewise.
8285 * tree-ssa-loop-manip.c: Likewise.
8286 * tree-ssa-loop-niter.c: Likewise.
8287 * tree-ssa-loop-prefetch.c: Likewise.
8288 * tree-ssa-loop-unswitch.c: Likewise.
8289 * tree-ssa-loop.c: Likewise.
8290 * tree-ssa-math-opts.c: Likewise.
8291 * tree-ssa-operands.c: Likewise.
8292 * tree-ssa-phiopt.c: Likewise.
8293 * tree-ssa-phiprop.c: Likewise.
8294 * tree-ssa-pre.c: Likewise.
8295 * tree-ssa-propagate.c: Likewise.
8296 * tree-ssa-reassoc.c: Likewise.
8297 * tree-ssa-sccvn.c: Likewise.
8298 * tree-ssa-scopedtables.c: Likewise.
8299 * tree-ssa-sink.c: Likewise.
8300 * tree-ssa-strlen.c: Likewise.
8301 * tree-ssa-structalias.c: Likewise.
8302 * tree-ssa-tail-merge.c: Likewise.
8303 * tree-ssa-ter.c: Likewise.
8304 * tree-ssa-threadedge.c: Likewise.
8305 * tree-ssa-threadupdate.c: Likewise.
8306 * tree-ssa-uncprop.c: Likewise.
8307 * tree-ssa-uninit.c: Likewise.
8308 * tree-ssa.c: Likewise.
8309 * tree-ssanames.c: Likewise.
8310 * tree-stdarg.c: Likewise.
8311 * tree-streamer-in.c: Likewise.
8312 * tree-streamer-out.c: Likewise.
8313 * tree-streamer.c: Likewise.
8314 * tree-switch-conversion.c: Likewise.
8315 * tree-tailcall.c: Likewise.
8316 * tree-vect-data-refs.c: Likewise.
8317 * tree-vect-generic.c: Likewise.
8318 * tree-vect-loop-manip.c: Likewise.
8319 * tree-vect-loop.c: Likewise.
8320 * tree-vect-patterns.c: Likewise.
8321 * tree-vect-slp.c: Likewise.
8322 * tree-vect-stmts.c: Likewise.
8323 * tree-vectorizer.c: Likewise.
8324 * tree-vrp.c: Likewise.
8327 * ubsan.c: Likewise.
8328 * valtrack.c: Likewise.
8329 * value-prof.c: Likewise.
8330 * var-tracking.c: Likewise.
8331 * varasm.c: Likewise.
8332 * varpool.c: Likewise.
8333 * vmsdbgout.c: Likewise.
8334 * vtable-verify.c: Likewise.
8336 * wide-int.cc: Likewise.
8337 * xcoffout.c: Likewise.
8338 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
8339 * common/common-targhooks.c: Likewise.
8340 * config/aarch64/aarch64-builtins.c: Likewise.
8341 * config/aarch64/aarch64.c: Likewise.
8342 * config/alpha/alpha.c: Likewise.
8343 * config/arc/arc.c: Likewise.
8344 * config/arm/aarch-common.c: Likewise.
8345 * config/arm/arm-builtins.c: Likewise.
8346 * config/arm/arm-c.c: Likewise.
8347 * config/arm/arm.c: Likewise.
8348 * config/avr/avr-c.c: Likewise.
8349 * config/avr/avr-log.c: Likewise.
8350 * config/avr/avr.c: Likewise.
8351 * config/bfin/bfin.c: Likewise.
8352 * config/c6x/c6x.c: Likewise.
8353 * config/cr16/cr16.c: Likewise.
8354 * config/cris/cris.c: Likewise.
8355 * config/darwin-c.c: Likewise.
8356 * config/darwin.c: Likewise.
8357 * config/default-c.c: Likewise.
8358 * config/epiphany/epiphany.c: Likewise.
8359 * config/epiphany/mode-switch-use.c: Likewise.
8360 * config/epiphany/resolve-sw-modes.c: Likewise.
8361 * config/fr30/fr30.c: Likewise.
8362 * config/frv/frv.c: Likewise.
8363 * config/ft32/ft32.c: Likewise.
8364 * config/glibc-c.c: Likewise.
8365 * config/h8300/h8300.c: Likewise.
8366 * config/i386/i386-c.c: Likewise.
8367 * config/i386/i386.c: Likewise.
8368 * config/i386/msformat-c.c: Likewise.
8369 * config/i386/winnt-cxx.c: Likewise.
8370 * config/i386/winnt-stubs.c: Likewise.
8371 * config/i386/winnt.c: Likewise.
8372 * config/ia64/ia64-c.c: Likewise.
8373 * config/ia64/ia64.c: Likewise.
8374 * config/iq2000/iq2000.c: Likewise.
8375 * config/lm32/lm32.c: Likewise.
8376 * config/m32c/m32c-pragma.c: Likewise.
8377 * config/m32c/m32c.c: Likewise.
8378 * config/m32r/m32r.c: Likewise.
8379 * config/m68k/m68k.c: Likewise.
8380 * config/mcore/mcore.c: Likewise.
8381 * config/mep/mep-pragma.c: Likewise.
8382 * config/mep/mep.c: Likewise.
8383 * config/microblaze/microblaze-c.c: Likewise.
8384 * config/microblaze/microblaze.c: Likewise.
8385 * config/mips/mips.c: Likewise.
8386 * config/mmix/mmix.c: Likewise.
8387 * config/mn10300/mn10300.c: Likewise.
8388 * config/moxie/moxie.c: Likewise.
8389 * config/msp430/msp430-c.c: Likewise.
8390 * config/msp430/msp430.c: Likewise.
8391 * config/nds32/nds32-cost.c: Likewise.
8392 * config/nds32/nds32-fp-as-gp.c: Likewise.
8393 * config/nds32/nds32-intrinsic.c: Likewise.
8394 * config/nds32/nds32-isr.c: Likewise.
8395 * config/nds32/nds32-md-auxiliary.c: Likewise.
8396 * config/nds32/nds32-memory-manipulation.c: Likewise.
8397 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8398 * config/nds32/nds32-predicates.c: Likewise.
8399 * config/nds32/nds32.c: Likewise.
8400 * config/nios2/nios2.c: Likewise.
8401 * config/nvptx/nvptx.c: Likewise.
8402 * config/pa/pa.c: Likewise.
8403 * config/pdp11/pdp11.c: Likewise.
8404 * config/rl78/rl78-c.c: Likewise.
8405 * config/rl78/rl78.c: Likewise.
8406 * config/rs6000/rs6000-c.c: Likewise.
8407 * config/rs6000/rs6000.c: Likewise.
8408 * config/rx/rx.c: Likewise.
8409 * config/s390/s390-c.c: Likewise.
8410 * config/s390/s390.c: Likewise.
8411 * config/sh/sh-c.c: Likewise.
8412 * config/sh/sh-mem.cc: Likewise.
8413 * config/sh/sh.c: Likewise.
8414 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8415 * config/sh/sh_treg_combine.cc: Likewise.
8416 * config/sol2-c.c: Likewise.
8417 * config/sol2-cxx.c: Likewise.
8418 * config/sol2-stubs.c: Likewise.
8419 * config/sol2.c: Likewise.
8420 * config/sparc/sparc-c.c: Likewise.
8421 * config/sparc/sparc.c: Likewise.
8422 * config/spu/spu-c.c: Likewise.
8423 * config/spu/spu.c: Likewise.
8424 * config/stormy16/stormy16.c: Likewise.
8425 * config/tilegx/mul-tables.c: Likewise.
8426 * config/tilegx/tilegx-c.c: Likewise.
8427 * config/tilegx/tilegx.c: Likewise.
8428 * config/tilepro/mul-tables.c: Likewise.
8429 * config/tilepro/tilepro-c.c: Likewise.
8430 * config/tilepro/tilepro.c: Likewise.
8431 * config/v850/v850-c.c: Likewise.
8432 * config/v850/v850.c: Likewise.
8433 * config/vax/vax.c: Likewise.
8434 * config/visium/visium.c: Likewise.
8435 * config/vms/vms-c.c: Likewise.
8436 * config/vms/vms.c: Likewise.
8437 * config/vxworks.c: Likewise.
8438 * config/winnt-c.c: Likewise.
8439 * config/xtensa/xtensa.c: Likewise.
8441 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
8443 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
8445 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
8447 2015-06-17 Richard Biener <rguenther@suse.de>
8449 PR tree-optimization/66251
8450 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
8451 stmts for SLP strided stores.
8454 2015-05-22 Richard Biener <rguenther@suse.de>
8456 PR tree-optimization/66251
8457 * tree-vect-stmts.c (vectorizable_conversion): Properly
8458 set STMT_VINFO_VEC_STMT even for the SLP case.
8460 2015-05-26 Michael Matz <matz@suse.de>
8463 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
8464 STMT_VINFO_VEC_STMT, also with SLP.
8466 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
8469 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
8470 (*avx_addsubv4df3_1s): Ditto.
8471 (*sse3_addsubv2df3_1): Ditto.
8472 (*sse3_addsubv2df3_1s): Ditto.
8473 (*avx_addsubv8sf3_1): Ditto.
8474 (*avx_addsubv8sf3_1s): Ditto.
8475 (*sse3_addsubv4sf3_1): Ditto.
8476 (*sse3_addsubv4sf3_1s): Ditto.
8478 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
8480 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
8481 (SYSROOT_SUFFIX_SPEC): Update.
8482 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
8483 (STARTFILE_PREFIX_SPEC): Update.
8484 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
8485 (MULTILIB_REQUIRED): New.
8486 (MULTILIB_OSDIRNAMES): New.
8487 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
8488 (MULTILIB_REQUIRED): New.
8489 (MULTILIB_OSDIRNAMES): New.
8491 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
8493 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
8494 * config/aarch64/aarch64-options-extensions.def: Update "fP",
8495 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
8496 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
8497 (AARCH64_FL_PAN): New.
8498 (AARCH64_FL_LOR): New.
8499 (AARCH64_FL_RDMA): New.
8500 (AARCH64_FL_FOR_ARCH8_1): New.
8501 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
8502 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
8504 2015-06-16 Martin Liska <mliska@suse.cz>
8506 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
8507 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
8510 2015-06-16 Richard Biener <rguenther@suse.de>
8512 * tree-vect-stmts.c (vectorizable_store): Adjust.
8513 (vectorizable_load): Likewise.
8514 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8516 (vect_create_data_ref_ptr): Likewise.
8517 (bump_vector_ptr): Adjust.
8519 2015-06-16 Richard Biener <rguenther@suse.de>
8521 * tree-vect-stmts.c (vectorizable_load): Properly start loads
8522 with the first element if this is grouped loads.
8524 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
8526 * config/arm/arm-protos.h (struct tune_params): Rename
8527 log_op_non_sc to log_op_non_short_circuit, and rename enum
8528 values to expand SC to SHORT_CIRCUIT.
8529 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
8530 to LOG_OP_NON_SHORT_CIRCUIT.
8531 (arm_fastmul_tune):Likewise
8532 (arm_strongarm_tune): Likewise.
8533 (arm_xscale_tune): Likewise.
8534 (arm_9e_tune): Likewise.
8535 (arm_marvell_pj4_tune): Likewise.
8536 (arm_v6t2_tune): Likewise.
8537 (arm_cortex_tune): Likewise.
8538 (arm_cortex_a8_tune): Likewise.
8539 (arm_cortex_a7_tune): Likewise.
8540 (arm_cortex_a15_tune): Likewise.
8541 (arm_cortex_a53_tune): Likewise.
8542 (arm_cortex_a57_tune): Likewise.
8543 (arm_xgene1_tune): Likewise.
8544 (arm_cortex_a5_tune): Likewise.
8545 (arm_cortex_a9_tune): Likewise.
8546 (arm_cortex_a12_tune): Likewise.
8547 (arm_v7m_tune): Likewise.
8548 (arm_cortex_m7_tune): Likewise.
8549 (arm_v6m_tune): Likewise.
8550 (arm_fa726te_tune): Likewise.
8552 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
8554 * altivec.md: Delete UNSPEC_VMLADDUHM.
8555 (mulv4si3_p8): New pattern.
8556 (mulv4si3): Use it for POWER8.
8557 (mulv8hi3): Use vmladduhm with zero addend.
8558 (altivec_vmladduhm): Descriptive RTL.
8560 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
8562 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
8563 to use neon_move instead of mov_imm.
8564 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
8565 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
8567 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
8568 aarch64_float_const_zero_rtx_p check before TFmode check.
8569 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
8571 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
8572 code and attributes to match. Change condition from register_operand
8573 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
8574 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
8577 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
8580 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
8583 2015-06-14 Shiva Chen <shiva0217@gmail.com>
8585 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
8586 HOST_WIDE_INT parameter.
8588 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
8591 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
8592 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
8594 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8596 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
8598 * rtl.h (classify_insn): Declare.
8599 * emit-rtl.c (classify_insn): Move to...
8600 * rtl.c: ...here and add generator support.
8601 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
8602 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
8603 * genemit.c (gen_emit_seq): New function.
8604 (gen_expand, gen_split): Use it.
8606 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
8608 * tree.c (make_vector_stat): Fix comment to state that the
8609 function returns a VECTOR_CST.
8611 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
8613 * gensupport.h (add_implicit_parallel): Declare.
8614 * genrecog.c (add_implicit_parallel): Move to...
8615 * gensupport.c (add_implicit_parallel): ...here.
8616 (process_one_cond_exec): Use it.
8617 * genemit.c (gen_insn): Likewise.
8619 2015-06-13 Iain Sandoe <iain@codesourcery.com>
8622 * passes.c (rest_of_decl_compilation): Do not register globals for
8623 early debug if they are declared in built-ins.
8625 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
8627 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
8629 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8631 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
8633 (noce_try_cmove_arith): Likewise.
8634 (noce_get_alt_condition): Likewise.
8636 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8638 * common/config/i386/i386-common.c
8639 (OPTION_MASK_ISA_MWAITX_SET): New.
8640 (ix86_handle_option): Handle mwaitx.
8641 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
8642 (x86_64-*-*): Likewise.
8643 * config/i386/mwaitxintrin.h: New header.
8644 * config/i386/cpuid.h (bit_MWAITX): Define.
8645 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8647 * config/i386/i386.opt (mwaitx): New.
8648 * config/i386/i386-builtin-types.def
8649 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
8650 * config/i386/i386-c.c: Define __MWAITX__ if needed.
8651 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
8653 (ix86_option_override_internal): Handle new option.
8654 (processor_alias_table): Added PTA_MWAITX.
8655 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
8656 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
8657 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
8658 IX86_BUILTIN_MONITORX built-ins.
8659 * config/i386/i386.h (TARGET_MWAITX): New.
8660 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
8662 (mwaitx): New pattern.
8663 (monitorx_<mode>): New pattern.
8664 * config/i386/x86intrin.h: Include mwaitxintrin.h.
8665 * doc/extend.texi: Document monitorx and mwaitx builtins.
8666 * doc/invoke.texi: Document -mmwaitx option.
8668 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
8670 * emit-rtl.c (need_atomic_barrier_p): Mask model with
8671 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
8673 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
8675 * dbxout.c (xcoff_debug_hooks): Provide a function for
8676 register_main_translation_unit hook.
8678 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
8680 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
8681 variants cases from switch.
8682 (rs6000_post_atomic_barrier): Same.
8683 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
8684 (rs6000_expand_atomic_exchange): Same.
8685 (rs6000_expand_atomic_op): Same.
8686 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
8687 SYNC variants cases from switch.
8688 (atomic_load): Same.
8689 (atomic_store): Same.
8691 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
8693 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
8696 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
8699 * dwarf2out.c (check_die): Check for common duplicate attributes.
8700 (add_location_or_const_value_attribute): Do not add duplicate
8702 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
8704 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
8705 (gen_type_die_with_usage): Call check_die.
8706 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
8708 2015-06-11 Jason Merrill <jason@redhat.com>
8710 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
8713 2015-06-11 Marek Polacek <polacek@redhat.com>
8715 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
8717 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
8720 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
8721 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
8722 (*addx_extend_sp32): Fix pasto.
8723 (*subx_extend): Rename into...
8724 (*subx_extend_sp32): ...this.
8725 (*adddi3_extend_sp32): Add earlyclobber.
8726 (*subdi3_insn_sp32): Likewise.
8727 (*subdi3_extend_sp32): Likewise.
8728 (*and_not_di_sp32): Likewise.
8729 (*or_not_di_sp32): Likewise.
8730 (*xor_not_di_sp32): Likewise.
8731 (*negdi2_sp32): Likewise.
8732 (*one_cmpldi2_sp32): Likewise.
8734 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
8736 * debug.h (struct gcc_debug_hooks): Add a
8737 register_main_translation_unit hook.
8738 * debug.c (do_nothing_debug_hooks): Provide a function for this
8740 * dbxout.c (dbx_debug_hooks): Likewise.
8741 * sdbout.c (sdb_debug_hooks): Likewise.
8742 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8743 * dwarf2out.c (main_translation_unit): New global variable.
8744 (dwarf2out_register_main_translation_unit): New function
8745 implementing the new hook.
8746 (dwarf2_debug_hooks): Assign
8747 dwarf2out_register_main_translation_unit to this new hook.
8748 (dwarf2out_init): Associate any main translation unit to
8751 2015-06-11 Marek Polacek <polacek@redhat.com>
8753 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
8755 2015-06-11 Marek Polacek <polacek@redhat.com>
8757 * match.pd: Use single_use throughout.
8759 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8761 * config/arm/arm.c (arm_option_params_internal): When optimising
8762 for speed set max_insns_skipped when arm_restrict_it.
8764 2015-06-11 Christian Bruel <christian.bruel@st.com>
8767 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
8769 (arm_cpu_builtins): New function.
8770 (arm_pragma_target_parse): Call arm_cpu_builtins.
8771 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
8772 (arm_register_target_pragmas): Likewise.
8773 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
8774 Call arm_register_target_pragmas.
8775 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
8776 (arm_pragma_target_parse): Likewise.
8778 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
8780 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
8781 of the second operand.
8783 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
8786 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
8787 to prepare mask operand for AVX512 modes.
8789 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
8792 * doc/md.texi (Machine Constraints): Document that on the PowerPC
8793 if you use a constraint that targets a VSX register, you must use
8794 %x<n> in the template.
8796 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
8798 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
8799 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
8800 (define_insn "trap"): New definition.
8802 2015-06-10 Richard Biener <rguenther@suse.de>
8804 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
8806 (vect_supported_load_permutation_p): ... here. Handle
8807 supportable permutations in reductions.
8808 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
8809 for vectorizing strided group loads.
8811 2015-06-10 Jakub Jelinek <jakub@redhat.com>
8814 * config/i386/i386.c (ix86_split_long_move): For collisions
8815 involving direct tls segment refs, move the UNSPEC_TP possibly
8816 wrapped in ZERO_EXTEND out of the address for lea, to each of
8819 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8821 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
8822 dmb sy. Adjust tabs.
8824 2015-06-10 Tom de Vries <tom@codesourcery.com>
8826 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
8828 2015-06-10 Martin Liska <mliska@suse.cz>
8831 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
8832 all enum values in mem_alloc_origin.
8833 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
8835 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
8836 * bitmap.c (bitmap_register): Likewise.
8837 (dump_bitmap_statistics): Likewise.
8838 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
8839 (ggc_record_overhead): Likewise.
8840 * hash-map.h: Likewise.
8841 * hash-set.h: Likewise.
8842 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
8843 * hash-table.h: Likewise.
8844 * vec.c (vec_prefix::register_overhead): Likewise.
8845 (vec_prefix::release_overhead): Likewise.
8846 (dump_vec_loc_statistics): Likewise.
8848 2015-06-09 Christian Bruel <christian.bruel@st.com>
8851 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
8852 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
8853 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
8854 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
8855 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
8856 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
8857 (arm_valid_target_attribute_p): Likewise.
8858 (arm_set_current_function, arm_can_inline_p): Likewise.
8859 (arm_valid_target_attribute_rec): Likewise.
8860 (arm_previous_fndecl): New variable.
8861 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
8862 (TARGET_CAN_INLINE_P): Define.
8863 (arm_asm_trampoline_template): Emit mode.
8864 (arm_file_start): Don't set unified syntax.
8865 (arm_declare_function_name): Set unified syntax and mode.
8866 (arm_option_override): Init target_option_default_node.
8867 and target_option_current_node.
8868 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
8869 (*call_symbol): Likewise.
8870 * doc/extend.texi: Document ARM/Thumb target attribute.
8871 * doc/invoke.texi: Likewise.
8873 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8876 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8877 PR rtl-optimization/64164
8878 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8879 * tree-ssa-copyrename.c: Removed.
8880 * opts.c (default_options_table): Drop -ftree-copyrename. Add
8881 -ftree-coalesce-vars.
8882 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8883 * common.opt (ftree-copyrename): Ignore.
8884 (ftree-coalesce-inlined-vars): Likewise.
8885 * doc/invoke.texi: Remove the ignored options above.
8886 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8887 * tree-ssa-coalesce.h: ... here.
8888 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8889 headers required by it.
8890 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8891 across variables when flag_tree_coalesce_vars. Check register
8892 use and promoted modes to allow coalescing. Moved to
8893 tree-ssa-coalesce.c.
8894 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8895 with its member functions to tree-ssa-coalesce.c.
8896 (var_map_base_init): Likewise. Renamed to
8897 compute_samebase_partition_bases.
8898 (partition_view_normal): Drop want_bases parameter.
8899 (partition_view_bitmap): Likewise.
8900 * tree-ssa-live.h: Adjust declarations.
8901 * tree-ssa-coalesce.c: Include explow.h.
8902 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8903 default defs at the entry point.
8904 (dump_part_var_map): New.
8905 (compute_optimized_partition_bases): New, called by...
8906 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8907 of compute_samebase_partition_bases. Adjust.
8908 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8909 * cfgexpand.c (leader_merge): New.
8910 (get_rtl_for_parm_ssa_default_def): New.
8911 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8912 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8913 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
8914 redundant MEM attr setting.
8915 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
8917 (expand_one_stack_var): ... this. New wrapper to check and
8918 skip already expanded SSA partitions.
8919 (record_alignment_for_reg_var): New, factored out of...
8920 (expand_one_var): ... this.
8921 (expand_one_ssa_partition): New.
8922 (adjust_one_expanded_partition_var): New.
8923 (expand_one_register_var): Check and skip already expanded SSA
8925 (expand_used_vars): Don't create DECLs for anonymous SSA
8926 names. Expand all SSA partitions, then adjust all SSA names.
8927 (pass::execute): Replace the loops that set
8928 SA.partition_to_pseudo from partition leaders and cleared
8929 DECL_RTL for multi-location variables, and that which used to
8930 rename vars and set attrs, with one that clears DECL_RTL and
8931 checks that PARMs and RESULTs default_defs match DECL_RTL.
8932 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8933 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
8934 * explow.c (promote_ssa_mode): New.
8935 * explow.h (promote_ssa_mode): Declare.
8936 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8937 * function.c: Include cfgexpand.h.
8938 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8939 (use_register_for_parm_decl): Wrapper for the above to
8940 special-case the result_ptr.
8941 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8942 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8944 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8945 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
8946 (assign_parm_setup_block): Prefer SSA-assigned location.
8947 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
8948 if stack_parm is NULL.
8949 (assign_parm_setup_stack): Prefer SSA-assigned location.
8950 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
8951 rtl before testing for pointer bounds. Special-case result_ptr.
8952 (expand_function_start): Maybe reset DECL_RTL of result.
8953 Prefer SSA-assigned location for result and static chain.
8954 Factor out DECL_RESULT and SET_DECL_RTL.
8955 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8956 anonymous SSA names. Use promote_ssa_mode.
8957 (get_temp_reg): Likewise.
8958 (remove_ssa_form): Adjust.
8959 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8960 and get its reg_usage for reg invalidation.
8961 (compute_bb_dataflow): Pass it insn.
8962 (emit_notes_in_bb): Likewise.
8963 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
8964 fail assert on conversion between unsigned types.
8966 2015-06-09 Tom de Vries <tom@codesourcery.com>
8968 PR tree-optimization/65460
8969 * omp-low.c (expand_omp_target): Set parallelized_function on
8970 cgraph_node for child_fn.
8972 2015-06-09 Tom de Vries <tom@codesourcery.com>
8974 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
8975 parallelized_function before add_new_function.
8977 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
8979 * gcc-plugin.h: Move decls to plugin.h and include it.
8980 * plugin.h: Relocate decls from gcc-plugin.h
8981 * ggc-page.c: Include required header files.
8982 * passes.c: Likewise.
8983 * cgraphunit.c: Likewise.
8985 2015-06-09 Tom de Vries <tom@codesourcery.com>
8987 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
8989 2015-06-09 Jason Merrill <jason@redhat.com>
8992 * toplev.c (check_global_declaration): Don't warn about a clone.
8994 2015-06-09 Marek Polacek <polacek@redhat.com>
8996 PR tree-optimization/66299
8997 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
8998 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
9001 2015-06-09 Richard Biener <rguenther@suse.de>
9003 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
9004 (vect_analyze_slp_instance): Instead do not falsely drop
9007 2015-06-09 Richard Biener <rguenther@suse.de>
9010 * match.pd: Handle A % (unsigned)(1 << B).
9012 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
9014 * varasm.c (output_object_block_htab): Remove.
9015 (output_object_block_compare): New.
9016 (output_object_blocks): Sort named object_blocks before outputting
9019 2015-06-09 Richard Biener <rguenther@suse.de>
9021 PR tree-optimization/66419
9022 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
9023 consider GROUP_GAP when detecting a perfect subchain.
9025 2015-06-09 Nick Clifton <nickc@redhat.com>
9027 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
9028 place read only data in the .frodata section.
9030 2015-06-09 Shiva Chen <shiva0217@gmail.com>
9032 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
9033 (atomic_store<mode>): Likewise.
9035 2015-06-09 Richard Biener <rguenther@suse.de>
9037 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
9039 2015-06-09 Richard Biener <rguenther@suse.de>
9042 * tree-inline.c (insert_init_debug_bind): Unshare value.
9044 2015-06-09 Richard Biener <rguenther@suse.de>
9046 PR tree-optimization/66396
9047 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
9048 Rename virtual operands.
9050 2015-06-09 Tom de Vries <tom@codesourcery.com>
9052 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
9053 always return false.
9055 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
9057 PR rtl-optimization/64164
9058 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9059 * tree-ssa-copyrename.c: Removed.
9060 * opts.c (default_options_table): Drop -ftree-copyrename. Add
9061 -ftree-coalesce-vars.
9062 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9063 * common.opt (ftree-copyrename): Ignore.
9064 (ftree-coalesce-inlined-vars): Likewise.
9065 * doc/invoke.texi: Remove the ignored options above.
9066 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9067 * tree-ssa-coalesce.h: ... here.
9068 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9069 headers required by it.
9070 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9071 across variables when flag_tree_coalesce_vars. Check register
9072 use and promoted modes to allow coalescing. Moved to
9073 tree-ssa-coalesce.c.
9074 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9075 with its member functions to tree-ssa-coalesce.c.
9076 (var_map_base_init): Likewise. Renamed to
9077 compute_samebase_partition_bases.
9078 (partition_view_normal): Drop want_bases parameter.
9079 (partition_view_bitmap): Likewise.
9080 * tree-ssa-live.h: Adjust declarations.
9081 * tree-ssa-coalesce.c: Include explow.h.
9082 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9083 default defs at the entry point.
9084 (dump_part_var_map): New.
9085 (compute_optimized_partition_bases): New, called by...
9086 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9087 of compute_samebase_partition_bases. Adjust.
9088 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9089 * cfgexpand.c (leader_merge): New.
9090 (get_rtl_for_parm_ssa_default_def): New.
9091 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9092 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9093 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9094 redundant MEM attr setting.
9095 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9097 (expand_one_stack_var): ... this. New wrapper to check and
9098 skip already expanded SSA partitions.
9099 (record_alignment_for_reg_var): New, factored out of...
9100 (expand_one_var): ... this.
9101 (expand_one_ssa_partition): New.
9102 (adjust_one_expanded_partition_var): New.
9103 (expand_one_register_var): Check and skip already expanded SSA
9105 (expand_used_vars): Don't create DECLs for anonymous SSA
9106 names. Expand all SSA partitions, then adjust all SSA names.
9107 (pass::execute): Replace the loops that set
9108 SA.partition_to_pseudo from partition leaders and cleared
9109 DECL_RTL for multi-location variables, and that which used to
9110 rename vars and set attrs, with one that clears DECL_RTL and
9111 checks that PARMs and RESULTs default_defs match DECL_RTL.
9112 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9113 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9114 * explow.c (promote_ssa_mode): New.
9115 * explow.h (promote_ssa_mode): Declare.
9116 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9117 * function.c: Include cfgexpand.h.
9118 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9119 (use_register_for_parm_decl): Wrapper for the above to
9120 special-case the result_ptr.
9121 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9122 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9124 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9125 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9126 (assign_parm_setup_block): Prefer SSA-assigned location.
9127 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
9128 if stack_parm is NULL.
9129 (assign_parm_setup_stack): Prefer SSA-assigned location.
9130 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9131 rtl before testing for pointer bounds. Special-case result_ptr.
9132 (expand_function_start): Maybe reset DECL_RTL of result.
9133 Prefer SSA-assigned location for result and static chain.
9134 Factor out DECL_RESULT and SET_DECL_RTL.
9135 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9136 anonymous SSA names. Use promote_ssa_mode.
9137 (get_temp_reg): Likewise.
9138 (remove_ssa_form): Adjust.
9139 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9140 and get its reg_usage for reg invalidation.
9141 (compute_bb_dataflow): Pass it insn.
9142 (emit_notes_in_bb): Likewise.
9143 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
9144 fail assert on conversion between unsigned types.
9146 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
9149 * tree-inline.c (reset_debug_binding): New.
9150 (reset_debug_bindings): Likewise.
9151 (expand_call_inline): Call it.
9153 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9155 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
9158 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9160 * lto-streamer-out.c (lto_output_location): Stream
9161 reserved locations correctly.
9162 * lto-streamer-in.c (lto_output_location): Likewise.
9164 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
9166 * coretypes.h: Include hash-table.h and hash-set.h for host files.
9167 * ggc.h: Don't include statistics.h>
9168 * hash-map.h: Remove all includes.
9169 * hash-set.h: Likewise.
9170 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
9171 the include list. Remove <new>.
9172 * inchash.h: Remove all includes.
9173 * mem-stats.h: Likewise.
9174 * vec.h: No special processing for generators or ggc.
9175 * alias.c : Adjust include files.
9176 * alloc-pool.c : Likewise.
9177 * alloc-pool.h : Likewise.
9178 * asan.c : Likewise.
9179 * attribs.c : Likewise.
9180 * auto-inc-dec.c : Likewise.
9181 * auto-profile.c : Likewise.
9182 * bb-reorder.c : Likewise.
9183 * bitmap.c : Likewise.
9184 * bitmap.h : Likewise.
9185 * bt-load.c : Likewise.
9186 * builtins.c : Likewise.
9187 * caller-save.c : Likewise.
9188 * calls.c : Likewise.
9189 * ccmp.c : Likewise.
9191 * cfganal.c : Likewise.
9192 * cfgbuild.c : Likewise.
9193 * cfgcleanup.c : Likewise.
9194 * cfgexpand.c : Likewise.
9195 * cfghooks.c : Likewise.
9196 * cfgloop.c : Likewise.
9197 * cfgloop.h : Likewise.
9198 * cfgloopanal.c : Likewise.
9199 * cfgloopmanip.c : Likewise.
9200 * cfgrtl.c : Likewise.
9201 * cgraph.c : Likewise.
9202 * cgraphbuild.c : Likewise.
9203 * cgraphclones.c : Likewise.
9204 * cgraphunit.c : Likewise.
9205 * cilk-common.c : Likewise.
9206 * combine-stack-adj.c : Likewise.
9207 * combine.c : Likewise.
9208 * compare-elim.c : Likewise.
9209 * context.c : Likewise.
9210 * convert.c : Likewise.
9211 * coverage.c : Likewise.
9212 * cppbuiltin.c : Likewise.
9213 * cprop.c : Likewise.
9215 * cselib.c : Likewise.
9216 * data-streamer-in.c : Likewise.
9217 * data-streamer-out.c : Likewise.
9218 * data-streamer.c : Likewise.
9219 * data-streamer.h : Likewise.
9220 * dbxout.c : Likewise.
9223 * debug.c : Likewise.
9224 * df-core.c : Likewise.
9225 * df-problems.c : Likewise.
9226 * df-scan.c : Likewise.
9229 * dojump.c : Likewise.
9230 * dominance.c : Likewise.
9231 * domwalk.c : Likewise.
9232 * double-int.c : Likewise.
9234 * dumpfile.c : Likewise.
9235 * dwarf2asm.c : Likewise.
9236 * dwarf2cfi.c : Likewise.
9237 * dwarf2out.c : Likewise.
9238 * emit-rtl.c : Likewise.
9239 * et-forest.c : Likewise.
9240 * except.c : Likewise.
9241 * except.h : Likewise.
9242 * explow.c : Likewise.
9243 * expmed.c : Likewise.
9244 * expr.c : Likewise.
9245 * final.c : Likewise.
9246 * fixed-value.c : Likewise.
9247 * fold-const.c : Likewise.
9248 * function.c : Likewise.
9249 * fwprop.c : Likewise.
9250 * gcc-plugin.h : Likewise.
9252 * gcse-common.c : Likewise.
9253 * gcse.c : Likewise.
9254 * genattrtab.c : Likewise.
9255 * genautomata.c : Likewise.
9256 * genconditions.c : Likewise.
9257 * genemit.c : Likewise.
9258 * generic-match-head.c : Likewise.
9259 * genextract.c : Likewise.
9260 * gengtype-state.c : Likewise.
9261 * gengtype.c : Likewise.
9262 * genhooks.c : Likewise.
9263 * genmatch.c : Likewise.
9264 * genmodes.c : Likewise.
9265 * genrecog.c : Likewise.
9266 * gensupport.c : Likewise.
9267 * ggc-common.c : Likewise.
9268 * ggc-internal.h : Likewise.
9269 * ggc-none.c : Likewise.
9270 * ggc-page.c : Likewise.
9271 * gimple-builder.c : Likewise.
9272 * gimple-expr.c : Likewise.
9273 * gimple-fold.c : Likewise.
9274 * gimple-iterator.c : Likewise.
9275 * gimple-low.c : Likewise.
9276 * gimple-match-head.c : Likewise.
9277 * gimple-pretty-print.c : Likewise.
9278 * gimple-ssa-isolate-paths.c : Likewise.
9279 * gimple-ssa-strength-reduction.c : Likewise.
9280 * gimple-ssa.h : Likewise.
9281 * gimple-streamer-in.c : Likewise.
9282 * gimple-streamer-out.c : Likewise.
9283 * gimple-streamer.h : Likewise.
9284 * gimple-walk.c : Likewise.
9285 * gimple.c : Likewise.
9286 * gimplify-me.c : Likewise.
9287 * gimplify.c : Likewise.
9288 * godump.c : Likewise.
9289 * graph.c : Likewise.
9290 * graphds.c : Likewise.
9291 * graphite-blocking.c : Likewise.
9292 * graphite-dependences.c : Likewise.
9293 * graphite-interchange.c : Likewise.
9294 * graphite-isl-ast-to-gimple.c : Likewise.
9295 * graphite-optimize-isl.c : Likewise.
9296 * graphite-poly.c : Likewise.
9297 * graphite-scop-detection.c : Likewise.
9298 * graphite-sese-to-poly.c : Likewise.
9299 * graphite.c : Likewise.
9300 * haifa-sched.c : Likewise.
9301 * hard-reg-set.h : Likewise.
9302 * hw-doloop.c : Likewise.
9303 * ifcvt.c : Likewise.
9304 * inchash.c : Likewise.
9305 * incpath.c : Likewise.
9306 * init-regs.c : Likewise.
9307 * input.c : Likewise.
9308 * internal-fn.c : Likewise.
9309 * ipa-chkp.c : Likewise.
9310 * ipa-comdats.c : Likewise.
9311 * ipa-cp.c : Likewise.
9312 * ipa-devirt.c : Likewise.
9313 * ipa-icf-gimple.c : Likewise.
9314 * ipa-icf.c : Likewise.
9315 * ipa-inline-analysis.c : Likewise.
9316 * ipa-inline-transform.c : Likewise.
9317 * ipa-inline.c : Likewise.
9318 * ipa-polymorphic-call.c : Likewise.
9319 * ipa-profile.c : Likewise.
9320 * ipa-prop.c : Likewise.
9321 * ipa-pure-const.c : Likewise.
9322 * ipa-ref.c : Likewise.
9323 * ipa-reference.c : Likewise.
9324 * ipa-split.c : Likewise.
9325 * ipa-utils.c : Likewise.
9326 * ipa-visibility.c : Likewise.
9328 * ira-build.c : Likewise.
9329 * ira-color.c : Likewise.
9330 * ira-conflicts.c : Likewise.
9331 * ira-costs.c : Likewise.
9332 * ira-emit.c : Likewise.
9333 * ira-lives.c : Likewise.
9335 * jump.c : Likewise.
9336 * langhooks.c : Likewise.
9338 * libfuncs.h : Likewise.
9339 * lists.c : Likewise.
9340 * loop-doloop.c : Likewise.
9341 * loop-init.c : Likewise.
9342 * loop-invariant.c : Likewise.
9343 * loop-iv.c : Likewise.
9344 * loop-unroll.c : Likewise.
9345 * lower-subreg.c : Likewise.
9346 * lra-assigns.c : Likewise.
9347 * lra-coalesce.c : Likewise.
9348 * lra-constraints.c : Likewise.
9349 * lra-eliminations.c : Likewise.
9350 * lra-lives.c : Likewise.
9351 * lra-remat.c : Likewise.
9352 * lra-spills.c : Likewise.
9354 * lto-cgraph.c : Likewise.
9355 * lto-compress.c : Likewise.
9356 * lto-opts.c : Likewise.
9357 * lto-section-in.c : Likewise.
9358 * lto-section-out.c : Likewise.
9359 * lto-streamer-in.c : Likewise.
9360 * lto-streamer-out.c : Likewise.
9361 * lto-streamer.c : Likewise.
9362 * lto-streamer.h : Likewise.
9364 * mode-switching.c : Likewise.
9365 * modulo-sched.c : Likewise.
9366 * omega.c : Likewise.
9367 * omp-low.c : Likewise.
9368 * optabs.c : Likewise.
9369 * opts-global.c : Likewise.
9370 * opts.h : Likewise.
9371 * passes.c : Likewise.
9372 * plugin.c : Likewise.
9373 * postreload-gcse.c : Likewise.
9374 * postreload.c : Likewise.
9375 * predict.c : Likewise.
9376 * print-rtl.c : Likewise.
9377 * print-tree.c : Likewise.
9378 * profile.c : Likewise.
9379 * read-md.c : Likewise.
9380 * read-md.h : Likewise.
9381 * read-rtl.c : Likewise.
9382 * real.c : Likewise.
9383 * realmpfr.c : Likewise.
9384 * recog.c : Likewise.
9386 * reg-stack.c : Likewise.
9387 * regcprop.c : Likewise.
9388 * reginfo.c : Likewise.
9389 * regrename.c : Likewise.
9390 * regstat.c : Likewise.
9391 * reload.c : Likewise.
9392 * reload1.c : Likewise.
9393 * reorg.c : Likewise.
9394 * resource.c : Likewise.
9395 * rtl-chkp.c : Likewise.
9398 * rtlanal.c : Likewise.
9399 * rtlhash.c : Likewise.
9400 * rtlhash.h : Likewise.
9401 * rtlhooks.c : Likewise.
9402 * sanopt.c : Likewise.
9403 * sched-deps.c : Likewise.
9404 * sched-ebb.c : Likewise.
9405 * sched-rgn.c : Likewise.
9406 * sched-vis.c : Likewise.
9407 * sdbout.c : Likewise.
9408 * sel-sched-dump.c : Likewise.
9409 * sel-sched-ir.c : Likewise.
9410 * sel-sched-ir.h : Likewise.
9411 * sel-sched.c : Likewise.
9412 * sese.c : Likewise.
9413 * shrink-wrap.c : Likewise.
9414 * shrink-wrap.h : Likewise.
9415 * simplify-rtx.c : Likewise.
9416 * stack-ptr-mod.c : Likewise.
9417 * statistics.c : Likewise.
9418 * stmt.c : Likewise.
9419 * stor-layout.c : Likewise.
9420 * store-motion.c : Likewise.
9421 * stringpool.c : Likewise.
9422 * symtab.c : Likewise.
9423 * target-globals.c : Likewise.
9424 * targhooks.c : Likewise.
9425 * tlink.c : Likewise.
9426 * toplev.c : Likewise.
9427 * tracer.c : Likewise.
9428 * trans-mem.c : Likewise.
9429 * tree-affine.c : Likewise.
9430 * tree-affine.h : Likewise.
9431 * tree-browser.c : Likewise.
9432 * tree-call-cdce.c : Likewise.
9433 * tree-cfg.c : Likewise.
9434 * tree-cfgcleanup.c : Likewise.
9435 * tree-chkp-opt.c : Likewise.
9436 * tree-chkp.c : Likewise.
9437 * tree-chrec.c : Likewise.
9438 * tree-complex.c : Likewise.
9439 * tree-data-ref.c : Likewise.
9440 * tree-dfa.c : Likewise.
9441 * tree-diagnostic.c : Likewise.
9442 * tree-dump.c : Likewise.
9443 * tree-eh.c : Likewise.
9444 * tree-eh.h : Likewise.
9445 * tree-emutls.c : Likewise.
9446 * tree-hasher.h : Likewise.
9447 * tree-if-conv.c : Likewise.
9448 * tree-inline.c : Likewise.
9449 * tree-inline.h : Likewise.
9450 * tree-into-ssa.c : Likewise.
9451 * tree-iterator.c : Likewise.
9452 * tree-loop-distribution.c : Likewise.
9453 * tree-nested.c : Likewise.
9454 * tree-nrv.c : Likewise.
9455 * tree-object-size.c : Likewise.
9456 * tree-outof-ssa.c : Likewise.
9457 * tree-parloops.c : Likewise.
9458 * tree-phinodes.c : Likewise.
9459 * tree-predcom.c : Likewise.
9460 * tree-pretty-print.c : Likewise.
9461 * tree-profile.c : Likewise.
9462 * tree-scalar-evolution.c : Likewise.
9463 * tree-sra.c : Likewise.
9464 * tree-ssa-address.c : Likewise.
9465 * tree-ssa-alias.c : Likewise.
9466 * tree-ssa-ccp.c : Likewise.
9467 * tree-ssa-coalesce.c : Likewise.
9468 * tree-ssa-copy.c : Likewise.
9469 * tree-ssa-copyrename.c : Likewise.
9470 * tree-ssa-dce.c : Likewise.
9471 * tree-ssa-dom.c : Likewise.
9472 * tree-ssa-dse.c : Likewise.
9473 * tree-ssa-forwprop.c : Likewise.
9474 * tree-ssa-ifcombine.c : Likewise.
9475 * tree-ssa-live.c : Likewise.
9476 * tree-ssa-loop-ch.c : Likewise.
9477 * tree-ssa-loop-im.c : Likewise.
9478 * tree-ssa-loop-ivcanon.c : Likewise.
9479 * tree-ssa-loop-ivopts.c : Likewise.
9480 * tree-ssa-loop-manip.c : Likewise.
9481 * tree-ssa-loop-niter.c : Likewise.
9482 * tree-ssa-loop-prefetch.c : Likewise.
9483 * tree-ssa-loop-unswitch.c : Likewise.
9484 * tree-ssa-loop.c : Likewise.
9485 * tree-ssa-math-opts.c : Likewise.
9486 * tree-ssa-operands.c : Likewise.
9487 * tree-ssa-phiopt.c : Likewise.
9488 * tree-ssa-phiprop.c : Likewise.
9489 * tree-ssa-pre.c : Likewise.
9490 * tree-ssa-propagate.c : Likewise.
9491 * tree-ssa-reassoc.c : Likewise.
9492 * tree-ssa-sccvn.c : Likewise.
9493 * tree-ssa-scopedtables.c : Likewise.
9494 * tree-ssa-sink.c : Likewise.
9495 * tree-ssa-strlen.c : Likewise.
9496 * tree-ssa-structalias.c : Likewise.
9497 * tree-ssa-tail-merge.c : Likewise.
9498 * tree-ssa-ter.c : Likewise.
9499 * tree-ssa-threadedge.c : Likewise.
9500 * tree-ssa-threadupdate.c : Likewise.
9501 * tree-ssa-uncprop.c : Likewise.
9502 * tree-ssa-uninit.c : Likewise.
9503 * tree-ssa.c : Likewise.
9504 * tree-ssanames.c : Likewise.
9505 * tree-stdarg.c : Likewise.
9506 * tree-streamer-in.c : Likewise.
9507 * tree-streamer-out.c : Likewise.
9508 * tree-streamer.c : Likewise.
9509 * tree-streamer.h : Likewise.
9510 * tree-switch-conversion.c : Likewise.
9511 * tree-tailcall.c : Likewise.
9512 * tree-vect-data-refs.c : Likewise.
9513 * tree-vect-generic.c : Likewise.
9514 * tree-vect-loop-manip.c : Likewise.
9515 * tree-vect-loop.c : Likewise.
9516 * tree-vect-patterns.c : Likewise.
9517 * tree-vect-slp.c : Likewise.
9518 * tree-vect-stmts.c : Likewise.
9519 * tree-vectorizer.c : Likewise.
9520 * tree-vectorizer.h : Likewise.
9521 * tree-vrp.c : Likewise.
9522 * tree.c : Likewise.
9523 * tsan.c : Likewise.
9524 * ubsan.c : Likewise.
9525 * valtrack.c : Likewise.
9526 * valtrack.h : Likewise.
9527 * value-prof.c : Likewise.
9528 * var-tracking.c : Likewise.
9529 * varasm.c : Likewise.
9530 * varpool.c : Likewise.
9532 * vmsdbgout.c : Likewise.
9533 * vtable-verify.c : Likewise.
9534 * vtable-verify.h : Likewise.
9536 * wide-int.cc : Likewise.
9537 * xcoffout.c : Likewise.
9538 * config/aarch64/aarch64-builtins.c : Likewise.
9539 * config/aarch64/aarch64.c : Likewise.
9540 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
9541 * config/alpha/alpha.c : Likewise.
9542 * config/arc/arc.c : Likewise.
9543 * config/arm/aarch-common.c : Likewise.
9544 * config/arm/arm-builtins.c : Likewise.
9545 * config/arm/arm-c.c : Likewise.
9546 * config/arm/arm.c : Likewise.
9547 * config/avr/avr-c.c : Likewise.
9548 * config/avr/avr-log.c : Likewise.
9549 * config/avr/avr.c : Likewise.
9550 * config/bfin/bfin.c : Likewise.
9551 * config/c6x/c6x.c : Likewise.
9552 * config/cr16/cr16.c : Likewise.
9553 * config/cris/cris.c : Likewise.
9554 * config/darwin-c.c : Likewise.
9555 * config/darwin.c : Likewise.
9556 * config/default-c.c : Likewise.
9557 * config/epiphany/epiphany.c : Likewise.
9558 * config/epiphany/mode-switch-use.c : Likewise.
9559 * config/epiphany/resolve-sw-modes.c : Likewise.
9560 * config/fr30/fr30.c : Likewise.
9561 * config/frv/frv.c : Likewise.
9562 * config/ft32/ft32.c : Likewise.
9563 * config/glibc-c.c : Likewise.
9564 * config/h8300/h8300.c : Likewise.
9565 * config/i386/i386-c.c : Likewise.
9566 * config/i386/i386.c : Likewise.
9567 * config/i386/msformat-c.c : Likewise.
9568 * config/i386/winnt-cxx.c : Likewise.
9569 * config/i386/winnt-stubs.c : Likewise.
9570 * config/i386/winnt.c : Likewise.
9571 * config/ia64/ia64-c.c : Likewise.
9572 * config/ia64/ia64.c : Likewise.
9573 * config/iq2000/iq2000.c : Likewise.
9574 * config/lm32/lm32.c : Likewise.
9575 * config/m32c/m32c-pragma.c : Likewise.
9576 * config/m32c/m32c.c : Likewise.
9577 * config/m32r/m32r.c : Likewise.
9578 * config/m68k/m68k.c : Likewise.
9579 * config/mcore/mcore.c : Likewise.
9580 * config/mep/mep-pragma.c : Likewise.
9581 * config/mep/mep.c : Likewise.
9582 * config/microblaze/microblaze-c.c : Likewise.
9583 * config/microblaze/microblaze.c : Likewise.
9584 * config/mips/mips.c : Likewise.
9585 * config/mmix/mmix.c : Likewise.
9586 * config/mn10300/mn10300.c : Likewise.
9587 * config/moxie/moxie.c : Likewise.
9588 * config/msp430/msp430-c.c : Likewise.
9589 * config/msp430/msp430.c : Likewise.
9590 * config/nds32/nds32-cost.c : Likewise.
9591 * config/nds32/nds32-fp-as-gp.c : Likewise.
9592 * config/nds32/nds32-intrinsic.c : Likewise.
9593 * config/nds32/nds32-isr.c : Likewise.
9594 * config/nds32/nds32-md-auxiliary.c : Likewise.
9595 * config/nds32/nds32-memory-manipulation.c : Likewise.
9596 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
9597 * config/nds32/nds32-predicates.c : Likewise.
9598 * config/nds32/nds32.c : Likewise.
9599 * config/nios2/nios2.c : Likewise.
9600 * config/nvptx/nvptx.c : Likewise.
9601 * config/pa/pa.c : Likewise.
9602 * config/pdp11/pdp11.c : Likewise.
9603 * config/rl78/rl78-c.c : Likewise.
9604 * config/rl78/rl78.c : Likewise.
9605 * config/rs6000/rs6000-c.c : Likewise.
9606 * config/rs6000/rs6000.c : Likewise.
9607 * config/rx/rx.c : Likewise.
9608 * config/s390/s390-c.c : Likewise.
9609 * config/s390/s390.c : Likewise.
9610 * config/sh/sh-c.c : Likewise.
9611 * config/sh/sh-mem.cc : Likewise.
9612 * config/sh/sh.c : Likewise.
9613 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
9614 * config/sh/sh_treg_combine.cc : Likewise.
9615 * config/sol2-c.c : Likewise.
9616 * config/sol2-cxx.c : Likewise.
9617 * config/sol2-stubs.c : Likewise.
9618 * config/sol2.c : Likewise.
9619 * config/sparc/sparc-c.c : Likewise.
9620 * config/sparc/sparc.c : Likewise.
9621 * config/spu/spu-c.c : Likewise.
9622 * config/spu/spu.c : Likewise.
9623 * config/stormy16/stormy16.c : Likewise.
9624 * config/tilegx/mul-tables.c : Likewise.
9625 * config/tilegx/tilegx-c.c : Likewise.
9626 * config/tilegx/tilegx.c : Likewise.
9627 * config/tilepro/mul-tables.c : Likewise.
9628 * config/tilepro/tilepro-c.c : Likewise.
9629 * config/tilepro/tilepro.c : Likewise.
9630 * config/v850/v850-c.c : Likewise.
9631 * config/v850/v850.c : Likewise.
9632 * config/vax/vax.c : Likewise.
9633 * config/visium/visium.c : Likewise.
9634 * config/vms/vms-c.c : Likewise.
9635 * config/vms/vms.c : Likewise.
9636 * config/vxworks.c : Likewise.
9637 * config/winnt-c.c : Likewise.
9638 * config/xtensa/xtensa.c : Likewise.
9640 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9643 * ipa-utils.h (warn_types_mismatch): Update prototype.
9644 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
9646 (type_mismatch_p): New function.
9647 (warn_types_mismatch): Reorg to work better on non-C++ types.
9648 (odr_types_equivalent_p): Add loc1/loc2 parameters.
9649 (add_type_duplicate): Update.
9651 2015-06-08 Tom de Vries <tom@codesourcery.com>
9653 PR rtl-optimization/66444
9654 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
9657 2015-06-08 Richard Biener <rguenther@suse.de>
9659 PR tree-optimization/66422
9660 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
9661 block after inserted gcc_unreachable.
9663 2015-06-08 Nick Clifton <nickc@redhat.com>
9665 * config/rx/rx.c (rx_function_value): Do not promote vector types.
9666 (rx_promote_function_mode): Likewise.
9667 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
9669 2015-06-08 Jakub Jelinek <jakub@redhat.com>
9671 * genattrtab.c (insn_alternatives): Change type from int *
9673 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
9674 (get_attr_value): Change type of num_alt to uint64_t.
9675 (compute_alternative_mask): Change return type from
9676 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
9677 (make_alternative_compare, mk_attr_alt): Change argument type
9678 from int to uint64_t.
9679 (simplify_test_exp): Change type of i from int to uint64_t.
9680 Shift ((uint64_t) 1) instead of 1 up.
9681 (main): Adjust oballocvec first argument from int to uint64_t.
9682 Shift ((uint64_t) 1) instead of 1 up.
9684 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9687 * gdbhooks.py: Import sys.
9688 (intptr): New function. Replace int(...) by intptr(...).
9690 2015-06-08 Richard Biener <rguenther@suse.de>
9692 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
9693 adjustment for gaps at the end of a SLP load group properly.
9694 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
9695 all permutations we can generate.
9696 (vect_transform_slp_perm_load): Use the correct group-size.
9698 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
9700 * genmatch.c (expr::gen_transform): For conditions, guess the type
9701 from the second operand.
9703 2015-06-08 Tom de Vries <tom@codesourcery.com>
9705 PR tree-optimization/66442
9706 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
9707 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
9708 if the loop latch is not a singleton. Use
9709 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
9711 2015-06-08 Marek Polacek <polacek@redhat.com>
9714 * toplev.c (check_global_declaration): Don't warn about artificial
9717 2015-06-08 Tom de Vries <tom@codesourcery.com>
9719 PR tree-optimization/66436
9720 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
9722 * gimplify.c: Add tree-dump.h include.
9723 (gimplify_function_tree): Dump function to gimple dump file.
9724 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
9727 2015-06-08 Tom de Vries <tom@codesourcery.com>
9729 PR tree-optimization/66435
9730 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
9733 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
9735 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
9736 of ptr_type_node to not be ptr_to_node.
9737 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
9738 TREE_TYPE of pointers.
9739 * gimple-expr.c (useless_type_conversion): Reorder the check for
9740 function pointers and TYPE_CANONICAL.
9742 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
9745 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
9746 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
9747 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
9749 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
9750 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
9751 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
9752 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
9753 and non iso if unix2003.
9755 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
9757 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
9759 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
9761 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
9762 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
9763 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
9764 except.c, final.c, function.c, gcse-common.c, genemit.c,
9765 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
9766 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
9767 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
9768 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
9771 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
9773 * combine.c (combine_split_insns): Remove cast.
9774 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
9775 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
9776 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
9777 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
9778 * genemit.c (gen_split): Change return type of generated functions to
9780 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
9781 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
9782 gen_peephole2_* functions.
9783 (print_subroutine, main): Likewise.
9784 * recog.c (peephole2_optimize): Remove cast.
9785 (peep2_next_insn): Promote return type to rtx_insn.
9786 * recog.h (peep2_next_insn): Fix prototype.
9787 * rtl.h (try_split, split_insns): Likewise.
9789 2015-06-06 DJ Delorie <dj@redhat.com>
9791 * config/msp430/msp430.c (msp430_asm_integer): Support addition
9792 and subtraction too.
9794 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
9797 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
9798 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
9799 instead of Snd. Disparage Sid/z alternative with '^'.
9801 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
9803 * dwarf2out.c: Remove deferred_locations*.
9804 (dwarf2_debug_hooks): Add early_finish hook.
9805 Remove global_decl hook.
9806 Add early_global_decl and late_global_decl hook.
9807 New global early_dwarf.
9808 New structure set_early_dwarf.
9809 (output_die): Indicate whether a DIE was generated early
9810 when generating assembly with -dA.
9811 (struct limbo_die_struct): Document created_for field.
9812 Remove file_table_last_lookup.
9813 (remove_AT): Return TRUE if successful.
9814 (remove_child_TAG): Clear die_parent.
9815 (reparent_child): New function abstracted from...
9816 (splice_child_die): ...here.
9817 (new_die): ICE if a DIE ends up in limbo too late.
9819 (defer_location): Remove.
9820 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
9821 (fill_variable_array_bounds): New.
9822 (decl_start_label): Call fill_variable_array_bounds.
9823 (gen_formal_parameter_die): Rewrite to reuse previously generated
9825 (gen_subprogram_die): Same.
9826 (gen_variable_die): Same.
9827 (gen_const_die): Same.
9828 (gen_label_die): Same.
9829 (gen_lexical_block_die): Same.
9830 (decl_will_get_specification_p): New.
9831 (local_function_static): New.
9832 (gen_struct_or_union_type_die): Fill in variable-length fields.
9833 (gen_typedef_die): Fill in variable-length typedefs.
9834 (gen_tagged_type_die): Gracefully return on error_mark_node.
9836 (gen_type_die_with_usage): Handle variable-length types.
9837 Remove duplicate code for ARRAY_TYPE case.
9838 (process_scope_var): Only process imported modules during early
9840 (dwarf2out_early_global_decl): New.
9841 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
9842 (dwarf2out_type_decl): Set early_dwarf while calling
9844 (dwarf2out_decl): Verify that we did not recreate a previously
9846 Do not return on DECL_EXTERNALs in VAR_DECLs.
9847 Abstract some code to local_function_static.
9848 (lookup_filename): Remove use of file_table_last_lookup.
9849 Gracefully exit on missing file_name.
9850 (dwarf2out_finish): Verify limbo list.
9851 Remove deferred_locations_list use.
9852 Move deferred_asm_name and limbo flushing to...
9853 (dwarf2out_early_finish): ...here. New.
9854 (dwarf2out_c_finalize): Remove set of deferred_location_list,
9855 deferred_asm_name, and file_table_last_lookup.
9856 * cgraph.h (referred_to_p): Add default argument.
9857 * cgraphunit.c (referred_to_p): Add and handle include_self
9859 (analyze_functions): Add first_time argument.
9860 Call check_global_declaration for all symbols.
9861 Call late_global_decl for nodes for moribund nodes.
9862 (finalize_compilation_unit): Add new argument to
9864 Call early_global_decl for functions.
9865 Call early_finish debug hook.
9866 * dbxout.c (dbxout_early_global_decl): New.
9867 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
9868 (dbx_debug_hooks): Add new hooks.
9869 (xcoff_debug_hooks): Same.
9870 * debug.c (do_nothing_debug_hooks): Add early_finish field.
9871 Add early and late debug hooks.
9872 Remove global_decl hook.
9873 * debug.h (struct gcc_debug_hooks): Add early_finish,
9874 early_global_decl, and late_global_decl fields.
9875 Remove global_decl field.
9876 Document gcc_debug_hooks.
9877 * gengtype.c (output_typename): Remove.
9878 * godump.c (go_early_global_decl): New.
9879 (go_late_global_decl): New.
9880 (go_global_decl): Remove.
9881 (dump_go_spec_init): Remove global_decl. Add
9882 {early,late}_global_decl.
9883 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
9884 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
9885 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
9886 (write_global_declarations): Remove.
9887 (global_decl_processing): New.
9888 * langhooks.h (struct lang_hooks_for_decls): Remove
9889 final_write_globals field.
9890 Add post_compilation_parsing_cleanups field.
9891 * passes.c (rest_of_decl_compilation): Call early_global_decl.
9892 * sdbout.c: Add early and late_global_decl hooks. Remove
9893 sdbout_global_decl hook.
9894 Add early_finish field for sdb_debug_hooks.
9895 (sdbout_global_decl): Remove.
9896 (sdbout_early_global_decl): New.
9897 (sdbout_late_global_decl): New.
9898 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
9899 * toplev.c (check_global_declaration): Rename from
9900 check_global_declaration_1.
9901 Adapt to use symtab infrastructure.
9902 (check_global_declarations): Remove.
9903 (emit_debug_global_declarations): Remove.
9904 (compile_file): Remove call to final_write_globals langhook.
9905 Run the actual compilation process.
9906 Perform any post compilation parser cleanups.
9907 Generate late debug info.
9908 * toplev.h (check_global_declaration): New.
9909 (check_global_declaration_1): Remove.
9910 (check_global_declarations): Remove.
9911 (write_global_declarations): Remove.
9912 (emit_debug_global_declarations): Remove.
9913 (global_decl_processing): New.
9914 * tree-core.h (struct tree_block): Add DIE field.
9915 * tree.h (BLOCK_DIE): New.
9916 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
9918 (vmsdbgout_early_global_decl): New.
9919 (vmsdbgout_late_global_decl): New.
9920 Add early_finish debug hook field to vmsdbg_debug_hooks.
9921 Remove vmsdbgout_decl to vmsdbgout_function_decl.
9922 Add early and late_global_decl debug hooks.
9924 2015-06-05 Julian Brown <julian@codesourcery.com>
9925 Sandra Loosemore <sandra@codesourcery.com>
9927 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
9928 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
9929 to print-sysroot-suffix.sh script.
9931 2015-06-05 Tom de Vries <tom@codesourcery.com>
9933 merge from gomp4 branch:
9934 2015-05-28 Tom de Vries <tom@codesourcery.com>
9936 PR tree-optimization/65443
9937 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
9938 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
9939 (try_transform_to_exit_first_loop_alt): New function.
9940 (transform_to_exit_first_loop): Use
9941 try_transform_to_exit_first_loop_alt.
9943 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
9945 * builtins.c (expand_builtin_atomic_compare_exchange): Call
9946 emit_cmp_and_jump_insns with the mode of target.
9948 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9950 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
9952 2015-06-04 DJ Delorie <dj@redhat.com>
9954 * config/msp430/msp430.md (movsi_s): New. Special case for
9955 storing a 20-bit symbol into a 32-bit register.
9956 * config/msp430/msp430.c (msp430_subreg): Add support for it.
9957 * config/msp430/predicates.md (msp430_symbol_operand): New.
9959 2015-06-04 Sriraman Tallam <tmsriram@google.com>
9961 * c-family/c-common.c (noplt): New attribute.
9962 (handle_noplt_attribute): New handler.
9963 * calls.c (prepare_call_address): Check for noplt
9965 * config/i386/i386.c (ix86_expand_call): Check
9966 for noplt attribute.
9967 (ix86_nopic_noplt_attribute_p): New function.
9968 (ix86_output_call_insn): Output indirect call for non-pic
9970 * doc/extend.texi (noplt): Document new attribute.
9971 * doc/invoke.texi: Document new attribute.
9973 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
9975 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
9976 real.h, and fixed-value.h when included in host source files.
9977 * double-int.h: Remove redundant #includes listed above.
9978 * fixed-value.h: Likewise.
9980 * wide-int.h: Likewise.
9981 * inchash.h: Likewise.
9982 * rtl.h: Add some include files When included from a generator file.
9983 * target.h: Remove wide-int.h and insn-modes.h from the include list.
9984 * internal-fn.h: Don't include coretypes.h.
9985 * alias.c: Adjust includes for restructured coretypes.h.
9987 * attribs.c: Likewise.
9988 * auto-inc-dec.c: Likewise.
9989 * auto-profile.c: Likewise.
9990 * bb-reorder.c: Likewise.
9991 * bt-load.c: Likewise.
9992 * builtins.c: Likewise.
9993 * caller-save.c: Likewise.
9994 * calls.c: Likewise.
9997 * cfganal.c: Likewise.
9998 * cfgbuild.c: Likewise.
9999 * cfgcleanup.c: Likewise.
10000 * cfgexpand.c: Likewise.
10001 * cfghooks.c: Likewise.
10002 * cfgloop.c: Likewise.
10003 * cfgloop.h: Likewise.
10004 * cfgloopanal.c: Likewise.
10005 * cfgloopmanip.c: Likewise.
10006 * cfgrtl.c: Likewise.
10007 * cgraph.c: Likewise.
10008 * cgraphbuild.c: Likewise.
10009 * cgraphclones.c: Likewise.
10010 * cgraphunit.c: Likewise.
10011 * cilk-common.c: Likewise.
10012 * combine-stack-adj.c: Likewise.
10013 * combine.c: Likewise.
10014 * compare-elim.c: Likewise.
10015 * convert.c: Likewise.
10016 * coverage.c: Likewise.
10017 * cppbuiltin.c: Likewise.
10018 * cprop.c: Likewise.
10020 * cselib.c: Likewise.
10021 * data-streamer-in.c: Likewise.
10022 * data-streamer-out.c: Likewise.
10023 * data-streamer.c: Likewise.
10024 * dbxout.c: Likewise.
10027 * debug.c: Likewise.
10028 * df-core.c: Likewise.
10029 * df-problems.c: Likewise.
10030 * df-scan.c: Likewise.
10033 * dojump.c: Likewise.
10034 * dominance.c: Likewise.
10035 * domwalk.c: Likewise.
10036 * double-int.c: Likewise.
10038 * dumpfile.c: Likewise.
10039 * dwarf2asm.c: Likewise.
10040 * dwarf2cfi.c: Likewise.
10041 * dwarf2out.c: Likewise.
10042 * dwarf2out.h: Likewise.
10043 * emit-rtl.c: Likewise.
10044 * et-forest.c: Likewise.
10045 * except.c: Likewise.
10046 * explow.c: Likewise.
10047 * expmed.c: Likewise.
10048 * expr.c: Likewise.
10049 * final.c: Likewise.
10050 * fixed-value.c: Likewise.
10051 * fold-const.c: Likewise.
10052 * function.c: Likewise.
10053 * fwprop.c: Likewise.
10054 * gcc-plugin.h: Likewise.
10055 * gcse.c: Likewise.
10056 * generic-match-head.c: Likewise.
10057 * ggc-page.c: Likewise.
10058 * gimple-builder.c: Likewise.
10059 * gimple-expr.c: Likewise.
10060 * gimple-fold.c: Likewise.
10061 * gimple-iterator.c: Likewise.
10062 * gimple-low.c: Likewise.
10063 * gimple-match-head.c: Likewise.
10064 * gimple-pretty-print.c: Likewise.
10065 * gimple-ssa-isolate-paths.c: Likewise.
10066 * gimple-ssa-strength-reduction.c: Likewise.
10067 * gimple-streamer-in.c: Likewise.
10068 * gimple-streamer-out.c: Likewise.
10069 * gimple-streamer.h: Likewise.
10070 * gimple-walk.c: Likewise.
10071 * gimple.c: Likewise.
10072 * gimplify-me.c: Likewise.
10073 * gimplify.c: Likewise.
10074 * godump.c: Likewise.
10075 * graph.c: Likewise.
10076 * graphite-blocking.c: Likewise.
10077 * graphite-dependences.c: Likewise.
10078 * graphite-interchange.c: Likewise.
10079 * graphite-isl-ast-to-gimple.c: Likewise.
10080 * graphite-optimize-isl.c: Likewise.
10081 * graphite-poly.c: Likewise.
10082 * graphite-scop-detection.c: Likewise.
10083 * graphite-sese-to-poly.c: Likewise.
10084 * graphite.c: Likewise.
10085 * haifa-sched.c: Likewise.
10086 * hooks.h: Likewise.
10087 * hw-doloop.c: Likewise.
10088 * ifcvt.c: Likewise.
10089 * incpath.c: Likewise.
10090 * init-regs.c: Likewise.
10091 * internal-fn.c: Likewise.
10092 * ipa-chkp.c: Likewise.
10093 * ipa-comdats.c: Likewise.
10094 * ipa-cp.c: Likewise.
10095 * ipa-devirt.c: Likewise.
10096 * ipa-icf-gimple.c: Likewise.
10097 * ipa-icf.c: Likewise.
10098 * ipa-inline-analysis.c: Likewise.
10099 * ipa-inline-transform.c: Likewise.
10100 * ipa-inline.c: Likewise.
10101 * ipa-polymorphic-call.c: Likewise.
10102 * ipa-profile.c: Likewise.
10103 * ipa-prop.c: Likewise.
10104 * ipa-pure-const.c: Likewise.
10105 * ipa-ref.c: Likewise.
10106 * ipa-reference.c: Likewise.
10107 * ipa-split.c: Likewise.
10108 * ipa-utils.c: Likewise.
10109 * ipa-visibility.c: Likewise.
10111 * ira-build.c: Likewise.
10112 * ira-color.c: Likewise.
10113 * ira-conflicts.c: Likewise.
10114 * ira-costs.c: Likewise.
10115 * ira-emit.c: Likewise.
10116 * ira-lives.c: Likewise.
10118 * jump.c: Likewise.
10119 * langhooks.c: Likewise.
10121 * loop-doloop.c: Likewise.
10122 * loop-init.c: Likewise.
10123 * loop-invariant.c: Likewise.
10124 * loop-iv.c: Likewise.
10125 * loop-unroll.c: Likewise.
10126 * lower-subreg.c: Likewise.
10127 * lra-assigns.c: Likewise.
10128 * lra-coalesce.c: Likewise.
10129 * lra-constraints.c: Likewise.
10130 * lra-eliminations.c: Likewise.
10131 * lra-lives.c: Likewise.
10132 * lra-remat.c: Likewise.
10133 * lra-spills.c: Likewise.
10135 * lto-cgraph.c: Likewise.
10136 * lto-compress.c: Likewise.
10137 * lto-opts.c: Likewise.
10138 * lto-section-in.c: Likewise.
10139 * lto-section-out.c: Likewise.
10140 * lto-streamer-in.c: Likewise.
10141 * lto-streamer-out.c: Likewise.
10142 * lto-streamer.c: Likewise.
10144 * mode-switching.c: Likewise.
10145 * modulo-sched.c: Likewise.
10146 * omega.c: Likewise.
10147 * omp-low.c: Likewise.
10148 * optabs.c: Likewise.
10149 * opts-global.c: Likewise.
10150 * passes.c: Likewise.
10151 * plugin.c: Likewise.
10152 * postreload-gcse.c: Likewise.
10153 * postreload.c: Likewise.
10154 * predict.c: Likewise.
10155 * print-rtl.c: Likewise.
10156 * print-tree.c: Likewise.
10157 * profile.c: Likewise.
10158 * real.c: Likewise.
10159 * realmpfr.c: Likewise.
10160 * realmpfr.h: Likewise.
10161 * recog.c: Likewise.
10163 * reg-stack.c: Likewise.
10164 * regcprop.c: Likewise.
10165 * reginfo.c: Likewise.
10166 * regrename.c: Likewise.
10167 * regs.h: Likewise.
10168 * regstat.c: Likewise.
10169 * reload.c: Likewise.
10170 * reload1.c: Likewise.
10171 * reorg.c: Likewise.
10172 * resource.c: Likewise.
10173 * rtl-chkp.c: Likewise.
10174 * rtlanal.c: Likewise.
10175 * rtlhooks.c: Likewise.
10176 * sanopt.c: Likewise.
10177 * sched-deps.c: Likewise.
10178 * sched-ebb.c: Likewise.
10179 * sched-rgn.c: Likewise.
10180 * sched-vis.c: Likewise.
10181 * sdbout.c: Likewise.
10182 * sel-sched-dump.c: Likewise.
10183 * sel-sched-ir.c: Likewise.
10184 * sel-sched.c: Likewise.
10185 * sese.c: Likewise.
10186 * shrink-wrap.c: Likewise.
10187 * shrink-wrap.h: Likewise.
10188 * simplify-rtx.c: Likewise.
10189 * stack-ptr-mod.c: Likewise.
10190 * statistics.c: Likewise.
10191 * stmt.c: Likewise.
10192 * stor-layout.c: Likewise.
10193 * store-motion.c: Likewise.
10194 * stringpool.c: Likewise.
10195 * symtab.c: Likewise.
10196 * target-globals.c: Likewise.
10197 * targhooks.c: Likewise.
10198 * toplev.c: Likewise.
10199 * tracer.c: Likewise.
10200 * trans-mem.c: Likewise.
10201 * tree-affine.c: Likewise.
10202 * tree-affine.h: Likewise.
10203 * tree-browser.c: Likewise.
10204 * tree-call-cdce.c: Likewise.
10205 * tree-cfg.c: Likewise.
10206 * tree-cfgcleanup.c: Likewise.
10207 * tree-chkp-opt.c: Likewise.
10208 * tree-chkp.c: Likewise.
10209 * tree-chrec.c: Likewise.
10210 * tree-complex.c: Likewise.
10211 * tree-data-ref.c: Likewise.
10212 * tree-dfa.c: Likewise.
10213 * tree-diagnostic.c: Likewise.
10214 * tree-dump.c: Likewise.
10215 * tree-eh.c: Likewise.
10216 * tree-emutls.c: Likewise.
10217 * tree-if-conv.c: Likewise.
10218 * tree-inline.c: Likewise.
10219 * tree-into-ssa.c: Likewise.
10220 * tree-iterator.c: Likewise.
10221 * tree-loop-distribution.c: Likewise.
10222 * tree-nested.c: Likewise.
10223 * tree-nrv.c: Likewise.
10224 * tree-object-size.c: Likewise.
10225 * tree-outof-ssa.c: Likewise.
10226 * tree-parloops.c: Likewise.
10227 * tree-phinodes.c: Likewise.
10228 * tree-predcom.c: Likewise.
10229 * tree-pretty-print.c: Likewise.
10230 * tree-pretty-print.h: Likewise.
10231 * tree-profile.c: Likewise.
10232 * tree-scalar-evolution.c: Likewise.
10233 * tree-sra.c: Likewise.
10234 * tree-ssa-address.c: Likewise.
10235 * tree-ssa-alias.c: Likewise.
10236 * tree-ssa-ccp.c: Likewise.
10237 * tree-ssa-coalesce.c: Likewise.
10238 * tree-ssa-copy.c: Likewise.
10239 * tree-ssa-copyrename.c: Likewise.
10240 * tree-ssa-dce.c: Likewise.
10241 * tree-ssa-dom.c: Likewise.
10242 * tree-ssa-dse.c: Likewise.
10243 * tree-ssa-forwprop.c: Likewise.
10244 * tree-ssa-ifcombine.c: Likewise.
10245 * tree-ssa-live.c: Likewise.
10246 * tree-ssa-loop-ch.c: Likewise.
10247 * tree-ssa-loop-im.c: Likewise.
10248 * tree-ssa-loop-ivcanon.c: Likewise.
10249 * tree-ssa-loop-ivopts.c: Likewise.
10250 * tree-ssa-loop-manip.c: Likewise.
10251 * tree-ssa-loop-niter.c: Likewise.
10252 * tree-ssa-loop-prefetch.c: Likewise.
10253 * tree-ssa-loop-unswitch.c: Likewise.
10254 * tree-ssa-loop.c: Likewise.
10255 * tree-ssa-loop.h: Likewise.
10256 * tree-ssa-math-opts.c: Likewise.
10257 * tree-ssa-operands.c: Likewise.
10258 * tree-ssa-phiopt.c: Likewise.
10259 * tree-ssa-phiprop.c: Likewise.
10260 * tree-ssa-pre.c: Likewise.
10261 * tree-ssa-propagate.c: Likewise.
10262 * tree-ssa-reassoc.c: Likewise.
10263 * tree-ssa-sccvn.c: Likewise.
10264 * tree-ssa-scopedtables.c: Likewise.
10265 * tree-ssa-sink.c: Likewise.
10266 * tree-ssa-strlen.c: Likewise.
10267 * tree-ssa-structalias.c: Likewise.
10268 * tree-ssa-tail-merge.c: Likewise.
10269 * tree-ssa-ter.c: Likewise.
10270 * tree-ssa-threadedge.c: Likewise.
10271 * tree-ssa-threadupdate.c: Likewise.
10272 * tree-ssa-uncprop.c: Likewise.
10273 * tree-ssa-uninit.c: Likewise.
10274 * tree-ssa.c: Likewise.
10275 * tree-ssanames.c: Likewise.
10276 * tree-stdarg.c: Likewise.
10277 * tree-streamer-in.c: Likewise.
10278 * tree-streamer-out.c: Likewise.
10279 * tree-streamer.c: Likewise.
10280 * tree-switch-conversion.c: Likewise.
10281 * tree-tailcall.c: Likewise.
10282 * tree-vect-data-refs.c: Likewise.
10283 * tree-vect-generic.c: Likewise.
10284 * tree-vect-loop-manip.c: Likewise.
10285 * tree-vect-loop.c: Likewise.
10286 * tree-vect-patterns.c: Likewise.
10287 * tree-vect-slp.c: Likewise.
10288 * tree-vect-stmts.c: Likewise.
10289 * tree-vectorizer.c: Likewise.
10290 * tree-vrp.c: Likewise.
10291 * tree.c: Likewise.
10292 * tsan.c: Likewise.
10293 * ubsan.c: Likewise.
10294 * valtrack.c: Likewise.
10295 * value-prof.c: Likewise.
10296 * var-tracking.c: Likewise.
10297 * varasm.c: Likewise.
10298 * varpool.c: Likewise.
10299 * vmsdbgout.c: Likewise.
10300 * vtable-verify.c: Likewise.
10302 * wide-int-print.cc: Likewise.
10303 * wide-int-print.h: Likewise.
10304 * wide-int.cc: Likewise.
10305 * xcoffout.c: Likewise.
10306 * config/aarch64/aarch64-builtins.c: Likewise.
10307 * config/aarch64/aarch64.c: Likewise.
10308 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10309 * config/alpha/alpha.c: Likewise.
10310 * config/arc/arc.c: Likewise.
10311 * config/arm/aarch-common.c: Likewise.
10312 * config/arm/arm-builtins.c: Likewise.
10313 * config/arm/arm-c.c: Likewise.
10314 * config/arm/arm.c: Likewise.
10315 * config/avr/avr-c.c: Likewise.
10316 * config/avr/avr-log.c: Likewise.
10317 * config/avr/avr.c: Likewise.
10318 * config/bfin/bfin.c: Likewise.
10319 * config/c6x/c6x.c: Likewise.
10320 * config/cr16/cr16.c: Likewise.
10321 * config/cris/cris.c: Likewise.
10322 * config/darwin-c.c: Likewise.
10323 * config/darwin.c: Likewise.
10324 * config/default-c.c: Likewise.
10325 * config/epiphany/epiphany.c: Likewise.
10326 * config/epiphany/mode-switch-use.c: Likewise.
10327 * config/epiphany/resolve-sw-modes.c: Likewise.
10328 * config/fr30/fr30.c: Likewise.
10329 * config/frv/frv.c: Likewise.
10330 * config/ft32/ft32.c: Likewise.
10331 * config/glibc-c.c: Likewise.
10332 * config/h8300/h8300.c: Likewise.
10333 * config/i386/i386-c.c: Likewise.
10334 * config/i386/i386.c: Likewise.
10335 * config/i386/msformat-c.c: Likewise.
10336 * config/i386/winnt-cxx.c: Likewise.
10337 * config/i386/winnt-stubs.c: Likewise.
10338 * config/i386/winnt.c: Likewise.
10339 * config/ia64/ia64-c.c: Likewise.
10340 * config/ia64/ia64.c: Likewise.
10341 * config/iq2000/iq2000.c: Likewise.
10342 * config/lm32/lm32.c: Likewise.
10343 * config/m32c/m32c-pragma.c: Likewise.
10344 * config/m32c/m32c.c: Likewise.
10345 * config/m32r/m32r.c: Likewise.
10346 * config/m68k/m68k.c: Likewise.
10347 * config/mcore/mcore.c: Likewise.
10348 * config/mep/mep-pragma.c: Likewise.
10349 * config/mep/mep.c: Likewise.
10350 * config/microblaze/microblaze-c.c: Likewise.
10351 * config/microblaze/microblaze.c: Likewise.
10352 * config/mips/mips.c: Likewise.
10353 * config/mmix/mmix.c: Likewise.
10354 * config/mn10300/mn10300.c: Likewise.
10355 * config/moxie/moxie.c: Likewise.
10356 * config/msp430/msp430-c.c: Likewise.
10357 * config/msp430/msp430.c: Likewise.
10358 * config/nds32/nds32-cost.c: Likewise.
10359 * config/nds32/nds32-fp-as-gp.c: Likewise.
10360 * config/nds32/nds32-intrinsic.c: Likewise.
10361 * config/nds32/nds32-isr.c: Likewise.
10362 * config/nds32/nds32-md-auxiliary.c: Likewise.
10363 * config/nds32/nds32-memory-manipulation.c: Likewise.
10364 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10365 * config/nds32/nds32-predicates.c: Likewise.
10366 * config/nds32/nds32.c: Likewise.
10367 * config/nios2/nios2.c: Likewise.
10368 * config/nvptx/nvptx.c: Likewise.
10369 * config/pa/pa.c: Likewise.
10370 * config/pdp11/pdp11.c: Likewise.
10371 * config/rl78/rl78-c.c: Likewise.
10372 * config/rl78/rl78.c: Likewise.
10373 * config/rs6000/rs6000-c.c: Likewise.
10374 * config/rs6000/rs6000.c: Likewise.
10375 * config/rx/rx.c: Likewise.
10376 * config/s390/s390-c.c: Likewise.
10377 * config/s390/s390.c: Likewise.
10378 * config/sh/sh-c.c: Likewise.
10379 * config/sh/sh-mem.cc: Likewise.
10380 * config/sh/sh.c: Likewise.
10381 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10382 * config/sh/sh_treg_combine.cc: Likewise.
10383 * config/sol2-c.c: Likewise.
10384 * config/sol2-cxx.c: Likewise.
10385 * config/sol2-stubs.c: Likewise.
10386 * config/sol2.c: Likewise.
10387 * config/sparc/sparc-c.c: Likewise.
10388 * config/sparc/sparc.c: Likewise.
10389 * config/spu/spu-c.c: Likewise.
10390 * config/spu/spu.c: Likewise.
10391 * config/stormy16/stormy16.c: Likewise.
10392 * config/tilegx/mul-tables.c: Likewise.
10393 * config/tilegx/tilegx-c.c: Likewise.
10394 * config/tilegx/tilegx.c: Likewise.
10395 * config/tilepro/mul-tables.c: Likewise.
10396 * config/tilepro/tilepro-c.c: Likewise.
10397 * config/tilepro/tilepro.c: Likewise.
10398 * config/v850/v850-c.c: Likewise.
10399 * config/v850/v850.c: Likewise.
10400 * config/vax/vax.c: Likewise.
10401 * config/visium/visium.c: Likewise.
10402 * config/vms/vms-c.c: Likewise.
10403 * config/vms/vms.c: Likewise.
10404 * config/vxworks.c: Likewise.
10405 * config/winnt-c.c: Likewise.
10406 * config/xtensa/xtensa.c: Likewise.
10407 * common/config/bfin/bfin-common.c: Likewise.
10409 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
10411 * tree.h (tree_code_for_canonical_type_merging): New function.
10412 * tree.c (gimple_canonical_types_compatible_p): Use
10413 tree_code_for_canonical_type_merging..
10415 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10419 * doc/tm.texi: Regenerate.
10420 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
10421 * target.def (TARGET_RELAXED_ORDERING): Likewise.
10422 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
10423 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
10424 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
10425 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
10426 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
10427 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
10428 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
10430 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10432 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
10433 register fma steering pass.
10434 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
10435 AARCH64_TUNE_FMA_STEERING.
10437 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
10439 * tree.c (verify_type_variant): Verify that type and variant is
10441 (gimple_canonical_types_compatible_p): Look for main variants.
10443 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10445 * config.gcc (powerpc*-*-*): Add support for a new configure
10446 option --with-advance-toolchain=<xxx> which overrides using the
10447 default header files, libraries and dynamic linker.
10449 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
10450 specs to support the configure --with-advance-toolchain=<xxx>
10452 (INCLUDE_EXTRA_SPEC): Likewise.
10453 (LINK_OS_EXTRA_SPEC32): Likewise.
10454 (LINK_OK_EXTRA_SPEC64): Likewise.
10455 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
10456 (DYNAMIC_LINKER_PREFIX): Likewise.
10457 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
10459 (GLIBC_DYNAMIC_LINKER32): Likewise.
10460 (GLIBC_DYNAMIC_LINKER64): Likewise.
10461 (LINK_OS_LINUX_SPEC32): Likewise.
10462 (LINK_OS_LINUX_SPEC64): Likewise.
10464 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
10465 configuration option.
10467 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
10470 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
10471 to determine current function ABI.
10472 (ix86_function_value_regno_p): Ditto.
10474 2015-06-03 Martin Liska <mliska@suse.cz>
10476 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
10477 * bitmap.h (struct bitmap_usage): Likewise.
10478 * ggc-common.c (struct ggc_usage): Likewise.
10479 * mem-stats.h (struct mem_location): Likewise.
10480 (struct mem_usage): Likewise.
10481 * vec.c (struct vec_usage): Likewise.
10483 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
10485 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
10488 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
10490 * doc/plugins.texi (enum plugin_event): New event.
10491 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
10492 and PLUGIN_FINISH_FUNCTION.
10493 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
10494 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
10496 2015-06-03 Richard Biener <rguenther@suse.de>
10498 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
10499 compute GROUP_GAP for the first element.
10500 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
10503 2015-06-03 Nick Clifton <nickc@redhat.com>
10505 * config/rl78/rl78-real.md: Add peepholes to avoid a register
10506 copy when calling a function.
10507 * config/rl78/rl78.c (need_to_save): Do not push the frame
10508 pointer in an interrupt handler prologue if it is never used.
10510 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10512 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
10514 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
10516 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
10517 reference when cloning alias node.
10519 2015-06-03 Martin Liska <mliska@suse.cz>
10521 * alloc-pool.h (struct pool_usage): Correct space padding.
10522 * ggc-page.c (ggc_print_statistics): Align columns in a report.
10523 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
10524 * tree.c (dump_tree_statistics): Align columns in a report.
10526 2015-06-03 Martin Liska <mliska@suse.cz>
10528 * alloc-pool.c (allocate_pool_descriptor): Remove.
10529 (struct pool_output_info): Likewise.
10530 (print_alloc_pool_statistics): Likewise.
10531 (dump_alloc_pool_statistics): Likewise.
10532 * alloc-pool.h (struct pool_usage): New struct.
10533 (pool_allocator::initialize): Change usage of memory statistics
10534 to a new interface.
10535 (pool_allocator::release): Likewise.
10536 (pool_allocator::allocate): Likewise.
10537 (pool_allocator::remove): Likewise.
10538 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
10539 for a pool allocator.
10540 * mem-stats.h (struct mem_location): Add new ctor.
10541 (struct mem_usage): Add counter for number of
10543 (mem_alloc_description::register_descriptor): New overload of
10544 * mem-stats.h (mem_location::to_string): New function.
10545 * bitmap.h (struct bitmap_usage): Use this new function.
10546 * ggc-common.c (struct ggc_usage): Likewise.
10549 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
10551 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
10552 of GCC_INSN_FLAGS_H block.
10554 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
10556 * explow.c (plus_constant): Update check after force_const_mem call
10557 to see if the value returned is not a NULL_RTX.
10559 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
10561 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
10562 remove instumentation thunks calling reachable functions.
10563 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
10564 * lto/lto-partition.c (privatize_symbol_name_1): New.
10565 (privatize_symbol_name): Privatize both decl and orig_decl
10566 names for instrumented functions.
10567 * cgraph.c (cgraph_node::verify_node): Add transparent
10568 alias chain check for instrumented node.
10570 2015-06-03 Marek Polacek <polacek@redhat.com>
10574 * tree.c (attribute_value_equal): Handle attribute format.
10575 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
10577 2015-06-03 Richard Biener <rguenther@suse.de>
10579 PR tree-optimization/63916
10580 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10581 Forward-propagate non-invariant addresses by splicing their
10582 reference ops if the result isn't going to be used by PRE.
10583 (vn_reference_lookup_3): Remove pointless assert.
10585 2015-06-03 Richard Biener <rguenther@suse.de>
10587 PR tree-optimization/66375
10588 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
10589 add to the evolution before following SSA edges.
10591 2015-06-03 Bin Cheng <bin.cheng@arm.com>
10593 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
10594 (dump_use, dump_cand, find_induction_variables): Pass new argument
10596 (record_use): Preserve the ssa name information in IV.
10598 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
10600 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
10602 (add_mode_tests): Don't add mode tests if the predicate only
10603 accepts scalar constant integers. Otherwise, allow the mode
10604 of "op" to be VOIDmode if the predicate does accept such integers.
10606 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
10609 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
10610 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
10611 (aarch64_secondary_reload): Likewise
10612 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
10614 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
10617 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
10618 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10621 * cprop.c (try_replace_reg): Check cost of constants before propagating.
10623 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10625 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
10626 provide access to the IBM extended double floating point mode if
10627 long double is IEEE 128-bit floating point.
10628 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
10629 point if long double is the IBM extended double type.
10631 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
10632 enable adding IEEE 128-bit floating point support.
10633 (-mfloat128-software): Likewise.
10634 (-mfloat128-sw): Likewise.
10636 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
10637 128-bit floating point types to occupy any register if
10638 -mlong-double-64. Do not allow use of IFmode/KFmode unless
10639 -mfloat128-software is enabled.
10640 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
10642 (rs6000_option_override_internal): Add -mfloat128-* support.
10643 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
10645 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
10646 and float128 type nodes.
10647 (ieee128_float_type_node): Likewise.
10648 (ibm128_float_type_node): Likewise.
10650 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10653 * config/aarch64/geniterators.sh: Rewrite in awk.
10655 2015-06-02 Martin Liska <mliska@suse.cz>
10657 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
10658 values to avoid -Wmaybe-uninitialized errors.
10660 2015-06-02 Richard Biener <rguenther@suse.de>
10663 * dwarf2out.c (lookup_context_die): New function.
10664 (resolve_addr): Avoid forcing a full DIE for the
10665 target of a DW_TAG_GNU_call_site during late compilation.
10666 Instead create a stub DIE without a type if we have a
10667 context DIE present.
10669 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
10671 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
10673 2015-06-02 Bin Cheng <bin.cheng@arm.com>
10675 PR tree-optimization/48052
10676 * cfgloop.h (struct control_iv): New.
10677 (struct loop): New field control_ivs.
10678 * tree-ssa-loop-niter.c : Include "stor-layout.h".
10679 (number_of_iterations_lt): Set no_overflow information.
10680 (number_of_iterations_exit): Init control iv in niter struct.
10681 (record_control_iv): New.
10682 (estimate_numbers_of_iterations_loop): Call record_control_iv.
10683 (loop_exits_before_overflow): New. Interface factored out of
10684 scev_probably_wraps_p.
10685 (scev_probably_wraps_p): Factor loop niter related code into
10686 loop_exits_before_overflow.
10687 (free_numbers_of_iterations_estimates_loop): Free control ivs.
10688 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
10690 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
10692 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
10693 the target doesn't belong to the current function.
10695 2015-06-02 Marek Polacek <polacek@redhat.com>
10697 PR middle-end/66345
10698 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
10699 get_maxval_strlen does not produce an INTEGER_CST.
10701 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
10703 * config/arc/constraints.md: Use lower-case names in match_code.
10704 * config/mmix/constraints.md: Likewise.
10706 2015-06-02 Richard Biener <rguenther@suse.de>
10708 PR tree-optimization/65961
10709 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
10710 check and clarify dump message.
10711 (vect_build_slp_tree): If all children are built up from scalars
10712 build up the parent from scalars instead.
10713 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
10715 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10718 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
10719 instead of print ... .
10721 2015-06-02 Alan Modra <amodra@gmail.com>
10723 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
10726 2015-06-02 Bin Cheng <bin.cheng@arm.com>
10728 PR tree-optimization/52563
10729 PR tree-optimization/62173
10730 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
10731 (alloc_iv, set_iv): New parameter.
10732 (determine_biv_step): Delete.
10733 (find_bivs): Inline original determine_biv_step. Pass new
10734 argument to set_iv.
10735 (idx_find_step): Use no_overflow information for conversion.
10736 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
10737 resolve_mixers handle folded_casts.
10738 (instantiate_scev_name): Change bool parameter to bool pointer.
10739 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
10740 (instantiate_array_ref, instantiate_scev_not): Ditto.
10741 (instantiate_scev_3, instantiate_scev_2): Ditto.
10742 (instantiate_scev_1, instantiate_scev_r): Ditto.
10743 (instantiate_scev_convert, ): Change parameter. Pass argument
10744 to chrec_convert_aggressive.
10745 (instantiate_scev): Change argument.
10746 (resolve_mixers): New parameter and set it.
10747 (scev_const_prop): New argument.
10748 * tree-scalar-evolution.h (resolve_mixers): New parameter.
10749 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
10751 (chrec_convert): New parameter. Move definition below.
10752 (chrec_convert_aggressive): New parameter and set it. Call
10753 convert_affine_scev.
10754 * tree-chrec.h (chrec_convert): New parameter.
10755 (chrec_convert_aggressive): Ditto.
10757 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
10759 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
10760 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
10761 the LHS of a no-return call if its type has variable size.
10762 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
10763 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
10765 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
10767 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
10768 * config.in: Regenerate.
10770 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
10772 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10773 consecutive accesses within outer-loop with force_vectorize
10774 for references with zero step in inner-loop.
10776 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
10778 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
10779 rather than from gcc/build directory.
10781 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
10784 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
10785 for __sync memory models, emit initial loads and final barriers as
10788 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
10791 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
10792 (aarch64_split_atomic_op): Check for __sync memory models, emit
10793 appropriate initial loads and final barriers.
10795 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
10797 * Makefile.in: Fix gcov dependencies that should
10798 not point to a build folder.
10800 2015-06-01 Richard Biener <rguenther@suse.de>
10803 2015-05-29 Richard Biener <rguenther@suse.de>
10805 PR tree-optimization/66314
10806 * tree-ssa-threadupdate.c (create_block_for_threading): Add
10807 parameter that says which loop the new block belongs to.
10808 (ssa_create_duplicates): Blocks duplicated for the threaded
10809 path belong to the loop of the thread destination.
10811 2015-06-01 Martin Liska <mliska@suse.cz>
10813 * sched-deps.c: Include pool-alloc.h before
10814 cselib.h header file is included.
10816 2015-06-01 Richard Biener <rguenther@suse.de>
10818 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
10821 2015-06-01 Martin Liska <mliska@suse.cz>
10823 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
10824 a function local variable.
10826 2015-06-01 Martin Liska <mliska@suse.cz>
10828 * alloc-pool.c (create_alloc_pool): Remove.
10829 (empty_alloc_pool): Likewise.
10830 (free_alloc_pool): Likewise.
10831 (free_alloc_pool_if_empty): Likewise.
10832 (pool_alloc): Likewise.
10833 (pool_free): Likewise.
10834 * alloc-pool.h: Remove old declarations.
10836 2015-06-01 Martin Liska <mliska@suse.cz>
10838 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
10839 (ira_create_object): Likewise.
10840 (ira_create_allocno): Likewise.
10841 (ira_create_live_range): Likewise.
10842 (copy_live_range): Likewise.
10843 (ira_finish_live_range): Likewise.
10844 (ira_free_allocno_costs): Likewise.
10845 (finish_allocno): Likewise.
10846 (finish_allocnos): Likewise.
10847 (initiate_prefs): Likewise.
10848 (ira_create_pref): Likewise.
10849 (finish_pref): Likewise.
10850 (finish_prefs): Likewise.
10851 (initiate_copies): Likewise.
10852 (ira_create_copy): Likewise.
10853 (finish_copy): Likewise.
10854 (finish_copies): Likewise.
10855 (finish_prefs): Likewise.
10857 2015-06-01 Martin Liska <mliska@suse.cz>
10859 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
10860 (allocate_and_init_ipcp_value): Likewise.
10861 (ipcp_lattice::add_value): Likewise.
10862 (merge_agg_lats_step): Likewise.
10863 (ipcp_driver): Likewise.
10864 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
10865 (ipa_free_all_structures_after_iinln): Likewise.
10866 * ipa-prop.h: Likewise.
10868 2015-06-01 Martin Liska <mliska@suse.cz>
10870 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
10872 (set_hint_predicate): Likewise.
10873 (inline_summary_alloc): Likewise.
10874 (reset_inline_edge_summary): Likewise.
10875 (reset_inline_summary): Likewise.
10876 (set_cond_stmt_execution_predicate): Likewise.
10877 (set_switch_stmt_execution_predicate): Likewise.
10878 (compute_bb_predicates): Likewise.
10879 (estimate_function_body_sizes): Likewise.
10880 (inline_free_summary): Likewise.
10882 2015-06-01 Martin Liska <mliska@suse.cz>
10884 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
10885 (ipa_edge_duplication_hook): Likewise.
10886 (ipa_free_all_structures_after_ipa_cp): Likewise.
10887 (ipa_free_all_structures_after_iinln): Likewise.
10889 2015-06-01 Martin Liska <mliska@suse.cz>
10891 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
10892 (ipa_profile_generate_summary): Likewise.
10893 (ipa_profile_read_summary): Likewise.
10894 (ipa_profile): Likewise.
10896 2015-06-01 Martin Liska <mliska@suse.cz>
10898 * tree-ssa-structalias.c (new_var_info): Use new type-based
10900 (new_constraint): Likewise.
10901 (init_alias_vars): Likewise.
10902 (delete_points_to_sets): Likewise.
10904 2015-06-01 Martin Liska <mliska@suse.cz>
10906 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
10907 (free_strinfo): Likewise.
10908 (pass_strlen::execute): Likewise.
10910 2015-06-01 Martin Liska <mliska@suse.cz>
10912 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
10914 (vn_reference_insert_pieces): Likewise.
10915 (vn_phi_insert): Likewise.
10916 (visit_reference_op_call): Likewise.
10917 (copy_phi): Likewise.
10918 (copy_reference): Likewise.
10919 (process_scc): Likewise.
10920 (allocate_vn_table): Likewise.
10921 (free_vn_table): Likewise.
10923 2015-06-01 Martin Liska <mliska@suse.cz>
10925 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
10927 (add_repeat_to_ops_vec): Likewise.
10928 (get_ops): Likewise.
10929 (maybe_optimize_range_tests): Likewise.
10930 (init_reassoc): Likewise.
10931 (fini_reassoc): Likewise.
10933 2015-06-01 Martin Liska <mliska@suse.cz>
10935 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
10937 (bitmap_set_new): Likewise.
10938 (get_or_alloc_expr_for_constant): Likewise.
10939 (get_or_alloc_expr_for): Likewise.
10940 (phi_translate_1): Likewise.
10941 (compute_avail): Likewise.
10942 (init_pre): Likewise.
10943 (fini_pre): Likewise.
10945 2015-06-01 Martin Liska <mliska@suse.cz>
10947 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
10948 (delete_dep_node): Likewise.
10949 (create_deps_list): Likewise.
10950 (free_deps_list): Likewise.
10951 (sched_deps_init): Likewise.
10952 (sched_deps_finish): Likewise.
10954 2015-06-01 Martin Liska <mliska@suse.cz>
10956 * regcprop.c (free_debug_insn_changes): Use new type-based
10958 (replace_oldest_value_reg): Likewise.
10959 (pass_cprop_hardreg::execute): Likewise.
10961 2015-06-01 Martin Liska <mliska@suse.cz>
10963 * ira-build.c (initiate_cost_vectors): Use new type-based
10965 (ira_allocate_cost_vector): Likewise.
10966 (ira_free_cost_vector): Likewise.
10967 (finish_cost_vectors): Likewise.
10969 2015-06-01 Martin Liska <mliska@suse.cz>
10971 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
10973 (free_sched_pools): Likewise.
10974 * sel-sched-ir.h (_list_alloc): Likewise.
10975 (_list_remove): Likewise.
10977 2015-06-01 Martin Liska <mliska@suse.cz>
10979 * stmt.c (add_case_node): Use new type-based pool allocator.
10980 (expand_case): Likewise.
10981 (expand_sjlj_dispatch_table): Likewise.
10983 2015-06-01 Martin Liska <mliska@suse.cz>
10985 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
10986 (free_bb): Likewise.
10987 (pass_cse_reciprocals::execute): Likewise.
10989 2015-06-01 Martin Liska <mliska@suse.cz>
10991 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
10992 (sra_deinitialize) Likewise.
10993 (create_access_1) Likewise.
10994 (build_accesses_from_assign) Likewise.
10995 (create_artificial_child_access) Likewise.
10997 2015-06-01 Martin Liska <mliska@suse.cz>
10999 * dse.c (get_group_info):Use new type-based pool allocator.
11000 (dse_step0) Likewise.
11001 (free_store_info) Likewise.
11002 (delete_dead_store_insn) Likewise.
11003 (free_read_records) Likewise.
11004 (record_store) Likewise.
11005 (replace_read) Likewise.
11006 (check_mem_read_rtx) Likewise.
11007 (scan_insn) Likewise.
11008 (dse_step1) Likewise.
11009 (dse_step7) Likewise.
11011 2015-06-01 Martin Liska <mliska@suse.cz>
11013 * df-scan.c (struct df_scan_problem_data):Use new type-based
11015 (df_scan_free_internal) Likewise.
11016 (df_scan_alloc) Likewise.
11017 (df_grow_reg_info) Likewise.
11018 (df_free_ref) Likewise.
11019 (df_insn_create_insn_record) Likewise.
11020 (df_mw_hardreg_chain_delete) Likewise.
11021 (df_insn_info_delete) Likewise.
11022 (df_free_collection_rec) Likewise.
11023 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
11024 (df_sort_and_compress_mws) Likewise.
11025 (df_ref_create_structure) Likewise.
11026 (df_ref_record) Likewise.
11028 2015-06-01 Martin Liska <mliska@suse.cz>
11030 * df-problems.c (df_chain_create):Use new type-based pool allocator.
11031 (df_chain_unlink_1) Likewise.
11032 (df_chain_unlink) Likewise.
11033 (df_chain_remove_problem) Likewise.
11034 (df_chain_alloc) Likewise.
11035 (df_chain_free) Likewise.
11036 * df.h (struct dataflow) Likewise.
11038 2015-06-01 Martin Liska <mliska@suse.cz>
11040 * cselib.c (new_elt_list):Use new type-based pool allocator.
11041 (new_elt_loc_list) Likewise.
11042 (unchain_one_elt_list) Likewise.
11043 (unchain_one_elt_loc_list) Likewise.
11044 (unchain_one_value) Likewise.
11045 (new_cselib_val) Likewise.
11046 (cselib_init) Likewise.
11047 (cselib_finish) Likewise.
11049 2015-06-01 Martin Liska <mliska@suse.cz>
11051 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
11052 (sh_reorg) Likewise.
11054 2015-06-01 Martin Liska <mliska@suse.cz>
11056 * cfg.c (initialize_original_copy_tables):Use new type-based
11058 (free_original_copy_tables) Likewise.
11059 (copy_original_table_clear) Likewise.
11060 (copy_original_table_set) Likewise.
11062 2015-06-01 Martin Liska <mliska@suse.cz>
11064 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
11066 (asan_mem_ref_new) Likewise.
11067 (free_mem_ref_resources) Likewise.
11069 2015-06-01 Martin Liska <mliska@suse.cz>
11071 * var-tracking.c (variable_htab_free):Use new type-based
11073 (attrs_list_clear) Likewise.
11074 (attrs_list_insert) Likewise.
11075 (attrs_list_copy) Likewise.
11076 (shared_hash_unshare) Likewise.
11077 (shared_hash_destroy) Likewise.
11078 (unshare_variable) Likewise.
11079 (var_reg_delete_and_set) Likewise.
11080 (var_reg_delete) Likewise.
11081 (var_regno_delete) Likewise.
11082 (drop_overlapping_mem_locs) Likewise.
11083 (variable_union) Likewise.
11084 (insert_into_intersection) Likewise.
11085 (canonicalize_values_star) Likewise.
11086 (variable_merge_over_cur) Likewise.
11087 (dataflow_set_merge) Likewise.
11088 (remove_duplicate_values) Likewise.
11089 (variable_post_merge_new_vals) Likewise.
11090 (dataflow_set_preserve_mem_locs) Likewise.
11091 (dataflow_set_remove_mem_locs) Likewise.
11092 (variable_from_dropped) Likewise.
11093 (variable_was_changed) Likewise.
11094 (set_slot_part) Likewise.
11095 (clobber_slot_part) Likewise.
11096 (delete_slot_part) Likewise.
11097 (loc_exp_insert_dep) Likewise.
11098 (notify_dependents_of_changed_value) Likewise.
11099 (emit_notes_for_differences_1) Likewise.
11100 (vt_emit_notes) Likewise.
11101 (vt_initialize) Likewise.
11102 (vt_finalize) Likewise.
11104 2015-06-01 Martin Liska <mliska@suse.cz>
11106 * ira-color.c (init_update_cost_records):Use new type-based
11108 (get_update_cost_record) Likewise.
11109 (free_update_cost_record_list) Likewise.
11110 (finish_update_cost_records) Likewise.
11111 (initiate_cost_update) Likewise.
11113 2015-06-01 Martin Liska <mliska@suse.cz>
11115 * lra.c (init_insn_regs): Use new type-based pool allocator.
11116 (new_insn_reg) Likewise.
11117 (free_insn_reg) Likewise.
11118 (free_insn_regs) Likewise.
11119 (finish_insn_regs) Likewise.
11120 (init_insn_recog_data) Likewise.
11121 (init_reg_info) Likewise.
11122 (finish_reg_info) Likewise.
11123 (lra_free_copies) Likewise.
11124 (lra_create_copy) Likewise.
11125 (invalidate_insn_data_regno_info) Likewise.
11127 2015-06-01 Martin Liska <mliska@suse.cz>
11129 * lra-lives.c (free_live_range): Use new type-based pool allocator.
11130 (free_live_range_list) Likewise.
11131 (create_live_range) Likewise.
11132 (copy_live_range) Likewise.
11133 (lra_merge_live_ranges) Likewise.
11134 (remove_some_program_points_and_update_live_ranges) Likewise.
11135 (lra_live_ranges_init) Likewise.
11136 (lra_live_ranges_finish) Likewise.
11138 2015-06-01 Martin Liska <mliska@suse.cz>
11140 * et-forest.c (et_new_occ): Use new type-based pool allocator.
11141 (et_new_tree): Likewise.
11142 (et_free_tree): Likewise.
11143 (et_free_tree_force): Likewise.
11144 (et_free_pools): Likewise.
11145 (et_split): Likewise.
11147 2015-06-01 Martin Liska <mliska@suse.cz>
11149 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
11151 * alloc-pool.h (pool_allocator::pool_allocator): New function.
11152 (pool_allocator::release): Likewise.
11153 (inline pool_allocator::release_if_empty): Likewise.
11154 (inline pool_allocator::~pool_allocator): Likewise.
11155 (pool_allocator::allocate): Likewise.
11156 (pool_allocator::remove): Likewise.
11158 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11160 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
11163 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11165 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
11167 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
11168 (arm_macro_fusion_p): Likewise.
11169 (arm_macro_fusion_pair_p): Likewise.
11171 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11173 * config/aarch64/aarch64-protos.h (tune_params): Rename
11174 fuseable_ops to fusible_ops.
11175 * config/aarch64/aarch64.c (generic_tunings): Rename
11176 fuseable_ops to fusible_ops.
11177 (cortexa53_tunings): Likewise.
11178 (cortexa57_tunings): Likewise.
11179 (thunderx_tunings): Likewise.
11180 (xgene1_tunings): Likewise.
11181 (aarch64_macro_fusion_p): Likewise.
11182 (aarch64_macro_fusion_pair_p): Likewise.
11184 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
11186 * config/s390/driver-native.c: New file.
11187 * config/s390/x-native: New file.
11188 * config.host: Add new files for s390.
11189 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
11191 * config.gcc: Likewise.
11192 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
11193 * config/s390/s390-opts.h (enum processor_type): Ditto.
11194 * config/s390/s390.c (s390_option_override): Catch unhandled
11197 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
11200 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
11201 redirection for instrumented calls.
11202 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
11203 (append_compiler_options): Append -fcheck-pointer-bounds.
11204 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
11205 (chkp_redirect_edge): New.
11206 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
11207 (chkp_redirect_edge): New.
11209 2015-06-01 Richard Biener <rguenther@suse.de>
11211 PR tree-optimization/66280
11212 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
11215 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11217 * config/aarch64/aarch64.md
11218 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
11221 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
11223 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
11224 Remove obsolete kludge.
11226 2015-06-01 Richard Biener <rguenther@suse.de>
11228 * tree-ssa-reassoc.c (get_rank): Simplify.
11230 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
11232 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
11233 * configure: Regenerated.
11235 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
11237 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
11238 issue (add space between string literal and macro).
11239 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
11241 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
11243 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
11244 implict or explicit -fPIE or -fpie.
11246 2015-05-30 Mike Frysinger <vapier@gentoo.org>
11248 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
11250 2015-05-28 DJ Delorie <dj@redhat.com>
11252 * expmed.c (extract_bit_field_1): Avoid clobbering a
11253 yet-to-be-used base/index register.
11255 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
11257 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
11258 (alias_stats): Add num_universal.
11259 (alias_set_subset_of): Special case pointers; be ready for NULL
11261 (alias_sets_conflict_p): Special case pointers; be ready for NULL
11263 (init_alias_set_entry): Break out from ...
11264 (record_alias_subset): ... here; propagate new fields;
11265 allocate children only when really needed.
11266 (get_alias_set): Do less generous pointer globbing.
11267 (dump_alias_stats_in_alias_c): Update statistics.
11269 2015-05-30 Alan Modra <amodra@gmail.com>
11271 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
11272 correct block for use of r12.
11273 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
11275 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
11278 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
11281 2015-05-29 Jakub Jelinek <jakub@redhat.com>
11283 PR tree-optimization/66142
11284 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
11285 virtual phis that feed themselves.
11287 2015-05-29 Richard Biener <rguenther@suse.de>
11289 PR tree-optimization/66314
11290 * tree-ssa-threadupdate.c (create_block_for_threading): Add
11291 parameter that says which loop the new block belongs to.
11292 (ssa_create_duplicates): Blocks duplicated for the threaded
11293 path belong to the loop of the thread destination.
11295 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11297 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
11298 to cleanup-saved-temps.
11299 * doc/sourcebuild.texi (Clean up generated test files): Expand
11301 (dg-keep-saved-temps): Document new proc.
11302 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
11303 cleanup-saved-temps): Remove.
11305 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
11307 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
11308 gcc_AC_CHECK_DECLS.
11309 * configure: Regenerate.
11311 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11313 * config/nios2/linux.h (CPP_SPEC): Define.
11315 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11317 * config/microblaze/linux.h (CPP_SPEC): Define.
11319 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11321 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
11322 -pthread is specified.
11324 2015-05-28 Richard Biener <rguenther@suse.de>
11326 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
11327 (vect_fixup_scalar_cycles_with_patterns): Likewise.
11328 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
11329 after pattern recog.
11330 (vect_create_epilog_for_reduction): Properly handle reductions
11332 (vectorizable_reduction): Likewise.
11333 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
11335 (vect_get_constant_vectors): Create the correct number of
11336 initial values for reductions.
11337 (vect_schedule_slp_instance): Handle reduction chains that are
11338 type changing properly.
11339 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
11341 2015-05-28 Richard Biener <rguenther@suse.de>
11343 PR tree-optimization/66142
11344 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
11345 values better in memcpy destination handling. Handle non-aliasing
11348 2015-05-28 Lawrence Velázquez <vq@larryv.me>
11351 * config/darwin-c.c (version_components): New global enum.
11352 (parse_version, version_as_legacy_macro)
11353 (version_as_modern_macro, macosx_version_as_macro): New functions.
11354 (version_as_macro): Remove.
11355 (darwin_cpp_builtins): Use new function.
11357 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
11359 * builtins.c (expand_builtin_acc_on_device): Mark parameters
11360 with ATTRIBUTE_UNUSED.
11362 2015-05-28 Julian Brown <julian@codesourcery.com>
11366 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
11367 sequence for !ACCEL_COMPILER.
11369 2015-05-28 Nick Clifton <nickc@redhat.com>
11371 * config/rx/rx.c (push_regs): New function. Extracts code from...
11372 (rx_expand_prologue): ... here. Use push_regs to push even small
11373 spans of registers.
11374 (pop_regs): New function.
11375 (rx_expand_epilogue): Use pop_regs to pop even small spans of
11378 2015-05-28 Richard Biener <rguenther@suse.de>
11380 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
11382 (SLP_INSTANCE_BODY_COST_VEC): Remove.
11383 (vect_update_slp_costs_according_to_vf): Likewise.
11384 (vect_slp_analyze_operations): Update prototype.
11385 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
11386 vect_update_slp_costs_according_to_vf, adjust.
11387 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
11388 (vect_analyze_slp_cost_1): Likewise.
11389 (vect_analyze_slp_cost): Likewise. Properly deal with
11390 widening reduction ops. Commit body costs.
11391 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
11392 cost for loops from here.
11393 (vect_slp_analyze_operations): But do it from here when
11394 the vectorization factor is known and stmts are analyzed.
11395 (vect_bb_vectorization_profitable_p): Simplify.
11396 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
11397 (vect_update_slp_costs_according_to_vf): Remove.
11399 2015-05-27 Magnus Granberg <zorry@gentoo.org>
11400 H.J. Lu <hongjiu.lu@intel.com>
11402 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
11403 (BUILD_CFLAGS): Likewise.
11404 (BUILD_CXXFLAGS): Likewise.
11405 (LINKER): Add @NO_PIE_FLAG@.
11406 (BUILD_LDFLAGS): Likewise.
11407 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
11408 --enable-default-pie.
11409 * common.opt (fPIE): Initialize to -1.
11411 (no-pie): New option.
11412 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
11413 * configure.ac: Add --enable-default-pie.
11414 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
11415 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
11416 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
11417 * gcc.c (NO_PIE_SPEC): New.
11418 (PIE_SPEC): Likewise.
11419 (NO_FPIE1_SPEC): Likewise.
11420 (FPIE1_SPEC): Likewise.
11421 (NO_FPIE2_SPEC): Likewise.
11422 (FPIE2_SPEC): Likewise.
11423 (NO_FPIE2_SPEC): Likewise.
11424 (FPIE_SPEC): Likewise.
11425 (NO_FPIE_SPEC): Likewise.
11426 (NO_FPIC1_SPEC): Likewise.
11427 (FPIC1_SPEC): Likewise.
11428 (NO_FPIC2_SPEC): Likewise.
11429 (FPIC2_SPEC): Likewise.
11430 (NO_FPIC2_SPEC): Likewise.
11431 (FPIC_SPEC): Likewise.
11432 (NO_FPIC_SPEC): Likewise.
11433 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
11434 (FPIE1_OR_FPIC1_SPEC): Likewise.
11435 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
11436 (FPIE2_OR_FPIC2_SPEC): Likewise.
11437 (NO_FPIE_AND_FPIC_SPEC): Likewise.
11438 (FPIE_OR_FPIC_SPEC): Likewise.
11439 (LD_PIE_SPEC): Likewise.
11440 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
11441 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
11442 * config/darwin.h (PIE_SPEC): Renamed to ...
11443 (DARWIN_PIE_SPEC): This.
11444 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
11445 * config/darwin9.h (PIE_SPEC): Renamed to ...
11446 (DARWIN_PIE_SPEC): This.
11447 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
11448 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
11449 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
11450 FPIE2_OR_FPIC2_SPEC.
11451 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
11452 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
11453 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
11454 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11455 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11456 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11457 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
11458 * config/m32r/m32r.h (ASM_SPEC): Likewise.
11459 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
11460 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11461 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
11462 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
11463 * config/sparc/linux.h (ASM_SPEC): Likewise.
11464 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11465 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
11466 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
11467 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11468 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11469 * config/sparc/sparc.h (ASM_SPEC): Likewise.
11470 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
11471 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
11472 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
11473 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
11474 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
11475 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
11476 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
11477 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
11478 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
11479 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
11480 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
11481 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
11482 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11483 * config/vax/linux.h (ASM_SPEC): Likewise.
11484 * doc/install.texi: Document --enable-default-pie.
11485 * doc/invoke.texi: Document -no-pie.
11486 * config.in: Regenerated.
11487 * configure: Likewise.
11489 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
11491 PR rtl-optimization/66168
11492 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
11493 can_move_invariant_reg.
11495 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
11498 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
11499 REG_EQUAL note when doing insert.
11501 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
11502 instead of "%d" for 'o' operand.
11504 2015-05-27 Nathan Sidwell <nathan@acm.org>
11507 * tree.c (build_pointer_type_for_mode): Canonical type does not
11508 inherit can_alias_all.
11509 (build_reference_type_for_mode): Likewise.
11511 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
11513 * expr.h (array_at_struct_end_p): Move to...
11514 (array_ref_element_size): Likewise.
11515 (component_ref_field_offset): Likewise.
11516 * tree.h (array_ref_element_size): ...here.
11517 (array_at_struct_end_p): Likewise.
11518 (component_ref_field_offset): Likewise.
11519 * expr.c (array_ref_element_size): Move to...
11520 (array_ref_low_bound): Likewise.
11521 (array_at_struct_end_p): Likewise.
11522 (array_ref_up_bound): Likewise.
11523 (component_ref_field_offset): Likewise.
11524 * tree.c (array_ref_element_size): ...here.
11525 (array_ref_low_bound): Likewise.
11526 (array_ref_up_bound): Likewise.
11527 (array_at_struct_end_p): Likewise.
11528 (component_ref_field_offset): Likewise.
11530 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
11531 Szabolcs Nagy <szabolcs.nagy@arm.com>
11533 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
11535 2015-05-27 Jason Merrill <jason@redhat.com>
11538 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
11539 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
11540 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
11542 2015-05-22 Aditya Kumar <hiraditya@msn.com>
11544 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
11547 * statistics.c (statistics_fini_pass): Print pass name.
11549 2015-05-27 Richard Biener <rguenther@suse.de>
11551 PR tree-optimization/66272
11553 2014-08-15 Richard Biener <rguenther@suse.de>
11555 PR tree-optimization/62031
11556 * tree-data-ref.c (dr_analyze_indices): Do not set
11557 DR_UNCONSTRAINED_BASE.
11558 (dr_may_alias_p): All indirect accesses have to go the
11559 formerly DR_UNCONSTRAINED_BASE path.
11560 * tree-data-ref.h (struct indices): Remove
11561 unconstrained_base member.
11562 (DR_UNCONSTRAINED_BASE): Remove.
11564 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
11566 * dwarf2out.c: Remove block_map.
11567 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
11568 (gen_lexical_block_die): Same.
11569 (dwarf2out_function_decl): Remove block_map use.
11570 (dwarf2out_c_finalize): Same.
11571 * tree-core.h (struct tree_block): Add die field.
11572 * tree.h (BLOCK_DIE): New.
11574 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11577 * expr.c (memory_load_overlap): New function.
11578 (emit_push_insn): When pushing partial args to the stack would
11579 clobber the register part load the overlapping part into a pseudo
11580 and put it into the hard reg after pushing. Change return type
11581 to bool. Add bool argument.
11582 * expr.h (emit_push_insn): Change return type to bool.
11584 * calls.c (expand_call): Cancel sibcall optimization when encountering
11585 partial argument on targets with ARGS_GROW_DOWNWARD and
11586 !STACK_GROWS_DOWNWARD.
11587 (emit_library_call_value_1): Update callsite of emit_push_insn.
11588 (store_one_arg): Likewise.
11590 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
11592 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
11594 2015-05-27 Martin Liska <mliska@suse.cz>
11596 * Makefile.in: Add additional dependencies related to memory report
11598 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
11599 * bitmap.c (struct bitmap_descriptor_d): Remove.
11600 (struct loc): Likewise.
11601 (struct bitmap_desc_hasher): Likewise.
11602 (bitmap_desc_hasher::hash): Likewise.
11603 (bitmap_desc_hasher::equal): Likewise.
11604 (get_bitmap_descriptor): Likewise.
11605 (bitmap_register): User new memory descriptor API.
11606 (register_overhead): Likewise.
11607 (bitmap_find_bit): Register nsearches and search_iter statistics.
11608 (struct bitmap_output_info): Remove.
11609 (print_statistics): Likewise.
11610 (dump_bitmap_statistics): Use new memory descriptor.
11611 * bitmap.h (struct bitmap_usage): New class.
11612 * genmatch.c: Extend header file inclusion.
11613 * genpreds.c: Likewise.
11614 * ggc-common.c (struct ggc_usage): New class.
11615 (struct ggc_loc_desc_hasher): Remove.
11616 (ggc_loc_desc_hasher::hash): Likewise.
11617 (ggc_loc_desc_hasher::equal): Likewise.
11618 (struct ggc_ptr_hash_entry): Likewise.
11619 (struct ptr_hash_hasher): Likewise.
11620 (ptr_hash_hasher::hash): Likewise.
11621 (ptr_hash_hasher::equal): Likewise.
11622 (make_loc_descriptor): Likewise.
11623 (ggc_prune_ptr): Likewise.
11624 (dump_ggc_loc_statistics): Use new memory descriptor.
11625 (ggc_record_overhead): Likewise.
11626 (ggc_free_overhead): Likewise.
11627 (final_cmp_statistic): Remove.
11628 (cmp_statistic): Likewise.
11629 (ggc_add_statistics): Liekwise.
11630 (ggc_prune_overhead_list): Likewise.
11631 * hash-map-traits.h: New file.
11632 * hash-map.h (struct default_hashmap_traits): Move the traits to a
11633 separate header file.
11634 * hash-set.h: Pass memory statistics info to ctor.
11635 * hash-table.c (void dump_hash_table_loc_statistics): New function.
11636 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
11637 (hash_table::~hash_table): Register memory release operation.
11638 (hash_table::alloc_entries): Handle memory allocation operation.
11639 (hash_table::expand): Likewise.
11640 * inchash.c (iterative_hash_hashval_t): Move implementation to header
11642 (iterative_hash_host_wide_int): Likewise.
11643 * inchash.h (class hash): Likewise.
11644 * mem-stats-traits.h: New file.
11645 * mem-stats.h: New file.
11646 (mem_location): Add new class.
11647 (mem_usage): Likewise.
11648 (mem_alloc_description): Likewise.
11649 * sese.c: Add new header file inclusision.
11650 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
11652 * tree-sra.c: Add new header file inclusision.
11653 * vec.c (struct vec_descriptor): Remove.
11654 (hash_descriptor): Likewise.
11655 (struct vec_usage): Likewise.
11656 (struct ptr_hash_entry): Likewise.
11657 (hash_ptr): Likewise.
11658 (eq_ptr): Likewise.
11659 (vec_prefix::register_overhead): Use new memory descriptor API.
11660 (vec_prefix::release_overhead): Likewise.
11661 (add_statistics): Remove.
11662 (dump_vec_loc_statistics): Use new memory descriptor API.
11663 * vec.h (struct vec_prefix): Likewise.
11664 (va_heap::reserve): Likewise.
11665 (va_heap::release): Likewise.
11666 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
11668 2015-05-27 Richard Biener <rguenther@suse.de>
11670 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
11671 earlier and remove ??? comment.
11672 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
11673 and got called from loop analysis bail out. Always pass the SLP
11674 node to the vectorizable_* functions.
11675 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
11676 the premature SLP check here.
11677 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
11678 detected SLP stmts.
11679 (vect_detect_hybrid_slp_1): Likewise.
11681 2015-05-26 Jeff Law <law@redhat.com>
11683 * combine.c (find_split_point): Verify that the shift count is a
11684 constant when choosing (plus (ashift ...)) as a split point.
11686 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
11687 No functional changes.
11689 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
11691 * ipa-polymorphic-call.c
11692 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
11693 case when call target is already known.
11695 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
11698 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
11699 take into account the case that operands[1] and operands[2]
11700 are the same register.
11702 2015-05-26 Michael Matz <matz@suse.de>
11704 PR middle-end/66251
11706 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
11708 (vect_create_vectorized_demotion_stmts): Always set
11709 STMT_VINFO_VEC_STMT, also with SLP.
11710 (vectorizable_store): Handle strided group stores.
11712 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11715 * config/aarch64/aarch64.md
11716 (*adds_shift_imm_<mode>): New pattern.
11717 (*subs_shift_imm_<mode>): Likewise.
11718 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
11719 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
11720 (*add_uxt<mode>_shift2): Likewise.
11721 (*add_uxtsi_shift2_uxtw): Likewise.
11722 (*sub_uxt<mode>_shift2): Likewise.
11723 (*sub_uxtsi_shift2_uxtw): Likewise.
11725 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
11727 * config/rs6000/constraints.md (Y, U): Use match_test.
11729 2015-05-26 Christian Bruel <christian.bruel@st.com>
11732 * config/arm/arm.c (arm_option_check_internal)
11733 (arm_option_params_internal): Check opts->target_flags to set macros.
11734 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
11735 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
11736 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
11737 (builtin_define): Replaced with def_or_undef_macro.
11738 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
11739 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
11740 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
11741 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
11742 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
11743 (TARGET_ARM_FEATURE_LDREX_P)
11744 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
11745 * config/arm/arm-c.c (def_or_undef_macro): New function.
11746 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
11748 2015-05-26 Christian Bruel <christian.bruel@st.com>
11750 * c-common.h (builtin_define_with_int_value)
11751 (builtin_define_type_sizeof): Declare.
11752 * c-cppbuiltin.c (builtin_define_with_int_value)
11753 (builtin_define_type_sizeof): Externalize.
11754 (builtin_define_std): Cleanup declaration.
11755 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
11756 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
11757 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
11758 (builtin_define, builtin_assert): New macros.
11760 2015-05-26 Richard Biener <rguenther@suse.de>
11762 PR tree-optimization/66142
11763 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
11764 MEM_REFs for the same base address.
11766 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11769 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
11771 2015-05-26 Jason Merrill <jason@redhat.com>
11773 * configure.ac: Set CXXFLAGS for ISL test.
11774 * configure: Regenerate.
11776 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
11777 strstr and basename.
11778 * configure: Regenerate.
11780 2015-05-26 Richard Biener <rguenther@suse.de>
11782 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
11783 X % C -> X & (C - 1) for C being a power-of two to ...
11784 * match.pd: ... patterns.
11786 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
11788 * match.pd (swapped_tcc_comparison): New operator list.
11789 (-A CMP -B): New simplification.
11790 * fold-const.c (fold_comparison): Remove corresponding code.
11792 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
11794 * caller-save.c (init_caller_save): Base temporary register numbers
11795 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
11796 * cfgloopanal.c (init_set_costs): Likewise.
11797 * dojump.c (prefer_and_bit_test): Likewise.
11798 * expr.c (init_expr_target): Likewise.
11799 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11800 * lower-subreg.c (init_lower_subreg): Likewise.
11801 * postreload.c (reload_cse_regs_1): Likewise.
11803 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
11805 * gensupport.h (compute_test_codes): Declare.
11806 * gensupport.c (compute_predicate_codes): Rename to...
11807 (compute_test_codes): ...this. Generalize error message.
11808 (process_define_predicate): Update accordingly.
11809 * genpreds.c (compute_maybe_allows): Delete.
11810 (add_constraint): Use compute_test_codes to determine whether
11811 something can accept a SUBREG, REG or MEM.
11813 2015-05-26 Torvald Riegel <triegel@redhat.com>
11815 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
11816 'memory model' to align with C++11; fix description of memory orders;
11819 2015-05-26 Richard Biener <rguenther@suse.de>
11821 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
11822 (vect_analyze_loop_operations): ... here. Remove slp parameter,
11823 detect whether we apply SLP. Remove call to
11824 vect_update_slp_costs_according_to_vf.
11825 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
11826 vect_update_slp_costs_according_to_vf from here. Dispatch
11827 to vect_slp_analyze_operations to analyze SLP stmts.
11828 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
11829 unused bb_vec_info parameter, adjust assert.
11830 (vect_slp_analyze_operations): Pass in the slp instance tree
11831 instead of bb_vec_info.
11832 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
11833 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
11835 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
11837 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
11838 Q_REGS. Expand comment.
11839 (REG_CLASS_NAMES): Ditto.
11840 (REG_CLASS_CONTENTS): Ditto.
11842 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
11845 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
11846 when LEGACY_INT_REGNO_P is processed.
11848 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
11850 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
11852 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11854 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
11855 register if not marked dead/unused, before return.
11857 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11860 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
11861 is set; check for assembler name at LTO time.
11862 (type_in_anonymous_namespace): Remove hacks, check that all
11863 anonymous types are called "<anon>"
11864 (odr_type_p): Simplify; add check for "<anon>"
11865 (odr_subtypes_equivalent): Add odr_type_p check.
11866 * tree.c (need_assembler_name_p): Even anonymous namespace needs
11869 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11871 * ipa-utils.h (method_class_type): Remove.
11872 * cgraphunit.c (walk_polymorphic_call_targets): Use
11873 TYPE_METHOD_BASETYPE.
11874 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
11875 on main variants only.
11876 (method_class_type): Remove.
11877 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
11878 (build_type_inheritance_graph): Likewise.
11879 * ipa-icf.c (sem_function::equals_wpa): Likewise.
11880 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
11881 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
11883 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11885 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
11886 is_typedef_decl, typedef_variant_p): Constify.
11887 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
11888 is_typedef_decl, typedef_variant_p): Constify.
11890 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11892 * defaults.h (gen_tablejump): New function.
11893 (HAVE_tablejump): Add default value.
11895 * stmt.c: Likewise.
11897 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11899 * defaults.h (gen_store_multiple): New function.
11900 (HAVE_store_multiple): Add default value.
11901 * expr.c (move_block_from_reg): Adjust.
11903 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11905 * defaults.h (gen_load_multiple): New function.
11906 (HAVE_load_multiple): Add default value.
11907 * expr.c (move_block_to_reg): Adjust.
11909 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11911 * defaults.h (gen_mem_signal_fence): New function.
11912 (HAVE_mem_signal_fence): Add default value.
11913 * optabs.c: Adjust.
11915 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11917 * defaults.h (gen_memory_barrier): New function.
11918 (HAVE_memory_barrier): Add default value.
11919 * optabs.c: Adjust.
11921 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11923 * defaults.h (gen_mem_thread_fence): New function.
11924 (HAVE_mem_thread_fence): Add default definition.
11925 * optabs.c: Adjust.
11927 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11929 * combine.c (find_split_point): Check the value of HAVE_lo_sum
11930 instead of if it is defined.
11931 (combine_simplify_rtx): Likewise.
11932 * lra-constraints.c (process_address_1): Likewise.
11933 * config/darwin.c: Adjust.
11934 * genconfig.c (main): Always define HAVE_lo_sum.
11936 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11938 * genmatch.c (parser::parse_operation): Reject expanding
11939 operator-list inside 'for'.
11941 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11943 * genmatch.c (parser::parse_for): Reject iterator if used as
11946 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11948 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
11949 after end of id-list.
11951 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
11953 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
11954 we do not try to compute canonical type for type that does not need
11956 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
11958 * tree.h (type_with_alias_set_p): New.
11960 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
11962 * tree.c (gimple_canonical_types_compatible_p): Do not compare
11963 function attributes.
11964 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
11966 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
11968 * Makefile.in (check_gcc_parallelize): Delete.
11969 (lang_checks_parallelized): Update comment.
11971 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
11973 PR rtl-optimization/66237
11974 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
11975 location of an "as_a" cast.
11977 2015-05-22 Jeff Law <law@redhat.com>
11979 * config/pa/pa.md (non-canonical shift-add insns): Remove.
11980 (peepholes with non-canonical RTL sources): Remove.
11981 (peepholes for indexed stores of FP regs in integer modes): Match and
11982 generate canonical RTL.
11984 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
11986 PR tree-optimization/63387
11987 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
11988 ((x ord x) & (y ord y) -> (x ord y),
11989 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
11990 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
11991 vectors like scalars.
11993 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
11995 * convert.c (convert_to_integer, convert_to_vector): Include the
11996 types in the error message.
11998 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
12000 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
12003 2015-05-22 Jeff Law <law@redhat.com>
12005 * config/pa/pa.md (integer_indexed_store splitters): Use
12006 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
12007 insns -- adjusting the constant 2nd operand accordingly.
12009 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
12010 (plus (ashift X log2) Y) if it is a split point.
12012 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
12013 out of hppa_legitimize_address to handle both forms of a multiply
12015 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
12016 Always generate the ASHIFT variant as the result is not directly
12017 used in a MEM. Update comments and refactor slightly to improve
12020 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12023 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
12024 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
12025 (aarch64_composite_type_p): Return false if given type and mode are
12026 for a short vector.
12028 2015-05-22 Richard Biener <rguenther@suse.de>
12030 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
12032 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
12033 patterns when determining whether SLP is pure.
12034 (vect_is_slp_reduction): Remove check for pattern stmts.
12035 (vect_is_simple_reduction_1): Remove dead code.
12036 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
12037 (vect_get_and_check_slp_defs): Pass in the stmt number.
12038 Allow the first def in a reduction to be not a pattern stmt when
12039 the rest of the stmts def are patterns.
12040 (vect_build_slp_tree_1): Allow tcc_expression codes like
12041 SAD_EXPR and DOT_PROD_EXPR.
12042 (vect_build_slp_tree): Adjust.
12043 (vect_analyze_slp): Refactor and move BB vect error message ...
12044 (vect_slp_analyze_bb_1): ... here.
12046 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
12048 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
12049 for CSWTCH temporary.
12051 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12053 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
12054 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
12057 2015-05-22 Richard Biener <rguenther@suse.de>
12059 PR tree-optimization/66251
12060 * tree-vect-stmts.c (vectorizable_conversion): Properly
12061 set STMT_VINFO_VEC_STMT even for the SLP case.
12063 2015-05-22 Marek Polacek <polacek@redhat.com>
12065 * doc/extend.texi: Use @pxref instead of @xref.
12067 2015-05-22 hiraditya <hiraditya@msn.com>
12069 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
12072 2015-05-22 Richard Biener <rguenther@suse.de>
12074 PR tree-optimization/65701
12075 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12076 Move peeling cost models into one place. Peel for alignment
12077 for single loads only if an aligned load is cheaper than
12080 2015-05-22 Marek Polacek <polacek@redhat.com>
12083 * doc/extend.texi (Enumerator Attributes): New section.
12084 Document syntax of enumerator attributes.
12086 2015-05-22 Richard Biener <rguenther@suse.de>
12088 * tree-vect-loop.c (get_reduction_op): New function.
12089 (vect_model_reduction_cost): Use it, add reduc_index parameter.
12090 Make ready for BB reductions.
12091 (vect_create_epilog_for_reduction): Use get_reduction_op.
12092 (vectorizable_reduction): Init reduc_index to a valid value.
12093 Adjust vect_model_reduction_cost call.
12094 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
12095 operand for reduction defaults. Add SAD_EXPR support.
12096 Assert we have a neutral op for SLP reductions.
12097 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
12098 walking pattern stmt ops only recurse to SSA names.
12100 2015-05-22 Richard Biener <rguenther@suse.de>
12102 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
12103 assert with guard, remove check on detected reduction.
12104 (vect_recog_sad_pattern): Likewise.
12105 (vect_recog_widen_sum_pattern): Likewise.
12107 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12109 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
12110 __always_inline__ attribute.
12111 (vaesdq_u8): Likewise.
12112 (vaesmcq_u8): Likewise.
12113 (vaesimcq_u8): Likewise.
12114 (vsha1cq_u32): Likewise.
12115 (vsha1mq_u32): Likewise.
12116 (vsha1pq_u32): Likewise.
12117 (vsha1h_u32): Likewise.
12118 (vsha1su0q_u32): Likewise.
12119 (vsha1su1q_u32): Likewise.
12120 (vsha256hq_u32): Likewise.
12121 (vsha256h2q_u32): Likewise.
12122 (vsha256su0q_u32): Likewise.
12123 (vsha256su1q_u32): Likewise.
12124 (vmull_p64): Likewise.
12125 (vmull_high_p64): Likewise.
12127 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12129 * final.c (final_scan_insn): Don't check HAVE_peephole with the
12131 * output.h: Likewise.
12132 * genconfig.c (main): Alwways define HAVE_peephole.
12133 * genpeep.c: Don't emit checks of HAVE_peephole.
12135 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12137 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
12138 check HAVE_conditional_move with the preprocessor.
12140 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12142 * genconfig.c (main): Always define HAVE_conditional_move.
12143 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
12144 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
12147 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12149 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
12150 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
12151 and FRAME_POINTER_REGNUM with the preprocessor.
12153 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12155 * defaults.h: Add default for STACK_PUSH_CODE.
12156 * expr.c: Don't redefine STACK_PUSH_CODE.
12157 * recog.c: Likewise.
12159 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12161 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
12162 sched-deps.c: Use if instead of preprocessor checks with
12163 STACK_GROWS_DOWNWARD.
12165 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12167 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
12169 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
12170 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
12171 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
12172 * doc/tm.texi: Regenerate.
12174 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
12177 * config/i386/constraints.md (Bg): New constraint for GOT memory
12179 * config/i386/i386.md (*call_got_x32): New pattern.
12180 (*call_value_got_x32): Likewise.
12181 * config/i386/predicates.md (GOT_memory_operand): New predicate.
12183 2015-05-21 Jakub Jelinek <jakub@redhat.com>
12185 PR tree-optimization/66233
12186 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
12189 2015-05-21 Jeff Law <law@redhat.com>
12191 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
12192 than MULT for shadd sequences.
12194 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
12196 * alias.c (alias_stats): New static var.
12197 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
12198 (dump_alias_stats_in_alias_c): New function.
12199 * alias.h (dump_alias_stats_in_alias_c): Declare.
12200 * tree-ssa-alias.c (dump_alias_stats): Call it.
12202 2015-05-08 Michael Matz <matz@suse.de>
12204 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
12206 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
12207 (STMT_VINFO_STRIDED_P): ... this.
12208 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
12209 (vect_verify_datarefs_alignment): Likewise.
12210 (vect_enhance_data_refs_alignment): Likewise.
12211 (vect_analyze_data_ref_access): Likewise.
12212 (vect_analyze_data_refs): Accept strided stores.
12213 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
12214 (vect_model_load_cost): Adjust for macro rename.
12215 (vectorizable_mask_load_store): Likewise.
12216 (vectorizable_load): Likewise.
12217 (vectorizable_store): Open code strided stores.
12219 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12221 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
12222 Document sqrt_insn.
12224 2015-05-21 Richard Biener <rguenther@suse.de>
12227 * match.pd: Guard pattern optimzing (int)(float)int
12228 conversions to apply only on GIMPLE.
12230 2015-05-21 Jeff Law <law@redhat.com>
12232 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
12233 multiply-accumulate/shift-add insn generation.
12235 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
12238 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
12239 operands[1] are the same.
12241 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
12243 PR middle-end/66221
12244 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
12245 build_distinct_type_copy to copy bounds.
12247 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
12249 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
12250 Change to unsigned int.
12252 2015-05-20 Jeff Law <law@redhat.com>
12254 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
12255 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
12256 (pa_shadd_constant_p): Allow constants for shadd insns rather
12257 than valid scaling constants for memory addresses.
12258 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
12259 * config/pa/predicates.md (mem_shadd_operand): New predicate.
12260 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
12261 (shift-add insns using ASHIFT): New patterns.
12263 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
12265 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
12267 (fix_up_fall_thru_edges): Likewise.
12268 (fix_crossing_conditional_branches): Likewise. Promote jump targets
12269 from to rtx_insn to rtx_code_label where feasible.
12270 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
12271 gen_move_insn (returned type changed to rtx_insn).
12272 * builtins.c (expand_errno_check): Fix arguments of
12273 do_compare_rtx_and_jump (now expects rtx_code_label).
12274 (expand_builtin_acc_on_device): Likewise.
12275 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
12276 invert_jump (now exprects rtx_jump_insn).
12277 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
12278 (construct_init_block): Use rtx_code_label.
12279 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
12280 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
12281 calling redirect_jump.
12282 (patch_jump_insn): Likewise.
12283 (redirect_branch_edge): Likewise.
12284 (force_nonfallthru_and_redirect): Likewise.
12285 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
12287 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
12288 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
12289 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
12290 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
12291 to store the value retured by gen_label_rtx.
12292 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
12294 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
12295 (split_branches): Fix calls of redirect_jump.
12296 * dojump.c (jumpifnot): Promote argument type from rtx to
12298 (jumpifnot_1): Likewise.
12299 (jumpif): Likewise.
12300 (jumpif_1): Likewise.
12301 (do_jump_1): Likewise.
12302 (do_jump): Likewise. Use rtx_code_label when feasible.
12303 (do_jump_by_parts_greater_rtx): Likewise.
12304 (do_jump_by_parts_zero_rtx): Likewise.
12305 (do_jump_by_parts_equality_rtx): Likewise.
12306 (do_compare_rtx_and_jump): Likewise.
12307 * dojump.h: Update function prototypes.
12308 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
12310 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
12312 (emit_label_before): Likewise.
12313 (emit_jump_insn_after_noloc): Likewise.
12314 (emit_jump_insn_after_setloc): Likewise.
12315 (emit_jump_insn_after): Likewise
12316 (emit_jump_insn_before_setloc): Likewise.
12317 (emit_jump_insn_before): Likewise.
12318 (emit_label_before): Promote return type to rtx_code_label.
12319 (emit_label): Likewise.
12320 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
12321 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
12323 (emit_stack_restore): Likewise.
12324 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
12325 (do_cmp_and_jump): Likewise.
12326 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
12327 from rtx to rtx_code_label.
12328 (gen_move_insn_uncast): New function.
12329 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
12330 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
12331 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
12332 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
12333 invert_jump_1 and redirect_jump_1.
12334 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
12335 do_compare_rtx_and_jump.
12336 (expand_addsub_overflow): Likewise.
12337 (expand_neg_overflow): Likewise.
12338 (expand_mul_overflow): Likewise.
12339 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
12340 return value of gen_move_insn.
12341 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
12342 * loop-doloop.c (add_test): Use rtx_code_label.
12343 (doloop_modify): Likewise.
12344 (doloop_optimize): Likewise.
12345 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
12346 * lra-constraints.c (emit_spill_move): Remove cast of value returned
12348 (inherit_reload_reg): Add cast when calling dump_insn_slim.
12349 (split_reg): Likewise.
12350 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
12352 * optabs.c (expand_binop_directly): Remove casts of values returned by
12354 (expand_unop_direct): Likewise.
12355 (expand_abs): Likewise.
12356 (maybe_emit_unop_insn): Likewise.
12357 (maybe_gen_insn): Promote return type to rtx_insn.
12358 * optabs.h: Update prototype of maybe_gen_insn.
12359 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
12361 * recog.c (struct peep2_insn_data): Promote type of insn field to
12363 (peep2_reinit_state): Use NULL instead of NULL_RTX.
12364 (peep2_attempt): Remove casts of insn in peep2_insn_data.
12365 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
12366 * recog.h (struct insn_gen_fn): Promote return types of function
12367 pointers and operator ().from rtx to rtx_insn.
12368 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
12369 (fill_eager_delay_slots): Likewise.
12370 (relax_delay_slots): Likewise.
12371 (make_return_insns): Likewise.
12372 (dbr_schedule): Likewise.
12373 (optimize_skips): Likewise.
12374 (reorg_redirect_jump): Likewise.
12375 (fill_slots_from_thread): Likewise.
12376 * reorg.h: Update prototypes.
12377 * resource.c (find_dead_or_set_registers): Use dyn_cast to
12378 rtx_jump_insn instead of check. Use it's jump_target method.
12379 * rtl.h (rtx_jump_insn::jump_label): Define new method.
12380 (rtx_jump_insn::jump_target): Define new method.
12381 (rtx_jump_insn::set_jump_target): Define new method.
12382 * rtlanal.c (tablejump_p): Promote type of one local variable.
12383 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
12384 (sched_analyze_insn): Likewise.
12385 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
12386 (print_insn): Likewise.
12387 * stmt.c (label_rtx): Promote return type to rtx_insn.
12388 (force_label_rtx): Likewise.
12389 (jump_target_rtx): Define new function.
12390 (expand_label): Use it, get rid of one cast.
12391 (expand_naked_return): Promote rtx to rtx_code_label.
12392 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
12393 (expand_case): Use rtx_code_label instread of rtx where feasible.
12394 (expand_sjlj_dispatch_table): Likewise.
12395 (emit_case_nodes): Likewise.
12396 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
12397 * store-motion.c (insert_store): Make use of new return type of
12398 gen_move_insn and remove a cast.
12399 (replace_store_insn): Likewise.
12401 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
12403 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
12404 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
12406 2015-05-20 Jeff Law <law@redhat.com>
12408 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
12409 dispose of the jump thread path when the jump threading
12410 opportunity is cancelled.
12412 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
12414 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
12415 when printing the caret character.
12417 2015-05-20 Marek Polacek <polacek@redhat.com>
12419 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
12421 2015-05-20 Marek Polacek <polacek@redhat.com>
12423 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
12424 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
12425 * gimple-fold.c (canonicalize_bool): Likewise.
12426 (same_bool_result_p): Likewise.
12427 * tree-if-conv.c (parse_predicate): Likewise.
12429 2015-05-20 Marek Polacek <polacek@redhat.com>
12431 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
12432 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
12434 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12436 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
12437 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
12440 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
12442 * config/mips/mips.h (micromips_globals): Declare.
12444 2015-05-20 David Malcolm <dmalcolm@redhat.com>
12446 * timevar.def (TV_INITIALIZE_RTL): New.
12447 * toplev.c (initialize_rtl): Use an auto_timevar to account this
12448 function's time to TV_INITIALIZE_RTL.
12450 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
12452 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
12453 gimple_build_nop calls.
12454 (chkp_find_bounds_for_elem): Likewise.
12455 (chkp_get_zero_bounds): Likewise.
12456 (chkp_get_none_bounds): Likewise.
12457 (chkp_get_bounds_by_definition): Likewise.
12458 (chkp_generate_extern_var_bounds): Likewise.
12459 (chkp_get_bounds_for_decl_addr): Likewise.
12460 (chkp_get_bounds_for_string_cst): Likewise.
12462 2015-05-20 Bin Cheng <bin.cheng@arm.com>
12464 PR tree-optimization/65447
12465 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
12466 (dump_use, dump_uses): Support to dump sub use.
12467 (record_use): New parameters to support sub use. Remove call to
12469 (record_sub_use, record_group_use): New functions.
12470 (compute_max_addr_offset, split_all_small_groups): New functions.
12471 (group_address_uses, rewrite_use_address): New functions.
12472 (strip_offset): New declaration.
12473 (find_interesting_uses_address): Call record_group_use.
12474 (add_candidate): New assertion.
12475 (infinite_cost_p): Move definition forward.
12476 (add_costs): Check INFTY cost and return immediately.
12477 (get_computation_cost_at): Clear setup cost and dependent bitmap
12479 (determine_use_iv_cost_address): Compute cost for sub uses.
12480 (rewrite_use_address_1): Rename from old rewrite_use_address.
12481 (free_loop_data): Free sub uses.
12482 (tree_ssa_iv_optimize_loop): Call group_address_uses.
12484 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12485 Jim Wilson <jim.wilson@linaro.org>
12487 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
12488 new fields loadv and storev.
12489 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
12490 Initialize loadv and storev.
12491 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
12492 (cortexa53_extra_costs): Likewise.
12493 (cortexa57_extra_costs): Likewise.
12494 (xgene1_extra_costs): Likewise.
12495 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
12498 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12500 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
12502 (cortexa8_extra_costs): Likewise.
12503 (cortexa5_extra_costs): Likewise.
12504 (cortexa7_extra_costs): Likewise.
12505 (cortexa12_extra_costs): Likewise.
12506 (cortexa15_extra_costs): Likewise.
12507 (v7m_extra_costs): Likewise.
12509 2015-05-20 Jeff Law <law@redhat.com>
12511 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
12512 instead of open-coded version. Also delete the jump thread created
12513 within this function.
12515 2015-05-20 Alan Modra <amodra@gmail.com>
12517 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
12518 stack adjusting insn. Formatting.
12519 (rs6000_emit_prologue): Track stack adjusting insn, and use of
12520 r12. If possible, emit first -fsplit-stack arg pointer insn
12521 before stack adjust. Don't use r12 to save cr if split-stack.
12523 2015-05-20 Alan Modra <amodra@gmail.com>
12525 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
12527 (rs6000_supports_split_stack): New function.
12528 * gcc/config/rs6000/rs6000.c (machine_function): Add
12529 split_stack_arg_pointer.
12530 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
12531 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
12532 rather than virtual_incoming_args_rtx.
12533 (rs6000_va_start): Likewise.
12534 (split_stack_arg_pointer_used_p): New function.
12535 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
12536 (morestack_ref): New var.
12537 (gen_add3_const, rs6000_expand_split_stack_prologue,
12538 rs6000_internal_arg_pointer, rs6000_live_on_entry,
12539 rs6000_split_stack_space_check): New functions.
12540 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
12541 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
12542 (UNSPECV_SPLIT_STACK_RETURN): Define.
12543 (split_stack_prologue, load_split_stack_limit,
12544 load_split_stack_limit_di, load_split_stack_limit_si,
12545 split_stack_return, split_stack_space_check): New expands and insns.
12546 * gcc/config/rs6000/rs6000-protos.h
12547 (rs6000_expand_split_stack_prologue): Declare.
12548 (rs6000_split_stack_space_check): Declare.
12550 2015-05-20 Alan Modra <amodra@gmail.com>
12552 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
12553 (direct_return): Test vrsave_size rather than vrsave_mask.
12554 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
12555 (rs6000_emit_epilogue): Likewise.
12557 2015-05-20 Alan Modra <amodra@gmail.com>
12559 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
12560 when not saving registers.
12561 (debug_stack_info): Adjust to omit printing unused offsets,
12563 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
12566 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12569 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
12570 value_type to const char *.
12572 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
12574 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
12575 to build a biarch toolchain again.
12577 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
12579 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
12580 or implicit declarations.
12581 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
12583 (get_odr_type): Check type has linkage before adding bases.
12584 (register_odr_type): Check that type has linkage before adding it.
12585 (type_known_to_have_no_deriavations_p): Rename to ..
12586 (type_known_to_have_no_derivations_p): This one.
12587 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
12588 (type_known_to_have_no_derivations_p): This one.
12589 * ipa-polymorphic-call.c
12590 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
12593 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
12595 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
12596 (layout_type): Use RECORD_OR_UNION_TYPE_P.
12598 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12600 * config/s390/s390.c (s390_vector_bool_type_p): New function.
12601 (s390_invalid_binary_op): New function.
12602 (TARGET_INVALID_BINARY_OP): Define macro.
12604 2015-05-19 David Sherwood <david.sherwood@arm.com>
12606 * loop-invariant.c (create_new_invariant): Don't calculate address cost
12607 if mode is not a scalar integer.
12608 (get_inv_cost): Increase computational cost for unused invariants.
12610 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12612 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
12613 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
12614 * config/s390/s390-builtin-types.def: New file.
12615 * config/s390/s390-builtins.def: New file.
12616 * config/s390/s390-builtins.h: New file.
12617 * config/s390/s390-c.c: New file.
12618 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
12619 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
12620 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
12621 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
12623 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
12625 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
12626 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
12627 variable definitions.
12628 (s390_const_operand_ok): New function.
12629 (s390_expand_builtin): Rewrite.
12630 (s390_init_builtins): New function.
12631 (s390_handle_vectorbool_attribute): New function.
12632 (s390_attribute_table): Add s390_vector_bool attribute.
12633 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
12634 (s390_branch_condition_mask): Generate masks for new modes.
12635 (s390_expand_vec_compare_cc): New function.
12636 (s390_mangle_type): Add mangling for vector bool types.
12637 (enum s390_builtin): Remove.
12638 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
12640 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
12641 s390_cpu_cpp_builtins.
12642 (REGISTER_TARGET_PRAGMAS): New macro.
12643 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
12644 (insn_cmp mode attribute): Add new CC modes.
12645 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
12646 (lcbb): New pattern definition.
12647 * config/s390/s390intrin.h: Include vecintrin.h.
12648 * config/s390/t-s390: New file.
12649 * config/s390/vecintrin.h: New file.
12650 * config/s390/vector.md: Include vx-builtins.md.
12651 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
12654 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12656 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
12658 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
12659 (s390_select_ccmode): Likewise.
12660 (s390_canonicalize_comparison): Swap operands if necessary.
12661 (s390_expand_vec_compare_scalar): Expand DFmode compare using
12662 single element vector instructions.
12663 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
12664 (s390_branch_condition_mask): Generate CC masks for the new modes.
12665 * config/s390/s390.md (v0, vf, vd): New mode attributes.
12666 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
12667 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
12668 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
12669 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
12670 (*extend<DSF:mode><BFP:mode>2): New insn definition.
12671 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
12672 (extend<DSF:mode><BFP:mode>2): Turn into expander.
12673 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
12674 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
12675 (sqrt<mode>2): Add vector instruction.
12677 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12679 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
12681 * config/s390/predicates.md (const0_operand, constm1_operand)
12682 (constable_operand): Accept vector operands.
12683 * config/s390/s390-modes.def: Add supported vector modes.
12684 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
12685 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
12686 (s390_bytemask_vector_p, s390_expand_vec_strlen)
12687 (s390_expand_vec_compare, s390_expand_vcond)
12688 (s390_expand_vec_init): Add prototypes.
12689 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
12690 (s390_vector_mode_supported_p): New function.
12691 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
12692 (s390_contiguous_bitmask_vector_p): New function.
12693 (s390_bytemask_vector_p): New function.
12694 (s390_split_ok_p): Vector regs don't work either.
12695 (regclass_map): Add VEC_REGS.
12696 (s390_legitimate_constant_p): Handle vector constants.
12697 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
12698 (legitimate_reload_vector_constant_p): New function.
12699 (s390_preferred_reload_class): Handle CONST_VECTOR.
12700 (s390_reload_symref_address): Likewise.
12701 (s390_secondary_reload): Vector memory instructions only support
12702 short displacements. Rename reload*_nonoffmem* to reload*_la*.
12703 (s390_emit_ccraw_jump): New function.
12704 (s390_expand_vec_strlen): New function.
12705 (s390_expand_vec_compare): New function.
12706 (s390_expand_vcond): New function.
12707 (s390_expand_vec_init): New function.
12708 (s390_dwarf_frame_reg_mode): New function.
12709 (print_operand): Handle addresses with 'O' and 'R' constraints.
12710 (NR_C_MODES, constant_modes): Add vector modes.
12711 (s390_output_pool_entry): Handle vector constants.
12712 (s390_hard_regno_mode_ok): Handle vector registers.
12713 (s390_class_max_nregs): Likewise.
12714 (s390_cannot_change_mode_class): New function.
12715 (s390_invalid_arg_for_unprototyped_fn): New function.
12716 (s390_function_arg_vector): New function.
12717 (s390_function_arg_float): Remove size variable.
12718 (s390_pass_by_reference): Handle vector arguments.
12719 (s390_function_arg_advance): Likewise.
12720 (s390_function_arg): Likewise.
12721 (s390_return_in_memory): Vector values are returned in a VR if
12723 (s390_function_and_libcall_value): Handle vector arguments.
12724 (s390_gimplify_va_arg): Likewise.
12725 (s390_call_saved_register_used): Consider the arguments named.
12726 (s390_conditional_register_usage): Disable v16-v31 for non-vec
12728 (s390_preferred_simd_mode): New function.
12729 (s390_support_vector_misalignment): New function.
12730 (s390_vector_alignment): New function.
12731 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
12732 (TARGET_VECTOR_MODE_SUPPORTED_P)
12733 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
12734 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
12735 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
12736 (TARGET_VECTOR_ALIGNMENT): Define target macro.
12737 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
12738 (FIRST_PSEUDO_REGISTER): Increase value.
12739 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
12740 (VECTOR_REG_P): Define macros.
12741 (FIXED_REGISTERS, CALL_USED_REGISTERS)
12742 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
12743 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
12744 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
12745 Add vector registers.
12746 (CANNOT_CHANGE_MODE_CLASS): Call C function.
12747 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
12748 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
12750 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
12751 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
12752 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
12753 (VR*_REGNUM): New constants.
12754 (ALL): New mode iterator.
12755 (INTALL): Remove mode iterator.
12757 (movti): Implement TImode moves for VRs.
12758 Disable TImode splitter for VR targets.
12759 Implement splitting TImode GPR<->VR moves.
12760 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
12761 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
12762 reload<mode>_la_in, reload<mode>_la_out.
12763 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
12764 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
12765 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
12766 (mov<mode> SF SD): Prefer lder, lde for loading.
12767 Add lrl and strl instructions.
12768 Add vector instructions.
12769 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
12770 Call s390_expand_vec_strlen on z13.
12771 (*cc_to_int): Change predicate to nonimmediate_operand.
12772 (addti3): Rename to *addti3. New expander.
12773 (subti3): Rename to *subti3. New expander.
12774 * config/s390/vector.md: New file.
12776 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12778 * common/config/s390/s390-common.c (processor_flags_table): Add
12780 * config.gcc: Add z13.
12781 * config/s390/s390-opts.h (enum processor_type): Add
12782 PROCESSOR_2964_Z13.
12783 * config/s390/s390.c (s390_adjust_priority): Check for
12784 PROCESSOR_2964_Z13.
12785 (s390_reorg): Likewise.
12786 (s390_sched_reorder): Likewise.
12787 (s390_sched_variable_issue): Likewise.
12788 (s390_loop_unroll_adjust): Likewise.
12789 (s390_option_override): Likewise. Default to -mvx when available.
12790 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
12791 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
12792 (TARGET_VX_ABI): Define macros.
12794 (TARGET_DEFAULT): Add MASK_OPT_VX.
12795 * config/s390/s390.md ("cpu" attribute): Add z13.
12796 ("cpu_facility" attribute): Add vec.
12797 * config/s390/s390.opt (processor_type): Add z13.
12798 (mvx): New options.
12799 * doc/invoke.texi: Add z13 option for -march.
12801 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12803 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
12804 mode check to make sure that only scalar integer values are
12807 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
12809 * tree.c (verify_type_variant): Fix #undef.
12810 (gimple_canonical_types_compatible_p): Move here from lto.c
12811 (verify_type): Verify TYPE_CANONICAL compatibility.
12812 * tree.h (gimple_canonical_types_compatible_p): Declare.
12814 2015-05-19 Jakub Jelinek <jakub@redhat.com>
12816 PR middle-end/66199
12817 * tree.h (OMP_TEAMS_COMBINED): Define.
12818 * gimplify.c (enum gimplify_omp_var_data): Add
12819 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
12820 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
12821 (omp_notice_variable): Accept both ORT_TEAMS
12822 and ORT_COMBINED_TEAMS. Don't recurse if
12823 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
12824 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
12826 (omp_no_lastprivate): New function.
12827 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
12828 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
12829 notice_outer and set appropriate bits, otherwise make
12830 sure default(none) combined constructs won't complain.
12831 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
12832 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
12833 omp_no_lastprivate either remove the clause or turn it
12834 into OMP_CLAUSE_PRIVATE.
12835 (gimplify_omp_for): Fix up handling of implicit
12836 lastprivate or linear iterators.
12837 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
12838 ORT_COMBINED_TEAMS.
12839 * omp-low.c (lower_omp_for_lastprivate): For combined
12840 for simd use fd.loop.n2 from the for rather than simd.
12842 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12844 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
12845 instead of gen_rtx_raw_REG.
12846 (cris_expand_epilogue): Likewise.
12847 * config/microblaze/microblaze.c (microblaze_classify_address):
12849 * config/sparc/sparc.md: Likewise.
12851 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
12853 * config/alpha/alpha.c (alpha_legitimize_reload_address)
12854 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
12855 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
12856 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
12857 Use CASE_CONST_SCALAR_INT.
12858 (print_operand) <case 'M'>: Use mode_width_operand to check the
12859 value of the constant.
12860 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
12861 * config/alpha/predicates.md (input_operand): Use general_operand
12862 instead of match_code as operand check.
12863 (symbolic_operand): Use match_code with subexpression digits.
12864 * config/alpha/constraints.md (Q): Ditto.
12866 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12868 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
12870 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12872 * config/s390/s390.c (s390_secondary_reload): Fix check for
12873 load/store relative.
12875 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12877 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
12878 alternative_mask to uint64_t.
12880 2015-05-19 Jakub Jelinek <jakub@redhat.com>
12882 PR tree-optimization/66187
12883 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
12884 Pass TYPE_SIGN to tree_int_cst_min_precision. If
12885 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
12887 2015-05-19 David Malcolm <dmalcolm@redhat.com>
12889 * diagnostic.c (diagnostic_report_current_module): Strengthen
12890 local "new_map" from const line_map * to
12891 const line_map_ordinary *.
12892 * genmatch.c (error_cb): Likewise for local "map".
12893 (output_line_directive): Likewise for local "map".
12894 * input.c (expand_location_1): Likewise for local "map".
12895 Pass NULL rather than &map to
12896 linemap_unwind_to_first_non_reserved_loc, since the value is never
12897 read from there, and the value written back not read from here.
12898 (is_location_from_builtin_token): Strengthen local "map" from
12899 const line_map * to const line_map_ordinary *.
12900 (dump_location_info): Strengthen locals "map" from
12901 line_map *, one to const line_map_ordinary *, the other
12902 to const line_map_macro *.
12903 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
12904 const line_map * to const line_map_macro *.
12905 (maybe_unwind_expanded_macro_loc): Add a call to
12906 linemap_check_macro when writing to the "map" field of the
12908 Introduce local const line_map_ordinary * "ord_map", using it in
12909 place of "map" in the part of the function where we know we have
12910 an ordinary map. Strengthen local "m" from const line_map * to
12911 const line_map_ordinary *.
12913 2015-05-19 Nick Clifton <nickc@redhat.com>
12916 * config/msp430/msp430.md (zero_extendhisi2): Add support for
12917 separate source and destination registers.
12919 2015-05-19 Richard Biener <rguenther@suse.de>
12921 PR tree-optimization/66165
12922 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
12923 for no load permutation.
12925 PR tree-optimization/66185
12926 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
12927 when building the SLP node from scalars.
12929 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
12930 Tristan Gingold <gingold@adacore.com>
12932 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
12933 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
12934 (expand_stack_restore): Call record_new_stack_level.
12935 (expand_stack_save): Do not call do_pending_stack_adjust.
12936 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
12937 * calls.c (expand_call): Call record_new_stack_level for alloca.
12938 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
12939 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
12940 (update_sjlj_context): New global function.
12941 * except.h (update_sjlj_context): Declare.
12942 * explow.c (record_new_stack_level): New global function.
12943 (allocate_dynamic_stack_space): Call record_new_stack_level.
12944 * explow.h (record_new_stack_level): Declare.
12945 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
12946 * cfgrtl.c (duplicate_insn_chain): Likewise.
12948 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12950 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
12951 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
12952 STACK_GROWS_DOWNWARD as normal if.
12953 (expand_call): Likewise.
12955 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
12958 * config/sh/sh.md (*round_int_even): New insn_and_split and
12959 accompanying new unnamed split.
12961 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12963 * bitmap.c (bitmap_set_range): Handle count==1 specially.
12964 (bitmap_clear_range): Likewise.
12965 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
12966 bitmap_set_range unconditionally.
12967 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
12968 * df-scan.c (df_mark_reg): Likewise.
12969 * haifa-sched.c (setup_ref_regs): Likewise.
12970 * sched-rgn.c (update_live_1): Likewise.
12972 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12974 * regs.h (END_HARD_REGNO): Delete.
12975 (END_REGNO): Move to...
12977 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
12978 * caller-save.c (mark_set_regs): Likewise.
12979 * combine.c (move_deaths, distribute_notes): Likewise.
12980 * cse.c (invalidate, invalidate_for_call): Likewise.
12981 * df-scan.c (df_ref_record): Likewise.
12982 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
12983 (record_last_reg_set_info): Likewise.
12984 * reg-stack.c (convert_regs_exit): Likewise.
12985 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
12986 * resource.c (update_live_status): Likewise.
12987 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
12989 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12991 * rtl.h (reg_info): Add an nregs field.
12992 (REG_NREGS): Use it.
12993 (SET_REGNO_RAW): Delete.
12994 (set_regno_raw): New function.
12995 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
12996 (END_REGNO): Redefine in terms of REG_NREGS.
12997 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
12999 * emit-rtl.c (set_mode_and_regno): Likewise.
13000 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
13001 instead of SET_REGNO_RAW.
13003 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13005 * rtl.h (PUT_MODE_RAW): New macro.
13006 (PUT_REG_NOTE_KIND): Use it.
13007 (set_mode_and_regno): Declare.
13008 (gen_raw_REG): Change regno to "unsigned int".
13009 (gen_rtx_REG): Change "unsigned" to "unsigned int".
13010 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
13011 use set_mode_and_regno to change the mode of registers.
13012 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
13013 * emit-rtl.c (set_mode_and_regno): New function.
13014 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
13015 * caller-save.c (reg_save_code): Use set_mode_and_regno.
13016 * expr.c (init_expr_target): Likewise.
13017 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13018 * postreload.c (reload_cse_simplify_operands): Likewise.
13020 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13022 * caller-save.c (init_caller_save): Use word_mode and
13023 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
13024 * expr.c (init_expr_target): Likewise.
13025 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13026 * postreload.c (reload_cse_regs_1): Likewise.
13028 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13030 * rtl.def (REG): Change format to "r".
13031 * rtl.h (rtunion): Remove rt_reg.
13032 (reg_info): New structure.
13033 (rtx_def): Add reg field to main union.
13034 (X0REGATTR): Delete.
13035 (REG_CHECK): New macro.
13036 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
13037 * rtl.c (rtx_format): Document "r".
13038 (rtx_code_size): Handle REG specially.
13039 * gengenrtl.c (special_format): Return true for formats
13041 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
13042 Deal with REG_ATTRS after the field loop.
13043 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
13044 * expmed.c (init_expmed): Call gen_raw_REG instead of
13046 * expr.c (init_expr_target): Likewise.
13047 * regcprop.c (maybe_mode_change): Likewise.
13048 * varasm.c (make_decl_rtl): Likewise.
13049 * final.c (leaf_renumber_regs_insn): Return early after
13051 * genemit.c (gen_exp): Handle 'r' fields.
13052 * genpeep.c (match_rtx): Likewise.
13053 * gensupport.c (subst_pattern_match): Likewise.
13054 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
13055 (alter_constraints, subst_dup): Likewise.
13056 * read-rtl.c (read_rtx_code): Likewise.
13057 * print-rtl.c (print_rtx): Likewise.
13058 * genrecog.c (find_operand, find_matching_operand): Likewise.
13059 (validate_pattern, match_pattern_2): Likewise.
13060 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
13061 (rtx_test::regno_field): New function.
13062 (operator ==, safe_to_hoist_p, transition_parameter_type)
13063 (parameter_type_string, print_parameter_value)
13064 (print_nonbool_test, print_test): Handle new enum values.
13065 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
13066 * lra-constraints.c (operands_match_p): Likewise.
13068 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13070 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
13071 Change type of new_regno to unsigned int.
13072 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
13073 new_regno to unsigned int.
13074 (df_ref_change_reg_with_loc): Remove old_regno parameter.
13075 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
13076 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
13077 (SET_REGNO_RAW): Add space after ",".
13079 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13081 * rtl.h (REG_NREGS): New macro
13082 * alias.c (record_set): Use it.
13083 * cfgcleanup.c (mark_effect): Likewise.
13084 * combine.c (likely_spilled_retval_1): Likewise.
13085 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
13086 (move_deaths, distribute_notes): Likewise.
13087 * cselib.c (cselib_record_set): Likewise.
13088 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
13089 * df-scan.c (df_mark_reg): Likewise.
13090 * dse.c (look_for_hardregs): Likewise.
13091 * dwarf2out.c (reg_loc_descriptor): Likewise.
13092 (multiple_reg_loc_descriptor): Likewise.
13093 * expr.c (write_complex_part, read_complex_part): Likewise.
13094 (emit_move_complex): Likewise.
13095 * haifa-sched.c (setup_ref_regs): Likewise.
13096 * ira-lives.c (mark_hard_reg_live): Likewise.
13097 * lra.c (lra_set_insn_recog_data): Likewise.
13098 * mode-switching.c (create_pre_exit): Likewise.
13099 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
13100 (reload_combine_recognize_pattern): Likewise.
13101 (reload_combine_note_use, move2add_record_mode): Likewise.
13102 (reload_cse_move2add): Likewise.
13103 * reg-stack.c (subst_stack_regs_pat): Likewise.
13104 * regcprop.c (kill_value, copy_value): Likewise.
13105 (copyprop_hardreg_forward_1): Likewise.
13106 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
13107 (build_def_use): Likewise.
13108 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
13109 (deps_analyze_insn): Likewise.
13110 * sched-rgn.c (check_live_1, update_live_1): Likewise.
13111 * sel-sched.c (count_occurrences_equiv): Likewise.
13112 * valtrack.c (dead_debug_insert_temp): Likewise.
13114 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13116 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
13117 * dse.c (note_add_store): Likewise.
13118 * ira-lives.c (mark_hard_reg_dead): Likewise.
13119 * loop-invariant.c (mark_reg_store): Likewise.
13120 (mark_reg_death): Likewise.
13121 * postreload.c (reload_combine): Likewise.
13122 (reload_combine_note_store): Likewise.
13123 (reload_combine_note_use): Likewise.
13124 * recog.c (peep2_reg_dead_p): Likewise.
13126 2015-05-19 Alan Modra <amodra@gmail.com>
13128 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
13129 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
13130 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
13132 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
13133 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
13134 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
13135 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
13137 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
13139 * config/mips/mips.md (JOIN_MODE): New mode iterator.
13140 (join2_load_Store<JOIN_MODE:mode>): New pattern.
13141 (join2_loadhi): Likewise.
13142 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
13143 load-load and store-stores.
13144 * config/mips/mips.opt (mload-store-pairs): New option.
13145 (TARGET_LOAD_STORE_PAIRS): New macro.
13146 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
13147 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
13148 * config/mips/mips.c (mips_load_store_bonding_p): New function.
13150 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
13152 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
13154 * dojump.c (do_compare_rtx_and_jump): Likewise.
13155 * expmed.c (emit_store_flag_1): Likewise.
13156 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
13157 * final.c (sprint_ul): Use std::reverse for reversing a string.
13158 * fold-const.c (extract_muldiv_1): Use std::swap.
13159 * genmodes.c (emit_mode_int_n): Likewise.
13160 * ifcvt.c (dead_or_predicable): Likewise.
13161 * ira-build.c (ira_merge_live_ranges): Likewise.
13162 (swap_allocno_copy_ends_if_necessary): Likewise.
13163 * ira.c (ira_setup_alts): Likewise.
13164 * loop-iv.c (iv_analyze_expr): Likewise.
13165 (implies_p): Likewise.
13166 (canon_condition): Likewise.
13167 * lra-constraints.c (swap_operands): Likewise.
13168 * lra-lives.c (lra_merge_live_ranges): Likewise.
13169 * omega.c (swap): Remove.
13171 (omega_unprotect_1): Use std::swap.
13172 (omega_solve_geq): Likewise.
13173 * optabs.c (expand_binop_directly): Likewise.
13174 (expand_binop): Likewise.
13175 (emit_conditional_move): Likewise.
13176 (emit_conditional_add): Likewise.
13177 * postreload.c (reload_cse_simplify_operands): Likewise.
13178 * reg-stack.c (emit_swap_insn): Likewise.
13179 (swap_to_top): Likewise.
13180 (compare_for_stack_reg): Likewise.
13181 (subst_asm_stack_regs): Likewise.
13182 * reload.c (find_reloads): Likewise.
13183 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
13184 * sel-sched.c (invoke_reorder_hooks): Likewise.
13185 (create_block_for_bookkeeping): Likewise.
13186 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
13187 (lambda_matrix_right_hermite): Use std::swap.
13188 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
13189 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13190 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
13191 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
13192 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
13193 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
13194 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
13195 * tree-vrp.c (compare_ranges): Likewise.
13196 * var-tracking.c (add_with_sets): Likewise.
13197 (vt_find_locations): Likewise.
13199 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
13201 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
13203 (FBSD_ENDFILE_SPEC): Likewise.
13204 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
13205 config/freebsd-spec.h.
13206 (ENDFILE_SPEC): Likewise.
13208 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
13209 Richard Henderson <rth@redhat.com>
13212 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
13213 Check for a memory location that is not a reference (using an AND)
13214 to an unaligned location here.
13215 * config/alpha/predicates.md (normal_memory_operand): Remove.
13217 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
13219 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
13220 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
13222 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
13224 * config/mips/mips.c (micromips_globals): New variable.
13225 (mips_set_compression_mode): Save and reinitialize target-dependent
13226 state for microMIPS.
13228 2015-05-18 Martin Liska <mliska@suse.cz>
13230 * dbgcnt.def: Add new counter.
13231 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
13233 2015-05-18 Martin Liska <mliska@suse.cz>
13235 * dbgcnt.def: Sort counters.
13236 * opts.c (common_handle_option): Do not compile if
13237 -fdbg-cnt-list is enabled.
13239 2015-05-18 Tom de Vries <tom@codesourcery.com>
13241 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
13242 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
13243 address operator to va_list operand.
13244 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
13246 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
13248 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
13249 * config/s390/s390.c (s390_gimplify_va_arg): Same.
13250 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
13252 2015-05-18 Tom de Vries <tom@codesourcery.com>
13254 * tree-ssa-tail-merge.c: Fix whitespace.
13256 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
13258 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
13259 cortex-a17, and cortex-a17.cortex-a7.
13261 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
13264 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
13266 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
13269 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
13270 QImode inner modes for TARGET_AVX512BW. Force mask operand
13271 to a register for AVX512F modes.
13273 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13275 * toplev.c (emit_debug_global_declarations): Do not output debug info
13276 when doing slim LTO objects.
13278 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13280 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
13281 odr_types_equivalent_p): Declare.
13282 (odr_type_p): Use gcc_checking_assert.
13283 (type_in_anonymous_namespace_p) Declare.
13284 (type_with_linkage_p): Declare.
13285 * common.opt (Wlto-type-mismatch): New warning.
13286 * ipa-devirt.c (compound_type_base): New function.
13287 (odr_or_derived_type_p): New function.
13288 (odr_types_equivalent_p): New function.
13289 (add_type_duplicate): Simplify.
13290 (type_with_linkage_p): Add hack to prevent false positives on C types
13291 (type_in_anonymous_namespace_p): Likewise.
13292 * tree.c (need_assembler_name_p): Use type_with_linkage.
13293 * tree.h (type_in_anonymous_namespace_p): Remove.
13294 * doc/invoke.texi (-Wlto-type-mismatch): Document
13296 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13298 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
13299 (verify_type): Verify STRING_FLAG.
13301 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
13304 * tree-pretty-print.c (percent_K_format): Replace locus pointer
13305 with accessor function.
13306 * tree-diagnostic.c (diagnostic_report_current_function): Use
13307 diagnostic_location function.
13308 (maybe_unwind_expanded_macro_loc): Likewise.
13309 (virt_loc_aware_diagnostic_finalizer): Likewise.
13310 (default_tree_printer): Replace locus pointer with accessor function.
13311 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
13312 (diagnostic_set_info_translated): Initialize second location.
13313 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
13314 (diagnostic_show_locus): Handle two locations. Call
13315 diagnostic_print_caret_line.
13316 (diagnostic_print_caret_line): New.
13317 (default_diagnostic_starter): Use diagnostic_location function.
13318 (diagnostic_report_diagnostic): Use diagnostic_location function.
13319 (verbatim): Do not set text.locus.
13320 * diagnostic.h (struct diagnostic_info): Remove location field.
13321 (struct diagnostic_context): Make caret_chars an array of two.
13322 (diagnostic_location): New inline.
13323 (diagnostic_expand_location): Handle two locations.
13324 (diagnostic_same_line): New inline.
13325 (diagnostic_print_caret_line): Declare.
13326 (CARET_LINE_MARGIN): New constant.
13327 * pretty-print.c (pp_printf): Do not set text.locus.
13328 (pp_verbatim): Do not set text.locus.
13329 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
13330 (struct text_info): Replace locus pointer with locations
13331 array. Add accessor functions.
13333 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
13334 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13337 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
13338 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
13339 large constants in register instead of splitting them.
13341 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
13344 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
13345 replacements in memory addresses.
13346 (get_unaligned_address): Ditto.
13348 2015-05-16 James Bowman <james.bowman@ftdichip.com>
13350 * config/ft32/*: New files for FT32 port.
13351 * doc/install.texi: Add FT32 information.
13352 * doc/invoke.texi: Add FT32 information.
13353 * doc/md.texi: Add FT32 information.
13354 * doc/contrib.texi: Self added.
13356 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
13358 PR tree-optimization/64454
13359 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
13360 (-1 - A -> ~A): Remove unnecessary condition.
13362 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
13364 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
13365 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
13366 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
13368 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
13370 * ipa-chkp.h (chkp_wrap_function): New.
13371 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
13372 (chkp_wrap_function_name): New.
13373 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
13374 to get wrapper name.
13375 * lto-cgraph.c: Include ipa-chkp.h.
13376 (input_cgraph_1): Avoid alias chain for wrappers.
13378 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
13380 PR middle-end/66134
13381 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
13382 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
13384 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13386 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
13387 (AARCH64_FL_SLOWMUL): Delete.
13388 (AARCH64_FL_CRC): Redefine to 1<<3.
13389 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
13391 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13393 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
13396 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
13398 * config/alpha/alpha.md (extendqidi2): Use general_operand
13399 instead of some_operand for operand[1] predicate.
13400 (extendhidi2): Ditto.
13401 (cbranchdi4): Use general_operand instead of some_operand
13402 for operand[1] and operands[2] predicates.
13403 (cstoredi4): Ditto.
13404 * config/alpha/predicates.md (some_operand): Remove unused predicate.
13405 (some_ni_operand): Ditto.
13407 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
13409 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
13410 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
13411 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
13412 low part of the constant using alpha_emit_set_const_1.
13413 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
13415 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
13417 * varasm.c (output_constant_pool_1): Pass down alignment from
13418 constant pool entry's descriptor to output_constant_pool_2.
13419 (output_object_block): Add comment prior to call to
13420 output_constant_pool_1.
13422 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
13424 PR rtl-optimization/65862
13425 * target.def (ira_change_pseudo_allocno_class): New hook.
13426 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
13428 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
13429 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
13431 * ira-costs.c (find_costs_and_classes): Call the hook and change
13432 classes when it is necessary.
13433 * doc/tm.texi: Update.
13435 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
13437 * config/i386/i386.md (sibcall_memory): Check that register with
13438 callee address is not also used as one of the arguments, instead
13439 of checking that it is not live after the sibcall.
13440 (sibcall_pop_memory): Ditto.
13441 (sibcall_value_memory): Ditto.
13442 (sibcall_value_pop_memory): Ditto.
13444 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
13446 * generic-match-head.c (types_match): Handle non-types.
13447 * gimple-match-head.c (types_match): Likewise.
13448 * match.pd: Remove unnecessary TREE_TYPE for types_match.
13450 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
13452 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
13453 (csneg3<mode>_insn): Enable expansion of pattern.
13455 2015-05-14 Nick Clifton <nickc@redhat.com>
13457 * config/rl78/rl78.c (rl78_select_section): Select the correct
13458 default section based upon the category of the decl.
13460 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
13462 PR rtl-optimization/30967
13463 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
13464 destination mode for the cost of scc patterns.
13466 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
13468 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
13469 using SWIM248 mode iterator.
13470 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
13471 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
13472 for operand[2] constraint.
13473 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
13475 2015-05-13 Jakub Jelinek <jakub@redhat.com>
13477 PR middle-end/66133
13478 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
13479 make sure it is never noreturn, even when the task body does not
13481 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
13482 right before GIMPLE_OMP_RETURN.
13483 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
13484 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
13485 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
13487 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13489 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
13490 * tree-ssa-math-opts.c: Include params.h
13491 (pow_synth_sqrt_info): New struct.
13492 (representable_as_half_series_p): New function.
13493 (get_fn_chain): Likewise.
13494 (print_nested_fn): Likewise.
13495 (dump_fractional_sqrt_sequence): Likewise.
13496 (dump_integer_part): Likewise.
13497 (expand_pow_as_sqrts): Likewise.
13498 (gimple_expand_builtin_pow): Use above to attempt to expand
13499 pow as series of square roots. Removed now unused variables.
13501 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
13503 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
13504 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
13505 Remove *p0 and *p1 arguments. Rewrite function.
13506 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
13507 (alpha_split_const_mov): Update calls to alpha_extract_integer and
13508 alpha_emit_set_long_const.
13509 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
13510 (alpha_output_mi_thunk_osf): Ditto.
13511 * config/alpha/alpha.md (movti): Do not check operands[1]
13514 2015-05-13 Richard Biener <rguenther@suse.de>
13516 PR tree-optimization/66129
13517 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
13519 (vect_schedule_slp_instance): Fix typo.
13521 2015-05-13 David Malcolm <dmalcolm@redhat.com>
13523 * common.opt (fdump-internal-locations): New option.
13524 * input.c: Include diagnostic-core.h.
13525 (get_end_location): New function.
13526 (write_digit): New function.
13527 (write_digit_row): New function.
13528 (dump_location_range): New function.
13529 (dump_labelled_location_range): New function.
13530 (dump_location_info): New function.
13531 * input.h (dump_location_info): New prototype.
13532 * toplev.c (compile_file): Handle flag_dump_locations.
13534 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
13536 * gimple-expr.h (is_gimple_constant): Reorder.
13537 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
13539 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
13541 * combine.c (simplify_set): When generating a CC set, if the
13542 source already is in the correct mode, do not wrap it in a
13543 compare. Simplify the rest of that code.
13545 2015-05-13 Richard Biener <rguenther@suse.de>
13547 PR tree-optimization/66123
13548 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
13551 2015-05-13 Richard Biener <rguenther@suse.de>
13553 PR middle-end/66110
13554 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
13556 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
13558 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
13560 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
13561 * aclocal.m4: Regenerated with automake-1.11.6.
13563 2015-05-13 Tom de Vries <tom@codesourcery.com>
13565 PR tree-optimization/66010
13566 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
13567 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
13568 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
13569 and rval based on do_deref.
13571 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
13574 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
13575 link time constants into adress expressions and therefore set
13578 2015-05-13 Jakub Jelinek <jakub@redhat.com>
13581 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
13582 Use SWI248 iterator instead of SWI.
13583 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
13584 Use eq_attr "alternative" "0" instead of match_test in
13585 length_immediate attribute computation.
13586 (*mulvhi4, *mulvhi4_1): New define_insns.
13589 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
13590 SIGNED to get precision of non-negative value.
13592 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
13595 * function.c (diddle_return_value_1): Process bounds first.
13596 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
13599 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
13601 PR rtl-optimization/64616
13602 * loop-invariant.c (can_move_invariant_reg): New.
13603 (move_invariant_reg): Call above new function to decide whether
13604 instruction can just be moved, skipping creation of temporary
13607 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
13609 PR target/pr66047.c
13610 * i386.c (ix86_function_sseregparm): Only return -1 if local function
13611 with implied regparm is called from -mno-sse function.
13612 (init_cumulative_args): Output error if ix86_function_sseregparm
13613 return -1 and SSE register would be needed.
13614 (function_arg_advance_32): Likewise.
13615 (function_arg_32): Likewise.
13616 * i386.h (ix86_args): Add decl field.
13618 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
13621 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
13622 inlines across optimization boundary.
13624 2015-05-12 Jason Merrill <jason@redhat.com>
13626 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
13627 string literal and macro name.
13629 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
13631 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
13632 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
13633 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
13635 2015-05-12 David Malcolm <dmalcolm@redhat.com>
13637 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
13638 (-Wmisleading-indentation): New option.
13639 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
13641 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
13643 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
13644 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
13645 (alpha_extract_integer): Ditto.
13646 (alpha_legitimate_constant_p): Ditto.
13647 (alpha_split_tmode_pair): Ditto.
13648 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
13649 (alpha_expand_mov): Ditto.
13650 (print_operand): Remove handling of 'H' modifier.
13651 <case 'm'>: Remove CONST_DOUBLE handling.
13652 (summarize_insn): Handle CONST_WIDE_INT.
13653 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
13655 (movti): Handle CONST_WIDE_INT.
13656 * config/alpha/constraints.md ('H'): Remove constraint definition.
13657 ('G'): Do not match MODE_FLOAT class.
13658 * config/alpha/predicates.md (const0_operand): Also match
13660 (non_add_const_operand): Ditto.
13661 (non_zero_const_operand): Ditto.
13662 (some_operand): Ditto.
13663 (input_operand): Ditto. Handle CONST_WIDE_INT.
13664 (and_operand): Do not match const_double.
13665 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
13667 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
13670 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
13671 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
13672 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
13673 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
13674 is_mm_seq_cst, is_mm_sync): New accessor functions.
13675 * builtins.c (expand_builtin_sync_operation,
13676 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
13677 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
13678 (get_memmodel, expand_builtin_atomic_compare_exchange,
13679 expand_builtin_atomic_load, expand_builtin_atomic_store,
13680 expand_builtin_atomic_clear): Use new accessor routines.
13681 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
13682 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
13683 (maybe_emit_sync_lock_test_and_set): Use new accessors and
13684 MEMMODEL_SYNC_ACQUIRE.
13685 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
13686 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
13687 expand_atomic_store): Use new accessors.
13688 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
13689 * tsan.c (instrument_builtin_call): Update check for memory model beyond
13690 final enum to use MEMMODEL_LAST.
13691 * c-family/c-common.c: Use new accessor for memmodel_base.
13692 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
13694 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
13695 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
13696 mem_thread_fence, *dmb): Likewise.
13697 * config/alpha/alpha.c (alpha_split_compare_and_swap,
13698 alpha_split_compare_and_swap_12): Likewise.
13699 * config/arm/arm.c (arm_expand_compare_and_swap,
13700 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
13701 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
13702 atomic_loaddi): Likewise.
13703 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
13705 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
13706 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
13708 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
13709 atomic_store<mode>, atomic_compare_and_swap<mode>,
13710 atomic_exchange<mode>): Use new accessors.
13711 * config/mips/mips.c (mips_process_sync_loop): Likewise.
13712 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
13713 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
13714 rs6000_post_atomic_barrier): Add new cases.
13715 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
13716 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
13717 (atomic_load<mode>): Add new cases and use new accessors.
13718 (store_quadpti): Add new cases.
13719 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
13721 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
13722 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
13725 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
13727 * ipa-devirt.c (type_with_linkage_p): New function.
13728 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
13730 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
13731 (can_be_name_hashed_p): Simplify.
13732 (hash_odr_name): Check that type has linkage before checking if it is
13734 (types_same_for_odr): Likewise.
13735 (odr_name_hasher::equal): Likewise.
13736 (odr_subtypes_equivalent_p): Likewise.
13737 (warn_types_mismatch): Likewise.
13738 (get_odr_type): Likewise.
13739 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
13740 * ipa-utils.h (odr_type_p): Move offline.
13741 * tree.c (need_assembler_name_p): Fix handling of types
13743 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
13745 2015-05-12 David Malcolm <dmalcolm@redhat.com>
13747 * timevar.c (timevar_enable): Delete in favor of...
13748 (g_timer): New global.
13749 (struct timevar_def): Move to timevar.h inside class timer.
13750 (struct timevar_stack_def): Likewise.
13751 (timevars): Delete global in favor of field "m_timevars" within
13752 class timer in timevar.h
13753 (stack): Likewise, in favor of field "m_stack".
13754 (unused_stack_instances): Likewise, in favor of field
13755 "m_unused_stack_instances".
13756 (start_time): Likewise, in favor of field "m_start_time".
13757 (get_time): Eliminate check for timevar_enable.
13758 (timer::timer): New function, built from part of timevar_init.
13759 (timevar_init): Rewrite idempotency test from using
13760 "timevar_enable" bool to using dynamic allocation of "g_timer".
13761 Move rest of implementation into timer's constructor.
13762 (timevar_push_1): Rename to...
13763 (timer::push): ...this, adding "m_" prefixes to variables that
13764 are now fields of timer.
13765 (timevar_pop_1): Likewise, rename to...
13766 (timer::pop): ...this, and add "m_" prefixes.
13767 (timevar_start): Replace test for "timevar_enable" with one for
13768 "g_timer", and move bulk of implementation to...
13769 (timer::start): ...here, adding "m_" prefixes.
13770 (timevar_stop): Likewise, from here...
13771 (timer::stop): ...to here.
13772 (timevar_cond_start): Likewise, from here...
13773 (timer::cond_start): ...to here.
13774 (timevar_cond_stop): Likewise, from here...
13775 (timer::cond_stop): ...to here.
13776 (validate_phases): Rename to...
13777 (timer::validate_phases): ...this, and add "m_" prefixes. Make
13778 locals "total" and "tv" const.
13779 (timevar_print): Rename to...
13780 (timer::print): ...this, and add "m_" prefixes. Make locals
13781 "total" and "tv" const. Eliminate test for timevar_enable.
13782 * timevar.h (timevar_enable): Eliminate.
13783 (g_timer): New declaration.
13784 (timevar_push_1): Eliminate.
13785 (timevar_pop_1): Eliminate.
13786 (timevar_print): Eliminate.
13787 (class timer): New class.
13788 (timevar_push): Rewrite to use g_timer.
13789 (timevar_pop): Likewise.
13790 * toplev.c (toplev::~toplev): Likewise.
13792 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
13794 * arm-protos.h (arm_sched_autopref): Delete.
13795 (tune_params): Re-organize, use enums for flag values.
13796 (FUSE_OPS): New macro.
13797 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
13798 (ARM_PREFETCH_BENEFICIAL): Likewise.
13799 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
13800 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
13801 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
13802 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
13803 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
13804 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
13805 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
13806 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
13808 (arm_option_override, thumb2_reorg, arm_print_tune_info)
13809 (aarch_macro_fusion_pair_p): Update uses of current_tune.
13810 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
13812 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
13814 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
13817 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
13818 Sandra Loosemore <sandra@codesourcery.com>
13820 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
13822 (REG_CLASS_NAMES): Add "IJMP_REGS".
13823 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
13824 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
13825 use new "c" register constraint.
13826 * config/nios2/constraint.md (c): New register constraint
13827 corresponding to IJMP_REGS.
13829 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13831 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
13832 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
13833 define_splits): Delete, revamp, transmogrify into ...
13834 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
13835 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
13836 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
13839 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13841 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
13842 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
13844 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13846 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
13847 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
13848 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
13849 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
13850 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
13851 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
13852 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
13853 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
13854 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
13855 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
13856 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
13857 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
13858 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
13859 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
13860 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
13861 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
13862 and 30 corresponding splitters): Delete.
13864 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13866 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
13869 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13871 * combine.c (recog_for_combine_1): New function, factored out
13872 from recog_for_combine.
13873 (change_zero_ext): New function.
13874 (recog_for_combine): If recog fails, try again with the pattern
13875 modified by change_zero_ext; if that still fails, restore the
13878 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13880 * combine.c (get_undo_marker): New function.
13881 (undo_to_marker): New function, largely factored out from ...
13882 (undo_all): ... this. Adjust.
13884 2015-05-12 Richard Biener <rguenther@suse.de>
13886 PR tree-optimization/66101
13887 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
13888 fixup if we turn a loop exit edge to a fallthru edge.
13890 2015-05-12 Richard Biener <rguenther@suse.de>
13892 PR tree-optimization/37021
13893 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
13894 (SLP_TREE_TWO_OPERATORS): New define.
13895 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
13896 SLP_TREE_TWO_OPERATORS.
13897 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
13899 (vect_build_slp_tree): Adjust.
13900 (vect_analyze_slp_cost_1): Likewise.
13901 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
13902 emitting two vector stmts and mixing the results.
13904 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
13906 * call.c (print_z_candidates): Remove dead code.
13908 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13910 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
13911 and zEC12_simple_fp.
13912 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
13915 2015-05-12 Tom de Vries <tom@codesourcery.com>
13917 PR tree-optimization/66010
13918 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
13920 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
13921 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
13922 va_lists are passed, and remove corresponding handling.
13923 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
13924 do_deref argument to ifn_va_arg.
13925 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
13928 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13931 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
13932 REG before taking its REGNO.
13934 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
13936 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
13937 rsp->sign_bit_copies and rsp->nonzero_bits into ...
13938 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
13939 present to get more accurate information about the number of sign bit
13940 copies and non zero bits.
13942 2015-05-12 Richard Biener <rguenther@suse.de>
13944 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
13945 do not allow unrolling.
13947 2015-05-11 Richard Henderson <rth@redhat.com>
13949 * config/i386/i386-modes.def (CCP): New.
13950 * config/i386/i386.c (put_condition_code): Handle it.
13951 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
13953 2015-05-11 Richard Henderson <rth@redhat.com>
13955 * target.def (md_asm_clobbers): Replace with...
13956 (md_asm_adjust): this.
13957 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
13958 (TARGET_MD_ASM_ADJUST): New.
13959 * tm.texi: Rebuild.
13960 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
13961 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
13962 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
13964 * cfgexpand.c (check_operand_nalternatives): Accept vector of
13965 constraints instead of lists of outputs and inputs.
13966 (expand_asm_stmt): Save and restore input_location around the
13967 body of the function. Move asm data into vectors instead of
13968 building tree lists. Generate cleanup sequences as needed,
13969 rather than waiting til the end. Use new md_asm_adjust hook.
13971 * config/vxworks.c: Include vec.h before target.h.
13972 * gimple.c: Likewise.
13973 * incpath.c: Likewise.
13974 * mode-switching.c: Likewise.
13976 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
13977 (cris_md_asm_adjust): this.
13978 (TARGET_MD_ASM_CLOBBERS): Remove.
13979 (TARGET_MD_ASM_ADJUST): New.
13980 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
13981 (ix86_md_asm_adjust): this.
13982 (TARGET_MD_ASM_CLOBBERS): Remove.
13983 (TARGET_MD_ASM_ADJUST): New.
13984 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
13985 (mn10300_md_asm_adjust): this.
13986 (TARGET_MD_ASM_CLOBBERS): Remove.
13987 (TARGET_MD_ASM_ADJUST): New.
13988 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
13989 (rs6000_md_asm_adjust): this.
13990 (TARGET_MD_ASM_CLOBBERS): Remove.
13991 (TARGET_MD_ASM_ADJUST): New.
13992 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
13993 (visium_md_asm_adjust): this.
13994 (TARGET_MD_ASM_CLOBBERS): Remove.
13995 (TARGET_MD_ASM_ADJUST): New.
13997 2015-05-11 Richard Henderson <rth@redhat.com>
13999 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
14000 if noutputs is zero.
14001 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
14003 * cfgexpand.c (expand_asm_operands): Merge into...
14004 (expand_asm_stmt): ... here.
14006 * cfgexpand.c (expand_asm_operands): Don't call
14007 resolve_asm_operand_names.
14008 * stmt.c (resolve_asm_operand_names): Clarify block comment.
14010 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
14012 * dwarf2out.c (gen_member_die): Sanity check that we access
14013 TYPE_MAIN_VARIANT for TYPE_METHODS.
14014 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
14015 checking TYPE_METHODS.
14016 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
14018 (build_distinct_type_copy): Clear TYPE_METHODS.
14019 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
14020 (verify_type): Allow TYPE_METHODS to be error_mark_node.
14021 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
14023 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
14025 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
14026 (emit_pattern_before_setloc): Likewise.
14028 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
14030 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
14031 for define_peephole2s.
14032 (get_peephole2_pattern): New function.
14033 (main): Use it. Call validate_pattern.
14035 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14037 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
14038 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
14039 (Last callee saved reg is different for AVR_TINY architecture)
14041 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
14043 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
14044 when looking for memory references.
14046 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
14049 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
14050 via function pointers.
14052 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
14054 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
14055 indirect call by forcing address into a pseudo with -fno-plt.
14056 * common.opt (flag_plt): New option.
14057 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
14058 ([-fno-plt]): Document.
14060 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
14063 * config/rs6000/option-defaults.h: Add space between string literal
14066 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
14068 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
14069 accross ARM targets.
14071 2015-05-11 Christian Bruel <christian.bruel@st.com>
14073 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
14074 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
14076 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
14078 PR rtl-optimization/66076
14079 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
14080 Don't grow the heap array if it is already big enough from a
14081 previous iteration.
14083 2015-05-11 Christian Bruel <christian.bruel@st.com>
14085 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
14086 (is_called_in_ARM_mode): Remove.
14087 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
14088 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
14089 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
14090 arm_declare_function_name.
14092 2015-05-11 Christian Bruel <christian.bruel@st.com>
14094 * config/arm/arm.c (arm_option_override): Reoganized and split into :
14095 (arm_option_params_internal); New function.
14096 (arm_option_check_internal): New function.
14097 (arm_option_override_internal): New function.
14098 (thumb_code, thumb1_code): Remove.
14099 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
14100 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
14101 (thumb_code, thumb1_code): Remove.
14102 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
14104 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
14106 * config/alpha/alpha.c (alpha_emit_set_const_1)
14107 (alpha_emit_set_long_const, alpha_extract_integer)
14108 (alpha_legitimate_constant_p, alpha_split_const_mov)
14109 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
14110 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14111 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
14113 * config/alpha/predicates.md (mode_mask_operand): Do not match
14115 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14116 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
14117 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
14118 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14119 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
14121 2015-05-11 Jakub Jelinek <jakub@redhat.com>
14124 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
14125 default_binds_local_p_2.
14126 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
14127 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
14129 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14131 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
14133 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14135 Patch by Richard Biener
14136 * coverage.c (coverage_obj_init): Delay building of type variant
14137 until the type is finished.
14139 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14141 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
14142 mismatch between C and C++ type; compoare correctly ARG_TYPES
14143 for non-prototypes and output correctly parameter index for METHOD_TYPE.
14144 (odr_types_equivalent_p): Fix wording of warning about attributes;
14145 it is OK to match prototype and non-prototype.
14147 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14149 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
14150 TYPE_ARG_TYPES list.
14151 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
14152 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
14154 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14156 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
14157 * tree.h (is_lang_specific): Constify.
14159 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
14161 PR tree-optimization/64454
14162 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
14165 2015-05-08 Jason Merrill <jason@redhat.com>
14167 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
14168 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
14169 config/darwin.h, config/darwin9.h, config/elfos.h,
14170 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
14171 config/microblaze/microblaze.h, config/mips/mips.h,
14172 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
14173 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
14174 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
14175 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
14176 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
14177 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
14178 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
14179 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
14180 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
14181 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
14182 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
14183 between string literal and macro name.
14185 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14187 * jump.c: Change argument types to rtx_insn *.
14190 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14192 * lra-constraints.c: Change argument type to rtx_insn *.
14194 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14196 * df-problems.c: Change argument type to rtx_insn *.
14198 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14200 * combine.c: Change argument type to rtx_insn *.
14202 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14205 * rtlanal.c: Change argument type to rtx_insn *.
14207 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14209 * sched-deps.c: Change argument types to rtx_insn *.
14210 * sched-int.h: Adjust.
14212 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14214 * dwarf2cfi.c: Change argument type to rtx_insn *.
14216 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14218 * ira.c (decrease_live_ranges_number): Changetype of local
14219 variable to rtx_insn *.
14220 * recog.c: Change argument types to rtx_insn *.
14223 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14225 * reorg.c: Change argument types to rtx_insn *.
14227 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14229 * ira-color.c: Change argument types to rtx_insn *.
14230 * lra-eliminations.c: Likewise.
14233 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14235 * gcse.c: Change argument types to rtx_insn *.
14237 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14239 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
14241 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14243 * emit-rtl.c (emit_debug_insn_before): Change argument type to
14247 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14249 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
14252 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14254 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
14257 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14259 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
14262 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14264 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
14267 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14269 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
14273 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14275 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
14279 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14281 * except.c (can_nonlocal_goto): Change type of argument to
14285 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14287 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
14290 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14292 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
14293 * cfgrtl.c (can_delete_label_p): Adjust.
14296 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14298 * reorg.c (stop_search_p): Change argument to rtx_insn *.
14300 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14302 * except.c (make_reg_eh_region_note): Change argument to
14304 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
14305 * except.h: Adjust.
14307 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14309 * mode-switching.c (commit_mode_sets): Change type of local
14310 variable from rtx to rtx_insn *.
14312 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
14314 * doc/install.texi (--enable-languages): Add missing jit and lto info.
14315 Add ^ to grep command.
14316 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
14317 arg to last gimple_simplify declaration. Add missing gimple_build
14318 declaration for built-in function case with four tree args.
14320 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
14321 Szabolcs Nagy <szabolcs.nagy@arm.com>
14323 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
14324 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
14325 (GNU_USER_DYNAMIC_LINKERN32): Update.
14327 2015-05-08 Richard Biener <rguenther@suse.de>
14329 PR tree-optimization/66036
14330 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14331 Handle strided group loads.
14332 (vect_verify_datarefs_alignment): Likewise.
14333 (vect_enhance_data_refs_alignment): Likewise.
14334 (vect_analyze_group_access): Likewise.
14335 (vect_analyze_data_ref_access): Likewise.
14336 (vect_analyze_data_ref_accesses): Likewise.
14337 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
14338 (vectorizable_load): Likewise.
14340 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
14342 * config/rs6000/rs6000.md: Require operand inequality in one
14345 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
14346 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14348 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
14350 * config/rx/rx.md (movdi, movdf): Likewise.
14351 Likewise for define_peephole2s.
14353 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14355 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
14356 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
14357 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
14358 vtst_u64): Rewrite using gcc vector extensions.
14360 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14362 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
14363 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
14365 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14367 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
14369 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
14371 * config/glibc-stdint.h (OPTION_MUSL): Define.
14372 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
14373 Change the definition based on OPTION_MUSL for 64 bit targets.
14374 * config/linux.h (OPTION_MUSL): Redefine.
14375 * config/alpha/linux.h (OPTION_MUSL): Redefine.
14376 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
14377 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
14379 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
14380 Szabolcs Nagy <szabolcs.nagy@arm.com>
14382 * config.gcc (LIBC_MUSL): New tm_defines macro.
14383 * config/linux.h (OPTION_MUSL): Define.
14384 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
14385 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
14386 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
14387 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
14388 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
14389 * config/linux.opt (mmusl): New option.
14390 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
14391 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
14392 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
14393 * configure: Regenerate.
14395 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
14396 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14399 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
14400 * config/i386/knetbsd-gnu64.h: New file.
14402 2015-05-08 Marek Polacek <polacek@redhat.com>
14405 * doc/invoke.texi: Document -Woverride-init-side-effects.
14407 2015-05-07 Marek Polacek <polacek@redhat.com>
14410 * doc/invoke.texi: Document -Wshift-negative-value.
14412 2015-05-06 Aditya Kumar <hiraditya@msn.com>
14414 * gcov-tool.c (do_merge): Refactore to remove int ret.
14415 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
14416 !type == FUNC to type != FUNC.
14417 * reload.h (struct target_reload): Changee to type of
14418 x_spill_indirect_levels from bool to unsigned char.
14420 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
14422 * rtl.h (always_void_p): New function.
14423 * gengenrtl.c (always_void_p): Likewise.
14424 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
14425 with code foo are always VOIDmode.
14426 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
14427 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
14428 compare-elim.c, config/aarch64/aarch64.c,
14429 config/aarch64/aarch64.md, config/alpha/alpha.c,
14430 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
14431 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
14432 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
14433 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
14434 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
14435 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
14436 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
14437 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
14438 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
14439 config/ia64/vect.md, config/iq2000/iq2000.c,
14440 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
14441 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
14442 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
14443 config/mep/mep.c, config/microblaze/microblaze.c,
14444 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
14445 config/mn10300/mn10300.c, config/msp430/msp430.c,
14446 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
14447 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
14448 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
14449 config/rs6000/altivec.md, config/rs6000/rs6000.c,
14450 config/rs6000/rs6000.md, config/rs6000/vector.md,
14451 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
14452 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
14453 config/sh/sh.md, config/sh/sh_treg_combine.cc,
14454 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
14455 config/spu/spu.md, config/stormy16/stormy16.c,
14456 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
14457 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
14458 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
14459 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
14460 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
14461 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
14462 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
14463 var-tracking.c: Update calls accordingly.
14465 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
14468 PR middle-end/54303
14469 * varasm.c (function_mergeable_rodata_prefix): New function.
14470 (mergeable_string_section): Use it.
14471 (mergeable_constant_section): Use it.
14473 2015-05-07 Jeff Law <law@redhat.com>
14476 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14477 simplifier to narrow arithmetic.
14478 * generic-match-head.c: (types_match, single_use): New functions.
14479 * gimple-match-head.c: (types_match, single_use): New functions.
14481 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14483 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
14486 2015-05-07 Richard Biener <rguenther@suse.de>
14488 PR tree-optimization/66002
14489 * passes.def: Schedule another pass_merge_phi after ifcombine, right
14492 2015-05-07 Marek Polacek <polacek@redhat.com>
14493 Martin Uecker <uecker@eecs.berkeley.edu>
14495 * doc/invoke.texi: Document -fsanitize=bounds-strict.
14496 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
14497 into SANITIZE_NONDEFAULT.
14498 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
14500 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
14503 * config/alpha/alpha.c (alpha_override_options_after_change): New.
14504 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
14505 (alpha_override_options): Move align_loops, align_jumps and
14506 align_functions handling into alpha_override_options_after_change.
14508 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
14509 Chris Jones <chrisj@nvidia.com>
14510 Joshua Conner <jconner@nvidia.com>
14512 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
14513 linking of crtfastmath.o.
14514 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
14516 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
14518 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
14519 (cstore<mode>4_unsigned_imm): New expander.
14520 (cstore<mode>4): Remove empty constraint strings. Use the new
14523 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
14526 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
14529 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
14531 * config/aarch64/geniterators.sh: Use standard BRE in sed.
14533 2015-05-06 Alan Modra <amodra@gmail.com>
14536 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
14537 (UNSPEC_NOP): Define.
14538 (reload_vsx_from_gpr<mode>): Add missing DONE.
14539 (reload_gpr_from_vsx<mode>): Likewise.
14540 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
14541 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
14543 2015-05-06 Christian Bruel <christian.bruel@st.com>
14546 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
14547 align_jumps, align_functions into aarch64_override_options_after_change.
14549 2015-05-06 Richard Biener <rguenther@suse.de>
14551 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
14552 vect_transform_slp_perm_load to check if we support a permutation
14553 for basic-block vectorization.
14555 2015-05-06 Nick Clifton <nickc@redhat.com>
14557 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
14558 used, even if it is not being used as a frame pointer.
14560 2015-05-05 Jason Merrill <jason@redhat.com>
14562 * dwarf2out.c (gen_member_die): Don't emit anything for an
14563 anonymous class constructor.
14565 2015-05-05 David Malcolm <dmalcolm@redhat.com>
14567 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
14568 that it reflects the block structure.
14569 (afdo_propagate_edge): Likewise.
14570 (afdo_calculate_branch_prob): Likewise.
14571 (afdo_annotate_cfg): Likewise.
14572 * cfgcleanup.c (equal_different_set_p): Likewise.
14573 (try_crossjump_to_edge): Likewise.
14574 * cgraph.c (cgraph_node::verify_node): Likewise.
14575 * cgraphunit.c (expand_all_functions): Likewise.
14576 * config/i386/i386.c (ix86_expand_copysign): Likewise.
14577 (exact_dependency_1): Likewise.
14578 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
14579 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
14580 * gensupport.c (process_define_subst): Likewise.
14581 * lto-wrapper.c (merge_and_complain): Likewise.
14582 * tree-if-conv.c (if_convertible_bb_p): Likewise.
14583 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
14584 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
14585 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
14586 * tree-vect-loop.c (vectorizable_reduction): Likewise.
14587 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
14588 * tree-vect-stmts.c (vectorizable_shift): Likewise.
14589 * tree-vrp.c (vrp_finalize): Likewise.
14590 * tree.c (variably_modified_type_p): Likewise.
14592 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
14594 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
14595 on darwin12 and later.
14596 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
14597 file to pass -rdynamic on darwin12 and later.
14598 * config/darwin.opt (rdynamic): Add.
14600 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14602 * doc/extend.texi (C Extensions): Update menu for moved Variable
14603 Attributes and Type Attributes sections.
14605 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14608 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
14609 if rep_8byte stringop strategy was specified for 32-bit target.
14611 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
14614 * config/i386/i386.md (vector convert to float spltiter): Check for
14615 xmm16+, when splitting scalar float conversion.
14616 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
14618 2015-05-05 Nick Clifton <nickc@redhat.com>
14620 * config/msp430/msp430-opts.h (enum msp430_regions): New.
14621 * config/msp430/msp430.c (msp430_override_options): Complain if
14622 -mcode-region or -mdata-region is used on a non MSP430X.
14623 (msp430_section_attr): New function. Checks lower, upper and
14625 (msp430_attribute_table): Add lower, upper and either.
14626 (gen_prefix): New function. Generates a prefix for a section
14628 (msp430_select_section): New function - handles the choice of
14629 section for an object. Takes into account memory region
14630 attributes and options.
14631 (msp430_function_section): Use gen_prefix.
14632 (TARGET_SECTION_TYPE_FLAGS): Define.
14633 (msp430_section_type_flags): New function.
14634 (TARGET_ASM_UNIQUE_SECTION): Define.
14635 (msp430_unique_section): New function.
14636 (msp430_output_aligned_decl_common): New function.
14637 (msp430_do_not_relax_short_jumps): New function.
14638 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
14640 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
14641 * config/msp430/msp430-protos.h
14642 (msp430_do_not_relax_short_jumps): New prototype.
14643 (msp430_output_aligned_decl_common): New prototype.
14644 * config/msp430/msp430.md (length): New attribute.
14645 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
14646 then use a long code sequence for short jumps.
14647 * config/msp430/msp430.opt (mcode-region): New.
14648 (mdata-region): New.
14649 * doc/invoke.texi: Document new options.
14650 * doc/extend.texi: Document new attributes.
14652 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
14654 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
14655 (tune_params): Add field branch_costs.
14656 (aarch64_branch_cost): Declare.
14657 * gcc/config/aarch64.c (generic_branch_cost): New.
14658 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
14659 (cortexa53_tunings): Likewise.
14660 (cortexa57_tunings): Likewise.
14661 (thunderx_tunings): Likewise.
14662 (xgene1_tunings): Likewise.
14663 (aarch64_branch_cost): Define.
14664 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
14666 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14668 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
14669 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
14670 * config/i386/i386.md: Ditto.
14671 * config/i386/winnt.c: Ditto.
14673 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
14675 * doc/extend.texi (__atomic Builtins): Move implementation details
14676 to the end of the description, rewrite opening paragraphs, state
14677 difference with __sync builtins, state C11/C++11 assumptions,
14678 weaken itemized descriptions, add explanation of memory model
14679 behaviour, expand description of compare-exchange, simplify text.
14681 2015-05-05 Renlin Li <renlin.li@arm.com>
14683 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
14685 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
14687 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
14688 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14689 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
14690 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14691 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
14692 * configure: Regenerate.
14693 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
14694 * doc/install.texi (aarch64*-*-*): Document new
14695 --enable-fix-cortex-a53-843419 option.
14696 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
14697 and -mno-fix-cortex-a53-843419 options.
14699 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14702 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
14704 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
14706 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
14707 fix overactive TYPE_MIN_VALUE check and add FIXME for type
14708 compatibility problems.
14710 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
14712 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
14714 (cbranchsi4_reg): New.
14715 * config/microblaze/microblaze.c
14716 (microblaze_expand_conditional_branch_reg): New.
14717 * config/microblaze/microblaze-protos.h
14718 (microblaze_expand_conditional_branch_reg): New prototype.
14720 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
14722 * config/microblaze/microblaze.md (peephole2): New.
14724 2015-05-04 Jeff Law <law@redhat.com>
14727 2015-05-04 Jeff Law <law@redhat.com>
14729 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14730 simplifier to narrow arithmetic.
14731 * generic-match-head.c: (types_match, single_use): New functions.
14732 * gimple-match-head.c: (types_match, single_use): New functions.
14734 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
14737 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
14738 (split_branches): Likewise.
14740 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
14742 * common.opt (fdelete-null-pointer-checks): Init to -1.
14743 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
14744 override flag_delete_null_pointer_checks default.
14745 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
14746 behavior re address zero. Better document target-specific behavior.
14747 (-fisolate-errneous-paths-dereference): Mention relationship to
14748 -fdelete-null-pointer-checks.
14750 2015-05-04 Jakub Jelinek <jakub@redhat.com>
14752 PR tree-optimization/65984
14753 * ubsan.c: Include tree-cfg.h.
14754 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
14755 stmt_could_throw_p test, rename can_throw variable to ends_bb.
14757 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
14759 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
14760 to CONST_DOUBLE_P predicate.
14761 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
14762 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
14763 allow only operands that satisfy standard_sse_constant_p predicate.
14764 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
14765 to CONST_DOUBLE_P predicate.
14767 2015-05-04 Jeff Law <law@redhat.com>
14769 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14770 simplifier to narrow arithmetic.
14771 * generic-match-head.c: (types_match, single_use): New functions.
14772 * gimple-match-head.c: (types_match, single_use): New functions.
14774 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
14776 * config/arm/arm.c: Restore bootstrap.
14778 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
14780 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
14781 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
14782 as CONST_WIDE_INT, not CONST_DOUBLE.
14783 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
14784 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
14785 (ix86_find_base_term): Do not check for CONST_DOUBLE.
14786 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
14787 (ix86_build_signbit_mask): Rewrite using wide ints.
14788 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
14789 (ix86_rtx_costs): Handle CONST_WIDE_INT.
14790 (find_constant): Ditto.
14791 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
14792 using gen_int_mode.
14793 * config/i386/predicates.md (x86_64_immediate_operand)
14794 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
14795 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
14796 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
14797 (const0_operand): Also match const_wide_int.
14798 (constm1_operand): Ditto.
14799 (const1_operand): Ditto.
14801 2015-05-04 Richard Biener <rguenther@suse.de>
14803 PR tree-optimization/65965
14804 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
14805 store groups at gaps.
14807 2015-05-04 Richard Biener <rguenther@suse.de>
14809 PR tree-optimization/65935
14810 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
14811 then make sure to apply that swapping to the IL.
14813 2015-05-04 Jakub Jelinek <jakub@redhat.com>
14815 * Makefile.in (PATCHLEVEL_c): New variable.
14816 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
14817 expand the same way as if DEVPHASE_c was non-empty.
14819 2015-05-04 Kai Tietz <ktietz@redhat.com>
14822 * lto-wrapper.c (run_gcc): Open filename
14825 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
14827 * doc/extend.texi (Variable Attributes, Type Attributes): Move
14828 sections up in file, to immediately after the Function Attributes
14831 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
14833 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
14835 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14837 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
14838 (insert_partition_copy_on_edge): Adjust.
14839 (insert_rtx_to_part_on_edge): Likewise.
14840 (insert_part_to_rtx_on_edge): Likewise.
14842 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14844 * function.c (set_return_jump_label): Change type of argument to
14846 * function.h (set_return_jump_label): Adjust.
14848 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14850 * reload.h (struct reg_equivs_t): Change type of init to
14852 * ira.c (fix_reg_equiv_init): Adjust.
14853 * reload1.c (eliminate_regs_1): Likewise.
14854 (init_eliminable_invariants): Likewise.
14856 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14858 * cselib.c (fp_setter_insn): Take a rtx_insn *.
14859 * cselib.h (fp_setter_insn): Adjust.
14861 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14863 * recog.c (struct validate_replace_src_data): Change type of
14864 insn field to rtx_insn *.
14865 (validate_replace_src_group): Change type of argument to rtx_insn *.
14866 * recog.h (validate_replace_src_group): Adjust.
14868 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14870 * haifa-sched.c: Change the type of some variables to rtx_insn *.
14871 * sched-deps.c: Likewise.
14872 * sched-int.h: Likewise.
14873 * sched-rgn.c: Likewise.
14874 * sel-sched.c: Likewise.
14876 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14879 * config/i386/i386.c: Change the type of some arguments to
14881 * config/arm/arm.c: Likewise.
14883 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14885 * lra-constraints.c: Change type of some arguments to rtx_insn *.
14887 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14889 * regcprop.c (kill_autoinc_value): Change type of argument to
14892 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14894 * genrecog.c (print_subroutine): Adjust.
14895 * recog.c (get_bool_attr_mask_uncached): Likewise.
14896 * recog.h (struct recog_data_d): Change the type of insn to
14899 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14901 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
14903 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14905 * df-problems.c (df_set_note): Change type of argument to
14908 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14910 * builtins.c (expand_builtin_trap): Change type of local
14911 variable to rtx_insn *.
14912 (add_sched_insns_for_speculation): Likewise.
14913 (ix86_emit_save_regs): Likewise.
14914 (get_scratch_register_on_entry): Likewise.
14915 (ix86_emit_restore_reg_using_pop): Likewise.
14916 (ix86_emit_leave): Likewise.
14917 (ix86_emit_restore_regs_using_mov): Likewise.
14918 (ix86_expand_epilogue): Likewise.
14920 (rl78_alloc_physical_registers_umul): Likewise.
14921 * cselib.c (discard_useless_locs): Likewise.
14922 (cselib_invalidate_regno): Likewise.
14923 (cselib_invalidate_mem): Likewise.
14924 * function.c (expand_function_start): Likewise.
14925 (emit_use_return_register_into_block): Likewise.
14926 * gcse.c: Likewise.
14927 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
14928 * ifcvt.c (noce_get_alt_condition): Likewise.
14929 * loop-doloop.c (doloop_condition_get): Likewise.
14930 * lra-constraints.c (inherit_in_ebb): Likewise.
14931 * modulo-sched.c (sms_schedule_by_order): Likewise.
14932 * recog.c (next_insn_tests_no_inequality): Likewise.
14933 * reorg.c (emit_delay_sequence): Likewise.
14934 (update_reg_dead_notes): Likewise.
14935 (fix_reg_dead_note): Likewise.
14936 (fill_slots_from_thread): Likewise.
14937 (delete_computation): Likewise.
14939 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
14941 * doc/extend.texi (Variable Attributes): Add menu and proper
14942 @nodes to subsections. Move Microsoft Windows attributes to
14943 their own subsection.
14944 (Type Attributes): Reorganize introduction to remove duplicate
14945 list of attributes. Add menu and proper @nodes to subsections.
14946 Alphabetize the main table of common attributes.
14948 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
14950 * match.pd: New simplification patterns.
14951 (x + (x & 1)) -> ((x + 1) & ~1)
14952 (x & ~(x & y)) -> ((x & ~y))
14953 (x | ~(x | y)) -> ((x | ~y))
14955 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14957 * target.def (attribute_table): Mention that struct attribute_spec
14958 is defined in tree-core.h rather than tree.h
14959 * doc/tm.texi: Regenerate.
14961 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
14963 * genrecog.c (test): Rename to rtx_test. Update rest of file
14966 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
14968 PR translation/65959
14969 * params.h (DEFPARAM): Rename msgid to nocmsgid.
14971 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
14973 * gcc/config/aarch64/aarch64-protos.h (tune_params):
14974 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
14975 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
14976 Return value depending on target.
14977 (generic_tunings): Initialize new target settings.
14978 (cortexa53_tunings): Likewise.
14979 (cortexa57_tunings): Likewise.
14980 (thunderx_tunings): Likewise.
14981 (xgene1_tunings): Likewise.
14983 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
14985 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
14986 Make Cortex-A53 shift costs more accurate.
14988 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14990 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
14993 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
14995 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
14996 Calculate cost of op0 and op1 in PLUS and MINUS cases.
14998 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15000 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
15001 Add cost of op0 in the compare-with-fpzero case.
15003 2015-04-30 David Malcolm <dmalcolm@redhat.com>
15005 * builtins.c (fold_builtin_1): Remove spurious second
15007 * cgraph.h (symtab_node::get_availability): Likewise.
15008 * opts.c (common_handle_option): Remove spurious second semicolon.
15009 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
15010 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
15012 2015-04-30 Caroline Tice <cmtice@google.com>
15014 PR gcov-profile/65929
15015 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
15016 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
15017 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
15018 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
15019 * doc/tm.texi: Regenerate.
15020 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
15021 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
15022 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
15023 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
15025 2015-04-30 Marek Polacek <polacek@redhat.com>
15027 * varasm.c (handle_cache_entry): Fix logic.
15029 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15031 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
15032 (*extrsi5_insn_uxtw_alt): Likewise.
15033 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
15034 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
15037 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15039 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
15042 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15044 * config/aarch64/aarch64.md
15045 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
15046 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
15047 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
15048 appropriately. Handle alternative EON form.
15050 2015-04-30 Renlin Li <renlin.li@arm.com>
15052 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
15053 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
15055 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
15058 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
15059 -fstrict-aliasing boundaries.
15061 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15063 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
15064 and [SU]MNEGL patterns.
15066 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15068 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
15069 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
15070 combined arithmetic-shift ops. Properly handle all shift and extend
15071 operations that can occur in combination with PLUS/MINUS.
15072 Rename maybe_fma to compound_p.
15073 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
15074 arithmetic and shift operations.
15076 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15078 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
15079 rather than arith_shift cost when costing ADD/MINUS of an
15082 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
15085 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
15088 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
15090 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
15091 are for the same position.
15093 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
15095 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
15097 (vectorize_loops): Use it.
15099 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15101 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
15102 for aggregate types.
15103 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
15104 type to be non_ODR.
15105 * tree.c (need_assembler_name_p): Compute mangled name for
15106 non-fundamental types and integer types.
15108 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
15110 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
15112 * expr.c (expand_expr_real_2): Likewise.
15114 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15116 * tree.c (build_common_builtin_nodes): Do not build
15117 __builtin_alloca_with_align as equivalent of library alloca.
15119 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15121 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
15122 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
15124 * tree.c: Include print-tree.h and ipa-utils.h
15125 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
15126 (free_lang_data_in_cgraph): Call verify_type.
15127 (verify_type_variant): New function.
15128 (verify_type): New function.
15129 * tree.h (verify_type): Declare.
15131 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
15133 * config/mips/mips-cpus.def: (mips4): Change default processor
15134 from PROCESSOR_R8000 to PROCESSOR_R10000.
15136 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
15138 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
15139 la/jalr instead of jal.
15141 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
15144 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
15145 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
15146 (setcc+movzbl peephole2): Check also clobbered reg.
15147 (setcc+andl peephole2): Ditto.
15149 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
15152 * config/nvptx/mkoffload.c (target_ilp32): New variable.
15153 (main): Set it depending on "-foffload-abi=[...]".
15154 (compile_native, main): Use it to pass "-m32" or "-m64" to the
15157 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
15160 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
15161 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
15162 Flip lane index back at assembly time for bigendian.
15164 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
15166 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
15167 * gimplify.c (gimplify_omp_workshare): Use it.
15169 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15171 * Makefile.in (build/genrecog.o): Depend on inchash.h.
15172 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
15174 * genrecog.c: Rewrite most of the code except for the third page.
15176 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15178 * inchash.h, inchash.c: Include bconfig.h for build objects.
15179 * Makefile.in (build/inchash.o): New rule.
15181 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
15184 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
15185 number in type attribute expression.
15187 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15189 * loop-iv.c (canon_condition): Generalize to all types of integer
15192 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
15194 * gimple-walk.c: Prune duplicate or unneeded includes.
15195 (walk_gimple_asm): Only call parse_input_constraint or
15196 parse_output_constraint if their findings are used.
15197 Honour parse_input_constraint and parse_output_constraint
15200 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
15202 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
15204 2015-04-29 Tom de Vries <tom@codesourcery.com>
15206 PR tree-optimization/65893
15207 * passes.def (pass_all_optimizations): Move pass_stdarg to after
15210 2015-04-29 Richard Biener <rguenther@suse.de>
15212 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
15213 compute GROUP_SIZE for basic-block SLP.
15214 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
15215 take into account gaps.
15216 (vect_get_mask_element): Properly reject references to previous
15218 (vect_transform_slp_perm_load): Likewise.
15220 2015-04-29 Christian Bruel <christian.bruel@st.com>
15223 * config/i386/i386.c (ix86_default_align): New function.
15224 (ix86_override_options_after_change): Call ix86_default_align.
15225 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
15226 (ix86_override_options_after_change): New function.
15228 2015-04-28 Jeff Law <law@redhat.com>
15230 * tree-ssa-dom.c (record_equality); Fix comment typos.
15232 2015-04-28 Tom de Vries <tom@codesourcery.com>
15234 PR tree-optimization/65887
15235 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
15237 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
15239 * doc/extend.texi (Declaring Attributes of Functions): Split into
15240 subsections by target. Alphabetize the table of common attributes.
15241 Rewrite some of the introductory text to reflect the new structure.
15242 Update some cross-references to point to the new subsections.
15243 (Attribute Syntax): Put paragraph about "__" naming here. Remove
15244 duplicate copies in the discussion of function, label, and type
15247 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
15250 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
15252 2015-04-28 Jason Merrill <jason@redhat.com>
15255 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
15256 (finalize_type_size): Respect TYPE_USER_ALIGN.
15257 (layout_type) [ARRAY_TYPE]: Likewise.
15259 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
15261 * config/arm/arm.md (*arm_movt): Fix type attribute.
15262 (*cmpsi_shiftsi): Likewise.
15263 (*cmpsi_shiftsi_swp): Likewise.
15264 (*movsicc_insn): Likewise.
15265 (*cond_move): Likewise.
15266 (*if_plus_move): Likewise.
15267 (*if_move_plus): Likewise.
15268 (*if_arith_move): Likewise.
15269 (*if_move_arith): Likewise.
15270 (*if_shift_move): Likewise.
15271 (*if_move_shift): Likewise.
15272 (*arm_movtas_ze): Likewise.
15273 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
15274 redundancy and type attribute.
15275 (*thumb2_movsi_insn): Fix type attribute.
15276 (*thumb2_addsi_short): Likewise.
15277 (thumb2_addsi3_compare0): Likewise.
15278 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
15279 attributes accordingly.
15281 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
15284 * function.c (pad_to_arg_alignment): Add parentheses.
15286 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
15288 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
15289 libgcc/config/frv/elf-lib.h.
15291 2015-04-28 Tom de Vries <tom@codesourcery.com>
15293 * tree-call-cdce.c: Fix example in header comment.
15295 2015-04-28 Richard Biener <rguenther@suse.de>
15297 PR tree-optimization/62283
15298 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
15299 fails fatally and we are vectorizing a basic-block simply
15300 cause the child to be constructed piecewise.
15301 (vect_analyze_slp_cost_1): Adjust.
15302 (vect_detect_hybrid_slp_stmts): Likewise.
15303 (vect_bb_slp_scalar_cost): Likewise.
15304 (vect_get_constant_vectors): For piecewise constructed
15305 constants place them after the last def.
15306 (vect_get_slp_defs): Adjust.
15307 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
15308 externals for basic-block vectorization.
15310 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15313 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
15315 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
15316 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
15317 (AARCH64_TUNE_FMA_STEERING): Likewise.
15318 * config/aarch64/aarch64-cores.def: Set
15319 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
15320 FMUL/FMADD instructions.
15321 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
15322 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
15323 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
15324 * config/aarch64/cortex-a57-fma-steering.h: New file.
15325 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15327 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
15329 * gensupport.c (std_preds): Add missing codes to address_operand entry.
15331 2015-04-28 Richard Biener <rguenther@suse.de>
15333 PR tree-optimization/65851
15334 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
15335 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
15336 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
15337 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
15338 (ccp_visit_phi_node): Adjust.
15339 (evaluate_stmt): For simplifications to SSA names return its
15340 lattice value if that isn't VARYING. Return immediately when
15341 simplified to a constant.
15342 (visit_assignment): Adjust.
15343 (ccp_visit_stmt): Likewise.
15345 2015-04-28 Tom de Vries <tom@codesourcery.com>
15347 PR tree-optimization/65818
15348 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
15351 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15353 * calls.c (save_fixed_argument_area): Don't check
15354 ARGS_GROW_DOWNWARD with the preprocessor.
15355 (restore_fixed_argument_area): Likewise.
15356 (mem_overlaps_already_clobbered_arg_p): Likewise.
15357 (check_sibcall_argument_overlap): Likewise.
15358 (expand_call): Likewise.
15359 (emit_library_call_value_1): Likewise.
15360 (store_one_arg): Likewise.
15361 * function.c (assign_parms): Likewise.
15362 (locate_and_pad_parm): Likewise.
15363 (pad_to_arg_alignment): Likewise.
15364 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15366 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15368 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
15369 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
15370 * calls.c (save_fixed_argument_area): Don't chekc if
15371 ARGS_GROW_DOWNWARD is defined.
15372 (restore_fixed_argument_area): Likewise.
15373 (mem_overlaps_already_clobbered_arg_p): Likewise.
15374 (check_sibcall_argument_overlap): Likewise.
15375 (expand_call): Likewise.
15376 (emit_library_call_value_1): Likewise.
15377 (store_one_arg): Likewise.
15378 * function.c (assign_parms): Likewise.
15379 (locate_and_pad_parm): Likewise.
15380 (pad_to_arg_alignment): Likewise.
15381 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15383 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15385 * defaults.h (gen_epilogue): New function.
15386 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
15388 * cfgrtl.c (cfg_layout_finalize): Likewise.
15389 * df-scan.c: Likewise.
15390 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15391 (reposition_prologue_and_epilogue_notes): Likewise.
15392 * reorg.c (find_end_label): Likewise.
15393 * toplev.c: Likewise.
15395 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15397 * bb-reorder.c (HAVE_return): Don't check if its undefined.
15398 * defaults.h (gen_simple_return): New function.
15399 (gen_simple_return): Likewise.
15400 (HAVE_return): Add default definition to false.
15401 (HAVE_simple_return): Likewise.
15402 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
15403 HAVE_return and HAVE_simple_return are defined.
15404 * function.c (gen_return_pattern): Likewise.
15405 (convert_jumps_to_returns): Likewise.
15406 (thread_prologue_and_epilogue_insns): Likewise.
15407 * reorg.c (find_end_label): Likewise.
15408 (dbr_schedule): Likewise.
15409 * shrink-wrap.c: Likewise.
15410 * shrink-wrap.h: Likewise.
15412 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15414 * defaults.h (EPILOGUE_USES): Add default definition of false.
15415 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
15416 * resource.c (init_resource_info): Likewise.
15418 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15420 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
15422 * dwarf2out.c (field_byte_offset): REmove check if
15423 PCC_BITFIELD_TYPE_MATTERS is defined.
15424 * stor-layout.c (layout_decl): Likewise.
15425 (update_alignment_for_field): Likewise.
15426 (place_field): Likewise.
15428 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15430 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
15432 * regrename.c (check_new_reg_p): Remove check if
15433 HARD_REGNO_RENAME_OK is defined.
15434 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
15436 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15438 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
15439 * cse.c (fold_rtx): Likewise.
15440 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
15441 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
15442 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
15443 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
15444 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
15445 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
15446 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
15447 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
15448 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
15449 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
15451 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
15452 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
15453 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
15454 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
15455 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
15456 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
15457 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
15458 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
15459 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
15460 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
15461 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
15462 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
15463 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
15464 * doc/tm.texi: Regenerate.
15465 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
15466 either true or false.
15468 2015-04-27 Jeff Law <law@redhat.com>
15470 PR tree-optimization/65217
15471 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
15472 of them has a single use, make sure it is the LHS of the implied
15475 2015-04-28 Alan Modra <amodra@gmail.com>
15478 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
15479 (offsettable_ok_by_alignment): Use minimum of decl and toc
15480 pointer alignment. Replace dead code with assertion.
15481 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
15482 case if size exceeds toc pointer alignment.
15483 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
15484 (rs6000_emit_move): Likewise.
15485 * configure.ac: Add linker toc pointer alignment check.
15486 * configure: Regenerate.
15487 * config.in: Regenerate.
15489 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
15491 * config.gcc: Add h8300-*-linux.
15492 * config/h8300/linux.h: New.
15493 * config/h8300/t-linux: New.
15494 * config/h8300/h8300.c (h8300_option_override): Normal mode
15495 is not supported for h8300-*-linux.
15496 (h8300_file_start): Target priority change.
15497 (get_shift_alg): Likewise.
15498 (h8300_shift_need_scratch_p): Likewise.
15499 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
15500 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
15502 2015-04-27 Caroline Tice <cmtice@google.com>
15504 * final.c (final_scan_insn): Output cold_function_name as function
15506 * varasm.c (cold_function_name): Make global.
15507 (assemble_start_function): Re-set cold_function_name.
15508 (assemble_end_function): Output cold partition size.
15509 * varasm.h (cold_function_name): Declare global.
15511 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
15513 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
15514 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
15516 (*movxi_internal_avx512f): Ditto.
15517 (define_split): Check for xmm16+, when splitting scalar float_extend.
15518 (*extendsfdf2_mixed): Use "v" constraint.
15519 (define_split): Check for xmm16+, when splitting scalar float_truncate.
15520 (*truncdfsf_fast_sse): Use "v" constraint.
15521 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
15522 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
15523 (define_peephole2): Check for xmm16+, when converting scalar
15525 (define_peephole2): Check for xmm16+, when converting scalar
15527 (*fop_<mode>_comm_mixed): Use "v" constraint.
15528 (*fop_<mode>_comm_sse): Ditto.
15529 (*fop_<mode>_1_mixed): Ditto.
15530 (*sqrt<mode>2_sse): Ditto.
15531 (*ieee_s<ieee_maxmin><mode>3): Ditto.
15533 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15535 * combine.c (simplify_if_then_else): Use std::swap instead
15536 of manually swapping.
15537 (known_cond): Likewise.
15538 (simplify_comparison): Likewise.
15540 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
15543 * config/rs6000/htm.md: Remove all define_expands.
15544 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
15545 UNSPECV_HTM_TABORTWCI): Remove.
15546 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
15547 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
15548 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
15549 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
15550 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
15551 tabortwci_internal): Remove define_insns.
15552 (tabort<wd>c, tabort<wd>ci): New define_insns.
15553 (tabort): Use gpc_reg_operand.
15554 (tcheck): Remove operand.
15555 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
15556 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
15558 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
15559 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
15560 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
15561 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
15562 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
15563 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
15564 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
15565 (tcheck): Remove builtin argument.
15566 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
15568 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
15569 tabortdc and tabortdci builtins when not in 64-bit mode.
15570 Modify code to handle the loss of the HTM define_expands.
15571 Emit code to copy the CR register to TARGET.
15572 (htm_init_builtins): Modify code to handle the loss of the HTM
15574 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
15575 (RS6000_BTC_64BIT): Likewise.
15576 (RS6000_BTC_CR): New macro.
15577 * doc/extend.texi: Update documentation for htm builtins.
15579 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15581 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
15582 of manually swapping.
15583 (simplify_associative_operation): Likewise.
15584 (simplify_binary_operation): Likewise.
15585 (simplify_plus_minus): Likewise.
15586 (simplify_relational_operation): Likewise.
15587 (simplify_ternary_operation): Likewise.
15589 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
15591 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
15592 (xs_hi_nonmemory_operand): Remove error.
15593 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
15594 general_operand rather than xs_hi_general_operand.
15596 2015-04-27 Richard Biener <rguenther@suse.de>
15598 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
15599 (record_equivalences_from_stmt): Valueize rhs.
15600 (record_equality): Canonicalize x and y order via
15601 tree_swap_operands_p. Do not swap operands for same loop depth.
15603 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
15607 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
15608 Add hint how to use own spec file.
15610 2015-04-27 Jakub Jelinek <jakub@redhat.com>
15612 PR tree-optimization/65875
15613 * tree-vrp.c (update_value_range): If in is_new case setting
15614 old_vr to VR_VARYING, also set new_vr to it. Remove
15615 old_vr->type == VR_VARYING test.
15616 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
15617 SSA_PROP_INTERESTING if update_value_range returned true,
15618 but new range is VR_VARYING.
15620 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
15622 * combine.c (sign_extend_short_imm): New.
15623 (set_nonzero_bits_and_sign_copies): Use above new function for sign
15624 extension of src short immediate.
15625 (reg_nonzero_bits_for_combine): Likewise for tem.
15627 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
15629 * stor-layout.c (self_referential_component_ref_p): New predicate.
15630 (copy_self_referential_tree_r): Use it.
15631 (self_referential_size): Punt for simple operations directly involving
15632 self-referential component references.
15633 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
15635 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
15637 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
15639 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
15641 * vec.h (vec): Make splice arguments const. Update definitions
15644 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
15646 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
15649 2015-04-26 Tom de Vries <tom@codesourcery.com>
15651 PR tree-optimization/65826
15652 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
15654 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
15656 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
15657 (*madd3<mode>): Ditto.
15658 (*msub4<mode>): Ditto.
15659 (*msub3<mode>): Ditto.
15660 (*nmadd4<mode>): Ditto.
15661 (*nmadd3<mode>): Ditto.
15662 (*nmadd4<mode>_fastmath): Ditto.
15663 (*nmadd3<mode>_fastmath): Ditto.
15664 (*nmsub4<mode>): Ditto.
15665 (*nmsub3<mode>): Ditto.
15666 (*nmsub4<mode>_fastmath): Ditto.
15667 (*nmsub3<mode>_fastmath): Ditto.
15669 2015-04-24 Jason Merrill <jason@redhat.com>
15672 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
15673 down when building TYPE_CANONICAL.
15674 (build_pointer_type_for_mode): Likewise.
15676 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
15678 * genrecog.c (validate_pattern): Check matching constraint refers
15679 to a lower numbered operand.
15681 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15684 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
15685 save to independent variables use the Save attribute. This will
15686 allow these options to be modified with the #pragma/attribute
15688 (-mallow-movmisalign): Likewise.
15689 (-mallow-df-permute): Likewise.
15690 (-msched-groups): Likewise.
15691 (-malways-hint): Likewise.
15692 (-malign-branch-targets): Likewise.
15693 (-mvectorize-builtins): Likewise.
15694 (-msave-toc-indirect): Likewise.
15696 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
15697 can be set via the #pragma/attribute target support.
15698 (rs6000_opt_vars): Likewise.
15699 (rs6000_inner_target_options): If VSX was set, also set
15700 -mno-avoid-indexed-addresses.
15702 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15704 * config/arm/iterators.md (shiftable_ops): Rename to...
15705 (SHIFTABLE_OPS): ... This. Update use in comments.
15706 (ior_xor): Rename to...
15707 (IOR_XOR): ... This.
15708 (vqh_ops): Rename to...
15709 (VQH_OPS): ... This.
15710 (vqhs_ops): Rename to...
15711 (VQHS_OPS): ... This.
15712 (rshifts): Rename to...
15713 (RSHIFTS): ... This.
15714 (returns): Rename to...
15715 (RETURNS): ... This.
15716 * config/arm/arm.md: Update uses of the above.
15717 * config/arm/neon.md: Likewise.
15719 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15721 * config.host (case ${host}): Add aarch64*-*-linux case.
15722 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
15723 fields to all the cores.
15724 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
15725 Add MCPU_MTUNE_NATIVE_SPECS.
15726 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
15727 field to all extensions.
15728 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
15729 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
15730 Adjust definition of AARCH64_OPT_EXTENSION.
15731 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
15732 (MCPU_MTUNE_NATIVE_SPECS): Define.
15733 * config/aarch64/driver-aarch64.c: New file.
15734 * config/aarch64/x-arch64: New file.
15735 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
15738 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
15739 Wei Mi <wmi@google.com>
15741 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
15742 * config/i386/i386.c (extract_base_offset_in_addr): New function.
15743 (ix86_operands_ok_for_move_multiple): Ditto.
15744 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
15745 (movlpd/movhpd to movupd peephole2): Ditto.
15747 2015-04-24 Marek Polacek <polacek@redhat.com>
15750 * input.h (from_macro_expansion_at): Define.
15753 * doc/invoke.texi: Update description of -Wlogical-op.
15755 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
15757 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
15758 ternary operator in fprintf and harmonize spacing.
15760 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
15762 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
15763 Mark operand1 commutative.
15765 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
15767 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
15768 input operands in memory.
15769 (*vec_concatv2si_sse4_1): Ditto.
15770 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
15771 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
15773 (vec_extract_hi_v32hi): Ditto.
15774 (vec_extract_hi_v64hi): Ditto.
15775 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
15777 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
15778 Steven Bosscher <steven@gcc.gnu.org>
15780 PR rtl-optimization/34503
15781 * cprop.c (cprop_reg_p): New.
15782 (hash_scan_set): Use above function to check if register can be
15784 (find_avail_set): Return up to two sets, one whose source is a
15785 register and one whose source is a constant. Sets are returned in an
15786 array passed as parameter rather than as a return value.
15787 (cprop_insn): Use a do while loop rather than a goto. Try each of the
15788 sets returned by find_avail_set, starting with the one whose source is
15789 a constant. Use cprop_reg_p to check if register can be propagated.
15790 (do_local_cprop): Use cprop_reg_p to check if register can be
15792 (implicit_set_cond_p): Likewise.
15794 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15796 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
15797 (sem_function::equals): IGNORED_NODES parameter is now unused;
15798 update call of equals_private.
15799 (sem_function::equals_private): Do not call equals_wpa; skip
15800 gimple body matching if there is no body.
15801 (sem_function::init): Add logic to hash tthunk info.
15802 (sem_function::parse): Also parse thunks.
15803 * ipa-icf.h (equals_private): Update declaration.
15805 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15807 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
15808 asterisk from name so this can be generated directly.
15809 (*altivec_stvx_<mode>_internal): Likewise.
15810 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
15811 that this is never called during or after reload/lra.
15812 (rs6000_frame_related): Remove split_reg
15813 argument and logic that references it.
15814 (emit_frame_save): Remove last parameter from call to
15815 rs6000_frame_related.
15816 (rs6000_emit_prologue): Remove last parameter from eight calls to
15817 rs6000_frame_related. Force generation of stvx instruction for
15818 Altivec register saves. Remove split_reg handling, which is no
15820 (rs6000_emit_epilogue): Force generation of lvx instruction for
15821 Altivec register restores.
15823 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15825 * config/rs6000/rs6000.opt (mcrypto): Change option description to
15826 match category changes in ISA 2.07B.
15828 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15830 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
15832 (cmp_op, cmp_type): New code attributes.
15833 (NEON_VCMP, NEON_VACMP): New int iterators.
15834 (cmp_op_unsp): New int attribute.
15835 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
15836 (neon_vceq<mode>): Delete.
15837 (neon_vc<cmp_op><mode>_insn): New pattern.
15838 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
15839 (neon_vcgeu<mode>): Delete.
15840 (neon_vcle<mode>): Likewise.
15841 (neon_vclt<mode>: Likewise.
15842 (neon_vcage<mode>): Likewise.
15843 (neon_vcagt<mode>): Likewise.
15844 (neon_vca<cmp_op><mode>): New define_expand.
15845 (neon_vca<cmp_op><mode>_insn): New pattern.
15846 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
15848 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15850 * tree.h (attribute_value_equal): Declare.
15851 * tree.c (attribute_value_equal): Export.
15853 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15855 * ipa-icf.c (sem_item::compare_attributes): New function.
15856 (sem_item::compare_referenced_symbol_properties): Compare variable
15858 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
15859 (sem_function::param_used_p): New function.
15860 (sem_function::equals_wpa): Fix attribute comparsion; match
15861 parameter type codes; do not compare paremter flags when
15862 they are not used; compare edge flags; compare indirect calls.
15863 (sem_item::update_hash_by_addr_refs): Hash reference type.
15864 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
15865 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
15866 reference use type.
15867 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
15868 * ipa-icf.h (compare_attributes, param_used_p): Declare.
15870 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15872 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
15874 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
15875 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
15876 (sem_item::compare_referenced_symbol_properties): New.
15877 (sem_item::hash_referenced_symbol_properties): New.
15878 (sem_item::compare_cgraph_references): Rename to ...
15879 (sem_item::compare_symbol_references): ... this one; use
15880 compare_referenced_symbol_properties.
15881 (sem_function::equals_wpa): Do not compare
15882 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
15883 DECL_IS_OPERATOR_NEW; compare pointer sizes.
15884 (sem_item::update_hash_by_addr_refs): Call
15885 hash_referenced_symbol_properties.
15886 (sem_item::update_hash_by_local_refs): Cleanup.
15887 (sem_function::merge): Do not mix up symbol properties.
15888 (sem_variable::equals_wpa): Use compare_symbol_references.
15889 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
15890 (sem_item::hash_referenced_symbol_properties): New.
15891 (sem_item::compare_symbol_references): New.
15892 (sem_item::compare_cgraph_references): Remove.
15894 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
15897 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
15898 Emit size of local.
15900 2015-04-23 Nick Clifton <nickc@redhat.com>
15902 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
15903 ATTRIBUTE_UNUSED to x parameter.
15904 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
15906 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15908 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
15909 TARGET_CRYPTO to TARGET_P8_VECTOR>
15910 (crypto_vpermxor_<mode>): Likewise.
15911 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
15912 (BU_CRYPTO_3A): Likewise.
15913 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
15914 (BU_CRYPTO_OVERLOAD_3A): New #define.
15915 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
15916 (VPMSUMH): Likewise.
15917 (VPMSUMW): Likewise.
15918 (VPMSUMD): Likewise.
15919 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
15920 (VPERMXOR_V4SI): Likewise.
15921 (VPERMXOR_V8HI): Likewise.
15922 (VPERMXOR_V16QI): Likewise.
15923 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
15924 BU_CRYPTO_OVERLOAD_2A.
15925 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
15926 BU_CRYPTO_OVERLOAD_3A.
15927 * config/rs6000/rs6000.opt (mcrypto): Change description of
15930 2015-04-23 Richard Biener <rguenther@suse.de>
15932 * passes.def: Remove copy propagation passes run directly after CCP.
15933 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
15935 (ccp_visit_phi_node): Rework to handle first executable edge
15938 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
15940 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
15941 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
15942 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
15943 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
15944 (thumb_legimitimize_reload_address): Remove.
15945 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
15947 (thumb_legimitimize_reload_address): Remove.
15949 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15951 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
15953 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15955 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
15957 (store_multiple): Likewise.
15959 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15961 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
15962 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
15963 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
15964 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
15965 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
15966 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
15967 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
15968 Specify issue_rate value.
15969 (arm_issue_rate): Look up issue rate from tuning structs. Remove
15970 large switch statement.
15971 (arm_marvell_pj4_tune): New struct.
15972 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
15975 2015-04-23 Richard Biener <rguenther@suse.de>
15977 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
15978 (vect_find_last_store_in_slp_instance): Rename to ...
15979 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
15980 (vect_analyze_slp_cost_1): Use vector_load for constant defs
15981 and vec_construct for external defs when estimating prologue cost.
15982 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
15983 Compute costs here only when vectorizing loops.
15984 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
15985 have been determined.
15986 (vect_schedule_slp_instance): Simplify vectorized code placement
15987 and prepare for in-BB external defs.
15988 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
15989 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
15990 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
15992 (vect_model_load_cost): Likewise.
15993 (vectorizable_store): Instead add it here.
15994 (vectorizable_load): Likewise.
15995 (vect_is_simple_use): Dump def type textually.
15997 2015-04-23 Richard Biener <rguenther@suse.de>
15999 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
16000 * cfgloop.c (verify_loop_structure): Verify the root loop node.
16001 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
16002 instead of get_eh_region_from_lp_number.
16003 * loop-init.c (fix_loop_structure): If we removed a loop, reset
16006 2015-04-23 Anton Blanchard <anton@samba.org>
16008 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
16009 need for -mprofile-kernel to save LR to stack.
16011 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16013 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
16015 (insn_is_swappable_p): Return 1 for a convert from double to
16016 single precision when all of its uses are splats of BE element
16019 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16021 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
16023 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16026 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
16027 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
16028 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
16030 (rs6000_builtin_mask_for_load): Return 0 for targets with
16031 efficient unaligned VSX accesses so that the vectorizer will use
16032 direct unaligned loads.
16033 (rs6000_builtin_support_vector_misalignment): Always return true
16034 for targets with efficient unaligned VSX accesses.
16035 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
16036 stores on targets with efficient unaligned VSX accesses is almost
16037 always the same as the cost of an aligned load or store, so model
16039 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
16040 unaligned vectors if we have efficient unaligned VSX accesses.
16041 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
16042 undocumented option.
16044 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16047 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
16049 * config.gcc (LIBC_MUSL): New tm_defines macro.
16050 * config/linux.h (OPTION_MUSL): Define.
16051 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
16052 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
16053 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
16055 * config/linux.opt (mmusl): New option.
16056 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
16057 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
16059 * configure: Regenerate.
16061 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
16063 * config.gcc (LIBC_MUSL): New tm_defines macro.
16064 * config/linux.h (OPTION_MUSL): Define.
16065 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
16066 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
16067 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
16069 * config/linux.opt (mmusl): New option.
16070 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
16071 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
16073 * configure: Regenerate.
16075 2015-04-22 Yury Gribov <y.gribov@samsung.com>
16077 * doc/invoke.texi (-fsanitize-sections): Update description.
16078 * asan.c (set_sanitized_sections): Parse incoming arg.
16079 (section_sanitized_p): Support wildcards.
16081 2015-04-22 Tom de Vries <tom@codesourcery.com>
16083 PR tree-optimization/65823
16084 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
16085 equality between ap_copy and ap.
16087 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16090 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
16092 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16095 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
16097 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16100 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
16101 remove already contained t-files.
16103 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16105 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
16106 Remove unneeded forward declarations.
16107 (suitable_for_tail_call_opt_p): Commentary typo fix.
16109 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16111 * varasm.c (emit_bss): Remove redundant guard.
16113 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16115 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
16117 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16119 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
16121 2015-04-22 Hale Wang <hale.wang@arm.com>
16122 Terry Guo <terry.guo@arm.com>
16124 PR rtl-optimization/64818
16125 * combine.c (can_combine_p): Don't combine user-specified
16126 register if it is in an asm input.
16128 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
16131 * passes.def (early_optimizations): Add pass_dse.
16133 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16135 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
16136 * reorg.c (redundant_insn): Remove ifdef
16137 INSN_REFERENCES_ARE_DELAYED.
16138 * resource.c (mark_referenced_resources): Likewise.
16140 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16142 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
16143 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
16144 * resource.c (mark_set_resources): Likewise.
16146 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16148 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
16149 * cfgcleanup.c (flow_find_cross_jump): Likewise.
16150 (flow_find_head_matching_sequence): Likewise.
16151 (try_head_merge_bb): Likewise.
16152 * combine.c (can_combine_p): Likewise.
16153 (try_combine): Likewise.
16154 (distribute_notes): Likewise.
16155 * df-problems.c (can_move_insns_across): Likewise.
16156 * final.c (final): Likewise.
16157 * gcse.c (insert_insn_end_basic_block): Likewise.
16158 * ira.c (find_moveable_pseudos): Likewise.
16159 * reorg.c (try_merge_delay_insns): Likewise.
16160 (fill_simple_delay_slots): Likewise.
16161 (fill_slots_from_thread): Likewise.
16162 * sched-deps.c (sched_analyze_2): Likewise.
16164 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16166 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
16167 PIC_OFFSET_TABLE_REGNUM.
16169 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16171 * alias.c (init_alias_target): Remove ifdef
16172 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
16173 * df-scan.c (df_insn_refs_collect): Likewise.
16174 (df_get_regular_block_artificial_uses): Likewise.
16175 (df_get_eh_block_artificial_uses): Likewise.
16176 (df_get_entry_block_def_set): Likewise.
16177 (df_get_exit_block_use_set): Likewise.
16178 * emit-rtl.c (gen_rtx_REG): Likewise.
16179 * ira.c (ira_setup_eliminable_regset): Likewise.
16180 * reginfo.c (init_reg_sets_1): Likewise.
16181 * regrename.c (rename_chains): Likewise.
16182 * reload1.c (reload): Likewise.
16183 (eliminate_regs_in_insn): Likewise.
16184 * resource.c (mark_referenced_resources): Likewise.
16185 (init_resource_info): Likewise.
16187 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16189 * defaults.h (MASK_RETURN_ADDR): New definition.
16190 * except.c (expand_builtin_extract_return_addr): Remove ifdef
16193 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16195 * defaults.h (RETURN_ADDR_OFFSET): New definition.
16196 * except.c (expand_builtin_extract_return_addr): Remove ifdef
16197 RETURN_ADDR_OFFSET.
16198 (expand_builtin_frob_return_addr): Likewise.
16200 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16202 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
16203 (try_redirect_by_replacing_jump): Likewise.
16204 (rtl_tidy_fallthru_edge): Likewise.
16205 * combine.c (insn_a_feeds_b): Likewise.
16206 (find_split_point): Likewise.
16207 (simplify_set): Likewise.
16208 * cprop.c (cprop_jump): Likewise.
16209 * cse.c (cse_extended_basic_block): Likewise.
16210 * df-problems.c (can_move_insns_across): Likewise.
16211 * function.c (emit_use_return_register_into_block): Likewise.
16212 * haifa-sched.c (sched_init): Likewise.
16213 * ira.c (find_moveable_pseudos): Likewise.
16214 * loop-invariant.c (find_invariant_insn): Likewise.
16215 * lra-constraints.c (curr_insn_transform): Likewise.
16216 * postreload.c (reload_combine_recognize_const_pattern):
16218 * reload.c (find_reloads): Likewise.
16219 * reorg.c (delete_scheduled_jump): Likewise.
16220 (steal_delay_list_from_target): Likewise.
16221 (steal_delay_list_from_fallthrough): Likewise.
16222 (redundant_insn): Likewise.
16223 (fill_simple_delay_slots): Likewise.
16224 (fill_slots_from_thread): Likewise.
16225 (delete_computation): Likewise.
16226 * sched-rgn.c (add_branch_dependences): Likewise.
16228 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16230 * genconfig.c (main): Always define HAVE_cc0.
16231 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
16233 * cfgcleanup.c (flow_find_cross_jump): Likewise.
16234 (flow_find_head_matching_sequence): Likewise.
16235 (try_head_merge_bb): Likewise.
16236 * cfgrtl.c (rtl_merge_blocks): Likewise.
16237 (try_redirect_by_replacing_jump): Likewise.
16238 (rtl_tidy_fallthru_edge): Likewise.
16239 * combine.c (do_SUBST_MODE): Likewise.
16240 (insn_a_feeds_b): Likewise.
16241 (combine_instructions): Likewise.
16242 (can_combine_p): Likewise.
16243 (try_combine): Likewise.
16244 (find_split_point): Likewise.
16246 (simplify_set): Likewise.
16247 (distribute_notes): Likewise.
16248 * cprop.c (cprop_jump): Likewise.
16249 * cse.c (cse_extended_basic_block): Likewise.
16250 * df-problems.c (can_move_insns_across): Likewise.
16251 * final.c (final): Likewise.
16252 (final_scan_insn): Likewise.
16253 * function.c (emit_use_return_register_into_block): Likewise.
16254 * gcse.c (insert_insn_end_basic_block): Likewise.
16255 * haifa-sched.c (sched_init): Likewise.
16256 * ira.c (find_moveable_pseudos): Likewise.
16257 * loop-invariant.c (find_invariant_insn): Likewise.
16258 * lra-constraints.c (curr_insn_transform): Likewise.
16259 * optabs.c (prepare_cmp_insn): Likewise.
16260 * postreload.c (reload_combine_recognize_const_pattern):
16262 * reload.c (find_reloads): Likewise.
16263 (find_reloads_address_1): Likewise.
16264 * reorg.c (delete_scheduled_jump): Likewise.
16265 (steal_delay_list_from_target): Likewise.
16266 (steal_delay_list_from_fallthrough): Likewise.
16267 (try_merge_delay_insns): Likewise.
16268 (redundant_insn): Likewise.
16269 (fill_simple_delay_slots): Likewise.
16270 (fill_slots_from_thread): Likewise.
16271 (delete_computation): Likewise.
16272 (relax_delay_slots): Likewise.
16273 * sched-deps.c (sched_analyze_2): Likewise.
16274 * sched-rgn.c (add_branch_dependences): Likewise.
16276 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16278 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
16279 that is trivially ded on non cc0 targets.
16280 (simplify_set): Likewise.
16281 (mark_used_regs_combine): Likewise.
16282 * cse.c (new_basic_block): Likewise.
16283 (fold_rtx): Likewise.
16284 (cse_insn): Likewise.
16285 (cse_extended_basic_block): Likewise.
16286 (set_live_p): Likewise.
16287 * rtlanal.c (canonicalize_condition): Likewise.
16288 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
16290 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16292 * conditions.h: Define macros even if HAVE_cc0 is undefined.
16293 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
16294 * final.c: Likewise.
16295 * jump.c: Likewise.
16296 * recog.c: Likewise.
16297 * recog.h: Declare functions even when HAVE_cc0 is undefined.
16298 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
16300 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16302 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
16303 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
16304 * builtins.c (expand_builtin): Remove check if
16305 EH_RETURN_DATA_REGNO is defined.
16306 * df-scan.c (df_bb_refs_collect): Likewise.
16307 (df_get_exit_block_use_set): Likewise.
16308 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
16309 * ira-lives.c (process_bb_node_lives): Likewise.
16310 * lra-lives.c (process_bb_lives): Likewise.
16312 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
16314 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
16315 FIRST_PSEUDO_REG): New.
16316 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
16317 (ARG_POINTER_REGNUM): Define to ARGP_REG.
16318 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
16319 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
16320 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
16321 (FIRST_INT_REG): New.
16322 (LAST_INT_REG): New.
16323 (FIRST_*_REG): Define using *_REG.
16324 (LAST_*_REG): Ditto.
16325 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
16326 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
16327 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
16329 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16331 * expmed.c: (synth_mult): Only assume overlapping
16332 shift with previous steps in alg_sub_t_m2 case.
16334 2015-04-21 Richard Biener <rguenther@suse.de>
16336 PR tree-optimization/65650
16337 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
16338 transitions involving copies.
16339 (set_lattice_value): Adjust for copy lattice state.
16340 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
16341 if that doesn't dominate the merge point.
16342 (bit_value_unop): Adjust what we treat as varying mask.
16343 (bit_value_binop): Likewise.
16344 (bit_value_assume_aligned): Likewise.
16345 (evaluate_stmt): When we simplified to a SSA name record a copy
16346 instead of dropping to varying.
16347 (visit_assignment): Simplify.
16349 * gimple-match.h (gimple_simplify): Add another callback.
16350 * gimple-fold.c (fold_stmt_1): Adjust caller.
16351 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
16352 for the 2nd callback.
16353 * gimple-match-head.c (gimple_simplify): Add a callback that is
16354 used to valueize the stmt operands and use it that way.
16356 2015-04-21 Richard Biener <rguenther@suse.de>
16358 PR tree-optimization/65788
16359 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
16361 2015-04-21 Richard Biener <rguenther@suse.de>
16363 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
16364 vec_construct cost by vec_stmt_cost.
16366 2015-04-21 Richard Biener <rguenther@suse.de>
16368 * cfghooks.h (create_basic_block): Replace with two overloads
16369 for RTL and GIMPLE.
16370 (split_block): Likewise.
16371 * cfghooks.c (split_block): Rename to ...
16372 (split_block_1): ... this.
16373 (split_block): Add two type-safe overloads for RTL and GIMPLE.
16374 (split_block_after_labels): Call split_block_1.
16375 (create_basic_block): Rename to ...
16376 (create_basic_block_1): ... this.
16377 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
16378 (create_empty_bb): Call create_basic_block_1.
16379 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
16380 split_block_after_labels.
16381 * omp-low.c (expand_parallel_call): Likewise.
16382 (expand_omp_target): Likewise.
16383 (simd_clone_adjust): Likewise.
16384 * tree-chkp.c (chkp_get_entry_block): Likewise.
16385 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
16386 create_basic_block overload.
16387 (cgraph_node::expand_thunk): Likewise.
16388 * tree-cfg.c (make_blocks): Likewise.
16389 (handle_abnormal_edges): Likewise.
16390 * tree-inline.c (copy_bb): Likewise.
16392 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16394 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
16396 (*xor_one_cmplsidi3_ze): Likewise.
16398 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
16400 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
16401 use df_remove_problem rather than manually removing problems, leaving
16402 holes in df->problems_in_order[].
16404 2015-04-21 Tom de Vries <tom@codesourcery.com>
16406 PR tree-optimization/65802
16407 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
16409 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16411 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
16413 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
16414 at '.'. Assert that there's enough space for everything.
16416 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
16418 PR tree-optimization/64950
16420 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
16423 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
16426 2015-04-20 Shiva Chen <shiva0217@gmail.com>
16428 PR rtl-optimization/64916
16429 * cfgcleanup.c (values_equal_p): New function.
16430 (can_replace_by): Use it.
16432 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
16435 * doc/invoke.texi ([-Wnarrowing]): Update.
16437 2015-04-20 Jeff Law <law@redhat.com>
16439 PR tree-optimization/65658
16440 * tree-ssa-threadupdate.c (redirection_block_p): Remove
16441 redundant test for GIMPLE_ASSIGN in last change.
16443 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
16445 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
16446 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
16447 (legitimize_tls_address): Ditto.
16448 (ix86_expand_move): Ditto.
16449 (ix86_expand_binary_operator): Remove reload_in_progress checks.
16450 (ix86_expand_unary_operator): Ditto.
16451 * config/i386/predicates.md (index_register_operand): Ditto.
16453 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
16455 * reorg.c (try_merge_delay_insns): Improve correctness checking
16456 for targets with multiple delay slots.
16458 2015-04-20 Jeff Law <law@redhat.com>
16460 PR tree-optimization/65658
16461 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
16464 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
16466 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
16467 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
16470 2015-04-20 Jakub Jelinek <jakub@redhat.com>
16473 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
16475 2015-04-20 Richard Biener <rguenther@suse.de>
16477 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
16478 * gimple-fold.c (gimple_build_valueize): New function.
16479 (gimple_build): Always use gimple_build_valueize as valueize hook.
16481 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
16484 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
16485 and overwrite variable parts if <= 1/2 the elements are variable.
16487 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
16489 PR rtl-optimization/65805
16490 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
16491 Don't use difference of offset and previous offset if
16492 update_sp_offset is non-zero.
16493 (eliminate_regs_in_insn): Ditto.
16494 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
16495 lra_eliminate_regs_1 call.
16496 * lra-constraints.c (get_equiv_with_elimination): Ditto.
16498 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
16500 * hash-table.h: Remove version of hash_table that stored value_type *.
16501 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
16502 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
16503 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
16504 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
16505 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
16506 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
16507 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
16508 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
16509 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
16510 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
16511 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
16512 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
16513 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
16514 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
16515 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
16516 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
16518 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16519 Jakub Jelinek <jakub@redhat.com>
16522 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
16523 subsequent SH_NONE operand does not overwrite an existing *special
16525 (adjust_extract): Handle case where a vec_extract operation is
16526 wrapped in a PARALLEL.
16528 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
16531 * config/i386/i386.c (ix86_binds_local_p): Define only if
16532 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
16534 2015-04-17 Jeff Law <law@redhat.com>
16536 PR tree-optimization/47679
16537 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
16538 * tree-ssa-scopedtables.c: New file.
16539 * tree-ssa-scopedtables.h: New file.
16540 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
16541 (const_and_copies): Change name/type.
16542 (record_const_or_copy): Move into tree-ssa-scopedtables.c
16543 (record_const_or_copy_1): Similarly.
16544 (restore_vars_to_original_value): Similarly.
16545 (pass_dominator::execute): Create and destroy const_and_copies table.
16546 (thread_across_edge): Update passing of const_and_copies.
16547 (record_temporary_equivalence): Use method calls rather than
16548 manipulating const_and_copies directly.
16549 (record_equality, cprop_into_successor_phis): Similarly.
16550 (dom_opt_dom_walker::before_dom_children): Similarly.
16551 (dom_opt_dom_walker::after_dom_children): Similarly.
16552 (eliminate_redundant_computations): Similarly.
16553 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
16554 (record_temporary_equivalence): Likewise.
16555 (invalidate_equivalences): Likewise.
16556 (record_temporary_equivalences_from_phis): Update due to type
16557 change of const_and_copies. Use method calls rather than
16558 manipulating the stack directly.
16559 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
16560 (thread_through_normal_block, thread_across_edge): Likewise.
16561 (thread_across_edge): Likewise.
16562 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
16563 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
16565 (identify_jump_threads): Update due to type change of equiv_stack.
16566 (finalize_jump_threads): Delete the equiv_stack when complete.
16568 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
16570 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
16571 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
16572 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
16574 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
16577 * config.gcc: Exit with a comment when we do not have a major version
16578 number for the FreeBSD target.
16580 2015-04-17 Jakub Jelinek <jakub@redhat.com>
16583 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
16584 maybe_allows_mem bitfields.
16585 (maybe_allows_none_start, maybe_allows_none_end,
16586 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
16587 maybe_allows_mem_end): New variables.
16588 (compute_maybe_allows): New function.
16589 (add_constraint): Use it to initialize maybe_allows_reg and
16590 maybe_allows_mem fields.
16591 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
16592 is_address constraints such that those that allow neither mem nor
16593 reg come first, then those that only allow reg but not mem, then
16594 those that only allow mem but not reg, then the rest.
16595 (write_allows_reg_mem_function): New function.
16596 (write_tm_preds_h): Call it.
16597 * stmt.c (parse_output_constraint, parse_input_constraint): Use
16598 the generated insn_extra_constraint_allows_reg_mem function
16599 instead of always setting *allows_reg = true; *allows_mem = true;
16600 for unknown extra constraints.
16602 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
16605 * output.h (default_binds_local_p_3): New.
16606 * varasm.c (default_binds_local_p_3): Make it public. Take an
16607 argument to indicate if common symbol may be local. If common
16608 symbol may be local, treat non-external variable as defined
16610 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
16611 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
16612 * config/i386/i386.c (ix86_binds_local_p): New.
16613 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
16614 ix86_binds_local_p.
16616 2015-04-17 Jakub Jelinek <jakub@redhat.com>
16619 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
16620 trying mem_loc_descriptor on XEXP (rtl, 0).
16622 2015-04-17 Martin Liska <mliska@suse.cz>
16624 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
16625 Release symbol_compare_collection.
16626 * ipa-reference.c: Add TODO that a vector should be released.
16628 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
16631 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
16632 to new AVR-LibC file layout (bug #44574).
16633 (*avrlibc_devicelib): Same.
16634 * config/avr/avr-mcus.def: Adjust comments.
16635 * config/avr/avr.opt (nodevicelib): Adjust help.
16637 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
16639 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
16641 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
16644 * gimplify.c (gimplify_init_constructor): Always emit a
16645 side-effecting constructor.
16647 2015-04-17 Tom de Vries <tom@codesourcery.com>
16649 PR tree-optimization/64950
16650 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
16651 in cfun->curr_properties.
16652 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
16653 if we generate an IFN_VA_ARG.
16654 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
16655 function if PROP_gimple_lva is not set in src function.
16657 2015-04-17 Tom de Vries <tom@codesourcery.com>
16658 Michael Matz <matz@suse.de>
16660 PR tree-optimization/64950
16661 * gimple-iterator.c (update_modified_stmts): Remove static.
16662 * gimple-iterator.h (update_modified_stmts): Declare.
16663 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
16664 (gimplify_va_arg_internal): New function.
16665 (gimplify_va_arg_expr): Use IFN_VA_ARG.
16666 * gimplify.h (gimplify_va_arg_internal): Declare.
16667 * internal-fn.c (expand_VA_ARG): New unreachable function.
16668 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
16669 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
16670 (expand_ifn_va_arg): New function.
16671 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
16672 (pass_stdarg::execute): Call expand_ifn_va_arg.
16673 (pass_data_lower_vaarg): New pass_data.
16674 (pass_lower_vaarg): New gimple_opt_pass.
16675 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
16676 (make_pass_lower_vaarg): New function.
16677 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
16678 properties_required field.
16679 * passes.def (all_passes): Add pass_lower_vaarg.
16680 * tree-pass.h (PROP_gimple_lva): Add define.
16681 (make_pass_lower_vaarg): Declare.
16683 2015-04-17 Tom de Vries <tom@codesourcery.com>
16685 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
16686 * calls.c (call_expr_flags): Same.
16688 2015-04-17 Tom de Vries <tom@codesourcery.com>
16690 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
16691 (pass_stdarg::execute): ... here.
16693 2015-04-17 Tom de Vries <tom@codesourcery.com>
16694 Michael Matz <matz@suse.de>
16696 * tree-cfg.c (make_blocks_1): Factor out of ...
16697 (make_blocks): ... here.
16698 (make_edges_bb): Factor out of ...
16699 (make_edges): ... here.
16700 (gimple_find_sub_bbs): New function.
16701 * tree-cfg.h (gimple_find_sub_bbs): Declare.
16703 2015-04-17 Tom de Vries <tom@codesourcery.com>
16705 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
16707 2015-04-17 Yury Gribov <y.gribov@samsung.com>
16709 * asan.c (set_sanitized_sections): New function.
16710 (section_sanitized_p): Ditto.
16711 (asan_protect_global): Optionally sanitize user-defined
16713 * asan.h (set_sanitized_sections): Declare new function.
16714 * common.opt (fsanitize-sections): New option.
16715 * doc/invoke.texi (-fsanitize-sections): Document new option.
16716 * opts-global.c (handle_common_deferred_options): Handle new
16719 2015-04-17 Jakub Jelinek <jakub@redhat.com>
16722 * dwarf2out.c (loc_list_from_tree): Return NULL
16723 for DEBUG_EXPR_DECL.
16725 2015-04-17 Christian Bruel <christian.bruel@st.com>
16727 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
16730 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16732 * ira-color.c (setup_left_conflict_sizes_p): Do not process
16733 node itself when computing left conflict subnode size.
16735 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
16737 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
16738 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
16739 *fop_<mode>_1_sse using enabled attribute. Use
16740 register_mixssei387nonimm_operand operand 1 predicate. Change
16741 alternative 3 constraints from "x" to "v".
16743 2015-04-16 Richard Biener <rguenther@suse.de>
16745 PR tree-optimization/65774
16746 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
16747 bit-value tracking on.
16749 2015-04-16 Richard Biener <rguenther@suse.de>
16751 PR tree-optimization/64277
16752 * tree-vrp.c (check_array_ref): Fix anti-range handling,
16753 simplify upper bound handling.
16754 (search_for_addr_array): Simplify.
16755 (check_array_bounds): Handle ADDR_EXPRs here.
16756 (check_all_array_refs): Simplify.
16758 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
16760 * config/i386/i386.c (print_reg): Rewrite function.
16762 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16764 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
16765 Invert the condition.
16767 2015-04-16 Renlin Li <renlin.li@arm.com>
16769 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
16770 simplifications for UNSIGNED_FLOAT.
16772 2015-04-16 Nick Clifton <nickc@redhat.com>
16774 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
16776 (enum rl78_cpu_type): New.
16777 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
16778 (umulhi3_shift_virt): Remove m constraint from operand 1.
16779 (umulqihi3_virt): Likewise.
16780 * config/rl78/rl78.c (rl78_option_override): Add code to process
16781 -mcpu and -mmul options.
16782 (rl78_alloc_physical_registers): Add code to handle divhi and
16783 divsi valloc attributes.
16784 (set_origin): Likewise.
16785 * config/rl78/rl78.h (RL78_MUL_G14): Define.
16786 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
16787 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
16789 (ASM_SPEC): Pass -mcpu on to assembler.
16790 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
16791 (mulqi3_rl78): Likewise.
16792 (mulhi3_g13): Likewise.
16793 (mulhi3): Generate the G13 or G14 versions of the insn directly.
16794 (mulsi3): Likewise.
16795 (mulhi3_g14): Add clobbers of AX and BC.
16796 (mulsi3_g14): Likewise.
16797 (mulsi3_g13): Likewise.
16798 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
16799 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
16800 * config/rl78/rl78.opt (mmul): Initialise value to
16802 (mcpu): New option.
16803 (m13, m14, mrl78): New option aliases.
16804 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
16805 (MULTILIB_DIRNAMES): Add g13 and g14.
16806 * doc/invoke.texi: Document -mcpu and -mmul options.
16808 2015-04-16 Richard Biener <rguenther@suse.de>
16810 * tree-ssa-ccp.c (likely_value): See if we have operands that
16811 are marked as never simulate again and return CONSTANT in this
16813 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
16814 not have any operands that will be simulated again as
16815 not being simulated again.
16817 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
16819 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
16820 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
16821 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
16823 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
16825 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
16826 *float<SWI48:mode><MODEF:mode>2_sse.
16827 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
16829 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
16832 2015-04-15 Tom de Vries <tom@codesourcery.com>
16835 * function.c (push_dummy_function): New function.
16836 (init_dummy_function_start): Use push_dummy_function.
16837 (pop_dummy_function): New function. Factored out of ...
16838 (expand_dummy_function_end): ... here.
16839 * function.h (push_dummy_function, pop_dummy_function): Declare.
16840 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
16841 pop_dummy_function.
16842 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
16844 2015-04-15 Jeff Law <law@redhat.com>
16846 PR tree-optimization/47679
16847 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
16848 need for forward declaration in upcoming changes.
16849 (record_conditions, record_edge_info): Likewise.
16851 PR rtl-optimization/42522
16852 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
16853 SIGN_EXTRACT as a whole object rather than simplifying
16856 2015-04-15 Jakub Jelinek <jakub@redhat.com>
16859 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
16860 and GIMPLE_PREDICT use break instead of return true. For
16861 GIMPLE_EH_DISPATCH, compare dispatch region.
16863 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
16865 * doc/extend.texi (__sync Builtins): Simplify some text. Update
16866 details about the implementation. Make clear preference for
16867 __atomic builtins. Reduce possibility of future change.
16869 2015-04-15 Nick Clifton <nickc@redhat.com>
16871 * config/rx/rx.opt (mallow-string-insns): New option.
16872 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
16873 builtin if string instructions are denied.
16874 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
16875 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
16877 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
16878 * config/rx/rx.md (movstr): Enable pattern only if string
16879 instructions are allowed.
16880 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
16881 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
16882 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
16883 (MULTILIB_DIRNAMES): Add no-strings.
16884 * doc/invoke.texi: Document -mno-allow-string-insns.
16886 2015-04-15 Alan Modra <amodra@gmail.com>
16890 PR middle-end/36043
16891 * calls.c (load_register_parameters): Don't load past end of
16892 mem unless suitably aligned.
16894 2015-04-15 Nick Clifton <nickc@redhat.com>
16896 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
16897 decrement instruction as being frame related.
16898 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
16900 If zero extending a function address enclose the operation in
16902 (rl78_preferred_reload_class): New function.
16903 (TARGET_PREFERRED_RELOAD_CLASS): Define.
16904 * config/rl78/rl78.md: Remove useless constraints in expanders.
16905 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
16906 (mulhi3_rl78): Likewise.
16907 (mulhi3_g13): Likewise.
16908 (mulsi3_rl78): Likewise.
16909 (es_addr): Move to before the multiply patterns.
16911 2015-04-15 Alan Modra <amodra@gmail.com>
16913 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
16914 and sequence_stack. Add seq.
16915 (seq_stack): Delete.
16916 * function.c (prepare_function_start): Don't access x_last_insn.
16917 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
16918 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
16919 * emit_rtl.c (start_sequence, push_topmost_sequence,
16920 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
16921 sequence accessors.
16922 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
16923 remove_insn): Likewise. Simplify.
16924 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
16925 and pop_topmost_sequence.
16926 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
16928 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
16930 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
16933 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
16936 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
16938 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
16939 (LEGACY_INT_REGNO_P): Ditto.
16940 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
16941 (ANY_MASK_REG_P): Remove.
16942 (BND_REG_P): Rename from ANY_BND_REG_P.
16943 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
16944 legacy integer registers. Do not handle MMX_REG_P in a special way.
16945 Merge 64byte and 32byte SSE handling.
16947 2015-04-14 Nick Clifton <nickc@redhat.com>
16949 * expr.c (expand_assignment): Force an address offset computation
16950 into a register before changing its mode.
16951 (expand_expr_real_1): Likewise.
16953 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
16955 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
16956 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
16957 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
16958 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
16959 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
16960 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
16961 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
16962 and __aarch64_vget_lane_any.
16964 2015-04-14 Jakub Jelinek <jakub@redhat.com>
16966 PR rtl-optimization/65761
16967 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
16968 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
16970 2015-04-14 Richard Biener <rguenther@suse.de>
16972 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
16973 (graphite_can_represent_scev): Use POINTER_TYPE_P.
16975 2015-04-14 Richard Biener <rguenther@suse.de>
16977 PR tree-optimization/65758
16978 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
16980 (ccp_lattice_meet): Likewise.
16981 (bit_value_unop): Likewise.
16982 (bit_value_binop): Likewise.
16983 (bit_value_assume_aligned): Likewise.
16985 2015-04-14 Christian Bruel <christian.bruel@st.com>
16987 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
16990 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
16992 PR tree-optimization/63387
16993 * match.pd ((x unord x) | (y unord y) -> (x unord y),
16994 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
16996 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
16998 * config/i386/predicates.md (any_QIreg_operand): Rename from
16999 q_regs_operand. Do not process subregs.
17000 (QIreg_operand): Use QI_REGNO_P predicate.
17001 (ext_QIreg_operand): Ditto.
17002 (ext_register_operand): Ditto.
17003 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
17004 (AND splitters): Ditto.
17005 (AND with -65536 splitter): Add SWI48 mode for operand 0.
17006 (AND with -256 splitter): Use any_QIreg_operand predicate and
17007 SWI248 mode for operand 0.
17008 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
17009 mode for operand 0.
17010 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
17012 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
17014 * doc/plugins.texi: Rewrite first introductory paragraph.
17016 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17018 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
17019 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
17021 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17023 * ipa-profie.c (ipa_profile): Check number of parameters
17024 and possible polymorphic call targets before
17027 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
17029 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
17030 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
17032 2015-04-13 Richard Biener <rguenther@suse.de>
17034 PR tree-optimization/65204
17035 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
17036 takens for bit-CCP.
17038 2015-04-13 Richard Biener <rguenther@suse.de>
17041 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
17042 and cond_not_taken_branch_cost to 4 and 2.
17043 (bdver2_cost): Likewise.
17044 (bdver3_cost): Likewise.
17045 (bdver4_cost): Likewise.
17047 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17049 * hash-table.h (hash_table constructor): Add mem stats.
17050 (alloc_entries): Likewise.
17052 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17054 * ipa-cp.c (ipcp_driver): Relase prev_edge.
17055 * passes.c (execute_one_pass): Only add transform if pass has one.
17057 2015-04-12 Joseph Myers <joseph@codesourcery.com>
17059 * config/i386/i386.c (ix86_option_override_internal): Don't set
17060 -fprefetch-loop-arrays if optimizing for size.
17062 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17063 Gerald Pfeifer <gerald@pfeifer.com>
17065 * doc/contrib.texi (Contributors): Add Martin Jambor and
17068 2015-04-12 Jakub Jelinek <jakub@redhat.com>
17070 * BASE-VER: Set to 6.0.0.
17072 PR tree-optimization/65747
17073 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
17074 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
17076 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
17078 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
17079 sentence. Improve grammar.
17081 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
17083 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
17085 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
17088 * ipa-inline-transform.c (speculation_removed): Remove static var.
17089 (check_speculations): New function.
17090 (clone_inlined_nodes): Do not check spculations.
17091 (inline_call): Call check_speculations.
17092 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
17093 consider non-invariants.
17095 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
17096 Martin Liska <mliska@suse.cz>
17099 * ipa-icf.c (sem_item::compare_cgraph_references): function and
17100 variable can not match.
17101 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
17102 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
17104 2015-04-11 Jakub Jelinek <jakub@redhat.com>
17106 PR tree-optimization/65735
17107 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
17108 Remove visited_phis argument, add visited_bbs, avoid recursing into the
17109 same bb rather than just into the same phi node.
17110 (thread_through_normal_block): Adjust caller.
17112 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
17114 * doc/contrib.texi (Contributors): Add Ira Rosen.
17116 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
17118 * gcov.c (find_source): Fix miswording in error message.
17119 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
17120 (ix86_expand_sse_comi_round): Fix typo in error message.
17122 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
17124 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
17126 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
17128 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
17130 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
17133 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
17134 Print bad_spills_num and insn_pseudos_num.
17136 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17139 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
17140 when creating +1 values for SImode.
17142 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
17145 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
17148 2015-04-10 Jakub Jelinek <jakub@redhat.com>
17149 Iain Sandoe <iain@codesourcery.com>
17152 * configure: Regenerate.
17154 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
17157 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
17159 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
17161 * doc/contrib.texi (Contributors): Add John Marino.
17163 2015-04-09 Jakub Jelinek <jakub@redhat.com>
17165 PR tree-optimization/65709
17166 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
17167 TREE_TYPE (TREE_TYPE (t)).
17169 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
17172 * lra-int.h (lra_bad_spill_regno_start): New.
17173 * lra.c (lra_bad_spill_regno_start): New.
17174 (lra): Set up lra_bad_spill_regno_start. Set up
17175 lra_constraint_new_regno_start unconditionally.
17176 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
17179 2015-04-09 Marek Polacek <polacek@redhat.com>
17180 Jakub Jelinek <jakub@redhat.com>
17182 PR middle-end/65554
17183 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
17184 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
17187 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
17189 PR rtl-optimization/65693
17190 * combine.c (is_parallel_of_n_reg_sets): Move outside of
17193 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
17196 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
17197 device specs file if "device-specs%s" didn't resolve to a path.
17199 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
17202 * config/i386/i386.c (fixup_modeless_constant): New.
17203 (ix86_expand_args_builtin): Fixup modeless constant operand.
17204 (ix86_expand_round_builtin): Ditto.
17205 (ix86_expand_special_args_builtin): Ditto.
17206 (ix86_expand_builtin): Ditto.
17208 2015-04-09 Jakub Jelinek <jakub@redhat.com>
17211 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
17212 any pow2 integer in between 2 and 0x80000000U inclusive.
17214 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
17216 PR rtl-optimization/65693
17217 * combine.c (is_parallel_of_n_reg_sets): Change first argument
17218 from an rtx_insn * to an rtx.
17219 (try_combine): Adjust both callers. Use it once more.
17221 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17223 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
17224 (chkp_make_static_const_bounds): Search existing
17225 symbol by assembler name. Use make_decl_one_only.
17226 (chkp_get_zero_bounds_var): Remove node search which
17227 is now performed in chkp_make_static_const_bounds.
17228 (chkp_get_none_bounds_var): Likewise.
17230 2015-04-08 Michael Witten <mfwitten@gmail.com>
17232 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
17235 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17237 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
17239 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
17241 * doc/extend.texi (__sync Builtins): Fix grammar.
17243 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17245 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
17247 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17249 * varasm.c (emit_local): Move definition of align.
17251 2015-04-08 Julian Brown <julian@codesourcery.com>
17253 * config/nvptx/mkoffload.c (process): Support variable mapping.
17255 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
17257 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
17259 (alpha_write_one_linkage): Correct typo.
17261 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17263 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
17265 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
17267 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
17269 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17271 * tree-chkp.h (chkp_insert_retbnd_call): New.
17272 * tree-chkp.c (chkp_insert_retbnd_call): New.
17273 * ipa-split.c (insert_bndret_call_after): Remove.
17274 (split_function): Use chkp_insert_retbnd_call.
17275 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
17276 bounds for instrumented functions.
17278 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
17281 * calls.c (initialize_argument_information): When producing tail
17282 call also turn SSA_NAMES passed by references to original PARM_DECLs
17284 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
17287 * lra-remat.c (do_remat): Process input and non-input insn
17288 registers separately.
17290 2015-04-07 Jakub Jelinek <jakub@redhat.com>
17293 * valtrack.c (debug_lowpart_subreg): New function.
17294 (dead_debug_insert_temp): Use it.
17296 PR middle-end/65680
17297 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
17298 into signed HOST_WIDE_INT the same as negative bit_offset.
17300 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
17302 * ipa-comdats.c (ipa_comdats): Visit all thunks
17303 to set proper comdat group.
17305 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17308 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
17309 on constants for NEON VSTRUCT modes.
17311 2015-04-07 Jakub Jelinek <jakub@redhat.com>
17312 Iain Sandoe <iain@codesourcery.com>
17315 * configure: Regenerate.
17317 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
17320 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
17321 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
17322 that LFD is used to load double constants instead of LFS. Add
17323 defaults for all costs structures. Add comments for missing
17324 initialization fields.
17325 (size32_cost): Likewise.
17326 (size64_cost): Likewise.
17327 (rs64a_cost): Likewise.
17328 (mpccore_cost): Likewise.
17329 (ppc403_cost): Likewise.
17330 (ppc405_cost): Likewise.
17331 (ppc440_cost): Likewise.
17332 (ppc476_cost): Likewise.
17333 (ppc601_cost): Likewise.
17334 (ppc603_cost): Likewise.
17335 (ppc604_cost): Likewise.
17336 (ppc604e_cost): Likewise.
17337 (ppc620_cost): Likewise.
17338 (ppc630_cost): Likewise.
17339 (ppccell_cost): Likewise.
17340 (ppc750_cost): Likewise.
17341 (ppc7450_cost): Likewise.
17342 (ppc8540_cost): Likewise.
17343 (ppce300c2c3_cost): Likewise.
17344 (ppce500mc_cost): Likewise.
17345 (ppce500mc64_cost): Likewise.
17346 (ppce5500_cost): Likewise.
17347 (ppce6500_cost): Likewise.
17348 (titan_cost): Likewise.
17349 (power4_cost): Likewise.
17350 (power6_cost): Likewise.
17351 (power7_cost): Likewise.
17352 (power8_cost): Likewise.
17353 (ppca2_cost): Likewise.
17354 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
17356 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
17357 instead of XXLOR to copy SFmode to clear out dirty bits created
17358 when SFmode denormals are generated.
17359 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
17360 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
17362 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
17364 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
17365 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
17366 * config/aarch64/aarch64-tune.md: Regenerate.
17368 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
17370 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
17371 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
17372 * config/arm/arm-cores.def (exynos-m1): New core.
17373 * config/arm/arm-tune.md: Regenerate.
17374 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
17375 * config/arm/bpabi.h: Likewise.
17377 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
17379 * ipa-cp (set_single_call_flag): Remove too
17380 restrictive assert.
17382 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
17384 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
17385 GOMP_offload_unregister from the destructor.
17387 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
17389 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
17390 flags for instrumentation thunk.
17391 (chkp_produce_thunks): Likewise.
17393 2015-04-05 Martin Liska <mliska@suse.cz>
17396 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
17397 has computed data structure.
17398 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
17400 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
17402 * invoke.texi (inline-unit-growth): Increase growth to 20%
17403 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
17405 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
17408 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
17410 (lra_rematerialization_iter): New.
17411 * lra.c (lra): Initialize lra_rematerialization_iter.
17412 Stop updating lra_constraint_new_regno_start after switching of
17413 inheritance and rematerialization.
17414 * lra-remat.c (lra_rematerialization_iter): New.
17415 (lra_remat): Add printing pass iteration. Do rematerialization
17416 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
17418 2015-04-04 Richard Biener <rguenther@suse.de>
17420 PR tree-optimization/64909
17421 PR tree-optimization/65660
17422 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
17423 to take a cost vector for scalar iteration cost.
17424 (vect_get_single_scalar_iteration_cost): Likewise.
17425 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
17426 Compute the scalar iteration cost into a cost vector.
17427 (vect_get_known_peeling_cost): Use the scalar cost vector to
17428 account for the cost of the peeled iterations.
17429 (vect_estimate_min_profitable_iters): Likewise.
17430 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
17433 2015-04-04 Alan Modra <amodra@gmail.com>
17437 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
17438 0.0 constant unless TARGET_VSX.
17439 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
17442 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17445 * ipa-inline-transform.c (inline_call): Skip sanity check to work
17448 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17451 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
17452 speculative indirect edges to avoid ordering issue.
17454 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17457 * ipa-inline.c (edge_badness): Add combined size to the denominator.
17459 2015-04-03 Jakub Jelinek <jakub@redhat.com>
17461 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
17462 TYPE_ARTIFICIAL on the .omp_data* types.
17464 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17466 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
17467 instrumentation thunks.
17469 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17471 * config/i386/i386.c (ix86_expand_call): Avoid nested
17472 PARALLEL in returned call value.
17474 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17476 * lto-cgraph.c (input_cgraph_1): Always link instrumented
17477 assembler name with original one.
17479 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17481 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
17483 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17485 Revert parts of r216820.
17486 * config/i386/i386.md (movqi_internal): Correct type calculation
17487 for alternatives 3 and 5.
17489 2015-04-02 Jakub Jelinek <jakub@redhat.com>
17491 PR preprocessor/61977
17492 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
17493 predefine __vector/__bool/__pixel macros nor context sensitive
17494 macros for CLK_ASM.
17495 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
17497 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
17499 * config/pa/pa.c (pa_output_move_double): Directly handle register
17500 indexed memory operand. Simplify handling of scaled register indexed
17503 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17506 * config/i386/linux-common.h (MPX_SPEC): New.
17507 (CHKP_SPEC): Add MPX_SPEC.
17508 * doc/invoke.texi (-fcheck-pointer-boudns): Document
17509 possible issues with '-z bndplt' support in linker.
17511 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17513 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
17514 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
17515 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
17516 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
17517 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
17519 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
17521 * config/i386/sync.md (UNSPEC_MOVA): Remove.
17522 (atomic_load<mode>): Change operand 0 predicate to
17523 nonimmediate_operand and fix up the destination when needed.
17525 (atomic_loaddi_fpu): Use UNSPEC_LDA.
17526 (atomic_store<mode>): Change operand 1 predicate to
17527 nonimmendate_operand and move the source to register when needed.
17529 (atomic_store<mode>_1): Use UNSPEC_STA.
17530 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
17531 Fix moves from memory operand. Use UNSPEC_STA.
17533 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
17535 * expmed.c (strict_volatile_bitfield_p): Check that the access will
17536 not cross a MODESIZE boundary.
17537 (store_bit_field, extract_bit_field): Added assertions in the
17538 strict volatile bitfields code path.
17540 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
17543 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
17544 Increase args array size by one to avoid buffer overflow.
17546 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
17548 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
17550 * ipa-inline.c (edge_badness): Add wrapper penalty.
17551 (sum_callers): Move up.
17552 (inline_small_functions): Set single_caller.
17553 * ipa-inline.h (inline_summary): Add single_caller.
17554 * ipa-split.c (split_function): Set split_part.
17555 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
17556 * cgraph.h (cgraph_node): Add split_part.
17558 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
17561 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
17562 Do not split operands 0 and operands 2 to halfmode.
17563 (atomic_compare_and_swap<mode>): Update for
17564 atomic_compare_and_swap<dwi>_doubleword changes.
17566 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
17568 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
17569 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
17570 no caching is done.
17572 2015-03-31 Martin Liska <mliska@suse.cz>
17575 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
17576 has already filled up function summary.
17577 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
17579 2015-03-31 Richard Biener <rguenther@suse.de>
17581 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
17584 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
17586 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
17588 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
17589 (s390_asm_output_function_label): Adapt to new signature of
17590 s390_function_num_hotpatch_hw
17591 Optimise the code generating assembler output.
17592 Add comments to assembler file.
17594 2015-03-31 Richard Biener <rguenther@suse.de>
17596 PR middle-end/65626
17597 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
17598 of the noreturn call so it is last and cleanup_control_flow_bb
17599 can do the CFG part.
17601 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
17604 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
17605 same_comdat_group for external symbols.
17606 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
17607 infinite same_comdat_group traversal loop.
17609 2015-03-31 Jakub Jelinek <jakub@redhat.com>
17612 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
17613 automatically to $headers.
17615 2015-03-30 Jakub Jelinek <jakub@redhat.com>
17618 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
17619 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
17621 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
17623 * ipa-prop.c (param_type_may_change_p): Likewise.
17624 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
17625 (remove_unused_scope_block_p): Add in_ctor_dtor_block
17626 argument. Before inlining, preserve
17627 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
17628 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
17630 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
17632 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17635 * ipa-inline.c (edge_badness): Base denominator on callee's
17638 2015-03-27 Martin Jambor <mjambor@suse.cz>
17641 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
17642 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
17643 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
17644 node_calling_single_call.
17645 * ipa-cp.c (count_callers): New function.
17646 (set_single_call_flag): Likewise.
17647 (initialize_node_lattices): Count callers and set single_flag_call if
17649 (incorporate_penalties): New function.
17650 (good_cloning_opportunity_p): Use it, dump new flags.
17651 (propagate_constants_topo): Set node_within_scc flag if appropriate.
17652 * doc/invoke.texi (ipa-cp-recursion-penalty,
17653 ipa-cp-single-call-pentalty): Document.
17655 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17658 * symtab.c (symtab_node::get_partitioning_class): Register vars
17660 * varpool.c (symbol_table::output_variables) Do not assemble unefined
17661 decls for non-symbols.
17663 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
17666 * output.h (default_binds_local_p_2): New.
17667 * varasm.c (default_binds_local_p_2): Renamed to ...
17668 (default_binds_local_p_3): This. Don't return true on protected
17669 data symbol if protected data may be external.
17670 (default_binds_local_p): Use default_binds_local_p_3.
17671 (default_binds_local_p_1): Likewise.
17672 (default_binds_local_p_2): New.
17673 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
17674 default_binds_local_p_2 if TARGET_MACHO is undefined.
17676 2015-03-27 Jakub Jelinek <jakub@redhat.com>
17679 * config/i386/i386.c (legitimize_pic_address): If base
17680 is SYMBOL_REF or LABEL_REF using %rip addressing, force
17681 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
17683 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17686 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
17689 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17692 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
17693 of optimized out indirect call.
17694 (redirect_to_unreachable): Always build symbol table node for
17695 BUILT_IN_UNREACHABLE
17697 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
17700 * ira-costs.c (record_reg_classes): Process all constraint string
17703 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
17705 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
17709 * config/c6x/constraints.md (S3): New constraint.
17710 * config/c6x/c6x.md (real_jump): Use it.
17712 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17714 PR middle-end/65595
17715 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
17716 do redirection if the call is not optimized out.
17718 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
17721 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
17722 (fchkp-check-incomplete-type): Add LTO.
17723 (fchkp-zero-input-bounds-for-main): Likewise.
17724 (fchkp-first-field-has-own-bounds): Likewise.
17725 (fchkp-narrow-bounds): Likewise.
17726 (fchkp-narrow-to-innermost-array): Likewise.
17727 (fchkp-use-static-bounds): Likewise.
17728 (fchkp-use-static-const-bounds): Likewise.
17729 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
17731 2015-03-27 Marek Polacek <polacek@redhat.com>
17733 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
17735 2015-03-27 Marek Polacek <polacek@redhat.com>
17738 * ubsan.c (ubsan_create_edge): New function.
17739 (instrument_bool_enum_load): Call it.
17740 (instrument_nonnull_arg): Likewise.
17741 (instrument_nonnull_return): Likewise.
17742 (instrument_object_size): Likewise.
17744 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17746 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
17749 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17752 * lto-streamer.h (class lto_location_cache): New.
17753 (struct data_in): Add location_cache.
17754 (lto_input_location): Update prototype.
17755 (stream_input_location_now): New.
17756 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
17757 pointer to location.
17758 (stream_input_location): Update.
17759 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
17760 (warn_odr): Apply location cache before warning.
17761 (lto_input_location): Update prototype.
17762 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
17763 Use stream_input_location_now.
17764 * lto-streamer-in.c (lto_location_cache::current_cache): New static
17766 (lto_location_cache::cmp_loc): New function.
17767 (lto_location_cache::apply_location_cache): New function.
17768 (lto_location_cache::accept_location_cache): New function.
17769 (lto_location_cache::revert_location_cache): New function.
17770 (lto_location_cache::input_location): New function.
17771 (lto_input_location): Do location caching.
17772 (stream_input_location_now): New function.
17773 (input_eh_region, input_struct_function_base): Use
17774 stream_input_location_now.
17775 (lto_data_in_create): use new.
17776 (lto_data_in_delete): Use delete.
17777 * tree-streamer-in.c (unpack_ts_block_value_fields,
17778 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
17779 lto_input_ts_exp_tree_pointers): Update for cached location api.
17781 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17784 * passes.def: Add pass_nothrow.
17785 * ipa-pure-const.c: (pass_data_nothrow): New.
17786 (pass_nothrow): New.
17787 (pass_nothrow::execute): New.
17788 (make_pass_nothrow): New.
17789 * tree-pass.h (make_pass_nothrow): Declare.
17791 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17793 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
17794 edge to change by speculation resolution or redirection.
17795 (edge_set_predicate): Likewise.
17796 (inline_summary_t::duplicate): Likewise.
17797 (remap_edge_summaries): Likewise.
17799 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17801 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
17803 (can_inline_edge_p): Relax option matching for always inline functions.
17805 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
17808 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
17809 Check operand 4 and operand 0 for equality.
17810 (avx512f_vextract<shuffletype>32x4_1_maskm):
17811 Check operand 6 and operand 0 for equality.
17812 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
17814 (vec_extract_hi_<mode>_maskm): Ditto.
17816 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17818 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
17819 dead calls back to live.
17820 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
17822 (cgraph_node::verify_node): ... here; verify only callee edges,
17824 * cif-code.def (CILK_SPAWN): New code.
17826 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17828 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
17829 (edge_set_predicate): Use it to mark unreachable edges.
17830 (inline_summary_t::duplicate): Remove unnecesary code.
17831 (remap_edge_summaries): Likewise.
17832 (dump_inline_summary): Report contains_cilk_spawn.
17833 (compute_inline_parameters): Compute contains_cilk_spawn.
17834 (inline_read_section, inline_write_summary): Stream
17835 contains_cilk_spawn.
17836 * ipa-inline.c (can_inline_edge_p): Do not touch
17837 DECL_STRUCT_FUNCTION that may not be available;
17838 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
17839 remove check for callee_fun->can_throw_non_call_exceptions and
17840 replace it by optimization attribute check; check for flag_exceptions.
17841 * ipa-inline-transform.c (inline_call): Maintain
17842 DECL_FUNCTION_PERSONALITY
17843 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
17845 2015-03-26 Jakub Jelinek <jakub@redhat.com>
17847 PR tree-optimization/65551
17848 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
17849 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
17851 2015-03-26 Richard Biener <rguenther@suse.de>
17853 PR middle-end/65555
17854 * tree-cfg.c (verify_gimple_call): Do not require a call to
17855 have no LHS if it wasn't recognized as control altering yet.
17857 2015-03-26 Jakub Jelinek <jakub@redhat.com>
17859 PR tree-optimization/64715
17860 * passes.def: Add another instance of pass_object_sizes before ccp1.
17861 * tree-object-size.c (pass_object_sizes::execute): In
17862 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
17863 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
17864 __bos result and the computed constant. Remove redundant
17865 checks, obsoleted by gimple_call_builtin_p test.
17867 * var-tracking.c (variable_tracking_main_1): Don't track
17868 variables for targetm.no_register_allocation targets.
17870 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
17872 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
17873 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
17875 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
17878 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
17879 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
17880 0.0 is correctly setup.
17881 (extenddftf2_internal): Likewise.
17883 2015-03-25 Sebastian Pop <s.pop@samsung.com>
17885 PR tree-optimization/65177
17886 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
17888 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
17889 edges not adjacent on the path to the original code.
17891 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
17894 * doc/install.texi (Building a native compiler): Document new
17895 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
17896 configuration assumes that the host supports the linker plugin.
17898 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
17901 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
17902 chain for generated call.
17904 2015-03-25 Richard Biener <rguenther@suse.de>
17906 * passes.c (pass_manager::execute_early_local_passes): Guard
17907 execution of pass_chkp_instrumentation_passes with
17908 flag_check_pointer_bounds.
17909 (pass_chkp_instrumentation_passes::gate): Likewise.
17911 2015-03-25 Martin Liska <mliska@suse.cz>
17913 PR tree-optimization/65538
17914 * symbol-summary.h (function_summary::~function_summary):
17915 Relese memory for allocated summaries.
17916 (function_summary::release): New function.
17918 2015-03-25 Jakub Jelinek <jakub@redhat.com>
17921 * lto-streamer-out.c (DFS::worklist): New struct.
17922 (DFS::worklist_vec): New data member.
17923 (DFS::next_dfs_num): Remove.
17924 (DFS::DFS): Rewritten using worklist instead of recursion,
17925 using most of code from DFS::DFS_write_tree.
17926 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
17927 pass it to DFS_write_tree calls.
17928 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
17929 quick initial checks push it into worklist_vec and return.
17931 2015-03-25 Richard Biener <rguenther@suse.de>
17933 PR middle-end/65519
17934 * genmatch.c (expr::gen_transform): Re-write to avoid
17935 using gimple_build.
17937 2015-03-25 Bin Cheng <bin.cheng@arm.com>
17939 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
17941 2015-03-25 Bin Cheng <bin.cheng@arm.com>
17943 * config/arm/arm.opt (print_tune_info): New option.
17944 * config/arm/arm.c (arm_print_tune_info): New function.
17945 (arm_file_start): Call arm_print_tune_info.
17946 * config/arm/arm-protos.h (struct tune_params): Add comment.
17947 * doc/invoke.texi (@item -mprint-tune-info): New item.
17948 (-mtune): mention it in ARM Option Summary.
17950 2015-03-25 DJ Delorie <dj@redhat.com>
17952 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
17955 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
17956 Martin Liska <mliska@suse.cz>
17958 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
17959 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
17960 (sem_item::add_type): New function.
17961 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
17962 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
17963 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
17964 (sem_function::equals_wpa): Fix typo.
17965 * ipa-icf.h (sem_item::add_type): New function.
17966 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
17969 2015-03-24 Jakub Jelinek <jakub@redhat.com>
17971 PR tree-optimization/65533
17972 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
17973 with swapped operands, call vect_free_slp_tree on
17974 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
17977 2015-03-24 Richard Biener <rguenther@suse.de>
17979 PR middle-end/65517
17980 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
17981 for fixup if necessary.
17983 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
17985 * doc/extend.texi (Function Attributes): Add @cindex entries
17986 for all attributes and regularize their format. Delete text
17987 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
17988 information about "eightbit_data", "tiny_data", and "model"
17989 variable attributes to the Variable Attributes section. Fix
17990 some obvious typos and copy-editing issues.
17991 (Variable Attributes, Type Attributes): Likewise add/fix
17992 @cindex entries for all attributes.
17994 2015-03-23 Jakub Jelinek <jakub@redhat.com>
17997 * tree-chkp.c (chkp_build_returned_bound): Ignore
17998 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
18000 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
18003 * config/sh/predicates.md (simple_mem_operand,
18004 displacement_mem_operand): Add test for reg.
18005 (short_displacement_mem_operand): Test for displacement_mem_operand
18006 before invoking sh_disp_addr_displacement.
18007 * config/sh/constraints.md (Sdd, Sra): Simplify.
18008 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
18009 Remove redundant displacement_mem_operand tests.
18011 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
18014 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
18015 the same -mmcu=MCU more than once.
18017 2015-03-23 Jakub Jelinek <jakub@redhat.com>
18020 * ipa-devirt.c: Remove duplicate demangle.h include.
18023 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
18025 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
18026 REG_POINTER on *destptr after adjusting it for prologue size.
18029 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
18030 ultimate_alias_target ()->order ints instead of
18031 ultimate_alias_target () pointers.
18033 2015-03-23 Richard Biener <rguenther@suse.de>
18035 PR tree-optimization/65518
18036 * tree-vect-stmts.c (vectorizable_load): Reject single-element
18037 interleaving cases we generate absymal code for.
18039 2015-03-23 Richard Biener <rguenther@suse.de>
18041 PR tree-optimization/65494
18042 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
18044 (vect_analyze_slp_instance): But do that here, always and once.
18046 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18048 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
18049 adding T or multiplying by T+1 and subracting T.
18051 2015-03-22 Jeff Law <law@redhat.com>
18053 PR rtl-optimization/64317
18054 * Makefile.in (OBJS): Add gcse-common.c
18055 * gcse.c: Include gcse-common.h
18056 (struct modify_pair_s): Move structure definition to gcse-common.h
18057 (compute_transp): Move function to gcse-common.c.
18058 (canon_list_insert): Similarly.
18059 (record_last_mem_set_info): Break out some code and put it into
18060 gcse-common.c. Call into the new common code.
18061 (compute_local_properties): Pass additional arguments to compute_transp.
18062 * postreload-gcse.c: Include gcse-common.h and df.h
18063 (modify_mem_list_set, blocks_with_calls): New variables.
18064 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
18065 (get_bb_avail_insn): Pass in the expression index too.
18066 (alloc_mem): Allocate memory for the new bitmaps and lists.
18067 (free_mem): Free memory for the new bitmaps and lists.
18068 (insert_expr_in_table): Record a bitmap index for each entry we
18070 (record_last_mem_set_info): Call into common code in gcse-common.c.
18071 (get_bb_avail_insn): If no available insn was found in the requested
18072 BB. If BB has a single predecessor, see if the expression is
18073 transparent in BB and available in that single predecessor.
18074 (compute_expr_transp): New wrapper for compute_transp.
18075 (eliminate_partially_redundant_load): Pass expression's bitmap_index
18076 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
18077 (gcse_after_reload_main): If there are elements in the hash table,
18078 then compute transparency for all the elements in the hash table.
18079 * gcse-common.h: New file.
18080 * gcse-common.c: New file.
18082 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
18084 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
18086 (System Headers): Likewise.
18088 (Traditional macros): Likewise.
18089 (Invocation): Likewise.
18090 (Option Index): Likewise.
18091 * doc/cppopts.texi (-M): Likewise.
18092 (-finput-charset): Likewise.
18093 (--help): Likewise.
18094 * doc.invoke.texi (AVR Options): Likewise.
18095 (V850 Options): Likewise.
18097 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
18100 * ipa-devirt.c: Include demangle.h
18101 (odr_type_d): Add field rtti_broken.
18102 (odr_subtypes_equivalent_p): Do not require name to match.
18103 (compare_virtual_tables): Fix typo; if type already has ODR violation,
18104 bypass the tests; be ready for function referneces in vtables that are
18105 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
18106 (warn_odr): Give up for nameless types.
18107 (warn_types_mismatch): Report mismatch in mangled names;
18108 report mismatch in anonymous namespaces; look into component types to
18109 give useful error; report when mismatch is dragged in from other ODR
18111 (odr_types_equivalent_p): Match types for being polymorphic; avoid
18112 duplicated diagnostics.
18113 (add_type_duplicate): Reorder checks so more informative ones come
18114 first; fix typo; do not output "the extra base is defined here" when
18116 (BINFO_N_BASE_BINFOS): Relax sanity check.
18118 2015-03-22 Martin Liska <mliska@suse.cz>
18119 Jakub Jelinek <jakub@redhat.com>
18121 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
18122 masks that can potentially include a builtin.
18123 (ix86_add_new_builtins): Introduce fast filter for isa values
18124 that cannot trigger builtin inclusion.
18126 2015-03-22 Martin Liska <mliska@suse.cz>
18128 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
18129 (sem_item::update_hash_by_local_refs): Likewise.
18130 (sem_variable::get_hash): Empty line is fixed.
18131 (sem_item_optimizer::execute): Include adding of hash references.
18132 (sem_item_optimizer::update_hash_by_addr_refs): New function.
18133 (sem_item_optimizer::build_hash_based_classes): Use local hash.
18134 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
18135 (sem_item::update_hash_by_local_refs): Likewise.
18137 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18140 * ipa-comdats.c (enqueue_references): Walk through thunks.
18141 (ipa_comdats): Likewise.
18142 (set_comdat_group_1): New function.
18144 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18147 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
18150 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
18151 Gerald Pfeifer <gerald@pfeifer.com>
18153 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
18155 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
18156 Sandra Loosemore <sandra@codesourcery.com>
18158 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
18159 function parameter declaration.
18160 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
18161 Update arguments to nios2_adjust_call_address().
18162 (sibcall_internal): Rename from *sibcall.
18163 (sibcall_value_internal): Rename from *sibcall_value.
18164 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
18165 (nios2_large_got_address): Add target temp reg parameter.
18166 (nios2_got_address): Adjust call to nios2_large_got_address, add
18167 force_reg around it.
18168 (nios2_load_pic_address): Add target temp reg parameter, replace call
18169 to nios2_got_address with corresponding code.
18170 (nios2_legitimize_constant_address): Update call to
18171 nios2_load_pic_address.
18172 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
18173 to use temp reg for PIC loading purposes.
18174 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
18175 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
18176 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
18178 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18180 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
18181 usage of "the @option{...}".
18182 (-Wopenmp-simd): Likewise.
18183 (-fsanitize-recover): Likewise.
18184 (-fsanitize-undefined-trap-on-error): Likewise.
18186 (tracer-dynamic-coverage-feedback): Likewise.
18187 (reorder-block-duplicate-feedback): Likewise.
18188 (loop-unroll-jam-size): Likewise.
18191 (-mabs=legacy): Likewise.
18192 (-mupper-regs-df): Likewise.
18193 (-mupper-regs-sf): Likewise.
18194 (-mpointers-to-nested-functions): Likewise.
18196 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18198 * doc/extend.texi (Cilk Plus Builtins): Add markup.
18200 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18202 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
18203 additional index entries and cross-references.
18204 (-fchkp-check-incomplete-type): Likewise.
18205 (-fchkp-first-field-has-own-bounds): Likewise.
18206 (-fchkp-narrow-to-innermost-array): Likewise.
18207 (-fchkp-use-fast-string-functions): Likewise.
18208 (-fchkp-use-nochk-string-functions): Likewise.
18209 (-fchkp-use-static-const-bounds): Likewise.
18210 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
18211 (-fchkp-instrument-marked-only): Likewise.
18212 (-fchkp-use-wrappers): Likewise.
18213 (-static-libmpx): Likewise.
18214 (-static-libmpxwrappers): Likewise.
18215 * doc/extend.texi (bnd_legacy): Likewise.
18216 (bnd_instrument): Likewise.
18217 (bnd_variable_size): Likewise.
18218 (Pointer Bounds Checker builtins): Likewise.
18220 2015-03-21 Tom de Vries <tom@codesourcery.com>
18222 PR tree-optimization/65458
18223 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
18224 * cgraph.h (cgraph_node): Add parallelized_function field.
18225 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
18226 (input_overwrite_node): Read parallelized_function field.
18227 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
18228 parallelized_function on cgraph_node for child_fn.
18229 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
18230 Remove include of gt-tree-parloops.h.
18231 (parallelized_functions): Remove static variable.
18232 (parallelized_function_p): Rewrite using parallelized_function field of
18234 (create_loop_fn): Remove adding to parallelized_functions.
18235 * Makefile.in (GTFILES): Remove tree-parloops.c
18237 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
18239 PR rtl-optimization/64366
18240 * lra.c (lra_update_insn_regno_info): Consider regs in
18241 CALL_INSN_FUNCTION_USAGE memory.
18243 2015-03-20 Richard Biener <rguenther@suse.de>
18245 PR middle-end/64715
18246 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
18247 for type comparison and gcc_checking_assert.
18248 (chrec_fold_plus_poly_poly): Likewise.
18249 (chrec_fold_multiply_poly_poly): Likewise.
18250 (chrec_convert_1): Likewise.
18251 * gimplify.c (gimplify_expr): Remove premature folding of
18252 &X + CST to &MEM[&X, CST].
18254 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18256 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
18258 (ipa_inline): Recompute inline_failed codes.
18259 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
18260 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
18263 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
18265 PR rtl-optimization/60851
18266 * recog.c (constrain_operands): Accept a pseudo register before reload
18267 for LRA enabled targets.
18269 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
18272 * config/rs6000/predicates.md (easy_fp_constant): Remove special
18273 -ffast-math handling that kept non-0 constants live in the RTL
18274 until reload. Remove logic testing the number of instructions it
18275 took to create a constant in a GPR that was never used, due to a
18276 test for soft-float earlier.
18277 (memory_fp_constant): Delete, no longer used.
18279 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
18280 alternatives for loading non-0 constants into GPRs for hard
18281 floating point that is no longer needed due to changes in
18282 easy_fp_constant. Add support for loading 0.0 into GPRs.
18283 (mov<mode>_hardfloat32): Likewise.
18284 (mov<mode>_hardfloat64): Likewise.
18285 (mov<mode>_64bit_dm): Likewise.
18286 (movtd_64bit_nodm): Likewise.
18287 (pre-reload move FP constant define_split): Delete define_split,
18288 since it is no longer used.
18289 (extenddftf2_internal): Remove GHF constraints that are not valid
18292 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
18294 PR rtl-optimization/63491
18295 * lra-constraints.c (check_and_process_move): Use src instead of
18296 sreg. Remove some dead code.
18298 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
18301 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
18302 (sem_variable::merge): Likewise.
18304 2015-03-19 Martin Liska <mliska@suse.cz>
18307 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
18308 all fields of cgraph_thunk_info.
18310 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
18312 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
18313 clone instrumented thunks.
18315 2015-03-19 Richard Biener <rguenther@suse.de>
18318 2015-03-10 Richard Biener <rguenther@suse.de>
18320 PR middle-end/63155
18321 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
18322 * tree-ssa-coalesce.c: Include timevar.h.
18323 (attempt_coalesce): Handle graph being NULL.
18324 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
18325 Split out abnormal coalescing to ...
18326 (perform_abnormal_coalescing): ... this function.
18327 (coalesce_ssa_name): Perform abnormal coalescing without computing
18329 (verify_ssa_coalescing_worker): New function.
18330 (verify_ssa_coalescing): Likewise.
18332 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18333 Jakub Jelinek <jakub@redhat.com>
18336 * tsan.c (instrument_gimple): Clear tail call flag on
18339 2015-03-19 Jakub Jelinek <jakub@redhat.com>
18342 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
18343 call in the return bb.
18344 (find_split_points): Add RETURN_BB argument, don't call
18346 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
18347 if true append TSAN_FUNC_EXIT internal call after the call to
18348 the split off function.
18349 (execute_split_functions): Call find_return_bb here.
18350 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
18351 Adjust find_split_points and split_function calls.
18353 2015-03-18 DJ Delorie <dj@redhat.com>
18355 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
18356 (iorqi3_virt): Likewise.
18358 2015-03-18 Tom de Vries <tom@codesourcery.com>
18360 * tree-parloops.c (parallelize_loops): Make static.
18361 * tree-parloops.h (parallelize_loops): Remove extern declaration.
18363 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
18365 PR middle-end/64491
18367 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
18369 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
18370 condition would be removed due to undefined behaviour.
18372 2015-03-18 Martin Liska <mliska@suse.cz>
18375 * cgraph.c (cgraph_node::get_create): Remove unnecessary
18376 xstrdup_for_dump wrapper.
18377 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
18379 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
18380 with xstrdup_for_dump.
18381 (sem_variable::equals): Likewise.
18382 (sem_item_optimizer::read_section): Use symtab_node::name instead of
18384 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
18385 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
18386 symtab_node::asm_name with xstrdup_for_dump.
18387 (congruence_class::dump): Use symtab_node::name instead of
18389 * ipa-icf.h (symtab_node::name): Remove.
18390 (symtab_node::asm_name): Likewise.
18392 2015-03-18 Jakub Jelinek <jakub@redhat.com>
18394 PR tree-optimization/65450
18395 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
18397 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
18398 it instead of duplicate_ssa_name_ptr_info.
18401 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
18403 2015-03-18 Richard Biener <rguenther@suse.de>
18405 * tree-data-ref.h (struct access_matrix): Remove.
18406 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
18407 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
18408 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
18409 (am_vector_index_for_loop): Likewise.
18410 (struct data_reference): Remove access_matrix member.
18411 (DR_ACCESS_MATRIX): Remove.
18412 (lambda_vector_new): Add comment.
18413 (lambda_matrix_new): Use XOBNEWVEC.
18415 2015-03-18 Richard Biener <rguenther@suse.de>
18417 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
18418 (pass_ch::execute): Cleanup the CFG only if we did sth.
18419 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
18421 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18423 * expmed.c (synth_mult): Use std::swap instead of manually
18424 swapping algorithms.
18426 2015-03-18 Jakub Jelinek <jakub@redhat.com>
18429 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
18431 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
18434 * config/avr/avr.opt (-nodevicelib): New option.
18435 * doc/invoke.texi (AVR Options): Document it.
18436 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
18437 libgcc.a, libc.a, libm.a.
18438 * config/avr/specs.h: Same.
18439 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
18440 which don't (directly) depend on the device. Print more help.
18441 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
18442 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
18443 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
18445 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
18446 for specs file name.
18447 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
18448 * config/avr/avr-mcus.def: Adjust initializers and comments.
18450 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
18452 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
18453 DECL_ONE_ONLY to check if decl is one only.
18454 * ipa-split.c (consider_split): Limit splitt of one only functions.
18456 2015-03-16 Jakub Jelinek <jakub@redhat.com>
18458 PR tree-optimization/65427
18459 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
18461 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
18463 2015-03-16 Marek Polacek <polacek@redhat.com>
18465 * cgraph.h (add_new_static_var): Remove declaration.
18466 * varpool.c (add_new_static_var): Remove function.
18468 2015-03-16 Jakub Jelinek <jakub@redhat.com>
18470 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
18471 instead of vec<tree> * with vec_alloc and release for args.
18474 PR middle-end/65431
18475 * omp-low.c (delete_omp_context): Only splay_tree_delete
18476 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
18477 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
18479 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
18482 * cfgexpand.c (align_base): New function.
18483 (alloc_stack_frame_space): Call it.
18484 (expand_stack_vars): Align prev_frame to be sure
18485 data->asan_vec elements aligned properly.
18487 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
18489 PR middle-end/65409
18490 * expr.c (store_field): Do not do a direct block copy if the source is
18491 a PARALLEL with BLKmode.
18493 2015-03-16 Tom de Vries <tom@codesourcery.com>
18495 PR middle-end/65414
18497 2015-03-12 Tom de Vries <tom@codesourcery.com>
18499 PR rtl-optimization/64895
18500 * lra-lives.c (check_pseudos_live_through_calls): Use
18501 actual_call_used_reg_set instead of call_used_reg_set, if available.
18503 2015-03-16 Alan Modra <amodra@gmail.com>
18506 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
18507 Modify Z->r bswapdi splitter to use dest in place of scratch.
18508 In r->Z and Z->r bswapdi splitter rename word_high, word_low
18509 to word1, word2 and rearrange logic to suit.
18510 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
18511 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
18512 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
18513 Add one '?' on r->r. Modify Z->r splitter to avoid need for
18516 2015-03-14 Jakub Jelinek <jakub@redhat.com>
18518 PR tree-optimization/65369
18519 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
18520 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
18521 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
18523 PR tree-optimization/65418
18524 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
18525 are casts in the first PLUS_EXPR operand, ensure tbias and
18526 *totallowp are in the inner type.
18528 PR rtl-optimization/65401
18529 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
18530 argument. If true, adjust_address_nv of x with big-endian
18531 correction for the mode widening to GET_MODE (y).
18532 (make_field_assignment): Don't do MEM mode widening here.
18533 Use MEM_P instead of GET_CODE == MEM.
18535 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
18537 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
18538 the external decls.
18540 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18543 * config/arm/arm.c (arm_gen_constant, AND case): Use
18544 ARM_SIGN_EXTEND when constructing AND mask.
18546 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18548 * graph.c (print_graph_cfg): Make function names visible and append
18549 parenthesis to it. Also make groups of basic blocks belonging to the
18550 same function visible.
18552 2015-03-12 Richard Biener <rguenther@suse.de>
18554 PR middle-end/44563
18555 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
18556 to avoid quadratic behavior with inline expansion splitting blocks.
18557 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
18558 with the successor if the predecessor will be merged with it.
18559 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
18560 entry block with its successor.
18562 2015-03-13 Richard Biener <rguenther@suse.de>
18564 PR middle-end/44563
18565 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
18566 (cleanup_tree_cfg_1): Do not call it.
18567 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
18568 (fixup_noreturn_call): Mark the stmt as control altering.
18569 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
18571 (pass_data_fixup_cfg): Produce a dump file.
18572 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
18573 (need_noreturn_fixup): New global.
18574 (pass_dominator::execute): Fixup queued noreturn calls.
18575 (optimize_stmt): Queue calls that became noreturn for fixup.
18576 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
18577 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
18578 (el_to_fixup): New global.
18579 (eliminate_dom_walker::before_dom_childre): Queue calls that
18580 became noreturn for fixup.
18581 (eliminate): Fixup queued noreturn calls.
18582 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
18583 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
18584 (substitute_and_fold_dom_walker::before_dom_children): Queue
18585 alls that became noreturn for fixup.
18586 (substitute_and_fold): Fixup queued noreturn calls.
18588 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
18590 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
18591 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
18592 are building; for methods check ODR type of class they belong to if
18593 they may lead to a polymorphic call.
18594 (sem_function::compare_polymorphic_p): Be bit smarter about testing
18595 when function may lead to a polymorphic call.
18596 (sem_function::compare_type_list): Remove.
18597 (sem_variable::equals): Update use of compatible_types_p.
18598 (sem_variable::parse_tree_refs): Remove.
18599 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
18601 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
18603 (func_checker::compatible_polymorphic_types_p): Break out from ...
18604 (unc_checker::compatible_types_p): ... here.
18605 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
18607 (unc_checker::compatible_types_p): Update.
18608 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
18611 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18613 PR rtl-optimization/65235
18614 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
18615 When first element of vec_concat is const_int, calculate its size
18616 using second element.
18618 2015-03-12 Richard Biener <rguenther@suse.de>
18620 PR middle-end/65270
18621 * fold-const.c (operand_equal_p): Fix ordering of resetting
18622 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
18624 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
18626 * config/s390/s390.c (s390_reorg): Move code to output nops after label
18628 (s390_asm_output_function_label): Likewise.
18629 * config/s390/s390.c (s390_asm_output_function_label):
18630 Fix function label alignment with -mhtopatch.
18631 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
18632 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
18633 ("nop_2_byte"): New define_insn.
18634 ("nop_4_byte"): Likewise.
18635 ("nop_6_byte"): Likewise.
18636 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
18637 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
18639 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
18642 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
18645 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
18648 * toplev.c (process_options): Restrict Pointer Bounds Checker
18649 usage with Address Sanitizer.
18651 2015-03-12 Richard Biener <rguenther@suse.de>
18653 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
18655 * omp-low.c (expand_omp_taskreg): Split block before removing
18657 (expand_omp_target): Likewise.
18658 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
18659 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
18660 stmt to split_block.
18662 2015-03-12 Tom de Vries <tom@codesourcery.com>
18664 PR rtl-optimization/64895
18665 * lra-lives.c (check_pseudos_live_through_calls): Use
18666 actual_call_used_reg_set instead of call_used_reg_set, if available.
18668 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
18670 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
18671 (cgraph_node::remove): Likewise.
18672 (cgraph_node::get_untransformed_body): Likewise.
18673 * varpool.c (varpool_node::remove): Likewise.
18674 (varpool_node::get_constructor): Add sanity check.
18676 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
18678 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
18680 (-fabi-compat-version): Likewise.
18681 (-ffriend-injection): Likewise.
18682 (-Wdeclaration-after-statement): Likewise.
18683 (-fomit-frame-pointer): Likewise.
18684 (-ftree-coalesce-inlined-vars): Likewise.
18685 (-fvisibility=): Likewise.
18686 * doc/extend.texi (Typeof): Likewise.
18687 (Zero Length): Likewise.
18688 (Escaped Newlines): Likewise.
18689 (Compound Literals): Likewise.
18690 (Function Attributes): Likewise.
18691 (Label Attributes): Likewise.
18692 (Type Attributes): Likewise.
18693 (Function Names): Likewise.
18694 (Other Builtins): Likewise.
18695 (Function Specific Option Pragmas): Likewise.
18696 (C++ Interface): Likewise.
18698 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
18700 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
18702 2015-03-11 Marek Polacek <polacek@redhat.com>
18704 PR tree-optimization/65388
18705 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
18707 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
18710 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
18711 * configure: Regenerate.
18712 * config.in: Regenerate.
18713 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
18714 [-mn-flash]: Document it.
18715 [__AVR_ARCH__]: Document avrtiny.
18717 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
18718 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
18719 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
18721 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18723 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
18725 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18728 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
18729 allow reloads of PLUS in floating point/VSX registers.
18731 2015-03-11 Junmo Park <junmoz.park@samsung.com>
18733 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
18734 crypto_sha256_fast.
18735 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
18737 2015-03-11 Richard Biener <rguenther@suse.de>
18739 PR tree-optimization/65310
18740 * tree-sra.c (build_ref_for_offset): Also preserve larger
18743 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
18745 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
18747 2015-03-10 Jakub Jelinek <jakub@redhat.com>
18750 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
18752 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
18754 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
18756 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
18757 (sem_function::equals_wpa): ... here.
18759 2015-03-10 Marek Polacek <polacek@redhat.com>
18760 Jakub Jelinek <jakub@redhat.com>
18763 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
18764 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
18767 2015-03-10 Jakub Jelinek <jakub@redhat.com>
18770 * config/rs6000/t-linux: For powerpc64* target set
18771 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
18773 2015-03-10 Richard Biener <rguenther@suse.de>
18775 PR middle-end/44563
18776 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
18777 for redirect_all_calls.
18779 2015-03-10 Marek Polacek <polacek@redhat.com>
18781 * gdbinit.in (pcfun): Define and document.
18783 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
18785 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
18786 of libgomp-plugin.h.
18787 (find_target_compiler): Support a case when the path to gcc is
18788 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
18789 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
18790 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
18792 (main): Use GCC_INSTALL_NAME as target_driver_name.
18793 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
18795 (mkoffload.o): Remove obsolete include path and defines.
18796 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
18798 2015-03-10 Richard Biener <rguenther@suse.de>
18800 PR middle-end/63155
18801 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
18802 * tree-ssa-coalesce.c: Include timevar.h.
18803 (attempt_coalesce): Handle graph being NULL.
18804 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
18805 Split out abnormal coalescing to ...
18806 (perform_abnormal_coalescing): ... this function.
18807 (coalesce_ssa_name): Perform abnormal coalescing without computing
18809 (verify_ssa_coalescing_worker): New function.
18810 (verify_ssa_coalescing): Likewise.
18812 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
18815 * config.gcc (extra_options) [avr]: Remove.
18816 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
18817 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
18818 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
18820 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
18821 (-mmcu=): Add Var and MissingArgError properties.
18823 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
18824 * config/avr/t-multilib: Regenerate.
18825 * config/avr/specs.h: New file.
18826 * config/avr/driver-avr.c: New file.
18827 * config/avr/genopt.sh: Remove file.
18828 * config/avr/avr-tables.opt: Remove file.
18829 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
18830 * config/avr/avr-c.c: Same.
18831 * avr-arch.h: Same.
18832 (avr_current_device): Remove proto.
18833 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
18834 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
18835 (EXTRA_SPEC_FUNCTIONS): Define.
18836 (avr_devicespecs_file): New specs function proto.
18837 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
18838 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
18839 (avr_current_device): Remove definition and usage.
18840 (avr_set_core_architecture): New static function.
18841 (avr_option_override): Use it.
18842 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
18843 (mcu_name): New static array.
18844 (comparator, avr_archs_str, avr_mcus_str): New static functions.
18845 (avr_inform_devices, avr_inform_core_architectures): New functions.
18846 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
18847 (avrlibc.h) [WITH_AVRLIBC]: Include.
18848 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
18849 (print_mcu): Rewrite from scratch.
18850 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
18851 Forward to avr-specific specs defined in device-specs file.
18852 * config/avr/t-avr (driver-avr.o): New rule.
18853 (avr-devices.o): Depend on avr-arch.h.
18854 (avr-mcus): No more depend on avr-tables.opt.
18855 (avr-tables.opt): Remove rule.
18856 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
18858 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18860 * c-family/c.opt (fchkp-use-wrappers): New.
18861 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
18862 (chkp_wrap_function): New.
18863 (chkp_build_instrumented_fndecl): Support wrapped
18865 * doc/invoke.texi (-fcheck-pointer-bounds): New.
18866 (-fchkp-check-incomplete-type): New.
18867 (-fchkp-first-field-has-own-bounds): New.
18868 (-fchkp-narrow-bounds): New.
18869 (-fchkp-narrow-to-innermost-array): New.
18870 (-fchkp-optimize): New.
18871 (-fchkp-use-fast-string-functions): New.
18872 (-fchkp-use-nochk-string-functions): New.
18873 (-fchkp-use-static-bounds): New.
18874 (-fchkp-use-static-const-bounds): New.
18875 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
18876 (-fchkp-check-read): New.
18877 (-fchkp-check-write): New.
18878 (-fchkp-store-bounds): New.
18879 (-fchkp-instrument-calls): New.
18880 (-fchkp-instrument-marked-only): New.
18881 (-fchkp-use-wrappers): New.
18882 (-static-libmpx): New.
18883 (-static-libmpxwrappers): New.
18885 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18887 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
18888 (CHKP_SPEC): Add wrappers library.
18889 * c-family/c.opt (static-libmpxwrappers): New.
18891 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18893 * config/i386/linux-common.h (LIBMPX_LIBS): New.
18894 (LIBMPX_SPEC): New.
18896 * gcc.c (CHKP_SPEC): New.
18897 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
18898 * c-family/c.opt (static-libmpx): New.
18900 2015-03-10 Richard Biener <rguenther@suse.de>
18902 PR middle-end/44563
18903 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
18905 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
18906 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
18907 (cgraph_add_edge_to_call_site_hash): Likewise.
18908 (cgraph_node::get_edge): Likewise.
18909 (cgraph_edge::set_call_stmt): Likewise.
18910 (cgraph_edge::remove_caller): Likewise.
18912 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
18914 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
18915 (callee_saved_gpr_regs_size): ... this.
18916 (callee_saved_regs_first_regno): Rename to ...
18917 (callee_saved_first_gpr_regno): ... this.
18918 (callee_saved_regs_last_regno) Rename to ...
18919 (callee_saved_last_gpr_regno): ... this.
18920 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
18922 (nds32_initial_elimination_offset): Likewise.
18923 (nds32_expand_prologue): Likewise.
18924 (nds32_expand_epilogue): Likewise.
18925 (nds32_expand_prologue_v3push): Likewise.
18926 (nds32_expand_epilogue_v3pop): Likewise.
18927 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
18928 Adjust renamed variables.
18929 (nds32_output_stack_pop): Likewise.
18931 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
18933 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
18936 2015-03-10 Jakub Jelinek <jakub@redhat.com>
18938 PR rtl-optimization/65321
18939 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
18941 * var-tracking.c (use_narrower_mode): Likewise.
18943 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
18945 PR tree-optimization/65355
18946 * varasm.c (notice_global_symbol): Do not produce RTL.
18947 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
18949 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
18950 check for section anchors.
18952 2015-03-10 Alan Modra <amodra@gmail.com>
18955 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
18956 to be single-arch by default. Set cpu_is_64bit for powerpc64
18957 given --with-cpu=native.
18958 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
18959 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
18961 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
18962 rs6000_isa_flags rather than TARGET_64BIT.
18964 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
18965 Kaz Kojima <kkojima@gcc.gnu.org>
18967 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
18969 2015-03-09 Jakub Jelinek <jakub@redhat.com>
18972 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
18973 on a TREE_BINFO, instead use BINFO_TYPE.
18975 2015-03-09 Richard Biener <rguenther@suse.de>
18977 PR middle-end/65270
18978 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
18979 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
18980 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
18981 of that. When comparing dereferences compare alignment.
18982 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
18984 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
18986 * ipa-inline-analysis.c (check_callers): Check
18987 node->can_remove_if_no_direct_calls_and_refs_p.
18988 (growth_likely_positive): Reorganize to call
18989 can_remove_if_no_direct_calls_p later.
18990 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
18991 will_be_removed_from_program_if_no_direct_calls_p): Add
18992 will_inline parameter.
18993 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
18994 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
18995 Handle inliner case correctly.
18997 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
18999 PR tree-optimization/63743
19000 * cfgexpand.c (reorder_operands): Also reorder if only second operand
19001 had its definition forwarded by TER.
19003 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
19006 * ipa-utils.h (types_odr_comparable): Add strict argument.
19007 * ipa-devirt.c: Fix whitespace;
19008 (odr_hasher): Remove.
19009 (odr_name_hasher, odr_vtable_hasher): New hashers.
19010 (can_be_name_hashed_p): New predicate.
19011 (hash_type_name): remove.
19012 (hash_odr_name): New.
19013 (odr_name_hasher::hash): new.
19014 (can_be_vtable_hashed_p): New.
19015 (hash_odr_vtable): New.
19016 (odr_vtable_hasher::hash): New.
19017 (types_same_for_odr): Add strict parameter.
19018 (types_odr_comparable): Likewise.
19019 (odr_name_hasher::equal): New.
19020 (odr_vtable_hasher::equal): New.
19021 (odr_name_hasher::remove): New.
19022 (odr_hash_type): Change to hash_table<odr_name_hasher>.
19023 (odr_vtable_hash_type): New.
19024 (odr_vtable_hash): New.
19025 (odr_subtypes_equivalent_p): Do strict comparsion.
19026 (add_type_duplicate): Merge type names; cleanup; avoid type
19028 (register_odr_type): Initialize vtable hash.
19029 (build_type_inheritance_graph): Likewise
19030 (get_odr_type): Reorg to use two hashes.
19031 (dump_possible_polymorphic_call_targets): Move sanity check after debug
19033 (ipa_devirt): Dump type_inheritance_graph.
19034 (types_same_for_odr): Add strict mode.
19036 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19039 * cgraph.h (symtab_node): Add definition_alignment,
19040 can_increase_alignment_p and increase_alignment.
19041 * symtab.c (symtab_node::can_increase_alignment_p,
19042 increase_alignment_1, symtab_node::increase_alignment,
19043 symtab_node::definition_alignment): New.
19044 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
19045 can_increase_alignment_p.
19046 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
19047 * tree-vect-stmts.c (ensure_base_align): Likewise.
19048 * varasm.c (function_section_1): Use definition_alignment.
19049 (assemble_start_function): Likewise.
19050 (emit_local): likewise.
19051 (build_constant_desc): Likewsie.
19052 (output_constant_def_contents): Likewise.
19053 (place_block_symbol): Likewise.
19054 (output_object_block): Likewise.
19056 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19059 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
19060 when outputting debug.
19062 2015-03-07 Marek Polacek <polacek@redhat.com>
19063 Martin Uecker <uecker@eecs.berkeley.edu>
19066 * doc/invoke.texi: Update description of -fsanitize=bounds.
19068 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
19070 * tree-ssa-phiopt.c (neg_replacement): Remove.
19071 (tree_ssa_phiopt_worker): Remove negate optimization.
19073 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19076 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
19078 2015-03-06 Richard Biener <rguenther@suse.de>
19080 PR middle-end/64928
19081 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
19082 and liveout_obstack members.
19083 (calculate_live_on_exit): Remove.
19084 (calculate_live_ranges): Change declaration.
19085 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
19086 (new_tree_live_info): Adjust.
19087 (calculate_live_ranges): Delete livein when not wanted.
19088 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
19089 Deal with partly deleted live info.
19090 (loe_visit_block): Remove temporary bitmap by using
19091 bitmap_ior_and_compl_into.
19092 (live_worklist): Adjust accordingly.
19093 (calculate_live_on_exit): Make static.
19094 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
19095 we do not need livein.
19097 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
19099 * real.c (real_from_string): Fix typo in assertion.
19101 2015-03-06 Alex Velenko <alex.velenko@arm.com>
19103 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
19106 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19108 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
19110 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
19113 * lra-assigns.c (find_hard_regno_for): Rename to
19114 find_hard_regno_for_1. Add a new parameter.
19115 (find_hard_regno_for): New function using find_hard_regno_for_1.
19117 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
19119 PR rtl-optimization/65067
19120 * expmed.c (store_bit_field, extract_bit_field): Reworked the
19121 strict volatile bitfield handling.
19123 2015-03-05 Martin Liska <mliska@suse.cz>
19126 * ipa-icf.c (sem_variable::equals): Compare variables types.
19128 2015-03-05 Richard Henderson <rth@redhat.com>
19131 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
19132 correctly check weak symbol binding.
19134 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
19136 PR middle-end/65315
19137 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
19140 2015-03-05 Martin Liska <mliska@suse.cz>
19142 * ipa-inline.c (inline_small_functions): Set default value to
19143 prevent warning during bootstrap.
19144 * tree.h: Add pragma guard that ignores false positives during
19147 2015-03-05 Richard Biener <rguenther@suse.de>
19149 PR tree-optimization/65310
19150 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19151 Properly preserve alignment of the base of the access.
19153 2015-03-05 Richard Biener <rguenther@suse.de>
19156 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
19157 Compare dependence info.
19159 2015-03-05 Richard Biener <rguenther@suse.de>
19161 PR middle-end/65233
19162 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
19164 (walk_ssa_copies): Revert last chage. Instead do not walk
19165 SSA names registered for SSA update.
19167 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19170 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
19171 vtable references for their containing type.
19172 (sem_function::equals_wpa): Compare TYPE_RESTRICT
19173 and type attributes.
19175 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
19177 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
19178 before negating it.
19179 * stor-layout.c (finalize_record_size): Revert latest change.
19181 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
19183 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
19185 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19187 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
19188 for correct comdat handling.
19189 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
19191 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
19192 (used_from_object_file_p_worker): Remove.
19193 (cgraph_node::only_called_directly_or_alised): Add
19194 used_from_object_file_p.
19195 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
19196 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
19197 can_remove_if_no_direct_calls_and_refs_p.
19199 2015-03-04 Nick Clifton <nickc@redhat.com>
19201 * config/rl78/rl78.h (enum reg_class): Remove real registers from
19202 General register class.
19203 * config/rl78/rl78-real.md: Replace general register constraints
19204 with real+virtual register constraints.
19206 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19208 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
19209 from checking for -mhtm option.
19211 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19213 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
19214 (struct ipa_sra_check_caller_data): Add has_thunk field.
19215 (ipa_sra_check_caller): Check for thunk.
19216 (ipa_sra_preliminary_function_checks): Give up on function with
19218 (ipa_early_sra): Use call_for_symbol_and_aliases.
19220 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
19223 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
19224 called for __stack_chk_guard symbol.
19226 2015-03-03 DJ Delorie <dj@redhat.com>
19228 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
19230 (*addhi3_real): Likewise.
19231 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
19232 pattern to match incrementing memory.
19233 * config/rl78/predicates.md (rl78_1_2_operand): New.
19234 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
19235 it's the same and only mem.
19236 (rl78_alloc_physical_registers_op2): If there's effectively only
19237 one MEM, transcode it into HL.
19238 (rl78_far_p): Reject addresses that aren't legitimate.
19240 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
19242 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
19245 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
19247 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
19249 Implement call0 ABI for xtensa
19250 * config/xtensa/constraints.md ("a" constraint): Include stack
19251 pointer in case of call0 ABI.
19252 ("q" constraint): Make empty in case of call0 ABI.
19253 ("D" constraint): Include stack pointer in case of call0 ABI.
19254 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
19255 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
19257 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
19259 (xtensa_regno_to_class): Make it a local variable in the
19260 function xtensa_regno_to_class.
19261 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
19262 macro, function prototype and implementation.
19263 (reg_nonleaf_alloc_order): Make it a local variable in the
19264 function order_regs_for_local_alloc.
19265 (xtensa_conditional_register_usage): New function.
19266 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
19267 (xtensa_valid_move): Allow direct moves to stack pointer
19268 register in call0 ABI.
19269 (xtensa_setup_frame_addresses): Only spill register windows in
19271 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
19272 call0 ABI respectively.
19273 (xtensa_function_arg_1): Only mark a7 register for copying in
19275 (xtensa_call_save_reg): New function.
19276 (compute_frame_size): Add space for callee saved register
19277 storage to the frame size in call0 ABI.
19278 (xtensa_expand_prologue): Generate code to set up stack frame
19279 and save callee-saved registers in call0 ABI.
19280 (xtensa_expand_epilogue): New function.
19281 (xtensa_set_return_address): New function.
19282 (xtensa_return_addr): Calculate return address in call0 ABI.
19283 (xtensa_builtin_saveregs): Only mark a7 register for copying and
19284 emit copying code in windowed ABI.
19285 (order_regs_for_local_alloc): Add preferred register allocation
19286 order for non-leaf function in call0 ABI.
19287 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
19288 (xtensa_asm_trampoline_template): Add trampoline generation for
19290 (xtensa_trampoline_init): Add trampoline initialization for
19292 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
19294 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
19295 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
19296 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
19297 ABI call-used registers.
19298 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
19299 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
19301 (REG_CLASS_CONTENTS): Include all registers into the preferred
19302 reload registers set, adjust the set in the
19303 xtensa_conditional_register_usage.
19304 (xtensa_regno_to_class): Drop variable declaration.
19305 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
19307 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
19309 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
19310 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
19311 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
19312 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
19313 location in call0 ABI.
19314 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
19315 stack adjustment size when handling exception.
19316 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
19317 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
19319 ("return" pattern): Generate ret.n/ret in call0 ABI.
19320 ("epilogue" pattern): Expand epilogue.
19321 ("nonlocal_goto" pattern): Use default in call0 ABI.
19322 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
19323 emit eh_set_a0_* depending on ABI.
19324 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
19325 ("eh_set_a0_call0", "blockage"): New patterns.
19327 2015-03-03 Martin Liska <mliska@suse.cz>
19330 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
19332 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19335 * config/rs6000/rs6000-tables.opt: Regenerate table.
19337 2015-03-03 Renlin Li <renlin.li@arm.com>
19339 * doc/md.texi (@item ^): Change ? into ^.
19341 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
19343 * doc/tm.texi: Regenerated.
19345 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
19347 * builtins.c (expand_builtin_return_addr): Add
19348 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
19349 surrounding #ifdef.
19350 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
19352 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
19354 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
19356 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
19359 2015-03-03 Martin Jambor <mjambor@suse.cz>
19360 Eric Botcazou <ebotcazou@adacore.com>
19362 * tree-sra.c (ipa_sra_check_caller_data): New type.
19363 (has_caller_p): Removed.
19364 (ipa_sra_check_caller): New function.
19365 (ipa_sra_preliminary_function_checks): Use it.
19367 2015-03-03 Martin Liska <mliska@suse.cz>
19369 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
19370 instead of if branch.
19372 2015-03-03 Martin Liska <mliska@suse.cz>
19375 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
19377 2015-03-23 Jeff Law <law@redhat.com>
19379 PR tree-optimization/65241
19380 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
19381 hash table if INSERT is true.
19383 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19386 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
19388 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19391 * config/avr/avr.c (context.h, tree-pass.h): Include them.
19392 (avr_pass_data_recompute_notes): New static variable.
19393 (avr_pass_recompute_notes): New class.
19394 (avr_register_passes): New static function.
19395 (avr_option_override): Call it.
19397 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19399 Fix various problems with specs file generation.
19402 * config.gcc (extra_gcc_objs) [avr]: Remove.
19403 * config/avr/driver-avr.c: Remove file.
19404 * config/avr/t-avr (driver-avr.o): Remove rule.
19405 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
19406 INCLUDES to build. Depend on TM_H.
19407 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
19408 build warnings. Fix non-matching types and non-existing %-codes.
19410 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
19411 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
19412 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
19413 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
19414 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
19415 (LIBGCC_SPEC): Remove definitions.
19417 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
19419 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
19420 to create a register in testing mode.
19422 2015-03-03 Martin Liska <mliska@suse.cz>
19423 Jan Hubicka <hubicka@ucw.cz>
19426 * cgraph.c (cgraph_node::has_thunk_p): New function.
19427 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
19428 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
19429 (sem_function::merge): Assert is changed.
19431 2015-03-03 Martin Liska <mliska@suse.cz>
19432 Martin Jambor <mjambor@suse.cz>
19435 * ipa-icf.c (sem_item_optimizer::execute): Change function
19436 return value to boolean.
19437 (sem_item_optimizer::merge_classes): Likewise.
19438 (ipa_icf_driver): Return TODO_remove_functions in case there's
19439 a merge operation processed.
19440 * ipa-icf.h: Change function return value to boolean.
19442 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19445 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
19446 processor type for 64-bit little endian PowerPC.
19448 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
19449 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
19450 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
19451 printing built-in mask so it does not pass NULL pointers.
19453 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
19456 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
19459 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
19460 !ISA_HAS_FP_CONDMOVE.
19462 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
19464 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
19467 2015-03-02 Ulrich Drepper <drepper@gmail.com>
19469 * doc/invoke.texi (Options for Code Generation Conventions):
19470 Fix URL of DSO paper.
19472 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19475 * ipa-inline.c (check_callers): Looks for recursion.
19476 (inline_to_all_callers): Give up on uninlinable or recursive edges.
19477 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
19478 summary of inline clones.
19479 (do_estimate_growth_1): Fix recursion check.
19481 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19484 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
19487 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19488 Aldy Hernandez <aldyh@redhat.com>
19491 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
19492 when checking TYPE_BINFO.
19494 2015-03-02 Richard Biener <rguenther@suse.de>
19497 * ipa-icf-gimple.c: Include builtins.h.
19498 (func_checker::compare_memory_operand): Compare base alignment.
19500 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
19503 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
19504 are never passed by reference.
19506 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
19509 * tree-chkp.c (chkp_check_lower): Don't check against
19510 zero bounds for already instrumented functions.
19511 (chkp_check_upper): Likewise.
19512 (chkp_fini): Clean pass local data to avoid wrong reusage.
19514 2015-02-28 Martin Liska <mliska@suse.cz>
19515 Jan Hubicka <hubicka@ucw.cz>
19517 * ipa-icf.c (sem_variable::equals): Improve debug output;
19518 get variable constructor.
19519 (sem_variable::parse): Do not filter out too early; give up on
19520 volatile and register vars.
19521 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
19523 * ipa-icf.h (sem_variable::init): Do not set ctor.
19524 (sem_variable::ctor): Remove.
19526 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
19528 PR middle-end/65233
19529 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
19531 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19533 * ipa-icf.c: Include stor-layout.h
19534 (sem_function::compare_cgraph_references): Rename to ...
19535 (sem_item::compare_cgraph_references): ... this one.
19536 (sem_variable::equals_wpa): New function
19537 (sem_variable::equals): Do not check stuff already verified by
19539 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
19540 * ipa-icf.h (sem_item): Add compare_cgraph_references.
19541 (sem_function): Remove compare_cgraph_references.
19542 (sem_variable): Turns equals_wpa into non-inline.
19544 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19546 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
19547 (sem_item::add_expr): New function.
19548 (sem_function::hash_stmt): Handle operands of most statements.
19549 (sem_variable::get_hash): Hash the actual constructor.
19550 * ipa-icf.h (sem_item): Add add_expr.
19551 (sem_function): Update prototype of hash_stmt
19553 2015-02-28 Martin Liska <mliska@suse.cz>
19554 Jan Hubicka <hubicka@ucw.cz>
19557 * ipa-icf-gimple.c (func_checker::compare_function_decl):
19559 (func_checker::compare_variable_decl): Skip symtab vars.
19560 (func_checker::compare_cst_or_decl): Update.
19561 * ipa-icf.c (sem_function::parse): Do not consider aliases.
19562 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
19563 use correct symtab predicates.
19564 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
19565 (sem_variable::parse): Update comment.
19566 (sem_item_optimizer::build_graph): Consider ultimate aliases
19569 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19571 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
19574 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19576 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
19577 (sem_variable::merge) Likewise.
19579 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19581 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
19582 target; also match flag_ipa_devirt.
19584 2015-03-01 Martin Liska <mliska@suse.cz>
19585 Jan Hubicka <hubicka@ucw.cz>
19587 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
19588 Validate variable alignment.
19589 * ipa-icf.c (sem_function::equals_private): Be more precise
19590 about non-common function attributes.
19591 (sem_variable::equals): Likewise.
19593 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19596 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
19597 across COMDAT group boundary.
19599 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19602 * ipa-icf.c (clear_decl_rtl): New function.
19603 (sem_function::merge): Clear RTL before forming alias.
19604 (sem_variable::merge): Clear RTL before forming alias.
19606 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19609 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
19611 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
19613 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
19616 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19618 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
19619 a typo in the description.
19621 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19624 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
19625 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
19626 * lra-constraints.c: Include "params.h".
19627 (EBB_PROBABILITY_CUTOFF): Use
19628 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
19629 (lra_inheritance): Use '<' instead of '<=' for
19630 EBB_PROBABILITY_CUTOFF.
19631 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
19634 2015-02-27 Martin Liska <mliska@suse.cz>
19636 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
19637 vector length condition.
19639 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
19641 * doc/extend.texi (x86 transactional memory intrinsics):
19642 Reorganize discussion of _xbegin. Clarify that the return
19643 value is a bit mask. Expand example and move to end of section.
19645 2015-02-26 Jakub Jelinek <jakub@redhat.com>
19646 Aldy Hernandez <aldyh@redhat.com>
19648 PR rtl-optimization/65220
19649 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
19651 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19654 * lra-remat.c (update_scratch_ops): New.
19655 (do_remat): Call it.
19656 * lra.c (lra_register_new_scratch_op): New. Take code from ...
19657 (remove_scratches): ... here.
19658 * lra-int.h (lra_register_new_scratch_op): New prototype.
19660 2015-02-27 Marek Polacek <polacek@redhat.com>
19663 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
19664 -Wformat-signedness anymore.
19666 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19668 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
19670 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
19672 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19674 * config/s390/s390.c (enum s390_builtin):
19675 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
19676 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
19677 (s390_init_builtins): Generate new builtin functions.
19678 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
19679 (s390_sfpc, s390_efpc): New pattern definitions.
19681 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19683 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
19684 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
19685 (s390_builtin_decls): New array.
19686 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
19687 (s390_builtin_decl): New function.
19688 (TARGET_BUILTIN_DECL): Define macro.
19690 2015-02-27 Richard Biener <rguenther@suse.de>
19692 PR middle-end/63175
19693 * builtins.c (get_object_alignment_2): Make sure to re-apply
19694 the ANDed mask after recursing to its operand gets us a new
19695 misalignment bit position.
19697 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
19698 Martin Liska <mliska@suse.cz>
19701 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
19702 Use address_matters_p.
19703 (redirect_all_callers, set_addressable): New functions.
19704 (sem_function::merge): Reorganize and fix merging issues.
19705 (sem_variable::merge): Likewise.
19706 (sem_variable::compare_sections): Remove.
19707 * common.opt (fmerge-all-constants, fmerge-constants): Remove
19709 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
19711 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
19713 (address_matters_1): New function.
19714 (symtab_node::address_matters_p): New function.
19715 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
19716 check for merged flag.
19717 * cgraph.h (address_matters_p): Declare.
19718 (symtab_node::address_taken_from_non_vtable_p): Remove.
19719 (symtab_node::address_can_be_compared_p): New method.
19720 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
19721 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
19723 (comdat_can_be_unshared_p_1) Use address_matters_p.
19724 (update_vtable_references): Fix formating.
19725 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
19726 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
19727 * cgraphclones.c: Preserve merged and icf_merged flags.
19729 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
19731 * doc/extend.texi (Function Attributes): Fix spelling and typos.
19732 (Label Attributes): Likewise.
19733 (Cilk Plus Builtins): Likewise.
19734 (ARC SIMD Built-in Functions): Likewise.
19735 (ARM C Language Extensions (ACLE)): Likewise.
19736 (PowerPC Built-in Functions): Likewise.
19737 (PowerPC Hardware Transactional Memory Built-in Functions):
19740 2015-02-26 Jakub Jelinek <jakub@redhat.com>
19742 PR tree-optimization/65216
19743 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
19744 new stmt and new SSA_NAME for lhs whenever the arguments have
19745 changed and weren't just swapped. Fix comment typo.
19747 PR tree-optimization/65215
19748 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
19749 for PDP endian targets.
19750 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
19751 Fix up formatting issues.
19752 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
19753 size is smaller than the original, adjust MEM_REF offset by the
19754 difference of sizes. Use is_gimple_mem_ref_addr instead of
19755 is_gimple_min_invariant test to avoid adding address temporaries.
19757 2015-02-26 Martin Liska <mliska@suse.cz>
19758 Jan Hubicka <hubicka@ucw.cz>
19761 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
19762 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
19763 (sem_item_optimizer::process_cong_reduction): Include division by
19764 sensitive references.
19765 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
19766 * ipa-ref.c (ipa_ref::address_matters_p): New function.
19767 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
19769 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
19772 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
19774 * config/avr/avr.c: Same.
19775 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
19776 Refuse any constant address not in 0..0xbf.
19777 * config/avr/avr.md (*mov<mode>, *movsf): Remove
19778 tiny_valid_direct_memory_access_range from insn conditions.
19779 (mov<mode>): Don't special-case expansion of avrtiny addresses.
19781 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
19784 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
19785 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
19786 * config/sh/predicates.md (const_logical_operand): New predicate.
19787 * config/sh/sh.md: Add new peephole2 patterns.
19789 2015-02-26 Marek Polacek <polacek@redhat.com>
19792 * ipa-inline.c (early_inliner): Recompute inline parameters.
19794 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19797 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
19798 instructions with TImode operands are included in the analysis.
19800 2015-02-26 Sebastian Pop <s.pop@samsung.com>
19802 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
19803 of an EDGE_FSM_THREAD.
19805 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19807 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
19809 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
19812 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
19814 2015-02-26 Sebastian Pop <s.pop@samsung.com>
19816 PR tree-optimization/65048
19817 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
19818 (thread_through_all_blocks): Call valid_jump_thread_path.
19819 Remove invalid FSM jump-thread paths.
19821 2015-02-26 Jakub Jelinek <jakub@redhat.com>
19823 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
19824 (ipa_write_optimization_summaries): Likewise.
19825 * tree-streamer.h: Include data-streamer.h.
19826 (streamer_mode_table): Declare extern variable.
19827 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
19828 * lto-streamer-out.c (lto_output_init_mode_table,
19829 lto_write_mode_table): New functions.
19830 (produce_asm_for_decls): Call lto_write_mode_table when streaming
19832 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
19833 (lto_create_simple_input_block): Add mode_table argument to the
19834 lto_input_block constructors.
19835 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
19837 * data-streamer-in.c (string_for_index): Likewise.
19838 * ipa-inline-analysis.c (inline_read_section): Likewise.
19839 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
19840 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
19841 * lto-streamer-in.c (lto_read_body_or_constructor,
19842 lto_input_toplevel_asms): Likewise.
19843 (lto_input_mode_table): New function.
19844 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
19845 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
19846 Use bp_pack_machine_mode.
19847 * real.h (struct real_format): Add name field.
19848 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
19849 (class lto_input_block): Add mode_table member.
19850 (lto_input_block::lto_input_block): Add mode_table_ argument,
19851 initialize mode_table.
19852 (struct lto_file_decl_data): Add mode_table field.
19853 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
19854 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
19855 unpack_ts_decl_common_value_fields,
19856 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
19857 * tree-streamer.c (streamer_mode_table): New variable.
19858 * real.c (ieee_single_format, mips_single_format,
19859 motorola_single_format, spu_single_format, ieee_double_format,
19860 mips_double_format, motorola_double_format,
19861 ieee_extended_motorola_format, ieee_extended_intel_96_format,
19862 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
19863 ibm_extended_format, mips_extended_format, ieee_quad_format,
19864 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
19865 decimal_single_format, decimal_double_format, decimal_quad_format,
19866 ieee_half_format, arm_half_format, real_internal_format): Add name
19868 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
19870 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
19873 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
19874 reordering for selective scheduling.
19876 2015-02-26 Terry Guo <terry.guo@arm.com>
19878 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
19879 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
19880 (arm_arch_no_volatile_ce): Declare new global variable.
19881 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
19882 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
19883 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
19884 (TARGET_NO_VOLATILE_CE): New macro.
19885 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
19886 volatile memory access in IT block
19888 2015-02-25 Kai Tietz <ktietz@redhat.com>
19890 PR tree-optimization/61917
19891 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
19892 that reduc_def_stmt is null.
19894 2015-02-25 Martin Liska <mliska@suse.cz>
19896 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
19897 hard register variables.
19899 2015-02-25 Kai Tietz <ktietz@redhat.com>
19902 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
19903 (symtab::noninterposable_alias): Likewise.
19905 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
19908 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
19910 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
19912 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
19915 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
19916 as split condition; force split via '#' in output pattern.
19918 2015-02-25 Richard Biener <rguenther@suse.de>
19919 Kai Tietz <ktietz@redhat.com>
19921 PR tree-optimization/61917
19922 * tree-vect-loop.c (vectorizable_reduction): Allow
19923 vect_internal_def without reduction to exit graceful.
19925 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
19928 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
19929 only with NONDEBUG_INSN_P.
19931 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
19933 Use variadic macros with avr-log.c.
19935 * config/avr/avr-protos.h (avr_vdump): New prototype.
19936 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
19937 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
19938 * config/avr/avr-log.c: Adjust comments.
19939 (avr_vdump): New function.
19940 (avr_vadump): Pass caller as 2nd argument instead of format string.
19941 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
19942 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
19944 2015-02-25 Jakub Jelinek <jakub@redhat.com>
19947 * target.def (target_option_stream_in): New target hook.
19948 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
19949 targetm.target_option.post_stream_in if non-NULL.
19950 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
19951 * doc/tm.texi: Updated.
19952 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
19954 (TARGET_OPTION_POST_STREAM_IN): Redefine.
19956 2015-02-24 Jeff Law <law@redhat.com>
19959 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
19960 of operand 0 and operand 2.
19961 (zero_cost_loop_end, loop_end): Similarly.
19963 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
19965 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
19968 2015-02-24 DJ Delorie <dj@redhat.com>
19970 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
19971 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
19972 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
19973 instead of hardcoding SImode.
19975 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
19977 * omp-low.c (create_omp_child_function): Tag entrypoint
19978 functions with a special attribute.
19980 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
19983 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
19985 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
19987 PR rtl-optimization/65123
19988 * lra-remat.c (operand_to_remat): Check hard regs in insn
19991 2015-02-24 Nick Clifton <nickc@redhat.com>
19993 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
19996 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
19999 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
20000 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
20001 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
20002 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
20003 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
20004 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
20005 (BUILT_IN_GOACC_PARALLEL): Specify as
20006 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
20007 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
20008 * builtin-types.def
20009 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
20010 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
20011 Remove function types.
20012 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
20013 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
20014 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
20015 New function types.
20017 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
20019 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
20021 2015-02-24 Jakub Jelinek <jakub@redhat.com>
20023 PR tree-optimization/65170
20024 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
20025 if val[1] < 0, clear also val[2] and return 3.
20027 2015-02-24 Alan Modra <amodra@gmail.com>
20030 * config/rs6000/rs6000.c (get_memref_parts): Only return true
20031 when *base is a reg. Handle nested plus addresses. Simplify
20034 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
20036 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
20037 use natural alignment when optimizing for size.
20039 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
20042 * config/sh/sh.md (movsicc_true+3): Remove peephole.
20043 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
20044 * config/sh/sh.c (replace_n_hard_rtx): Remove.
20046 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
20049 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
20050 too big for a wide_int. Implement missing wrapping operation.
20052 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
20055 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
20056 instead of const_int 4294901760.
20058 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
20060 * config/avr/t-avr: Fix typo in comment.
20062 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
20064 * doc/rtl.texi (fma): Clarify documentation.
20066 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
20069 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
20070 over input_location.
20072 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
20074 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
20075 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
20076 restrict alignments to absolute_biggest_alignment.
20077 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
20079 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
20080 * doc/tm.texi: Regenerate.
20081 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
20083 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
20086 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
20088 2015-02-20 Richard Biener <rguenther@suse.de>
20090 PR tree-optimization/65136
20091 * tree-ssa-propagate.c: Include cfgloop.h.
20092 (replace_phi_args_in): Avoid replacing loop latch edge PHI
20093 arguments with constants.
20095 2015-02-20 Jakub Jelinek <jakub@redhat.com>
20096 Martin Liska <mliska@suse.cz>
20099 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
20100 don't try to create_thunk if stdarg_p. If
20101 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
20102 redirect_callers if possible.
20103 (sem_item_optimizer::execute): Call unregister_hooks here...
20104 (ipa_icf_driver): ... instead of here.
20106 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20108 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
20109 Mark operand 0 as earlyclobber in 2nd alternative.
20110 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
20111 Write negated shift amount into QI lowpart operand 0 and use it
20113 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20115 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
20117 * cgraph.h (clone_function_name_1): Declare.
20118 * cgraphclones.c (clone_function_name_1): New function.
20119 (clone_function_name): Use it.
20120 * lto-partition.c: Include "stringpool.h".
20121 (must_not_rename, maybe_rewrite_identifier)
20122 (validize_symbol_for_target): New static functions.
20123 (privatize_symbol_name): Use must_not_rename.
20124 (promote_symbol): Call validize_symbol_for_target.
20125 (lto_promote_cross_file_statics): Likewise.
20126 (lto_promote_statics_nonwpa): Likewise.
20128 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
20131 * config/avr/avr.md (pushhi_insn): New insn.
20132 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
20134 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
20135 Jakub Jelinek <jakub@redhat.com>
20137 * tree-streamer.c (preload_common_nodes): Don't preload
20138 TI_VA_LIST* for offloading.
20139 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
20142 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
20144 * config/pa/pa.c (pa_emit_move_sequence): Always force
20145 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
20148 * config/pa/pa.c (pa_reloc_rw_mask): New function.
20149 (TARGET_ASM_RELOC_RW_MASK): Define.
20150 (pa_cannot_force_const_mem): Revert previous change.
20152 2015-02-19 Martin Jambor <mjmabor@suse.cz>
20153 Jan Hubicka <hubicka@ucw.cz>
20156 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
20157 across jump functions.
20159 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
20161 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
20163 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
20165 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
20167 2015-02-19 Richard Henderson <rth@redhat.com>
20169 PR middle-end/65074
20170 * varasm.c (default_binds_local_p_2): Don't test node->definition;
20171 test DECL_EXTERNAL independent of symtab_node.
20173 2015-02-19 Jakub Jelinek <jakub@redhat.com>
20176 * varpool.c (varpool_node::get_constructor): Return early
20177 if this->lto_file_data is NULL.
20179 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20181 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
20182 (rank_for_schedule_debug): Update.
20183 (ready_sort): Make static. Move sorting logic to ...
20184 (ready_sort_debug, ready_sort_real): New static functions.
20185 (schedule_block): Sort both debug insns and real insns in preparation
20186 for ready list trimming. Improve debug output.
20187 * sched-int.h (ready_sort): Remove global declaration.
20189 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
20191 * ipa-icf.c (sem_function::equals_private): Adjust.
20192 (sem_function::bb_dict_test): Take a vec<int> * instead of
20194 * ipa-icf.h (bb_dict_test): Likewise.
20196 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20198 PR gcov-profile/64634
20199 * tree-eh.c (frob_into_branch_around): Fix up typos
20200 in function comment.
20201 (lower_catch): Put eh_seq resulting from EH lowering of
20202 the cleanup sequence after the cleanup rather than before it.
20204 2015-02-18 Tom de Vries <tom@codesourcery.com>
20206 * common.opt (fstdarg-opt): New option.
20207 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
20208 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
20209 (@item -fstdarg-opt): New item.
20211 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
20214 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
20215 for common symbols.
20217 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20219 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
20221 (ALL_HOST_OBJS): Add mkoffload.o.
20222 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
20224 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
20226 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
20227 (compare_virtual_tables): Be smarter about skipping typeinfos;
20228 do sane output on virtual table table mismatch.
20229 (warn_odr): Be ready for forward declarations of enums;
20230 output sane info on base mismatch and virtual table mismatch.
20231 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
20232 when only one type is polymorphic.
20233 (get_odr_type): Fix hashtable corruption.
20234 (dump_odr_type): Dump mangled names.
20236 2015-02-18 Richard Biener <rguenther@suse.de>
20238 PR tree-optimization/65063
20239 * tree-predcom.c (determine_unroll_factor): Return 1 if we
20240 have replaced looparound PHIs.
20242 2015-02-18 Martin Liska <mliska@suse.cz>
20244 * lto-streamer.c (lto_streamer_init): Encapsulate
20245 streamer_check_handled_ts_structures with checking macro.
20247 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20250 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
20251 section if !implicit_section.
20252 (cgraph_node::create_version_clone_with_body): Likewise.
20253 * trans-mem.c (ipa_tm_create_version): Likewise.
20255 2015-02-18 Richard Biener <rguenther@suse.de>
20257 PR tree-optimization/62217
20258 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
20261 2015-02-18 Marek Polacek <polacek@redhat.com>
20264 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
20265 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
20266 is in range [-16K, -1]. Don't issue run-time error if
20267 (ptr > ptr + offset).
20269 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
20271 * doc/install.texi (nvptx-*-none): New section.
20272 * doc/invoke.texi (Nvidia PTX Options): Likewise.
20273 * config/nvptx/nvptx.opt: Update.
20275 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
20276 (access_check): New functions, copied from
20277 config/i386/intelmic-mkoffload.c.
20278 (main): For non-installed testing, look in all COMPILER_PATHs for
20281 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
20283 2015-02-18 Andrew Pinski <apinski@cavium.com>
20284 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
20286 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
20287 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
20289 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
20291 * ipa-visibility.c (function_and_variable_visibility): Only
20292 check locality if node is not already local.
20293 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
20294 call_for_symbol_and_aliases instead of
20295 call_for_symbol_thunks_and_aliases.
20296 (ipa_inline): Likewise.
20297 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20298 first walk aliases.
20299 * ipa.c (symbol_table::remove_unreachable_nodes): Use
20300 call_for_symbol_and_aliases.
20301 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
20302 (ipa_propagate_frequency_1): Use it; use opt_for_fn
20303 (ipa_propagate_frequency): Update.
20304 (ipa_profile): Add opt_for_fn gueards.
20306 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
20308 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
20309 * doc/invoke.texi (SH options): Document it.
20310 * config/sh/sh.c (sh_insn_length_adjustment): Check
20311 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
20313 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
20315 * common.opt (fipa-cp-alignment): New.
20316 * ipa-cp.c (ipcp_store_alignment_results): Check
20317 flag_ipa_cp_alignment.
20318 * opts.c (default_options_table): Enable -fipa-cp-alignment for
20320 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
20321 * doc/invoke.texi: Document -fipa-cp-alignment.
20323 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
20326 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
20327 to nil. Adjust comments.
20329 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
20331 * ipa-visibility.c (function_and_variable_visibility): Only
20332 check locality if node is not already local.
20333 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
20334 call_for_symbol_and_aliases instead of
20335 call_for_symbol_thunks_and_aliases.
20336 (ipa_inline): Likewise.
20337 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20338 first walk aliases.
20339 * ipa.c (symbol_table::remove_unreachable_nodes): Use
20340 call_for_symbol_and_aliases.
20341 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
20342 (ipa_propagate_frequency_1): Use it; use opt_for_fn
20343 (ipa_propagate_frequency): Update.
20344 (ipa_profile): Add opt_for_fn guards.
20346 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
20348 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
20349 skipping of "strange" tokens.
20351 2015-02-17 Jeff Law <law@redhat.com>
20353 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
20356 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
20358 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
20359 as forcing a HARD_DEP between instructions, thereby
20360 disallowing rewriting to break dependencies.
20362 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
20364 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
20365 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
20366 variables in boundary that have no inlitalizer encoded and are
20368 * varasm.c (default_binds_local_p_2): External definitions do not
20369 count as definitions here.
20371 2015-02-16 Jeff Law <law@redhat.com>
20373 PR tree-optimization/64823
20374 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
20376 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
20377 threading through blocks with PHIs, but no statements.
20378 (thread_through_normal_block): Distinguish between blocks where
20379 we did not process all the statements and blocks with no statements.
20381 2015-02-16 Jakub Jelinek <jakub@redhat.com>
20382 James Greenhalgh <james.greenhalgh@arm.com>
20385 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
20386 section if not linkonce. Fix up formatting.
20387 (cgraph_node::create_version_clone_with_body): Copy section.
20388 * trans-mem.c (ipa_tm_create_version): Likewise.
20390 2015-02-16 Richard Biener <rguenther@suse.de>
20392 PR tree-optimization/65077
20393 * tree-ssa-structalias.c (get_constraint_for_1): Handle
20394 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
20395 (find_func_aliases): Allow float values to carry pointers again.
20397 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
20399 * doc/install.texi (Specific): Reorder targets list to put
20400 aarch64 in alphabetical order. Add a link to aarch64*-*-*
20403 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
20404 David Edelsohn <dje.gcc@gmail.com>
20407 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
20408 mapping class to external variable or function reference.
20409 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
20412 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
20415 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
20416 ASM_WEAKEN_DECL if defined.
20418 2015-02-16 Richard Biener <rguenther@suse.de>
20421 * varasm.c (default_file_start): For LTO produced units
20422 emit <artificial> as file directive.
20424 2015-02-16 Richard Biener <rguenther@suse.de>
20426 PR tree-optimization/63593
20427 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
20428 stmts and releasing SSA names until...
20429 (execute_pred_commoning): ... after processing all chains.
20431 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
20434 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
20435 external functions.
20437 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
20439 * doc/bugreport.texi: Adjust section titles throughout the file
20440 to use "Title Case".
20441 * doc/extend.texi: Likewise.
20442 * doc/gcov.texi: Likewise.
20443 * doc/implement-c.texi: Likewise.
20444 * doc/implement-cxx.texi: Likewise.
20445 * doc/invoke.texi: Likewise.
20446 * doc/objc.texi: Likewise.
20447 * doc/standards.texi: Likewise.
20448 * doc/trouble.texi: Likewise.
20450 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
20452 * cgraph.h (symtab_node::has_aliases_p): Simplify.
20453 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
20454 * tree.c (lookup_binfo_at_offset): Make static.
20455 (get_binfo_at_offset): Do not shadow offset; add explanatory
20458 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
20460 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
20461 for all floading point loads and stores except those using a register
20463 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
20466 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
20468 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
20469 (do_estimate_growth_1): Record if any uninlinable edge was seen.
20470 (estimate_growth): Handle uninlinable edges correctly.
20471 (check_callers): New.
20472 (growth_likely_positive): Handle aliases correctly.
20474 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
20476 * ipa-chkp.c: Use iterate_direct_aliases.
20477 * symtab.c (resolution_used_from_other_file_p): Move inline.
20478 (symtab_node::create_reference): Fix formating.
20479 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
20480 (symtab_node::iterate_reference): Move inline.
20481 (symtab_node::iterate_referring): Move inline.
20482 (symtab_node::iterate_direct_aliases): Move inline.
20483 (symtab_node::used_from_object_file_p_worker): Inline into ...
20484 (symtab_node::used_from_object_file_p): ... this one; move inline.
20485 (symtab_node::call_for_symbol_and_aliases): Move inline;
20486 use iterate_direct_aliases.
20487 (symtab_node::call_for_symbol_and_aliases_1): New method.
20488 (cgraph_node::call_for_symbol_and_aliases): Move inline;
20489 use iterate_direct_aliases.
20490 (cgraph_node::call_for_symbol_and_aliases_1): New method.
20491 (varpool_node::call_for_node_and_aliases): Rename to ...
20492 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
20493 use iterate_direct_aliases.
20494 (varpool_node::call_for_symbol_and_aliases_1): New method.
20495 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
20496 (ipa_discover_readonly_nonaddressable_var): Update.
20497 * ipa-devirt.c: Fix formating.
20498 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
20500 (cgraph_node::call_for_symbol_and_aliases): Move inline.
20501 (cgraph_node::call_for_symbol_and_aliases_1): New function..
20502 * cgraph.h (used_from_object_file_p_worker): Remove.
20503 (resolution_used_from_other_file_p): Move inline.
20504 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
20505 (symtab_node::iterate_reference): Move inline.
20506 (symtab_node::iterate_referring): Move inline.
20507 (symtab_node::iterate_direct_aliases): Move inline.
20508 (symtab_node::used_from_object_file_p_worker): Inline into ...
20509 (symtab_node::used_from_object_file_p): Move inline.
20510 * tree-emutls.c (ipa_lower_emutls): Update.
20511 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
20512 (varpool_node::call_for_node_and_aliases): Remove.
20514 2015-02-14 Jakub Jelinek <jakub@redhat.com>
20516 PR tree-optimization/62209
20517 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
20518 op == range->exp, insert seq and gimplified code after labels
20519 instead of after the phi.
20521 2015-02-13 Jeff Law <law@redhat.com>
20524 Revert my change for tree-optimization/64823.
20526 2015-02-13 Jakub Jelinek <jakub@redhat.com>
20528 PR tree-optimization/65053
20529 * tree-ssa-phiopt.c (value_replacement): When moving assign before
20530 cond, either reset VR on lhs or set it to phi result VR.
20532 2015-02-13 Jeff Law <law@redhat.com>
20534 PR tree-optimization/64823
20535 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
20536 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
20537 threading through blocks with PHIs, but no statements.
20538 (thread_through_normal_block): Distinguish between blocks where
20539 we did not process all the statements and blocks with no statements.
20541 PR rtl-optimization/47477
20542 * match.pd (convert (plus/minus (convert @0) (convert @1): New
20543 simplifier to narrow arithmetic.
20545 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
20548 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
20549 polymorphic call info when type is not known to be preserved.
20551 2015-02-13 Maritn Jambor <mjambor@suse.cz>
20554 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
20555 (inline_call): Use it.
20557 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
20559 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
20560 GOMP_DEVICE_NVIDIA_PTX.
20562 2015-02-13 Jakub Jelinek <jakub@redhat.com>
20565 * stmt.c (emit_case_nodes): Use void_type_node instead of
20566 NULL_TREE as LABEL_DECL type.
20568 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
20570 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
20572 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
20573 symbolic references to data to be forced to constant memory on the
20576 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
20578 PR tree-optimization/65002
20579 * tree-cfg.c (pass_data_fixup_cfg): Don't update
20581 * tree-sra.c (some_callers_have_no_vuse_p): New.
20582 (ipa_early_sra): Reject functions whose callers
20583 assume function is read only.
20585 2015-02-13 Richard Biener <rguenther@suse.de>
20588 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
20589 for LTO produced CUs.
20591 2015-02-13 Bin Cheng <bin.cheng@arm.com>
20593 PR tree-optimization/64705
20594 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
20595 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
20596 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
20597 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
20598 expand_simple_operations.
20600 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
20601 Richard Henderson <rth@redhat.com>
20604 * cgraphunit.c (cgraph_node::finalize_function): Set definition
20605 before notice_global_symbol.
20606 (varpool_node::finalize_decl): Likewise.
20607 * varasm.c (default_binds_local_p_2): Rename from
20608 default_binds_local_p_1, add weak_dominate argument. Use direct
20609 returns instead of assigning to local variable. Unify varpool and
20610 cgraph paths via symtab_node. Reject undef weak variables before
20611 testing visibility. Reorder tests for simplicity.
20612 (default_binds_local_p): Use default_binds_local_p_2.
20613 (default_binds_local_p_1): Likewise.
20614 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
20616 (default_elf_asm_output_external): Emit visibility when specified.
20618 2015-02-13 Alan Modra <amodra@gmail.com>
20620 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
20621 code setting up r11 for out-of-line fp restore.
20623 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
20625 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
20626 (muser-mode): Likewise.
20628 2015-02-13 Alan Modra <amodra@gmail.com>
20630 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
20631 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
20633 2015-02-12 David Howells <dhowells@redhat.com>
20635 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
20637 * tree-ssa-uninit.c (dump_predicates): Likewise.
20638 * opts.c (print_filtered_help): Likewise.
20640 2015-02-12 Jakub Jelinek <jakub@redhat.com>
20642 * dwarf2out.c (output_die): Use "%s", name instead of name to
20643 avoid -Wformat-security warning.
20645 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
20646 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20647 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
20648 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20650 2015-02-12 Jason Merrill <jason@redhat.com>
20652 * common.opt (-flifetime-dse): New.
20654 2015-02-12 Jakub Jelinek <jakub@redhat.com>
20657 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
20659 PR tree-optimization/65014
20660 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
20661 use original second operand of arg0 or arg1 instead of
20662 that adjusted by STRIP_NOPS.
20664 2015-02-11 Jeff Law <law@redhat.com>
20667 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
20668 that needs to be queued, just queue it for a single cycle.
20670 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
20672 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
20673 bodies of thunks; comment on why.
20674 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
20675 symbols are extern.
20677 2015-02-11 Richard Henderson <rth@redhat.com>
20680 * tree-eh.c (mark_reachable_handlers): Mark source and destination
20681 regions of __builtin_eh_copy_values.
20683 2015-02-11 Jakub Jelinek <jakub@redhat.com>
20685 PR middle-end/65003
20686 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
20687 ultimate alias is MEM with SYMBOL_REF satisfying
20688 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
20689 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
20691 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
20693 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
20694 "diagnostic-core.h".
20695 (main): Initialize progname, and call diagnostic_initialize.
20697 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
20698 instead of __OPENMP_TARGET__.
20700 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
20701 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
20702 hard-coding PTX_ID.
20704 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
20706 * doc/sourcebuild.texi (pie_enabled): Document.
20708 2015-02-11 Martin Liska <mliska@suse.cz>
20711 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
20712 a return value for call to a function that is noreturn.
20714 2015-02-11 Richard Biener <rguenther@suse.de>
20717 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
20720 2015-02-11 Andrew Pinski <apinski@cavium.com>
20723 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
20724 Change the first argument type to size_type_node and add another
20726 (aarch64_simd_expand_builtin): Handle the new argument to
20727 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
20728 print an out when the first two arguments are not
20729 nonzero integer constants.
20730 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
20731 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
20733 2015-02-11 Jakub Jelinek <jakub@redhat.com>
20736 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
20737 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
20738 (ix86_set_current_function): Rewritten.
20739 (ix86_add_new_builtins): Temporarily clear current_target_pragma
20740 when creating builtin fndecls.
20742 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
20745 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
20747 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
20748 have no comdat group.
20749 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
20750 (lto_output_varpool_node): Always output alias info.
20751 (output_refs): Output refs of boundary aliases, too.
20752 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
20753 (output_symtab): Output call eges in thunks in boundary.
20754 (get_alias_symbol): Remove.
20755 (input_node, input_varpool_node): Do not special case weakrefs.
20756 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
20757 alias and thunks targets in the boundary; do not take removed symbols
20758 from their comdat groups.
20759 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
20760 (cgraph_node::global_info): Remove.
20761 (cgraph_node::rtl_info): Look through aliases and thunks.
20762 * cgrpah.h (global_info): Remove.
20763 (non_local_p): Remove.
20765 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
20766 Sandra Loosemore <sandra@codesourcery.com>
20768 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
20769 to inline asm. List dialects in proper order.
20771 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
20772 Sandra Loosemore <sandra@codesourcery.com>
20774 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
20776 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
20778 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
20779 modified) reference to Solaris.
20781 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
20783 * doc/extend.texi (Extended Asm): Fix typos.
20785 2015-02-10 Jakub Jelinek <jakub@redhat.com>
20788 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
20790 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
20793 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
20794 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
20795 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
20796 * config/sh/constraints.md (Ara, Add): New constraints.
20797 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
20799 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
20800 atomic_mem_operand_0. Don't use force_reg on the memory address.
20801 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
20802 Sra constraint. Convert to insn_and_split. Add workaround for
20804 (atomic_compare_and_swap<mode>_hard): Copy to
20805 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
20806 Use atomic_mem_operand_0 predicate.
20807 (atomic_compare_and_swap<mode>_soft_gusa,
20808 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
20809 AraAdd constraints.
20810 (atomic_compare_and_swap<mode>_soft_tcb,
20811 atomic_compare_and_swap<mode>_soft_imask,
20812 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
20813 atomic_mem_operand_0 predicate and SraSdd constraints.
20814 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
20816 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
20817 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
20818 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
20819 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
20820 force_reg on the memory address.
20821 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
20822 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
20823 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
20824 atomic_mem_operand_1 predicate and Sra constraint.
20825 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
20826 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
20827 Use atomic_mem_operand_1 predicate.
20828 (atomic_<fetchop_name><mode>_hard): Copy to
20829 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
20830 Use atomic_mem_operand_1 predicate.
20831 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
20832 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
20833 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
20834 insn_and_split. Use atomic_mem_operand_1 predicate.
20835 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
20836 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
20837 Use atomic_mem_operand_1 predicate.
20838 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
20839 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
20840 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
20841 in generated insn with original mem operand before emitting the insn.
20842 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
20843 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
20844 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
20845 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
20846 Use atomic_mem_operand_1 predicate and AraAdd constraints.
20847 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
20848 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
20849 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
20850 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
20851 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
20852 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
20853 atomic_not_fetch<mode>_soft_tcb,
20854 atomic_<fetchop_name>_fetch<mode>_soft_imask,
20855 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
20856 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
20857 Use atomic_mem_operand_1 predicate and SraSdd constraints.
20859 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
20861 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
20862 and 3 earlyclobber operands.
20864 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
20866 * common.opt (fstack-reuse): Mark as optimization.
20868 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
20871 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
20873 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
20875 PR tree-optimization/64326
20876 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
20878 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
20880 PR gcov-profile/61889
20881 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
20883 2015-02-10 Richard Biener <rguenther@suse.de>
20885 PR tree-optimization/64995
20886 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
20887 value we use is final.
20888 (visit_reference_op_store): Always valueize op.
20889 (visit_use): Properly valueize vuses.
20891 2015-02-10 Richard Biener <rguenther@suse.de>
20893 PR tree-optimization/64909
20894 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
20895 pass a scalar-stmt count estimate to the cost model.
20896 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
20898 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
20900 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
20901 enabled by default together with var-tracking.
20903 2015-02-10 Nick Clifton <nickc@redhat.com>
20905 * config/rl78/rl78.c: Remove DIV attribute code accidentally
20906 included in previous rl78 commit.
20908 2015-02-10 Richard Biener <rguenther@suse.de>
20910 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
20911 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
20912 return the bitpack.
20914 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
20916 PR gcov-profile/61889
20917 * config.in: regenerate.
20918 * configure.in: Likewise.
20919 * configure.ac: Check for ftw.h.
20920 * gcov-tool.c: Check for ftw.h before using nftw.
20922 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
20925 * ipa-visibility.c (update_visibility_by_resolution_info): Only
20926 assert when not in lto mode.
20928 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20930 * ira-color.c (setup_left_conflict_sizes_p): Simplify
20931 initialization/assignment of conflict_size.
20933 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
20936 * ipa-cp.c (gather_caller_stats): Skip thunks.
20937 (propagate_constants_topo): Skip aliases.
20939 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
20942 * config/sh/sh.c (sh_option_override): Don't change
20943 -freorder-blocks-and-partition to -freorder-blocks even when
20944 unwinding is enabled.
20945 (sh_can_follow_jump): Return false if the followee jump is
20946 a crossing jump when -freorder-blocks-and-partition is specified.
20947 * config/sh/sh.md (*jump_compact_crossing): New insn.
20949 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
20950 Kaz Kojima <kkojima@gcc.gnu.org>
20953 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
20954 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
20955 (sh_can_redirect_branch): Rename to ...
20956 (sh_can_follow_jump): ... this. Constify argument types.
20957 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
20958 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
20959 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
20960 * doc/tm.texi: Regenerate.
20962 2015-02-09 Jakub Jelinek <jakub@redhat.com>
20965 * builtins.c (expand_builtin): Call targetm.expand_builtin
20966 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
20968 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20971 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
20973 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20976 * ipa-icf.c (set_local): New function.
20977 (sem_function::merge): Use it.
20979 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20981 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
20982 (add_type_duplicate): Fix comparison of BINFOs.
20984 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20986 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
20987 on getting VOID pointer.
20989 2015-02-09 Jakub Jelinek <jakub@redhat.com>
20992 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
20995 2015-02-09 Richard Biener <rguenther@suse.de>
20997 * genmatch.c (replace_id): Copy expr_type.
20999 2015-02-09 Richard Biener <rguenther@suse.de>
21001 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
21002 (streamer_write_tree_bitfields): Declare.
21003 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
21004 properly unpack padding.
21005 (unpack_value_fields): Inline ...
21006 (streamer_read_tree_bitfields): ... here.
21007 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
21008 and properly add padding bits.
21009 (streamer_pack_tree_bitfields): Fold into ...
21010 (streamer_write_tree_bitfields): ... this new function,
21011 exposing the bitpack object.
21012 * lto-streamer-out.c (lto_write_tree_1): Call
21013 streamer_write_tree_bitfields.
21015 2015-02-09 Richard Biener <rguenther@suse.de>
21017 PR tree-optimization/54000
21018 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
21019 (struct ivopts_data): Add loop_loc member.
21020 (tree_ssa_iv_optimize_loop): Dump loop location.
21021 (create_new_ivs): Likewise, also dump number of IVs generated.
21023 2015-02-09 Martin Liska <mliska@suse.cz>
21025 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
21026 just if not yet registered.
21027 (ipa_icf_generate_summary): Register callgraph hooks.
21029 2015-02-08 Andrew Pinski <apinski@cavium.com>
21031 * config/aarch64/aarch64.c (gty_dummy): Delete.
21033 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21036 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
21037 (cgraph_node::local_p): Remove thunk related FIXME.
21039 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21042 * i386.c (ix86_function_regparm): Look through aliases to see if callee
21043 is local and optimized.
21044 (ix86_function_sseregparm): Likewise; also use target's SSE math
21045 settings; error out instead of silently generating wrong code
21047 (init_cumulative_args): Look through aliases.
21049 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21052 * ipa-split.c (execute_split_functions): Split if function has aliases.
21054 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21057 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
21058 aliases before trying to expand it.
21059 (cgraph_node::expand_thunk): Fix formating.
21061 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
21063 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
21064 (Using Assembly Language with C): Expand introduction.
21065 (Basic Asm): Copy-edit. Add more information about uses of
21067 (Extended Asm): Copy-edit. Document new escape syntax and
21069 (Global Reg Vars): Copy-edit.
21070 (Local Reg Vars): Likewise.
21072 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
21076 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
21077 (DBX_CONTIN_CHAR): Define.
21079 2015-02-06 Sebastian Pop <s.pop@samsung.com>
21080 Brian Rzycki <b.rzycki@samsung.com>
21082 PR tree-optimization/64878
21083 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
21084 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
21085 Stop recursion at loop phi nodes after having visited a loop phi node.
21087 2015-02-06 Jakub Jelinek <jakub@redhat.com>
21089 * toplev.c (process_options): Change flag_ipa_ra before creating
21090 optimization_{default,current}_node.
21093 * cgraphunit.c (cgraph_node::expand_thunk): If
21094 restype is not is_gimple_reg_type nor the thunk_fndecl
21095 returns aggregate_value_p, set restmp to a temporary variable
21096 instead of resdecl.
21098 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
21100 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
21102 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21105 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
21106 add a general secondary reload handler for SDmode, unless we have
21107 both read/write support for SDmode.
21109 2015-02-06 Jakub Jelinek <jakub@redhat.com>
21111 PR middle-end/64937
21112 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
21113 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
21114 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
21115 1 before, push it to abstract_vec.
21116 (dwarf2out_abstract_function): Adjust caller. Don't call
21117 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
21118 DECL_ABSTRACT_P flags for all abstract_vec elts.
21120 2015-02-06 Renlin Li <renlin.li@arm.com>
21122 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
21124 * tree-ssa.c (execute_update_addresses_taken): Likewise.
21126 2015-02-06 Jeff Law <law@redhat.com>
21129 * config/h8300/h8300.c (push): New argument "in_prologue".
21130 Pass "in_prologue" along to "F".
21131 (h8300_push_pop): Corresponding changes.
21132 (h8300_expand_prologue): Likewise.
21133 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
21135 2015-02-06 Jakub Jelinek <jakub@redhat.com>
21137 PR rtl-optimization/64957
21139 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
21140 IOR rather than for AND.
21142 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
21145 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
21146 of shift-add and (add + shift) operations. Rename local variable.
21148 2015-02-05 Jeff Law <law@redhat.com>
21151 * config/h8300/constraints.md (U): Correctly dectect
21152 "eightbit_data" memory addresses.
21153 * config/h8300/h8300.c (eightbit_constant_address_p): Also
21154 handle (const (plus (symbol_ref (x)))) where x is declared
21155 as an 8-bit data memory address.
21156 * config/h8300/h8300.md (call, call_value): Correctly detect
21157 "funcvec" functions.
21160 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
21161 24 to 28 bits for the H8/300.
21163 2015-02-06 Alan Modra <amodra@gmail.com>
21166 * config/rs6000/rs6000.c (chain_already_loaded): New function.
21167 (rs6000_call_aix): Use it.
21169 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
21171 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
21174 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
21176 * config/h8300/constraints.md ("U" constraint): Use strict
21177 variant of REG_OK_FOR_BASE_P after reload has started.
21179 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
21181 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
21182 define to zero if !TARGET_NEON.
21183 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
21185 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21186 Trevor Saunders <tsaunders@mozilla.com>
21189 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
21191 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21194 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
21195 when removing varpool nodes.
21197 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21200 * varpool.c (varpool_node::remove): Fix order of variables.
21202 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21205 * ipa-inline.c (inline_small_functions): Fix ordering issue between
21206 speculation resolution and key updates.
21208 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21210 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
21211 about not letting any speculative edges unupdated.
21213 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21216 * gcov-io.c (gcov_var): Export.
21218 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21220 PR middle-end/64922
21221 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
21222 edges that become speculative.
21224 2015-02-04 Jakub Jelinek <jakub@redhat.com>
21226 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
21227 or DW_LANG_Fortran08.
21228 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
21230 (gen_compile_unit_die): Handle "GNU Fortran2003" and
21231 "GNU Fortran2008" language strings.
21232 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
21233 * langhooks.h (lang_GNU_Fortran): New prototype.
21234 * langhooks.c (lang_GNU_Fortran): New function.
21235 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
21238 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
21240 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
21241 (RTX_OK_FOR_OLO10_P): Likewise.
21243 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
21245 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
21247 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21249 PR middle-end/64922
21250 * gimple.c: Include gimple-ssa.h.
21251 (maybe_remove_unused_call_args): New function.
21252 * gimple.h (maybe_remove_unused_call_args): Declare.
21253 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
21254 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
21255 * gimple-fold.c (gimple_fold_call): Likewise.
21257 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
21259 PR rtl-optimization/64905
21260 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
21261 pointer alignment if it isn't needed.
21263 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
21265 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
21266 cortex-a72.cortex-a53.
21267 * config/aarch64/aarch64-tune.md: Regenerate.
21268 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
21270 2015-02-04 Nick Clifton <nickc@redhat.com>
21272 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
21275 2015-02-04 Jakub Jelinek <jakub@redhat.com>
21277 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
21278 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
21279 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
21281 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
21282 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
21283 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
21284 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
21285 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
21286 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
21287 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
21288 * tree-core.h (enum built_in_function): In between
21289 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
21290 for builtins that use DEF_BUILTIN_CHKP macro.
21292 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
21295 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
21296 operands for tcc_comparison exprs. Fix typos.
21299 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
21300 of two XORs that have an intervening AND or IOR.
21303 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
21304 simplification of XOR of AND to not allocate new rtx before
21305 committing to a simplification.
21307 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21309 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
21310 manual swaps in all peepholes.
21312 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21314 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
21315 of manual swapping implementation.
21316 (aarch64_expand_vec_perm_const_1): Likewise.
21318 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
21320 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
21321 (generic_addrcost_table): Remove NAMED_PARAM.
21322 (cortexa57_addrcost_table): Likewise.
21323 (xgene1_addrcost_table): Likewise.
21324 (generic_regmove_table): Likewise.
21325 (cortexa53_regmove_table): Likewise.
21326 (xgene1_regmove_table): Likewise.
21327 (generic_vector_table): Likewise.
21328 (cortexa57_vector_table): Likewise.
21329 (xgene1_vector_table): Likewise.
21330 (generic_tunings): Likewise.
21331 (cortexa53_tunings): Likewise.
21332 (cortexa57_tunings): Likewise.
21333 (xgene1_tunings): Likewise.
21335 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
21337 * config/arm/arm-cores.def: Add cortex-a72 and
21338 cortex-a72.cortex-a53.
21339 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
21340 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
21341 * config/arm/arm-tune.md: Regenerate.
21342 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
21343 "cortex-a72.cortex-a53".
21344 * doc/invoke.texi (ARM Options/-mtune): Likewise.
21346 2015-02-04 Nick Clifton <nickc@redhat.com>
21349 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
21351 (nonimmediate_di_operand): Likewise.
21353 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
21354 prefixes of known F5 using MSP430 MCUs.
21356 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21358 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
21359 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
21360 instead of __builtin_sqrt.
21362 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
21364 * varasm.c (do_assemble_alias): Follow transparent alias
21366 (default_assemble_visibility): Follow transparent alias
21367 chain for decl name.
21369 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
21371 PR middle-end/62103
21372 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
21373 to compute size of referenced value in the constant case.
21375 2015-02-03 Jakub Jelinek <jakub@redhat.com>
21377 PR rtl-optimization/64756
21378 * cse.c (invalidate_dest): New function.
21379 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
21380 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
21381 invalidate and do not record it.
21383 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
21386 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
21387 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
21388 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
21389 atomic_nand<mode>_soft_tcb): New insns.
21390 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
21391 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
21392 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
21393 Split into atomic_not_fetchsi_hard if operands[0] is unused.
21394 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
21395 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
21396 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
21397 atomic_not<mode>_hard if operands[0] is unused.
21398 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
21399 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
21400 if operands[0] is unused.
21401 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
21402 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
21403 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
21404 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
21406 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
21407 into atomic_not<mode>_soft_tcb if operands[0] is unused.
21408 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
21409 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
21410 if operands[0] is unused.
21411 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
21412 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
21413 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
21414 atomic_nand_fetchsi_hard if operands[0] is unused.
21415 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
21416 atomic_nand<mode>_hard if operands[0] is unused.
21417 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
21418 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
21419 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
21420 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
21421 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
21422 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
21423 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
21424 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
21425 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
21426 atomic_not<mode>_hard if operands[0] is unused.
21427 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
21428 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
21430 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
21431 into atomic_not<mode>_soft_tcb if operands[0] is unused.
21432 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
21433 atomic_nand<mode>_hard if operands[0] is unused.
21434 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
21435 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
21437 2015-02-03 David Malcolm <dmalcolm@redhat.com>
21440 * Makefile.in (GCC_OBJS): Add gcc-main.o.
21441 * gcc-main.c: New file, containing "main" taken from gcc.c.
21442 * gcc.c (do_self_spec): Free decoded_options.
21443 (class driver): Move declaration to gcc.h.
21444 (main): Move declaration and implementation to new file
21446 (driver_get_configure_time_options): New function.
21447 * gcc.h (class driver): Move this declaration here, from
21449 (driver_get_configure_time_options): New declaration.
21451 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
21453 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
21454 cross-module inlining.
21455 * cgraph.h (cgraph_node): Add flag merged.
21456 * ipa-icf.c (sem_function::merge): Maintain it.
21458 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
21460 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
21461 instead of OBJECT_P.
21463 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
21466 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
21467 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
21468 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
21469 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
21471 2015-02-03 Jakub Jelinek <jakub@redhat.com>
21474 * combine.c (reg_n_sets_max): New variable.
21475 (can_change_dest_mode, reg_nonzero_bits_for_combine,
21476 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
21477 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
21478 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
21479 (rest_of_handle_combine): Initialize reg_n_sets_max.
21481 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
21483 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
21484 if some always_inline was inlined, apply changes before inlining
21487 2015-02-02 David Malcolm <dmalcolm@redhat.com>
21490 * config/arm/arm.c (arm_option_override): Set
21491 arm_selected_arch/cpu/tune to NULL on entry.
21493 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
21494 Andrew Pinski <pinskia@gcc.gnu.org>
21495 Jakub Jelinek <jakub@gcc.gnu.org>
21498 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
21499 integer typing for small model. Use IN_RANGE.
21501 2015-02-02 Richard Biener <rguenther@suse.de>
21503 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
21504 * tree-vrp.c (vrp_valueize_1): Likewise.
21506 2015-02-02 Alan Modra <amodra@gmail.com>
21508 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
21509 than mem for toc_restore.
21510 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
21511 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
21512 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
21514 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
21517 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
21518 explicit default options.
21520 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
21523 * ipa-utils.c (ipa_merge_profiles): Add release argument.
21524 * ipa-icf.c (sem_function::merge): Do not release body when merging.
21525 * ipa-utils.h (ipa_merge_profiles): Update prototype.
21527 2015-02-01 Jakub Jelinek <jakub@redhat.com>
21530 * cfgexpand.c (deep_ter_debug_map): New variable.
21531 (avoid_deep_ter_for_debug): New function.
21532 (expand_debug_expr): If TERed SSA_NAME is in
21533 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
21534 instead of trying to expand SSA_NAME's def stmt.
21535 (expand_debug_locations): When expanding debug bind
21536 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
21537 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
21539 (pass_expand::execute): Call avoid_deep_ter_for_debug on
21540 all debug bind stmts. Delete deep_ter_debug_map after
21541 expand_debug_location if non-NULL and clear it.
21543 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
21546 * config/sh/sync.md (atomic_fetch_notsi_hard,
21547 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
21548 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
21549 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
21550 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
21551 atomic_not_fetch<mode>_soft_imask): New insns.
21553 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21555 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
21556 (rank_for_schedule_debug): Split from ...
21557 (rank_for_schedule): ... this.
21558 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
21559 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
21561 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
21563 * doc/md.texi (Machine Constraints): Alphabetize table by target.
21564 * doc/extend.texi (x86 Variable Attributes): Move section to
21565 correct alphabetization after renaming.
21566 (x86 Type Attributes): Likewise.
21567 (Target Builtins): Re-alphabetize menu.
21568 (x86 Built-in Functions): Move section to correct alphabetization
21570 (x86 transactional memory intrinsics): Likewise.
21571 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
21572 and x86 Windows Options in table and menu.
21573 (x86 Options): Move section to correct alphabetization after
21575 (x86 Windows Options): Likewise.
21577 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
21579 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
21580 preferred names of the architecture and its 32- and 64-bit
21582 * doc/invoke.texi: Likewise.
21583 * doc/md.texi: Likewise.
21585 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
21588 * config/i386/predicates.md (address_no_seg_operand): Reject
21589 non-CONST_INT_P operands in invalid mode.
21591 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
21593 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
21594 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
21595 * config/i386/predicates.md (address_no_seg_operand): Call
21596 address_operand with VOIDmode.
21597 (vsib_address_operand): Ditto.
21598 (address_mpx_no_base_operand): Ditto.
21599 (address_mpx_no_index_operand): Ditto.
21601 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
21604 * lra-constraints.c (original_subreg_reg_mode): New.
21605 (simplify_operand_subreg): Try to simplify subreg of const. Use
21606 original_subreg_reg_mode for it.
21607 (swap_operands): Update original_subreg_reg_mode.
21608 (curr_insn_transform): Set up original_subreg_reg_mode.
21610 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
21613 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
21615 (process_alt_operands): Use it.
21616 (curr_insn_transform): Check the optional reload pseudo class is
21619 2015-01-30 Joseph Myers <joseph@codesourcery.com>
21621 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
21622 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
21624 * toplev.h (init_asm_output): Update comment on use of
21625 UNKNOWN_LOCATION with fatal_error.
21626 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
21627 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
21628 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
21629 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
21630 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
21631 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
21632 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
21633 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
21634 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
21635 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
21636 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
21637 fatal_error changed to pass input_location as first argument.
21639 2015-01-30 Martin Liska <mliska@suse.cz>
21641 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
21642 in #pragma GCC diagnostic guards.
21644 2015-01-30 Richard Biener <rguenther@suse.de>
21646 PR tree-optimization/64829
21647 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
21648 not add a widening conversion pattern but hand off extra
21649 widenings to callers.
21650 (vect_recog_widen_mult_pattern): Handle extra widening produced
21651 by vect_handle_widen_op_by_const.
21652 (vect_recog_widen_shift_pattern): Likewise.
21653 (vect_pattern_recog_1): Remove excess vertical space in dumping.
21654 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21655 (vect_init_vector_1): Likewise.
21656 (vect_get_vec_def_for_operand): Likewise.
21657 (vect_finish_stmt_generation): Likewise.
21658 (vectorizable_load): Likewise.
21659 (vect_analyze_stmt): Likewise.
21660 (vect_is_simple_use): Likewise.
21662 2015-01-29 Jeff Law <law@redhat.com>
21664 * combine.c (try_combine): Fix typo in comment.
21666 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
21669 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
21670 (rs6000_stack_info): Add assert.
21671 (rs6000_output_savres_externs): New function, split off from...
21672 (rs6000_output_function_prologue): ... here. Do not call it for
21675 2015-01-29 Jeff Law <law@redhat.com>
21678 * combine.c (try_combine): If I0 is a memory load and I3 a store
21679 to a related address, increase the "goodness" of doing a 4-insn
21680 combination with I0-I3.
21681 (make_field_assignment): Handle SUBREGs in the ior+and case.
21683 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
21685 PR tree-optimization/64746
21686 * tree-if-conv.c (mask_exists): New function.
21687 (predicate_mem_writes): Save created mask with given size for further
21689 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
21690 (ifcvt_repair_bool_pattern): Collect all statements that are root
21691 of bool pattern and use iterative algorithm to remove multiple uses
21692 of predicates, display number of required iterations.
21694 2015-01-29 Richard Biener <rguenther@suse.de>
21696 PR tree-optimization/64853
21697 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
21698 stmt will get simulated again.
21699 * tree-ssa-ccp.c (valueize_op_1): Likewise.
21701 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21703 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
21704 return_in_pc. Remove redundant assignments.
21705 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
21706 (arm_expand_epilogue): Don't compare boolean with true in if condition.
21708 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
21710 * config/i386/i386.c (ix86_mode_after): Make static.
21712 2015-01-29 Richard Biener <rguenther@suse.de>
21714 PR tree-optimization/64844
21715 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
21716 dump cost model analysis.
21717 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21718 Do not register adjusted load/store costs here.
21720 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
21721 Uros Bizjak <ubizjak@gmail.com>
21723 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
21724 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
21725 using x86_use_pseudo_pic_reg.
21726 * config/i386/i386.c (ix86_conditional_register_usage): Remove
21727 support for fixed PIC register.
21728 (ix86_use_pseudo_pic_reg): Not static any more.
21730 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
21732 PR middle-end/64805
21733 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
21734 to avoid error in cgraph node verification.
21736 2015-01-29 Marek Polacek <polacek@redhat.com>
21738 * doc/standards.texi: Reflect that the default for C is gnu11.
21740 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
21743 * reorg.c (switch_text_sections_between_p): New function.
21744 (relax_delay_slots): Call it when testing if the jump insn
21745 is removable. Use targetm.can_follow_jump when testing if
21746 the conditional branch can follow an unconditional jump.
21748 2015-01-27 Caroline Tice <cmtice@google.com>
21750 Committing VTV Cywin/Ming patch for Patrick Wollgast
21751 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
21752 if -fvtable-verify=preinit/std is used.
21753 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
21754 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
21755 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
21756 if -fvtable-verify=preinit/std is used.
21757 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
21758 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
21759 if -fvtable-verify=preinit/std is used.
21760 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
21761 * config/i386/mingw32.h (LIB_SPEC): Likewise.
21762 * varasm.c (assemble_variable): Add code to properly set the comdat
21763 section and name for the .vtable_map_vars section in case the
21764 target is PE or COFF.
21766 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
21769 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
21770 make sane BB profile.
21771 (cgraph_node::expand_thunk): Make sane BB profile.
21772 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
21773 * cgraph.h (init_lowered_empty_function): Update prototype.
21774 * config/i386/i386.c (make_resolver_func): Update call.
21775 * predict.c (gate): Disable branch prediction pass if
21776 profile is already there.
21778 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
21780 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
21781 * opth-gen.awk: Likewise.
21782 * common.opt: Mark flag_fp_contract_mode as Optimization.
21784 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
21786 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
21787 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
21789 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
21792 * config/sh/predicates.md (atomic_arith_operand,
21793 atomic_logical_operand): Remove.
21794 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
21795 (atomic_arith_operand_0): New predicate.
21796 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
21797 Use atomic_arith_operand_0 for input values.
21798 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
21799 atomic_compare_and_swap<mode>_soft_gusa,
21800 atomic_compare_and_swap<mode>_soft_tcb,
21801 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
21802 arith_reg_operand instead of register_operand.
21803 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
21804 atomic_arith_operand_0 for newval input.
21805 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
21806 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
21807 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
21808 arith_reg_operand instead of register_operand.
21809 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
21810 fetchop_predicate_1, fetchop_constraint_1_llcs,
21811 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
21812 fetchop_constraint_1_imask): New code iterator attributes.
21813 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
21814 register_operand. Use fetchop_predicate_1.
21815 (atomic_fetch_<fetchop_name>si_hard,
21816 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
21817 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
21818 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
21819 and arith_reg_operand instead of register_operand. Use
21820 fetchop_predicate_1, fetchop_constraint_1_gusa.
21821 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
21822 and arith_reg_operand instead of register_operand. Use
21823 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
21825 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
21826 and arith_reg_operand instead of register_operand. Use
21827 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
21829 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
21830 register_operand. Use atomic_logical_operand_1.
21831 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
21832 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
21833 arith_reg_operand instead of register_operand.
21834 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
21835 Use arith_reg_dest and arith_reg_operand instead of register_operand.
21836 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
21837 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
21838 register_operand. Use fetchop_predicate_1.
21839 (atomic_<fetchop_name>_fetchsi_hard,
21840 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
21841 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21842 fetchop_constraint_1_llcs.
21843 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
21844 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21845 fetchop_constraint_1_gusa.
21846 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
21847 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21848 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
21849 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
21850 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21851 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
21852 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
21853 register_operand. Use atomic_logical_operand_1.
21854 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
21855 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
21856 arith_reg_operand instead of register_operand.
21857 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
21858 arith_reg_operand instead of register_operand. Use logical_operand
21859 and K08. Adjust asm sequence to allow R0 usage.
21860 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
21861 arith_reg_operand instead of register_operand. Use logical_operand
21864 2015-01-28 Jakub Jelinek <jakub@redhat.com>
21867 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
21868 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
21869 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
21870 only get_full_len HOST_WIDE_INTs from get_val () array rather than
21871 all bits in *val_wide.
21873 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
21875 * varpool.c (tls_model_names): Fix names.
21876 (varpool_node::dump): Dump tls- prefix for tls models.
21878 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
21879 Bernd Schmidt <bernds@codesourcery.com>
21880 Nathan Sidwell <nathan@codesourcery.com>
21882 * config/nvptx/mkoffload.c: New file.
21883 * config/nvptx/t-nvptx: Add build rules for it.
21884 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
21885 (extra_programs): Add mkoffload.
21886 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
21888 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
21890 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
21892 PR middle-end/64809
21893 * cfgexpand.c (reorder_operands): Skip debug gimples.
21895 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
21897 PR tree-optimization/64277
21898 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
21899 range info when possible to refine estimation.
21901 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
21903 PR tree-optimization/64718
21904 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
21905 be a 16bit unsigned integer when n->range is 16.
21906 (bswap_replace): Convert src to that type if necessary for all bswap
21907 sizes. Fix rotation right notation in nearby comment. Use bswap_type
21908 set in pass_optimize_bswap::execute ().
21910 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
21912 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
21913 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
21914 integer and floating point variants.
21915 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
21917 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
21919 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
21920 for all vector modes.
21922 2015-01-28 Jakub Jelinek <jakub@redhat.com>
21925 * doc/sourcebuild.texi (comdat_group): Document.
21927 2015-01-28 Terry Guo <terry.guo@arm.com>
21929 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
21931 2015-01-27 David Malcolm <dmalcolm@redhat.com>
21933 * toplev.c (print_version): Add param "show_global_state", and
21934 only print GGC and plugin information if it is true.
21935 (init_asm_output): Pass in "true" for the new param when calling
21937 (process_options): Likewise.
21938 (toplev::main): Likewise.
21939 * toplev.h (print_version): Add new param to decl.
21941 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
21945 * tree.c (lookup_binfo_at_offset): New function.
21946 (get_binfo_at_offset): Use it.
21948 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
21951 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
21952 on vtable being vtable.
21954 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
21956 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
21957 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
21958 -mhotpatch= option.
21959 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
21960 -mno-hotpatch options. Change syntax of -mhotpatch= option.
21961 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
21963 (s390_hotpatch_trampoline_halfwords_max): Renamed.
21964 (s390_hotpatch_hw_max): New name.
21965 (s390_hotpatch_trampoline_halfwords): Renamed.
21966 (s390_hotpatch_hw_before_label): New name.
21967 (get_hotpatch_attribute): Removed.
21968 (s390_hotpatch_hw_after_label): New name.
21969 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
21971 (s390_attribute_table): Ditto.
21972 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
21973 (s390_function_num_hotpatch_hw): New name.
21974 Remove special handling of inline functions and hotpatching.
21975 Return number of nops before and after the function label.
21976 (s390_can_inline_p): Removed.
21977 (s390_asm_output_function_label): Emit a configurable number of nops
21978 after the function label.
21979 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
21980 (TARGET_CAN_INLINE_P) Removed.
21981 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
21983 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21984 Jiong Wang <jiong.wang@arm.com>
21986 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
21988 (cb<optab><mode>1): Likewise.
21989 * config/aarch64/iterators.md (bcond): New define_code_attr.
21991 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21993 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
21996 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21998 * config/s390/s390.c (s390_register_move_cost): Increase costs for
22001 2015-01-27 Richard Biener <rguenther@suse.de>
22003 * tree-vrp.c (update_value_range): Intersect the range with
22004 old recorded SSA name range information.
22006 2015-01-27 Nick Clifton <nickc@redhat.com>
22008 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
22009 BC, DE and HL registers directly, not via AX.
22010 When decrementing the stack pointer by a large amount, transfer SP
22011 into AX and perform the subtraction there.
22012 (rl78_expand_epilogue): Perform the inverse of the above
22015 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22017 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
22019 2015-01-27 Jakub Jelinek <jakub@redhat.com>
22020 Yury Gribov <y.gribov@samsung.com>
22023 * ubsan.c (ubsan_source_location): Refactor code.
22024 (ubsan_type_descriptor): Update type size. Refactor code.
22026 2015-01-27 Richard Biener <rguenther@suse.de>
22028 PR tree-optimization/56273
22029 PR tree-optimization/59124
22030 PR tree-optimization/64277
22031 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
22032 from the first VRP pass.
22034 2015-01-27 Jakub Jelinek <jakub@redhat.com>
22037 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
22038 handle the first argument in the same loop as all the other arguments.
22040 PR rtl-optimization/61058
22041 * jump.c (cleanup_barriers): Update basic block boundaries
22042 if BLOCK_FOR_INSN is non-NULL on PREV.
22044 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
22046 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
22047 bounds narrowing, already instrumented calls and calls to
22048 not instrumentable functions.
22050 2015-01-27 Jakub Jelinek <jakub@redhat.com>
22052 PR tree-optimization/64807
22053 * wide-int.cc (wi::divmod_internal): Clear
22054 b_dividend[dividend_blocks_needed].
22056 2015-01-26 DJ Delorie <dj@redhat.com>
22058 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
22059 volatile memory references.
22061 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
22064 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
22066 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
22067 shifts if it already fits into K08.
22069 2015-01-26 Jakub Jelinek <jakub@redhat.com>
22072 * ipa-inline.c (inline_small_functions): Print "unknown" even
22073 if edge->call_stmt is non-NULL, but has builtins or unknown
22076 PR middle-end/64421
22077 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
22078 with asterisk, skip the first character.
22080 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
22083 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
22086 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
22089 * config/i386/i386.md (*movdi_internal): Also check operand 0
22090 to determine TYPE_LEA operand.
22091 (*movsi_internal): Ditto.
22093 2015-01-26 Jakub Jelinek <jakub@redhat.com>
22095 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
22096 OPTION_MASK_QUAD_MEMORY_ATOMIC.
22098 2015-01-26 Renlin Li <renlin.li@arm.com>
22100 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
22102 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
22105 2015-01-26 Richard Biener <rguenther@suse.de>
22107 PR middle-end/64764
22108 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
22109 combining two BIT_AND_EXPR predicates.
22111 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
22114 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
22116 2015-01-26 Terry Guo <terry.guo@arm.com>
22118 * config/arm/arm.c (arm_file_start): Update the assignment of
22119 Tag_ABI_HardFP_use.
22121 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
22123 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
22125 config/arm/arm.md: Include the new Cortex-A57 model.
22126 (generic_sched): Don't use generic_sched when tuning for
22129 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
22130 Uros Bizjak <ubizjak@gmail.com>
22132 * config/i386/i386.c (get_builtin_code_for_version): Add
22133 support for BMI and BMI2 multiversion functions.
22135 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22137 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
22138 (extract_bit_field): Likewise.
22139 (extract_low_bits): Likewise.
22140 (expand_mult): Likewise.
22141 (expand_mult_highpart_adjust): Likewise.
22143 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
22145 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
22146 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
22147 * config/i386/i386.c (processor_model): Add
22148 M_INTEL_COREI7_BROADWELL.
22149 (arch_names_table): Add "broadwell".
22151 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
22160 * config/sh/sh-protos.h
22161 (sh_extending_set_of_reg::can_use_as_unextended_reg,
22162 sh_extending_set_of_reg::use_as_unextended_reg,
22163 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
22164 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
22165 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
22166 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
22167 (sh_treg_insns): New class.
22168 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
22169 (scope_counter): New class.
22170 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
22171 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
22172 sh_extending_set_of_reg::can_use_as_unextended_reg,
22173 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
22174 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
22175 sh_split_treg_set_expr): New functions.
22176 (addsubcosts): Handle treg_set_expr.
22177 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
22178 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
22179 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
22180 (sh_insn_operands_modified_between_p): Make non-static.
22181 * config/sh/predicates.md (zero_extend_movu_operand): Allow
22182 simple_mem_operand in addition to displacement_mem_operand.
22183 (zero_extend_operand): Don't allow zero_extend_movu_operand.
22184 (treg_set_expr, treg_set_expr_not_const01,
22185 arith_reg_or_treg_set_expr): New predicates.
22186 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
22187 arith_or_int_operand instead of logical_operand. Convert to
22188 insn_and_split. Try to optimize constant operand in splitter.
22189 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
22190 (*tstqi_t_zero): Delete.
22191 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
22192 (tstsi_t_and_not): Delete.
22193 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
22194 Convert to insn_and_split.
22195 (unnamed split, tstsi_t_zero_extract_xor,
22196 tstsi_t_zero_extract_subreg_xor_little,
22197 tstsi_t_zero_extract_subreg_xor_big): Delete.
22198 (*tstsi_t_shift_mask): New insn_and_split.
22199 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
22200 to recombine with surrounding insns when splitting.
22201 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
22202 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
22203 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
22204 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
22205 (*cbranch_div0s: Delete.
22206 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
22207 Try to recombine with surrounding insns when splitting. Add operand
22209 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
22210 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
22211 *addc_r_r_msb, *addc_2r_msb): Delete.
22212 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
22214 (*addc_negreg_t): New insn_and_split.
22215 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
22216 Try to recombine with surrounding insns when splitting.
22217 Add operand order variants.
22218 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
22219 insn_and_split patterns.
22220 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
22221 surrounding insns when splitting.
22222 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
22223 (*rotcl): Likewise. Add zero_extract variant.
22224 (*ashrsi2_31): New insn_and_split.
22225 (*negc): Convert to insn_and_split. Use treg_set_expr.
22226 (*zero_extend<mode>si2_disp_mem): Update comment.
22227 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
22229 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
22230 with surrounding insns when splitting.
22231 (any_treg_expr_to_reg): New insn_and_split.
22232 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
22233 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
22234 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
22235 *zero_extract_2): New single bit zero extract patterns.
22236 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
22237 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
22238 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
22239 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
22241 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
22242 register_operand for set source.
22244 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
22246 * i386.opt (prefetch_sse): New targetsave.
22247 * i386.c (ix86_function_specific_save): Save prefetch_sse.
22248 (ix86_function_specific_restore): Restore prefetch_sse and initialize
22249 ix86_cost/ix86_tune_cost.
22251 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22253 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
22254 Support the JIT by using 0 as the language type.
22256 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
22259 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
22260 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
22261 (mark_regno_live, process_bb_lives): Pass new parameter value to
22262 make_hard_regno_born.
22264 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22266 PR rtl-optimization/63637
22267 PR rtl-optimization/60663
22268 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
22269 if elt->cost is MAX_COST for ASM_OPERANDS.
22270 (find_sets_in_insn): Fix up comment typo.
22271 (cse_insn): Don't set src_volatile for all non-volatile
22272 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
22273 or with "memory" clobber. Set elt->cost to MAX_COST
22274 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
22275 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
22277 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
22279 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
22282 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
22284 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
22285 libgcc/config/i386/elf-lib.h.
22287 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22290 * gcc.c (print_configuration): Don't print a blank line at the end
22292 (run_attempt): ... but here unstead.
22294 PR middle-end/64734
22295 * omp-low.c (scan_sharing_clauses): Don't ignore
22296 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
22297 on target data/update constructs.
22299 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
22302 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
22303 (DEBUG_RELOAD): Removed define.
22304 (m32c_limit_reload_class): Enable traces with if DEBUG0.
22305 (m32c_function_arg): Added a type cast.
22306 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
22307 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
22308 * config/m32c/bitops.md (andqi3_16): Likewise.
22309 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
22310 (push_a01_l): Likewise.
22312 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22315 * main.c (main): Construct toplev instances with init_signals=true.
22316 * toplev.c (general_init): Add param "init_signals", and use it to
22317 conditionalize the calls to signal and host_hooks.extra_signals.
22318 (toplev::toplev): Add param "init_signals".
22319 (toplev::main): When invoking general_init, pass m_init_signals
22320 to control whether signal-handlers are installed.
22321 * toplev.h (toplev::toplev): Add param "init_signals".
22322 (toplev::m_init_signals): New field.
22324 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22327 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
22328 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
22329 latter may be affected by the former (e.g. on i686).
22331 2015-01-23 Martin Liska <mliska@suse.cz>
22333 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
22334 false positive during profiledbootstrap.
22336 2015-01-23 Tom de Vries <tom@codesourcery.com>
22339 * lto-opts.c (lto_write_options): Output non-explicit conservative
22341 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
22342 (append_compiler_options): Pass -fopenacc through.
22344 2015-01-23 Tom de Vries <tom@codesourcery.com>
22347 * lto-opts.c (lto_write_options): Output non-explicit conservative
22349 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
22350 (append_compiler_options): Pass -fopenmp through.
22352 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22355 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
22358 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
22359 * diagnostic.def (DK_ICE_NOBT): New kind.
22360 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
22361 like DK_ICE, but never print backtrace.
22362 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
22363 (internal_error_no_backtrace): New function.
22364 * gcc.c (execute): Use internal_error_no_backtrace instead of
22367 2015-01-22 Jeff Law <law@redhat.com>
22370 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
22371 improve code density for small immediate to memory case.
22372 (insv): Better handle bitfield assignments when the field is
22373 being set to all ones.
22374 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
22377 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22378 Jakub Jelinek <jakub@redhat.com>
22380 PR middle-end/64729
22381 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
22382 for !TARGET_LIBC_PROVIDES_SSP version and
22383 -fstack-protector-{all,strong,explicit} otherwise.
22384 * config/freebsd.h (LINK_SSP_SPEC): Handle
22385 -fstack-protector-{strong,explicit}.
22387 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
22388 H.J. Lu <hongjiu.lu@intel.com>
22391 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
22394 2015-01-22 Wei Mi <wmi@google.com>
22396 PR rtl-optimization/64557
22397 * dse.c (record_store): Call get_addr for mem_addr.
22398 (check_mem_read_rtx): Likewise.
22400 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
22402 * fold-const.c (const_binop): Add early return for non-tcc_binary.
22404 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
22406 * toplev.c (init_local_tick): Process the failure when read
22407 fails for random_seed.
22409 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
22410 'pretty_name' to avoid memory overflow.
22412 2015-01-22 Richard Biener <rguenther@suse.de>
22414 PR middle-end/64728
22415 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
22416 abnormal coalescing on undefined SSA names.
22418 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
22422 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
22424 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
22426 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
22428 PR middle-end/63325
22429 * fold-const.c (fold_checksum_tree): Don't include value of
22430 expr->decl_with_vis.symtab_node in the checksum.
22432 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22434 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
22436 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
22439 * gcc.c (insert_comments): New function.
22440 (try_generate_repro): Call it.
22441 (append_text): Removed.
22443 2015-01-22 Richard Biener <rguenther@suse.de>
22445 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
22446 with IL incompatible options. Properly honor user optimize
22449 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
22451 PR rtl-optimization/64682
22452 * combine.c (distribute_notes): When moving a death note for
22453 a register that is set in the new I2, make sure to put it
22454 before that new I2.
22456 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
22458 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
22459 not TARGET_DEFAULT.
22461 2015-01-21 Jakub Jelinek <jakub@redhat.com>
22464 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
22465 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
22466 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
22469 * doc/invoke.texi (-fsanitize=vptr): Document.
22471 PR rtl-optimization/62078
22472 * dse.c: Include cfgcleanup.h.
22473 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
22474 anything call purge_all_dead_edges and cleanup_cfg at the end
22477 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
22479 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
22482 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
22484 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
22487 2015-01-21 David Sherwood <david.sherwood@arm.com>
22488 Tejas Belagod <Tejas.Belagod@arm.com>
22490 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
22491 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
22492 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
22495 2015-01-21 David Sherwood <david.sherwood@arm.com>
22496 Tejas Belagod <Tejas.Belagod@arm.com>
22498 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
22499 (aarch64_reverse_mask): New decls.
22500 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
22501 (insn_count): New mode_attr.
22502 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
22503 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
22504 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
22505 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
22506 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
22507 (aarch64_simd_st4): New patterns.
22508 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
22509 (aarch64_reverse_mask): New functions.
22511 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
22513 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
22515 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
22516 addressing modes for BE.
22517 (aarch64_print_operand): Add 'R' specifier.
22518 (aarch64_simd_disambiguate_copy): Delete.
22519 (aarch64_simd_emit_reg_reg_move): New function.
22520 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
22521 in define_splits for structural moves.
22522 (mov<mode>): Use less restrictive predicates.
22523 (*aarch64_mov<mode>): Simplify and only allow for LE.
22524 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
22526 2015-01-21 Alan Hayward <alan.hayward@arm.com>
22528 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
22530 2015-01-21 Richard Henderson <rth@redhat.com>
22533 * ccmp.c (used_in_cond_stmt_p): Remove.
22534 (expand_ccmp_expr): Don't use it.
22536 2015-01-21 Nick Clifton <nickc@redhat.com>
22538 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
22541 2015-01-21 Richard Biener <rguenther@suse.de>
22543 PR middle-end/64313
22544 * tree-core.h (builtin_info, builtin_info_type): Turn from
22545 an object with two arrays into an array of an object with
22546 decl and two flags, implicit_p and declared_p.
22547 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
22548 set_builtin_decl, set_builtin_decl_implicit_p,
22549 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
22550 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
22551 * builtins.c (builtin_info): Adjust.
22552 * gimplify.c (gimplify_addr_expr): References to builtins
22553 that have been declared by the user makes them eligible for
22554 use by the compiler. Call set_builtin_decl_implicit_p on them.
22556 2015-01-20 Jeff Law <law@redhat.com>
22559 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
22560 allow pc-relative addresses in operand predicates or constraints.
22562 2015-01-21 Bin Cheng <bin.cheng@arm.com>
22564 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
22565 neon on aarch32 processors for stringops.
22567 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22570 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
22572 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22575 * ipa-inline.c: Include lto-streamer.h
22576 (report_inline_failed_reason): Output source file differences and
22577 flags on optimization/target node mismatch.
22578 (can_inline_edge_p): Consider caller to be the outer inline function;
22579 be less restrictive about matching opimize and optimize_size attributes.
22580 (inline_account_function_p): Break out from ...
22581 (inline_small_functions): ... here.
22582 * ipa-inline-transform.c (clone_inlined_nodes): Use
22583 inline_account_function_p.
22584 (inline_call): Use optimize attribution; use inline_account_function_p.
22585 (inline_transform): Use opt_for_fn.
22586 * ipa-inline.h (inline_account_function_p): Declare.
22588 2015-01-20 Jakub Jelinek <jakub@redhat.com>
22591 * dwarf2out.c (decl_piece_node): Don't put bitsize into
22592 mode if bitsize <= 0.
22593 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
22594 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
22595 sizes and positions.
22597 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
22599 * config/nios2/nios2.c (nios2_asm_file_end): Implement
22600 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
22602 (TARGET_ASM_FILE_END): Define.
22604 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22606 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
22607 (struct tune_params): Use the enum.
22608 * arm.c (arm_*_tune): Update.
22609 (arm_option_override): Update.
22611 2015-01-20 Richard Biener <rguenther@suse.de>
22614 * ipa-reference.c (add_static_var): Inline ...
22615 (analyze_function): ... here after splitting out from ...
22616 (is_proper_for_analysis): ... this.
22618 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
22621 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
22622 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
22623 replace the conditional with it's true branch.
22624 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
22625 (arm_lra_p): Remove.
22627 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
22629 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
22631 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22633 * config/tilegx/mul-tables.c: Move symtab.h include after
22634 coretypes.h include.
22635 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
22636 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
22637 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
22638 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
22639 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
22641 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
22645 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
22647 PR rtl-optimization/64081
22648 * loop-iv.c (def_pred_latch_p): New function.
22649 (latch_dominating_def): Allow specific cases with non-single
22651 (iv_get_reaching_def): Likewise.
22652 (check_complex_exit_p): New function.
22653 (check_simple_exit): Use check_complex_exit_p to allow certain cases
22654 with exits not executing on any iteration.
22656 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22659 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
22660 to set branch cost.
22662 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22665 * i386.c (gate): Check flag_expensive_optimizations and
22667 (ix86_option_override_internal): Drop optimize_size condition
22668 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
22669 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
22670 MASK_PREFER_AVX128.
22671 (ix86_avx256_split_vector_move_misalign,
22672 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
22673 * sse.md (all uses of TARGET_PREFER_AVX128): Add
22674 optimize_insn_for_speed_p check.
22676 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
22678 * config/mips/mips.h (FP_ASM_SPEC): New define.
22679 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
22682 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
22685 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
22686 nullptr for insn when reaching the first insn.
22687 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
22688 (sh_insn_operands_modified_between_p): Add nullptr check.
22689 (sh_find_extending_set_of_reg): Fix log message. Don't accept
22690 sign extending mem load if the insn contains any UNSPEC or
22693 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22695 * params.def (inline-unit-growth): Drop to 15%.
22696 * invoke.texi (inline-unit-growth): Document change.
22698 2015-01-19 Martin Liska <mliska@suse.cz>
22701 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
22702 function for second argument of OBJ_TYPE_REF.
22704 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22707 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
22708 whether function is an alias.
22710 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22712 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
22715 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
22717 PR rtl-optimization/64671
22718 * lra-remat.c (operand_to_remat): Don't consider jump and call
22721 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
22724 * config/rs6000/default64.h: Include rs6000-cpus.def.
22725 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
22726 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
22727 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
22729 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
22731 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
22732 pseudo-op to specify assembler dialect.
22734 2015-01-19 Martin Liska <mliska@suse.cz>
22737 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
22738 Handle safe potentially removed nodes during filtering.
22740 2015-01-19 Martin Liska <mliska@suse.cz>
22742 * doc/extend.texi (no_icf): Add new attribute description.
22743 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
22744 where the pass attempts to merge a function with no_icf attribute.
22746 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22749 * doc/md.texi (ARM Options): Document register constraints.
22751 2015-01-19 Jiong Wang <jiong.wang@arm.com>
22752 Andrew Pinski <apinski@cavium.com>
22755 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
22756 (ashl<mode>3): Don't expand if operands[2] is not constant.
22758 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22761 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
22762 Match xor-and-xor RTL pattern.
22764 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
22766 PR rtl-optimization/64081
22767 * loop-iv.c (def_pred_latch_p): New function.
22768 (latch_dominating_def): Allow specific cases with non-single
22770 (iv_get_reaching_def): Likewise.
22771 (check_complex_exit_p): New function.
22772 (check_simple_exit): Use check_complex_exit_p to allow certain cases
22773 with exits not executing on any iteration.
22775 2015-01-19 Jakub Jelinek <jakub@redhat.com>
22777 * common.opt (fgraphite): Fix a typo.
22779 2015-01-19 Felix Yang <felix.yang@huawei.com>
22781 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
22783 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
22784 uminp, smax_nanp, smin_nanp): New builtins.
22785 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
22786 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
22787 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
22788 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
22789 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
22790 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
22791 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
22792 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
22793 vpminnms_f32): Rewrite using builtin functions.
22795 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
22798 * omp-low.c (offload_symbol_decl): Remove variable.
22799 (get_offload_symbol_decl): Remove function.
22800 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
22801 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
22802 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
22803 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
22804 BUILT_IN_GOACC_UPDATE don't pass it at all.
22806 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
22808 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
22811 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
22813 * ipa-chkp.c (chkp_produce_thunks): Add early param
22814 to split thunks production into two passes. Keep
22815 'always_inline' function bodies after the first pass.
22816 (pass_data_ipa_chkp_early_produce_thunks): New.
22817 (pass_ipa_chkp_early_produce_thunks): New.
22818 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
22819 chkp_produce_thunks signature.
22820 (make_pass_ipa_chkp_early_produce_thunks): New.
22821 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
22822 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
22823 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
22825 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
22827 * cgraph.c (cgraph_node::dump): Dump profile flags.
22829 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
22832 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
22833 reg appear first in the parallel.
22835 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
22837 * ipa-reference.c (set_reference_optimization_summary,
22838 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
22840 (ignore_module_statics): New static var.
22841 (propagate_bits): If ipa-reference is disabled, do not look into local
22843 (analyze_function): Disable analysis when ipa_reference is disabled.
22844 (generate_summary): Do not dump when reference is disabled;
22845 collect vars accessed from functions with ipa-reference disabled.
22846 (get_read_write_all_from_node): When ipa-reference is disabled, use the
22848 (gate): Enable for LTO.
22849 (ignore_edge_p): New function.
22850 (propagate): Skip functions w/o ipa-reference analysis.
22851 * optc-save-gen.awk: Handle optimize_debug correctly.
22852 * opth-gen.awk: Likewise.
22853 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
22854 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
22855 fira-share-save-slots, fira-share-spill-slots,
22856 fmodulo-sched-allow-regmoves, fpartial-inlining,
22857 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
22858 ftracer, ftree-parallelize-loops, fassociative-math,
22859 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
22861 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
22862 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
22864 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
22867 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
22870 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
22872 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
22874 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
22876 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
22877 Remove duplicate option listings.
22879 2015-01-18 Felix Yang <felix.yang@huawei.com>
22881 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
22882 (autofdo_source_profile::get_callsite_total_count,
22883 function_instance::get_function_instance_by_decl,
22884 string_table::get_index, string_table::get_index_by_decl,
22885 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
22886 Fix comment typos. Reformatting and minor code rearrangement.
22888 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22890 * config/rs6000/rs6000.md (probe_stack): Delete.
22891 (probe_stack_address): New.
22893 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22895 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
22896 to test for 32-bit ABIs, not !TARGET_POWERPC64.
22898 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22900 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
22901 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
22902 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
22904 (rs6000_libcall_value): Use the new function.
22906 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
22908 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
22910 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
22912 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
22913 implement a more precise life analysis for it during backward scan.
22915 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
22917 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
22919 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
22921 PR rtl-optimization/52773
22922 * calls.c (emit_library_call_value): When pushing arguments use
22923 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
22924 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
22925 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
22927 2015-01-17 Jeff Law <law@redhat.com>
22929 PR rtl-optimization/32790
22930 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
22931 not ZERO_EXTEND in SET_DESTs.
22933 2015-01-17 Alan Modra <amodra@gmail.com>
22935 * cprop.c (do_local_cprop): Revert last change.
22937 2015-01-16 DJ Delorie <dj@redhat.com>
22938 Nick Clifton <nickc@redhat.com>
22940 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
22941 (addhi3_real): Likewise. Fix [HL+0] syntax.
22942 (subqi3_real): Likewise.
22943 (subhi3_real): Likewise.
22944 (cbranchqi4_real): Likewise. Allow saddr,#imm.
22945 (cbranchhi4_real): Likewise.
22946 (cbranchhi4_real_inverted): Likewise.
22947 (cbranchsi4_real_lt): Likewise.
22948 (cbranchsi4_real_ge): Likewise.
22949 (cbranchsi4_real_ge): Likewise.
22950 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
22951 (sub<mode>3_virt): Likewise.
22952 (cbranchqi4_virt): Likewise.
22953 (cbranchhi4_virt): Likewise.
22954 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
22955 always use '[reg+imm]' even when imm is zero.
22956 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
22957 (rl78_general_operand): New.
22958 (rl78_nonimmediate_operand): New.
22959 (rl78_nonfar_operand): Use them.
22960 (rl78_nonfar_nonimm_operand): Likewise.
22961 (rl78_stack_based_mem): Fix.
22962 * config/rl78/constraints.md (Ibqi): New.
22967 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
22968 (iorqi3): Likewise.
22969 (xorqi3): Likewise.
22970 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
22972 * config/rl78/constrains (Qs8): New constraint.
22973 * config/rl78/rl78.c (rl78_flags_already_set): New function.
22974 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
22975 * config/rl78/rl78-real.md (update_Z): New attribute.
22976 Update patterns to set it.
22977 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
22978 shorter compare and branch sequence can be used.
22979 (cbranchhi4_real): Likewise.
22980 (cbranchhi4_real_inverted): Likewise.
22982 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
22983 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
22985 * config/rl78/rl78.c (rl78_get_name_encoding): New.
22986 (rl78_option_override): Allow -mes0 only if C.
22987 (characterize_address): Support subregs of symbol_refs.
22988 (rl78_addr_space_address_mode): Move. Add __near.
22989 (rl78_far_p): Likewise.
22990 (rl78_addr_space_pointer_mode): Likewise.
22991 (rl78_as_legitimate_address): Likewise.
22992 (rl78_addr_space_subset_p): Likewise.
22993 (rl78_addr_space_convert): Likewise.
22994 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
22995 symbols with -mes0.
22996 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
22998 (rl78_alloc_physical_registers_op1): Change logic to prefer
22999 symbol[BC] addressing.
23000 (frodata_section): New.
23001 (rl78_asm_init_sections): Initialize it.
23002 (rl78_select_section): Put __far readonly symbols in .frodata.
23003 (rl78_make_type_far): New.
23004 (rl78_insert_attributes): Force all readonly symbols to be
23006 (rl78_asm_out_integer): New.
23007 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
23008 * config/rl78/rl78.opt (-mes0): New.
23010 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
23011 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
23012 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
23013 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
23014 (rl78_saddr_p): New.
23015 (rl78_output_aligned_common): New.
23016 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
23017 (rl78_handle_saddr_attribute): New.
23018 (rl78_handle_naked_attribute): New.
23019 (rl78_attribute_table): Add saddr.
23020 (rl78_print_operand_1): Don't print '!' on saddr operands.
23021 (rl78_print_operand_1): Strip encodings.
23023 (rl78_strip_name_encoding): New.
23024 (rl78_attrlist_to_encoding): New.
23025 (rl78_encode_section_info): New.
23026 (rl78_asm_init_sections): New.
23027 (rl78_select_section): New.
23028 (rl78_output_labelref): New.
23029 (rl78_output_aligned_common): New.
23030 (rl78_asm_out_integer): New.
23031 (rl78_asm_ctor_dtor): New.
23032 (rl78_asm_constructor): New.
23033 (rl78_asm_destructor): New.
23035 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
23036 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
23037 (transcode_memory_rtx): Update.
23038 (rl78_expand_epilogue): Use A_REG instead of 0.
23040 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23042 * config/arm/arm-protos.h (struct tune_params): New field
23043 sched_autopref_queue_depth.
23044 * config/arm/arm.c (sched-int.h): Include header.
23045 (arm_first_cycle_multipass_dfa_lookahead_guard,)
23046 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
23047 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
23048 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
23049 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
23050 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
23051 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
23052 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
23053 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
23054 * config/arm/t-arm (arm.o): Update.
23055 * haifa-sched.c (update_insn_after_change): Update.
23056 (rank_for_schedule): Use auto-prefetcher model, if requested.
23057 (autopref_multipass_init): New static function.
23058 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
23059 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
23060 variable for debug dumps.
23061 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
23062 (autopref_multipass_dfa_lookahead_guard): New global function that
23063 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
23064 (init_h_i_d): Update.
23065 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
23066 * sched-int.h (enum autopref_multipass_data_status): New const enum.
23067 (autopref_multipass_data_): Structure for auto-prefetcher data.
23068 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
23069 (struct _haifa_insn_data:autopref_multipass_data): New field.
23070 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
23071 (autopref_multipass_dfa_lookahead_guard): Declare.
23073 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23075 * rtlanal.c (get_base_term): Handle SCRATCH.
23077 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23079 * config/aarch64/aarch64.c
23080 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
23081 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
23083 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
23084 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
23086 2015-01-17 Alan Modra <amodra@gmail.com>
23088 * cprop.c (do_local_cprop): Disallow replacement of fixed
23091 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23094 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
23097 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
23099 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
23100 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
23102 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23104 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
23105 * config/arm/thumb1.md: ... Here.
23107 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23109 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
23110 TImode for TARGET_32BIT.
23112 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23114 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
23115 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
23117 (rs6000_abi_word_mode): New function.
23119 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23121 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
23122 instead of UNITS_PER_WORD to describe the size of stack slots.
23124 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23126 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
23127 as rs6000_promote_function_mode. Move comment to there.
23128 (rs6000_promote_function_mode): New function.
23130 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23132 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
23133 -mpowerpc64 is active.
23135 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
23137 PR middle-end/64353
23138 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
23141 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
23143 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
23144 introduced in revision 219724.
23146 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23147 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23150 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
23151 destination is not a GP reg.
23152 (*movdi_aarch64): Likewise.
23154 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
23157 * config/rs6000/default64.h: Revert ISA change.
23159 2015-01-16 Richard Biener <rguenther@suse.de>
23161 PR middle-end/64614
23162 * tree-ssa-uninit.c: Include tree-cfg.h.
23163 (MAX_SWITCH_CASES): New define.
23164 (convert_control_dep_chain_into_preds): Handle switch statements.
23165 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
23166 (normalize_one_pred_1): Do not split bit-manipulations.
23169 2015-01-16 Richard Biener <rguenther@suse.de>
23171 PR tree-optimization/64568
23172 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
23173 complex load rewriting for TARGET_MEM_REFs.
23175 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
23177 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
23179 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
23182 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
23184 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
23185 (aarch64_lra_p): Remove.
23187 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
23190 * ipa-chkp.h (chkp_instrumentable_p): New.
23191 * ipa-chkp.c: Include tree-inline.h.
23192 (chkp_instrumentable_p): New.
23193 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
23194 Fix processing of not instrumentable functions.
23195 (chkp_versioning): Use chkp_instrumentable_p. Warn about
23196 not instrumentable functions.
23197 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
23198 chkp_instrumentable_p.
23199 * tree-inline.h (copy_forbidden): New.
23200 * tree-inline.c (copy_forbidden): Not static anymore.
23202 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23204 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
23207 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
23209 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
23210 type OP_OUT to OP_INOUT.
23212 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
23214 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
23215 (high x) y) to y if x and y have the same base.
23217 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
23219 * config/arm/cortex-a57.md: New.
23220 * config/aarch64/aarch64.md: Include it.
23221 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
23222 * config/aarch64/aarch64-tune.md: Regenerate.
23224 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
23227 * ccmp.c (expand_ccmp_next): New function.
23228 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
23229 and compare insn sequence.
23230 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
23231 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
23232 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
23233 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
23234 (*ccmp_ior): Changed to ccmp_ior<mode>.
23235 (cmp<mode>): New pattern.
23236 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
23238 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
23240 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
23242 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
23243 _mm256_bsrli_epi128): New.
23244 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
23246 2015-01-15 Jiong Wang <jiong.wang@arm.com>
23248 * expmed.c (store_bit_field_using_insv): Improve warning message.
23249 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
23251 2015-01-15 Jiong Wang <jiong.wang@arm.com>
23253 PR rtl-optimization/64011
23254 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
23255 there is partial overflow.
23257 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23259 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
23261 (nds32_expand_epilogue_v3pop): Likewise.
23262 * config/nds32/nds32.md (sibcall): Define this for sibling call
23264 (sibcall_register): Likewise.
23265 (sibcall_immediate): Likewise.
23266 (sibcall_value): Likewise.
23267 (sibcall_value_register): Likewise.
23268 (sibcall_value_immediate): Likewise.
23269 (sibcall_epilogue): Likewise.
23270 (epilogue): Pass false to indicate this is not a sibcall epilogue.
23271 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
23272 (nds32_expand_epilogue_v3pop): Likewise.
23274 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23276 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
23277 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
23278 (return_internal): New.
23279 (return): Define this named pattern.
23280 (simple_return): Define this named pattern.
23281 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
23282 pattern instead of unspec_volatile_func_return.
23283 (nds32_expand_epilogue_v3pop): Likewise.
23284 (nds32_can_use_return_insn): New function.
23286 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23288 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
23289 * config/nds32/nds32.md (pop25return): New.
23290 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
23291 pop25return pattern.
23293 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23295 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
23296 -mforbid-fp-as-gp, and -mex9 options.
23298 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23300 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
23301 remove -mgp-direct option.
23303 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23305 * doc/invoke.texi (--param early-inlining-insns): Update default value.
23306 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
23308 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23310 * ipa-inline.c (inline_small_functions): Work around hints
23313 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
23316 * doc/invoke.texi (Option Summary): Document new Nios II
23318 (Nios II Options): Likewise.
23319 * config/nios2/nios2.opt: Add -mgpopt= option support.
23320 Modify existing -mgpopt and -mno-gpopt options to be aliases.
23321 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
23322 * config/nios2/nios2.c (nios2_option_override): Adjust
23323 -mgpopt defaulting.
23324 (nios2_in_small_data_p): Return true for explicit small data
23325 sections even with -G0.
23326 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
23329 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23332 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
23334 (inline_call): Fix removal of aliases.
23336 2015-01-15 Jakub Jelinek <jakub@redhat.com>
23338 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
23339 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
23340 * opts.c (common_handle_option): Add -fsanitize=vptr.
23341 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
23342 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
23343 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
23344 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
23345 (ubsan_expand_vptr_ifn): New prototype.
23346 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
23347 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
23348 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
23349 expand_LOOP_VECTORIZED): Make argument nameless, remove
23351 (expand_UBSAN_VPTR): New function.
23352 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
23354 (UBSAN_VPTR): New internal function.
23355 * sanopt.c (tree_map_traits): Renamed to ...
23356 (sanopt_tree_map_traits): ... this.
23357 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
23358 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
23359 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
23360 (maybe_optimize_ubsan_vptr_ifn): New function.
23361 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
23362 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
23364 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
23365 internal calls like pure functions for aliasing, even when they
23366 have other side-effects that prevent making them ECF_PURE.
23367 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
23368 (ubsan_expand_vptr_ifn): New function.
23370 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
23372 PR rtl-optimization/64110
23373 * stmt.c (parse_output_constraint): Process '^' and '$'.
23374 (parse_input_constraint): Ditto.
23375 * lra-constraints.c (process_alt_operands): Process the new
23377 * ira-costs.c (record_reg_classes): Process the new constraint
23379 * genoutput.c (indep_constraints): Add '^' and '$'.
23380 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
23381 * doc/md.texi: Add description of the new constraints.
23383 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
23384 Bernd Schmidt <bernds@codesourcery.com>
23385 Cesar Philippidis <cesar@codesourcery.com>
23386 James Norris <jnorris@codesourcery.com>
23387 Tom de Vries <tom@codesourcery.com>
23388 Ilmir Usmanov <i.usmanov@samsung.com>
23389 Dmitry Bocharnikov <dmitry.b@samsung.com>
23390 Evgeny Gavrin <e.gavrin@samsung.com>
23391 Jakub Jelinek <jakub@redhat.com>
23393 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
23394 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23395 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23396 New function types.
23397 * builtins.c: Include "gomp-constants.h".
23398 (expand_builtin_acc_on_device): New function.
23399 (expand_builtin, is_inexpensive_builtin): Handle
23400 BUILT_IN_ACC_ON_DEVICE.
23401 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
23403 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
23405 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
23406 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
23407 i386/intelmic-offload.h.
23408 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
23409 to libgomp and its dependencies.
23410 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
23411 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
23412 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
23413 * config/ia64/hpux.h (LIB_SPEC): Likewise.
23414 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
23415 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
23416 * doc/generic.texi: Update for OpenACC changes.
23417 * doc/gimple.texi: Likewise.
23418 * doc/invoke.texi: Likewise.
23419 * doc/sourcebuild.texi: Likewise.
23420 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
23421 GF_OMP_FOR_KIND_OACC_LOOP.
23422 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
23423 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
23424 GF_OMP_TARGET_KIND_OACC_UPDATE,
23425 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
23427 * gimple.c: Update comments for OpenACC changes.
23428 * gimple.def: Likewise.
23429 * gimple.h: Likewise.
23430 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
23431 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
23432 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
23433 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
23434 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
23436 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
23437 * gimplify.c: Include "gomp-constants.h".
23438 Update comments for OpenACC changes.
23439 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
23440 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
23441 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
23442 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
23443 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
23444 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
23445 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
23446 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
23447 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
23449 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
23450 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
23451 OMP_CLAUSE_SET_MAP_KIND.
23452 (gimplify_oacc_cache): New function.
23453 (gimplify_omp_for): Handle OACC_LOOP.
23454 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
23456 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
23457 OACC_EXIT_DATA, OACC_UPDATE.
23458 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
23459 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
23460 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
23461 (gimplify_body): Consider flag_openacc next to flag_openmp.
23462 * lto-streamer-out.c: Include "gomp-constants.h".
23463 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
23464 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
23465 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
23466 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
23467 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
23468 (BUILT_IN_ACC_ON_DEVICE): New builtins.
23469 * omp-low.c: Include "gomp-constants.h".
23470 Update comments for OpenACC changes.
23471 (struct omp_context): Add reduction_map, gwv_below, gwv_this
23473 (extract_omp_for_data, use_pointer_for_field, install_var_field)
23474 (new_omp_context, delete_omp_context, scan_sharing_clauses)
23475 (create_omp_child_function, scan_omp_for, scan_omp_target)
23476 (check_omp_nesting_restrictions, lower_reduction_clauses)
23477 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
23478 Update for OpenACC changes.
23479 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
23480 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
23481 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
23482 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
23483 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
23484 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
23486 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
23487 Handle GF_OMP_FOR_KIND_OACC_LOOP.
23488 (expand_omp_target, lower_omp_target): Handle
23489 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
23490 GF_OMP_TARGET_KIND_OACC_UPDATE,
23491 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
23492 GF_OMP_TARGET_KIND_OACC_DATA.
23493 (pass_expand_omp::execute, execute_lower_omp)
23494 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
23496 (offload_symbol_decl): New variable.
23497 (oacc_get_reduction_array_id, oacc_max_threads)
23498 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
23499 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
23500 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
23501 (oacc_gimple_assign, oacc_initialize_reduction_data)
23502 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
23504 (is_targetreg_ctx): Remove function.
23505 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
23506 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
23507 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
23508 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
23509 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
23510 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
23511 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
23512 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
23513 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
23514 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
23515 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
23516 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
23517 * tree-core.h: Update comments for OpenACC changes.
23518 (enum omp_clause_map_kind): Remove.
23519 (struct tree_omp_clause): Change type of map_kind member from enum
23520 omp_clause_map_kind to unsigned char.
23521 * tree-inline.c: Update comments for OpenACC changes.
23522 * tree-nested.c: Likewise. Include "gomp-constants.h".
23523 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
23524 (convert_tramp_reference_stmt, convert_gimple_call): Update for
23525 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
23526 OMP_CLAUSE_SET_MAP_KIND.
23527 * tree-pretty-print.c: Include "gomp-constants.h".
23528 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
23529 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
23530 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
23531 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
23532 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
23533 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
23534 instead of OMP_CLAUSE_MAP_*.
23535 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
23536 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
23537 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
23538 * tree-streamer-in.c: Include "gomp-constants.h".
23539 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
23540 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
23541 * tree-streamer-out.c: Include "gomp-constants.h".
23542 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
23544 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
23545 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
23546 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
23547 * tree.c (omp_clause_num_ops): Update accordingly.
23548 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
23550 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
23551 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
23552 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
23553 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
23554 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
23555 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
23556 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
23557 (OMP_CLAUSE_SET_MAP_KIND): New macro.
23558 * varpool.c (varpool_node::get_create): Consider flag_openacc next
23560 * config/i386/intelmic-offload.h: New file.
23561 * config/nvptx/offload.h: Likewise.
23563 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23565 * explow.h: Remove duplicate contents.
23566 * dojump.h: Likewise.
23568 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
23570 * arm.c (arm_xgene_tune): Add default initializer for instruction
23573 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23577 * ipa.c (symbol_table::remove_unreachable_nodes):
23578 Do not put abstract origins into boundary.
23580 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
23582 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
23583 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
23585 2015-01-15 Steve Ellcey <sellcey@mips.com>
23587 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
23588 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
23589 builtins.def, and chkp-builtins.def.
23591 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
23593 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
23596 2015-01-15 Richard Biener <rguenther@suse.de>
23598 PR tree-optimization/61743
23599 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
23600 information on PHIs for some simple cases.
23602 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23604 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
23606 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
23607 * config/arm/arm-cores.def (xgene1): New entry.
23608 * config/arm/arm-tables.opt: Regenerate.
23609 * config/arm/arm-tune.md: Regenerate.
23610 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
23612 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
23614 * tree-if-conv.c: Include hash-map.h.
23615 (aggressive_if_conv): New variable.
23616 (fold_build_cond_expr): Add simplification of non-zero condition.
23617 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
23618 destination block is not always executed.
23619 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
23620 than two predecessors if AGGRESSIVE_IF_CONV is true.
23621 (if_convertible_stmt_p): Fix commentary.
23622 (all_preds_critical_p): New function.
23623 (has_pred_critical_p): New function.
23624 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
23625 BB can have more than two predecessors and all incoming edges can be
23627 (predicate_bbs): Skip predication for loop exit block, use build2_loc
23628 to compute predicate for true edge.
23629 (find_phi_replacement_condition): Delete this function.
23630 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
23631 Allow interchange PHI arguments if EXTENDED is false.
23632 Change check that block containing reduction statement candidate
23633 is predecessor of phi-block since phi may have more than two arguments.
23634 (phi_args_hash_traits): New helper structure.
23635 (struct phi_args_hash_traits): New type.
23636 (phi_args_hash_traits::hash): New function.
23637 (phi_args_hash_traits::equal_keys): New function.
23638 (gen_phi_arg_condition): New function.
23639 (predicate_scalar_phi): Add handling of phi nodes with more than two
23640 arguments, delete COND and TRUE_BB arguments, insert body of
23641 find_phi_replacement_condition to predicate ordinary phi nodes.
23642 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
23643 delete call of find_phi_replacement_condition and invoke
23644 predicate_scalar_phi with two arguments.
23645 (insert_gimplified_predicates): Add assert that non-predicated block
23646 don't have statements to insert.
23647 (ifcvt_split_critical_edges): New function.
23648 (ifcvt_split_def_stmt): Likewise.
23649 (ifcvt_walk_pattern_tree): Likewise.
23650 (stmt_is_root_of_bool_pattern): Likewise.
23651 (ifcvt_repair_bool_pattern): Likewise.
23652 (ifcvt_local_dce): Likewise.
23653 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
23654 is copy of inner or outer loop force_vectorize field, invoke
23655 ifcvt_split_critical_edges, ifcvt_local_dce and
23656 ifcvt_repair_bool_pattern for aggressive if-conversion.
23658 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
23660 * config/aarch64/aarch64.md: Include xgene1.md.
23661 * config/aarch64/xgene1.md: New file.
23663 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23665 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
23666 xgene1 (APM XGene-1) core definition.
23667 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
23668 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
23669 * doc/invoke.texi: Document -mcpu=xgene1.
23671 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23673 * dojump.h: New header file.
23674 * explow.h: Likewise.
23675 * expr.h: Remove includes.
23676 Move expmed.c prototypes to expmed.h.
23677 Move dojump.c prototypes to dojump.h.
23678 Move alias.c prototypes to alias.h.
23679 Move explow.c prototypes to explow.h.
23680 Move calls.c prototypes to calls.h.
23681 Move emit-rtl.c prototypes to emit-rtl.h.
23682 Move varasm.c prototypes to varasm.h.
23683 Move stmt.c prototypes to stmt.h.
23684 (saved_pending_stack_adjust): Move to dojump.h.
23685 (adjust_address): Move to explow.h.
23686 (adjust_address_nv): Move to emit-rtl.h.
23687 (adjust_bitfield_address): Likewise.
23688 (adjust_bitfield_address_size): Likewise.
23689 (adjust_bitfield_address_nv): Likewise.
23690 (adjust_automodify_address_nv): Likewise.
23691 * explow.c (expr_size): Move to expr.c.
23692 (int_expr_size): Likewise.
23693 (tree_expr_size): Likewise.
23694 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23695 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
23696 * genemit.c (main): Generate includes statistics.h, real.h,
23697 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
23699 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
23700 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
23701 explow.h, emit-rtl.h, stmt.h.
23702 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
23703 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
23704 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
23705 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
23706 emit-rtl.h, varasm.h, stmt.h.
23707 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
23708 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
23709 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
23710 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
23711 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
23712 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
23713 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
23714 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
23715 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
23716 tm.h tree.h varasm.h vec.h wide-int.h.
23717 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23718 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
23719 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
23720 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
23721 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
23722 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
23723 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
23724 * loop-iv.c: Likewise.
23725 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
23726 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
23727 statistics.h stmt.h tree.h varasm.h wide-int.h.
23728 * lra-constraints.c: Likewise.
23729 * lra-eliminations.c: Likewise.
23730 * lra-lives.c: Likewise.
23731 * lra-remat.c: Likewise.
23732 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23733 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
23734 statistics.h stmt.h tree.h varasm.h wide-int.h.
23735 * hw-doloop.c: Likewise.
23736 * ira-color.c: Likewise.
23737 * ira-emit.c: Likewise.
23738 * loop-doloop.c: Likewise.
23739 * loop-invariant.c: Likewise.
23740 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23741 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
23742 statistics.h stmt.h tree.h varasm.h wide-int.h.
23743 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
23744 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
23745 statistics.h stmt.h tree.h varasm.h wide-int.h.
23746 * combine-stack-adj.c: Likewise.
23749 * ifcvt.c: Likewise.
23750 * ira-costs.c: Likewise.
23751 * jump.c: Likewise.
23752 * lra-coalesce.c: Likewise.
23753 * lra-spills.c: Likewise.
23754 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23755 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
23756 stmt.h varasm.h wide-int.h.
23757 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23758 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
23760 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
23761 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
23762 statistics.h stmt.h varasm.h wide-int.h.
23763 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
23764 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
23765 varasm.h wide-int.h.
23766 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
23767 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23768 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
23769 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
23770 statistics.h stmt.h.
23771 * config/tilepro/tilepro.c: Likewise.
23772 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
23773 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
23774 * config/pdp11/pdp11.c: Likewise.
23775 * config/xtensa/xtensa.c: Likewise.
23776 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
23777 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
23779 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23780 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
23781 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
23782 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23783 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
23784 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
23785 * rtl-chkp.c: Likewise.
23786 * tree-chkp-opt.c: Likewise.
23787 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
23788 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
23789 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
23790 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23791 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
23792 statistics.h stmt.h.
23793 * tree-vect-data-refs.c: Likewise.
23794 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
23795 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23796 rtl.h statistics.h stmt.h varasm.h.
23797 * internal-fn.c: Likewise.
23798 * ipa-icf-gimple.c: Likewise.
23799 * lto-section-out.c: Likewise.
23800 * tree-data-ref.c: Likewise.
23801 * tree-nested.c: Likewise.
23802 * tree-outof-ssa.c: Likewise.
23803 * tree-predcom.c: Likewise.
23804 * tree-pretty-print.c: Likewise.
23805 * tree-scalar-evolution.c: Likewise.
23806 * tree-ssa-strlen.c: Likewise.
23807 * tree-vect-loop.c: Likewise.
23808 * tree-vect-patterns.c: Likewise.
23809 * tree-vect-slp.c: Likewise.
23810 * tree-vect-stmts.c: Likewise.
23811 * tsan.c: Likewise.
23812 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23813 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
23815 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
23816 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23817 statistics.h stmt.h varasm.h.
23818 * loop-unroll.c: Likewise.
23819 * ubsan.c: Likewise.
23820 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
23821 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
23823 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23824 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
23825 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
23826 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
23827 statistics.h stmt.h.
23828 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
23829 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
23830 statistics.h stmt.h varasm.h.
23831 * gimple-match-head.c: Likewise.
23832 * lto-cgraph.c: Likewise.
23833 * lto-section-in.c: Likewise.
23834 * lto-streamer-in.c: Likewise.
23835 * lto-streamer-out.c: Likewise.
23836 * tree-affine.c: Likewise.
23837 * tree-cfg.c: Likewise.
23838 * tree-cfgcleanup.c: Likewise.
23839 * tree-if-conv.c: Likewise.
23840 * tree-into-ssa.c: Likewise.
23841 * tree-ssa-alias.c: Likewise.
23842 * tree-ssa-copyrename.c: Likewise.
23843 * tree-ssa-dse.c: Likewise.
23844 * tree-ssa-forwprop.c: Likewise.
23845 * tree-ssa-live.c: Likewise.
23846 * tree-ssa-math-opts.c: Likewise.
23847 * tree-ssa-pre.c: Likewise.
23848 * tree-ssa-sccvn.c: Likewise.
23849 * tree-tailcall.c: Likewise.
23850 * tree-vect-generic.c: Likewise.
23851 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23852 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
23853 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23854 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
23855 * varasm.c: Likewise.
23856 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23857 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
23859 * init-regs.c: Likewise.
23861 * omp-low.c: Likewise.
23862 * stack-ptr-mod.c: Likewise.
23863 * tree-ssa-reassoc.c: Likewise.
23864 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23865 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
23867 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23868 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
23869 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23870 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
23871 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23872 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
23873 * tree-ssa-phiopt.c: Likewise.
23874 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23875 fixed-value.h hashtab.h real.h statistics.h stmt.h.
23876 * config/fr30/fr30.c: Likewise.
23877 * config/frv/frv.c: Likewise.
23878 * expr.c: Likewise.
23879 * final.c: Likewise.
23880 * optabs.c: Likewise.
23881 * passes.c: Likewise.
23882 * simplify-rtx.c: Likewise.
23883 * stmt.c: Likewise.
23884 * toplev.c: Likewise.
23885 * var-tracking.c: Likewise.
23886 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23887 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23888 * lower-subreg.c: Likewise.
23889 * postreload-gcse.c: Likewise.
23891 * reginfo.c: Likewise.
23892 * store-motion.c: Likewise.
23893 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23894 fixed-value.h hashtab.h real.h stmt.h varasm.h.
23895 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23896 fixed-value.h hashtab.h statistics.h stmt.h.
23897 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23898 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
23899 * except.c: Likewise.
23900 * explow.c: Likewise.
23901 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23902 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
23904 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23905 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
23906 * tree-ssa-structalias.c: Likewise.
23907 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23908 fixed-value.h insn-config.h real.h statistics.h.
23909 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23910 fixed-value.h insn-config.h real.h statistics.h stmt.h.
23911 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23912 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
23913 * cfgbuild.c: Likewise.
23914 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23915 fixed-value.h real.h rtl.h statistics.h stmt.h.
23916 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23917 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23918 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23919 fixed-value.h real.h statistics.h stmt.h.
23920 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23921 fixed-value.h real.h statistics.h stmt.h varasm.h.
23922 * cprop.c: Likewise.
23923 * modulo-sched.c: Likewise.
23924 * postreload.c: Likewise.
23925 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
23926 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
23927 statistics.h stmt.h varasm.h.
23928 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
23929 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23930 rtl.h statistics.h stmt.h varasm.h.
23931 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
23932 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
23934 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
23935 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
23937 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
23938 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
23940 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
23941 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23942 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23943 function.h real.h statistics.h stmt.h varasm.h.
23944 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23945 insn-config.h real.h statistics.h stmt.h.
23946 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23947 statistics.h stmt.h.
23948 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
23949 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
23950 statistics.h stmt.h varasm.h.
23951 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
23952 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
23953 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23954 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
23955 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
23956 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
23957 statistics.h stmt.h varasm.h.
23958 * ipa-polymorphic-call.c: Likewise.
23959 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
23960 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23961 statistics.h stmt.h.
23962 * config/c6x/c6x.c: Likewise.
23963 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
23964 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23965 statistics.h stmt.h varasm.h.
23966 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
23967 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
23969 * ipa-split.c: Likewise.
23970 * tree-eh.c: Likewise.
23971 * tree-ssa-dce.c: Likewise.
23972 * tree-ssa-loop-niter.c: Likewise.
23973 * tree-vrp.c: Likewise.
23974 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
23975 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
23977 * config/nds32/nds32-fp-as-gp.c: Likewise.
23978 * config/nds32/nds32-intrinsic.c: Likewise.
23979 * config/nds32/nds32-isr.c: Likewise.
23980 * config/nds32/nds32-md-auxiliary.c: Likewise.
23981 * config/nds32/nds32-memory-manipulation.c: Likewise.
23982 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23983 * config/nds32/nds32-predicates.c: Likewise.
23984 * config/nds32/nds32.c: Likewise.
23985 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
23986 fixed-value.h hashtab.h real.h statistics.h.
23987 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
23988 fixed-value.h hashtab.h real.h statistics.h stmt.h.
23989 * config/arm/arm.c: Likewise.
23990 * config/avr/avr.c: Likewise.
23991 * config/bfin/bfin.c: Likewise.
23992 * config/h8300/h8300.c: Likewise.
23993 * config/i386/i386.c: Likewise.
23994 * config/ia64/ia64.c: Likewise.
23995 * config/iq2000/iq2000.c: Likewise.
23996 * config/m32c/m32c.c: Likewise.
23997 * config/m32r/m32r.c: Likewise.
23998 * config/m68k/m68k.c: Likewise.
23999 * config/mcore/mcore.c: Likewise.
24000 * config/mep/mep.c: Likewise.
24001 * config/mips/mips.c: Likewise.
24002 * config/mn10300/mn10300.c: Likewise.
24003 * config/moxie/moxie.c: Likewise.
24004 * config/pa/pa.c: Likewise.
24005 * config/rl78/rl78.c: Likewise.
24006 * config/rx/rx.c: Likewise.
24007 * config/s390/s390.c: Likewise.
24008 * config/sh/sh.c: Likewise.
24009 * config/sparc/sparc.c: Likewise.
24010 * config/spu/spu.c: Likewise.
24011 * config/stormy16/stormy16.c: Likewise.
24012 * config/v850/v850.c: Likewise.
24013 * config/vax/vax.c: Likewise.
24014 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
24015 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
24016 * config/msp430/msp430.c: Likewise.
24017 * predict.c: Likewise.
24018 * value-prof.c: Likewise.
24019 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
24020 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
24021 * config/microblaze/microblaze.c: Likewise.
24022 * config/nios2/nios2.c: Likewise.
24023 * config/rs6000/rs6000.c: Likewise.
24024 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
24025 insn-config.h real.h rtl.h statistics.h stmt.h.
24026 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
24027 insn-config.h real.h statistics.h stmt.h.
24028 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
24029 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
24030 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
24031 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
24032 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
24033 fixed-value.h real.h statistics.h stmt.h.
24034 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
24035 fixed-value.h statistics.h stmt.h.
24036 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
24039 2015-01-15 Jakub Jelinek <jakub@redhat.com>
24041 * gengtype.c (create_user_defined_type): Workaround
24042 -Wmaybe-uninitialized false positives.
24043 * cse.c (fold_rtx): Likewise.
24044 * loop-invariant.c (gain_for_invariant): Likewise.
24046 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
24048 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
24049 set the memory attributes in all cases but clear MEM_EXPR if need be.
24051 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
24053 PR tree-optimization/64434
24054 * cfgexpand.c (reorder_operands): New function.
24055 (expand_gimple_basic_block): Insert call of reorder_operands if
24058 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
24060 * config/mips/micromips.md (*swp): Remove explicit parallel.
24061 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
24062 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
24063 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
24064 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
24065 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
24066 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
24067 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
24068 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
24069 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
24070 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
24071 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
24072 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
24073 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
24074 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
24075 (mips_wrdsp): Likewise.
24076 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
24078 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
24079 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
24080 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
24081 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
24082 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
24083 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
24084 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
24085 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
24086 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
24088 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24090 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
24091 (mips_print_operand): Support 'y' to print exact log2 in decimal
24093 * config/mips/mips.h (ISA_HAS_LSA): New define.
24094 (ISA_HAS_DLSA): Likewise.
24095 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
24096 * config/mips/predicates.md (const_immlsa_operand): New predicate.
24098 2015-01-15 Martin Liska <mliska@suse.cz>
24101 * optc-save-gen.awk: Add support for array types.
24103 2015-01-15 Richard Biener <rguenther@suse.de>
24105 PR middle-end/64365
24106 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
24107 for MEM_REF access functions with the same base can never partially
24110 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
24112 * common.opt: New option -fstack-protector-explicit.
24113 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
24114 (stack_protect_decl_phase): Handle stack_protect attribute for
24115 explicit stack protection requests.
24116 (expand_used_vars): Similarly.
24117 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
24118 * doc/extend.texi: Add documentation for "stack_protect" attribute.
24119 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
24121 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
24124 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
24126 (sh_extending_set_of_reg): New struct.
24127 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
24128 sh_remove_reg_dead_or_unused_notes): New Declarations.
24129 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
24130 sh_find_extending_set_of_reg, sh_split_tst_subregs,
24131 sh_extending_set_of_reg::use_as_extended_reg): New functions.
24132 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
24133 convert to insn_and_split and use new function sh_split_tst_subregs.
24135 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
24137 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
24139 (Optimization Options): Move -fuse-ld documentation to...
24140 (Link Options): ...here.
24142 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24144 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
24146 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
24147 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
24148 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
24149 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
24150 instead of ZR for the memory operand of LL/SC.
24151 (compare_and_swap_12, sync_add<mode>): Likewise.
24152 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
24153 (sync_new_<optab>_12, sync_nand_12): Likewise.
24154 (sync_old_nand_12, sync_new_nand_12): Likewise.
24155 (sync_sub<mode>, sync_old_add<mode>): Likewise.
24156 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
24157 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
24158 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
24159 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
24160 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
24161 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
24162 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
24163 * doc/md.texi (ZC): Update description.
24165 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
24167 * builtins.c (expand_builtin_atomic_exchange): Remove error when
24168 memory model is CONSUME.
24169 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
24170 expand_builtin_atomic_store): Change invalid memory model errors to
24172 (expand_builtin_atomic_clear): Change invalid model errors to warnings
24173 and issue warning for CONSUME.
24175 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
24177 * lto-cgraph: Update function comments for
24178 lto_symtab_encoder_encode_*.
24180 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
24182 * Makefile.in (site.exp): Do not set ENABLE_LTO.
24184 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
24186 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
24187 * lto-cgraph.c (select_what_to_stream): Remove argument, use
24188 lto_stream_offload_p instead.
24189 * lto-streamer.h (select_what_to_stream): Remove argument.
24190 * passes.c (ipa_write_summaries): Likewise.
24191 * tree-pass.h (ipa_write_summaries): Likewise.
24193 2015-01-14 Richard Biener <rguenther@suse.de>
24195 PR tree-optimization/59354
24196 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
24197 groups larger than the slp group size as having gaps.
24199 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
24201 PR middle-end/59448
24202 * builtins.c (get_memmodel): Promote consume to acquire always.
24204 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24207 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
24210 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24213 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
24215 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
24216 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
24217 AVX512VBMI, as it implies AVX512BW.
24219 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24222 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
24223 (vec_unpacks_hi_v16sf): Ditto.
24225 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24227 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
24230 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24232 * doc/invoke.texi (mapcs): Mention deprecation.
24233 (mapcs-frame): Likewise.
24235 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
24238 * config/arm/arm.c (callee_saved_reg_p): Define.
24239 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
24240 register is callee saved instead of !call_used_regs[reg].
24241 (thumb1_compute_save_reg_mask): Likewise.
24243 2015-01-14 Hale Wang <hale.wang@arm.com>
24245 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
24248 2015-01-14 Richard Biener <rguenther@suse.de>
24251 * tree-inline.c (insert_debug_decl_map): Check destination
24252 function MAY_HAVE_DEBUG_STMTS.
24253 (insert_init_debug_bind): Likewise.
24254 (insert_init_stmt): Remove redundant check.
24255 (remap_gimple_stmt): Drop debug stmts if the destination
24256 function has var-tracking assignments disabled.
24258 2015-01-14 Martin Liska <mliska@suse.cz>
24260 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
24261 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
24263 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24266 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
24267 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
24269 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24271 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
24272 level from an ARCH; do not inject the default.
24273 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
24274 MIPS_ISA_LEVEL_SPEC.
24275 (MIPS_ISA_NAN2008_SPEC): Update comment.
24276 (BASE_DRIVER_SELF_SPECS): Likewise.
24277 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
24278 MIPS_DEFAULT_ISA_LEVEL_SPEC.
24279 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
24280 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
24281 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
24283 2015-01-14 Richard Biener <rguenther@suse.de>
24285 PR tree-optimization/64493
24286 PR tree-optimization/64495
24287 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
24288 assign the proper vectorized PHI to the inner loop exit PHIs.
24290 2015-01-14 Joey Ye <joey.ye@arm.com>
24292 * config/arm/arm.c (arm_compute_save_reg_mask):
24293 Do not save lr in case of tail call.
24294 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
24296 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
24298 * tree-vrp.c (check_array_ref): Emit more warnings
24299 for warn_array_bounds >= 2.
24300 * common.opt: New option -Warray-bounds=.
24301 * doc/invoke.texi: Document -Warray-bounds=.
24303 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
24305 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
24306 (mforbid-fp-as-gp): Remove.
24308 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
24309 (nds32_symbol_load_store_p): Remove.
24310 (nds32_fp_as_gp_check_available): Clean up implementation.
24311 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
24313 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
24314 fp-as-gp and ex9 cases.
24316 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24318 * tree-profile.c (init_ic_make_global_vars): Drop workaround
24319 for bintuils bug 14342.
24320 (init_ic_make_global_vars): Likewise.
24321 (gimple_init_edge_profiler): Likewise.
24322 (gimple_gen_ic_func_profiler): Likewise.
24324 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24326 * ipa-inline.c (inline_small_functions): Swap the operands in
24329 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24332 * ipa-inline-analysis.c (node_growth_cache): Remove.
24333 (initialize_growth_caches): Do not initialize it.
24334 (free_growth_caches): Do not free it.
24335 (do_estimate_growth): Rename to ...
24336 (estimate_growth): ... this one; drop growth cache code.
24337 (growth_likely_positive): Always go the heuristics way.
24338 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
24339 (reset_edge_caches): Do not reset node growth.
24340 (heap_edge_removal_hook): Do not maintain cache.
24341 (inline_small_functions): Likewise; strenghten sanity check.
24342 (ipa_inline): Do not maintain caches.
24343 * ipa-inline.h (node_growth_cache): Remove.
24344 (do_estimate_growth): Remove to ...
24345 (estimate_growth): this one; remove inline version.
24346 (reset_node_growth_cache): Remove.
24348 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24351 * ipa-inline.c (inline_small_functions): Update callee keys after
24352 resolving speculation
24353 (inline_small_functions): Always check monotonicity of the queue.
24355 2015-01-13 Marek Polacek <polacek@redhat.com>
24357 PR middle-end/64391
24358 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
24360 2015-01-13 Jakub Jelinek <jakub@redhat.com>
24362 PR rtl-optimization/64286
24363 * ree.c (combine_reaching_defs): Move part of comment earlier,
24364 remove !SCALAR_INT_MODE_P check.
24365 (add_removable_extension): Don't add vector mode
24366 extensions if all uses of the source register aren't the same
24369 2015-01-13 Renlin Li <renlin.li@arm.com>
24371 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
24372 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
24374 2015-01-13 Martin Liska <mliska@suse.cz>
24376 * ipa-icf.c (sem_function::equals_private): Call new functions
24377 cl_target_option_print_diff and cl_optimization_print_diff.
24378 * optc-save-gen.awk (cl_target_option_print_diff): New function.
24379 (cl_optimization_print_diff): Likewise.
24380 * opth-gen.awk: Likewise.
24382 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
24384 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
24385 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
24386 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
24387 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
24388 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
24389 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
24391 2015-01-13 Andrew Pinski <apinski@cavium.com>
24393 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
24394 instead of src mode.
24396 2015-01-13 Richard Biener <rguenther@suse.de>
24399 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
24402 2015-01-13 Andrew Pinski <apinski@cavium.com>
24404 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
24406 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
24408 2015-01-13 Jakub Jelinek <jakub@redhat.com>
24410 PR middle-end/63974
24411 * cfgexpand.c (expand_computed_goto): Don't call
24412 convert_memory_address here.
24414 2015-01-13 Richard Biener <rguenther@suse.de>
24416 PR tree-optimization/64406
24417 * tree-loop-distibution.c (pass_loop_distribution::execute):
24418 Reset the SCEV hashtable if we distributed anything.
24420 2015-01-13 Richard Biener <rguenther@suse.de>
24422 PR tree-optimization/64404
24423 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
24424 SLP types for CSEd loads.
24426 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
24428 PR tree-optimization/64436
24429 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
24430 merge of two symbolic numbers for a bitwise OR to ...
24431 (perform_symbolic_merge): This. Also fix computation of the range and
24432 end of the symbolic number corresponding to the result of a bitwise OR.
24434 2015-01-13 Richard Biener <rguenther@suse.de>
24436 PR tree-optimization/64568
24437 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
24438 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
24440 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24442 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
24443 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
24445 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24447 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
24448 target-specific symbol_ref flag.
24449 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
24450 resides in rodata section.
24451 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
24452 (nds32_encode_section_info): New function.
24454 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24456 * config/nds32/nds32.md (call): Use pseudo instruction bal which
24457 clobbers TA_REGNUM if large code model is specified.
24458 (call_register): Likewise.
24459 (call_immediate): Likewise.
24460 (call_value): Likewise.
24461 (call_value_register): Likewise.
24462 (call_value_immediate): Likewise.
24464 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24466 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
24467 (TARGET_CMODEL_MEDIUM): New macro.
24468 (TARGET_CMODEL_LARGE): New macro.
24469 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
24470 code model setting in assembly code.
24472 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24474 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24475 Remove MASK_GP_DIRECT flag.
24476 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
24477 one of the multilib default options.
24478 * config/nds32/nds32.opt (mgp-direct): Remove.
24479 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
24480 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
24482 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24484 * config/nds32/nds32.opt (mcmodel): Add new option.
24485 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
24486 to describe code model.
24488 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
24491 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
24493 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
24495 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
24496 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24497 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
24498 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
24499 __builtin_sh_set_fpscr.
24501 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
24503 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
24504 after a funtion name just to indicate it is a function.
24505 ([-fsanitize-undefined-trap-on-error]): Likewise.
24506 ([-fdbg-cnt=]): Likewise.
24507 ([-mmemcpy]): Likewise.
24508 ([-mflush-func]): Likewise.
24509 ([-msynci]): Likewise.
24511 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
24513 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
24516 2015-01-12 Jakub Jelinek <jakub@redhat.com>
24518 PR tree-optimization/64563
24519 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
24520 instead of != VR_VARYING.
24523 * config/i386/i386.c (ix86_expand_prologue): Add
24524 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
24526 PR tree-optimization/64454
24527 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
24528 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
24529 for signed or [0, op1 - 1] for unsigned modulo.
24530 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
24531 even if op1 does not satisfy integer_pow2p.
24534 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
24536 2015-01-12 Jeff Law <law@redhat.com>
24539 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
24540 (trunchiqi2, truncsihi2): Similarly.
24542 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
24543 rather than calling F.
24545 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
24547 * tsan.c (instrument_expr): Use force_gimple_operand.
24548 Use may_be_nonaddressable_p instead of is_gimple_addressable.
24550 2015-01-12 Richard Biener <rguenther@suse.de>
24552 PR tree-optimization/64530
24553 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
24556 2015-01-12 Richard Biener <rguenther@suse.de>
24558 PR middle-end/64357
24559 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
24562 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24564 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
24565 Cortex-A17 tuning parameters.
24566 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
24568 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24570 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
24571 * config/arm/arm.c (arm_macro_fusion_p): New function.
24572 (arm_macro_fusion_pair_p): Likewise.
24573 (TARGET_SCHED_MACRO_FUSION_P): Define.
24574 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
24575 (ARM_FUSE_NOTHING): Likewise.
24576 (ARM_FUSE_MOVW_MOVT): Likewise.
24577 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
24578 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
24579 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
24580 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
24581 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
24582 arm_cortex_a5_tune): Specify fuseable_ops value.
24584 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
24587 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
24588 test for PIE with copy reloc.
24589 * configure: Regenerated.
24591 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24593 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
24595 (arm_tls_descseq_addr): Likewise.
24596 (arm_gen_movmemqi): Likewise.
24597 (arm_expand_epilogue_apcs_frame): Likewise.
24598 (arm_expand_epilogue): Likewise.
24599 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
24602 2015-01-12 Martin Liska <mliska@suse.cz>
24605 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
24606 volatility for correct operands.
24608 2015-01-12 Martin Liska <mliska@suse.cz>
24610 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
24611 indication that a function is not leaf.
24612 (sem_function::compare_polymorphic_p): Likewise.
24614 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24616 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
24617 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
24618 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
24619 fold-const.h, tree-check.h.
24621 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
24625 * ipa-inline.c (compute_uninlined_call_time,
24626 compute_inlined_call_time): Use counts for extra precision when
24628 (big_speedup_p): Fix formating.
24629 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
24630 (relative_time_benefit): Remove.
24631 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
24632 merge guessed and read profile paths.
24633 (inline_small_functions): Count only !optimize_size functions into
24634 initial size; be more lax about sanity check when profile is used;
24635 be sure to update inlined function profile when profile is read.
24637 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
24640 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
24641 cost when edge becomes direct.
24642 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
24643 is resolved or when introducing new speculation.
24645 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
24649 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
24650 '||' to fix typo issue.
24652 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
24653 accept and return NULL.
24655 2015-01-12 Martin Liska <mliska@suse.cz>
24657 * cgraph.c (cgraph_edge::remove_callee): Move function to header
24658 file for being inlined.
24659 (cgraph_set_edge_callee): Delete.
24660 (cgraph_edge::redirect_callee): Move function to header file
24662 (cgraph_edge::make_direct): Use new function.
24663 (cgraph_edge::dump_edge_flags): New function created from
24664 static dump_edge_flags function.
24665 (cgraph_node::dump): Use new function.
24666 (cgraph_edge::verify_count_and_frequency): New function created
24667 from verify_edge_count_and_frequency.
24668 (cgraph_edge::verify_corresponds_to_fndecl): New function created
24669 from verify_edge_corresponds_to_fndecl.
24670 (verify_edge_corresponds_to_fndecl): Delete.
24671 (cgraph_node::verify_node): Use new function.
24672 * cgraph.h (cgraph_edge::set_callee): New function.
24673 (cgraph_edge::dump_edge_flags): Likewise.
24674 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
24676 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
24678 * ipa-utils.c (estimate_function_body_sizes): Do not
24679 free node params when called late with early=true.
24681 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
24683 * doc/md.texi (Instruction Patterns): Rewrite text for
24685 (Example): Likewise.
24687 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
24689 * doc/invoke.texi (Option Summary): Break long lines.
24690 [(-fdiagnostics-color)]: Put long literal in @smallexample
24692 [(-fsanitize-recover)]: Likewise.
24693 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
24694 [(-ffast-math)]: Likewise.
24695 [(--param max-inline-insns-recursive)]: Likewise.
24696 [(--param max-inline-recursive-depth)]: Likewise.
24697 [(-mno-text-section-literals)]: Likewise.
24699 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
24701 * doc/install.texi: Update for libgomp being renamed from "GNU
24702 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
24704 * doc/sourcebuild.texi: Likewise.
24706 2015-01-10 Anthony Green <green@moxielogic.com>
24708 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
24709 mul.x availability for moxiebox configuration.
24711 2015-01-09 Anthony Green <green@moxielogic.com>
24713 * config/moxie/moxie.md: Tabify assembly output.
24715 2015-01-09 Anthony Green <green@moxielogic.com>
24717 * config/moxie/moxie.md (CC_REG): Correct register definition.
24719 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
24721 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
24722 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
24725 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
24727 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
24729 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
24730 Jakub Jelinek <jakub@redhat.com>
24732 PR middle-end/64412
24733 * lto-streamer.h (lto_stream_offload_p): New declaration.
24734 * lto-streamer.c (lto_stream_offload_p): New variable.
24735 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
24736 at the same time as section_name_prefix.
24737 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
24738 if lto_stream_offload_p.
24739 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
24740 stream TREE_TARGET_OPTION if lto_stream_offload_p.
24741 (write_ts_function_decl_tree_pointers): Don't
24742 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
24743 * tree-streamer-in.c (unpack_value_fields): Don't stream
24744 TREE_TARGET_OPTION in if ACCEL_COMPILER.
24745 (lto_input_ts_function_decl_tree_pointers): Don't stream
24746 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
24747 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
24748 instead of section_name_prefix string comparisons.
24750 2015-01-09 Jakub Jelinek <jakub@redhat.com>
24752 PR rtl-optimization/64536
24753 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
24756 2015-01-09 Michael Collison <michael.collison@linaro.org>
24758 PR tree-optimization/64322
24759 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
24760 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
24762 2015-01-09 Tom de Vries <tom@codesourcery.com>
24764 PR rtl-optimization/64539
24765 * regcprop.c (kill_clobbered_values): Factor out of ...
24766 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
24767 instead of note_stores with kill_clobbered_value.
24769 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
24771 * ginclude/unwind-arm-common.h: Revert previous commit.
24773 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
24775 * config.gcc (arm*-*-freebsd*): New configuration.
24776 * config/arm/freebsd.h: New file.
24777 * config.host: Add extra components for arm*-*-freebsd*.
24778 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
24779 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
24781 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24783 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
24785 * config/rs6000/t-rtems: Add e6500 multilibs.
24787 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24789 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
24792 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24794 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
24795 MULTILIB_EXCEPTIONS.
24797 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24799 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
24800 MULTILIB_EXCEPTIONS.
24802 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24804 * config/arm/t-rtems-eabi: Rename to...
24805 * config/arm/t-rtems: ...this.
24806 * config/arm/rtems-eabi.h: Rename to...
24807 * config/arm/rtems.h: ...this.
24808 * config.gcc (arm*-*-rtems*): Reflect changes above.
24810 2015-01-09 Richard Biener <rguenther@suse.de>
24812 PR tree-optimization/64410
24813 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
24815 (execute_update_addresses_taken): Deal with that.
24816 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
24817 loads/stores for complex variables.
24819 2015-01-09 Martin Liska <mliska@suse.cz>
24821 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
24823 (func_checker::compare_memory_operand): New function.
24824 (func_checker::compare_operand): Split case to newly
24826 (func_checker::compare_cst_or_decl): New function.
24827 (func_checker::compare_gimple_call): Identify
24829 (func_checker::compare_gimple_assign): Likewise.
24830 * ipa-icf-gimple.h: New function.
24832 2015-01-09 Martin Liska <mliska@suse.cz>
24835 * sreal.c (sreal::dump): Change unsigned format to signed for
24837 (sreal::to_double): Replace exp2 with scalbln.
24839 2015-01-09 Martin Liska <mliska@suse.cz>
24841 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
24842 * ipa-icf.c (sem_function::equals_private): Add support for target and
24843 (sem_item_optimizer::merge_classes): Remove redundant function
24844 optimization flags comparison.
24845 * tree.h (target_opts_for_fn): New function.
24847 2015-01-09 Tom de Vries <tom@codesourcery.com>
24849 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
24851 2015-01-09 Kito Cheng <kito@0xlab.org>
24853 PR rtl-optimization/64348
24854 * lra-constraints.c (split_reg): Fix caller-save store/restore
24855 instruction generation.
24857 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
24859 PR gcov-profile/61790
24860 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
24861 long long. Fallback to int64_t if host doesn't have long long and
24862 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
24864 2015-01-08 Jakub Jelinek <jakub@redhat.com>
24866 PR tree-optimization/63989
24867 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
24868 from 1000 to 10000.
24869 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
24870 (get_stridx): If we don't have a record for certain SSA_NAME,
24871 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
24872 constant offset, call get_stridx_plus_constant.
24873 (get_stridx_plus_constant): New function.
24874 (zero_length_string): Don't use get_stridx here.
24877 PR middle-end/64388
24878 * dse.c (struct insn_info): Mention frame_read set also
24879 before reload for tail calls on some targets.
24880 (scan_insn): Revert 2014-12-22 change. Set frame_read
24881 also before reload for tail calls if
24882 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
24883 instead of add_non_frame_wild_read for non-const/memset
24884 tail calls after reload.
24886 2015-01-08 Jason Merrill <jason@redhat.com>
24888 * ubsan.c (do_ubsan_in_current_function): New.
24889 (pass_ubsan::gate): Use it.
24890 * ubsan.h: Declare it.
24891 * convert.c (convert_to_integer): Use it.
24893 2015-01-08 Jakub Jelinek <jakub@redhat.com>
24896 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
24897 compare_code when it is unconditionally overwritten afterwards.
24898 Use ix86_reverse_condition instead of reverse_condition. Don't
24899 change code if *reverse_condition* returned UNKNOWN and don't
24900 swap ct/cf and negate diff in that case.
24902 2015-01-08 Mike Stump <mikestump@comcast.net>
24904 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
24905 (pass_tsan_O0::gate): Likewise.
24906 * extend.texi (Function Attributes): Add no_sanitize_thread
24909 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
24911 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
24912 for registering builtins.
24913 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
24914 add -fopenmp to the argv_obstack used when invoking
24915 compile_for_target.
24917 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
24918 add "-m32" or "-m64" to argv_obstack.
24919 (generate_host_descr_file): Likewise, when invoking host_compiler.
24920 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
24923 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
24925 * config/sh/sh-mem.cc: Use constant as second operand when emitting
24928 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
24931 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
24932 constant load if constant operand fits into I08.
24934 2015-01-08 Jakub Jelinek <jakub@redhat.com>
24937 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
24938 and TREE_THIS_VOLATILE for MEM_REFs.
24939 (build5_stat): Fix up initialization of TREE_READONLY and
24940 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
24942 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
24945 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
24946 of r for the second alternative of the destination operand.
24948 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
24951 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
24953 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
24955 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
24957 ([-fivar-visibility], [-fvisibility]): Likewise.
24959 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
24961 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
24962 the file where @code, @command, etc is more appropriate.
24964 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
24966 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
24967 of -mrecip= documentation.
24969 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24972 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
24973 correct reload handler if -m32 -mpowerpc64 is used.
24975 2015-01-06 Tom de Vries <tom@codesourcery.com>
24977 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
24979 2015-01-08 Christian Bruel <christian.bruel@st.com>
24982 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
24984 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
24986 PR tree-optimization/63259
24987 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
24988 if optab exists for 16bit byteswap.
24990 2015-01-06 Jakub Jelinek <jakub@redhat.com>
24992 * opts.c (common_handle_option): Add support for
24993 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
24994 * doc/invoke.texi: Document -fno-sanitize=all,
24995 -f{,no-}sanitize-recover=all. Document that
24996 -fsanitize=float-cast-overflow is not enabled
24997 by -fsanitize=undefined. Fix up documentation
24998 of -f{,no-}sanitize-recover.
25000 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
25002 * config.gcc: Add Visium support.
25003 * configure.ac: Likewise.
25004 * configure: Regenerate.
25005 * doc/extend.texi (interrupt attribute): Add Visium.
25006 * doc/invoke.texi: Document Visium options.
25007 * doc/install.texi: Document Visium target.
25008 * doc/md.texi: Document Visium constraints.
25009 * common/config/visium: New directory.
25010 * config/visium: Likewise.
25012 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
25014 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
25015 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
25017 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
25019 * combine.c (combine_validate_cost): Do not count the cost of a
25020 split I2 twice. Do not display it twice in the dump, either.
25022 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
25024 Revert parts of r219199.
25025 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
25027 ([-Wtraditional]): Restore markup on <limits.h>.
25029 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
25032 * doc/invoke.texi: Document -Wsuggest-override.
25034 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
25036 PR rtl-optimization/64287
25037 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
25038 (process_options): Disable flag_ipa_ra if profiling.
25040 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
25042 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
25044 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
25046 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
25047 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
25048 put under #if TARGET_LOOPS guard.
25050 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
25052 * config/i386/i386.c (output_387_binary_op): Use std::swap.
25054 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
25056 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
25057 * rtl.h (refers_to_regno_p): Add overload.
25059 * bt-load.c: Likewise.
25060 * combine.c: Likewise.
25061 * df-scan.c: Likewise.
25062 * sched-deps.c: Likewise.
25063 * config/s390/s390.c: Likewise.
25064 * config/m32r/m32r.c: Likewise.
25065 * config/rs6000/spe.md: Likewise.
25066 * config/rs6000/rs6000.c: Likewise.
25067 * config/pa/pa.c: Likewise.
25068 * config/stormy16/stormy16.c: Likewise.
25069 * config/cris/cris.c: Likewise.
25070 * config/arc/arc.md: Likewise.
25071 * config/arc/arc.c: Likewise.
25072 * config/sh/sh.md: Likewise.
25073 * config/sh/sh.c: Likewise.
25074 * config/frv/frv.c: Likewise.
25076 2015-01-05 Jakub Jelinek <jakub@redhat.com>
25079 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
25080 call as cleanup of the whole body.
25081 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
25082 * tsan.c (replace_func_exit): New function.
25083 (instrument_func_exit): Moved earlier.
25084 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
25085 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
25087 (tsan_pass): Don't call instrument_func_exit.
25088 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
25089 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
25093 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
25094 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
25095 it to libubsan handler instead of EXPR. Fold comparisons earlier,
25096 if the result is integer_zerop, return NULL_TREE.
25097 * convert.c (convert_to_integer): Pass expr as ARG.
25099 PR tree-optimization/64465
25100 * tree-inline.c (redirect_all_calls): During inlining
25101 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
25102 changed the stmt to a non-throwing call.
25104 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
25106 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
25107 etc markup throughout the file.
25109 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
25111 Enable experimental TSAN support for Ada.
25112 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
25114 2015-01-05 Jakub Jelinek <jakub@redhat.com>
25116 PR tree-optimization/64494
25117 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
25118 clear SSA_NAME_ANTI_RANGE_P flag.
25120 2015-01-05 Marek Polacek <polacek@redhat.com>
25122 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
25124 2015-01-05 Jakub Jelinek <jakub@redhat.com>
25126 Update copyright years.
25128 * gcc.c (process_command): Update copyright notice dates.
25129 * gcov-dump.c: Ditto.
25131 * doc/cpp.texi: Bump @copying's copyright year.
25132 * doc/cppinternals.texi: Ditto.
25133 * doc/gcc.texi: Ditto.
25134 * doc/gccint.texi: Ditto.
25135 * doc/gcov.texi: Ditto.
25136 * doc/install.texi: Ditto.
25137 * doc/invoke.texi: Ditto.
25139 * auto-profile.c, auto-profile.h: Fix up Copyright line.
25141 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
25143 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
25145 ([-fvtable-verify], [-fvtv-debug]): Likewise.
25146 ([-Wabi]): Likewise.
25147 ([-fmessage-length]): Likewise.
25148 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
25149 ([-Wno-discarded-qualifiers]): Likewise.
25150 ([-Wnodiscarded-array-qualifiers]): Likewise.
25151 ([-Wno-virtual-move-assign]): Likewise.
25152 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
25153 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
25154 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
25155 ([-fsanitize-undefined-trap-on-error]): Likewise.
25156 ([-floop-interchange]): Likewise.
25157 ([-ftree-coalesce-inlined-vars]): Likewise.
25158 ([-fvect-cost-model]): Likewise.
25159 ([-flto]): Likewise.
25160 ([--param]): Likewise.
25161 (Spec Files): Likewise.
25162 ([-mstrict-align]): Likewise.
25163 ([-mfix-cortex-a53-835769]): Likewise.
25164 ([-march], [-mtune]): Likewise.
25165 ([-mpic-register]): Likewise.
25166 ([-munaligned-access]): Likewise.
25167 ([-msp8]): Likewise.
25168 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
25169 (AVR Built-in Macros): Likewise.
25170 ([-mpreferred-stack-boundary]): Likewise.
25171 ([-mtune-crtl]): Likewise.
25172 ([-mashf]): Likewise.
25173 ([-mmcu=]): Likewise.
25174 ([-minrt]): Likewise.
25175 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
25176 ([-mupper-regs]): Likewise.
25177 ([-matomic-model]): Likewise.
25178 ([-mdiv]): Likewise.
25179 ([-mzdcbranch]): Likewise.
25180 ([-mdisable-callt]): Likewise.
25181 ([-msoft-float]): Likewise.
25182 ([-m8byte-align]): Likewise.
25183 ([-fstack-reuse]): Likewise.
25185 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25187 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
25188 Fix markup, light copy-editing.
25189 ([-fauto-profile]): Rewrite to fix formatting and content
25192 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25194 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
25195 Copy-edit description.
25196 ([-fisolate-erroneous-paths-attribute]): Likewise.
25197 * common.opt (fisolate-erroneous-paths-dereference):
25198 Copy-edit description.
25199 (fisolate-erroneous-paths-attribute): Likewise.
25201 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25203 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
25206 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25208 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
25209 ([-fvtv-debug]): Likewise.
25210 ([-Wc++-compat]): Likewise.
25211 ([-Wc++11-compat]): Likewise.
25212 ([-Wc++14-compat]): Likewise.
25213 ([-Wno-sized-deallocation]): Likewise.
25214 ([-femit-class-debug-always]): Likewise.
25215 ([-femit-struct-debug-detailed]): Likewise.
25216 ([-fno-keep-inline-dllexport]): Likewise.
25217 ([-fira-algorithm]): Likewise.
25218 ([-fira-region]): Likewise.
25219 ([-flra-remat]): Likewise.
25220 ([-fipa-ra]): Likewise.
25221 ([-fhoist-adjacent-loads]): Likewise.
25222 ([-fisolate-erroneous-paths-dereference]): Likewise.
25223 ([-fisolate-erroneous-paths-attribute]): Likewise.
25224 ([-ftree-switch-conversion]): Likewise.
25225 ([-ftree-tail-merge]): Likewise.
25226 ([-ftree-loop-if-convert]): Likewise.
25227 ([-ftree-loop-if-convert-stores]): Likewise.
25228 ([-ftree-loop-distribution]): Likewise.
25229 ([-ftree-loop-distribute-patterns]): Likewise.
25230 ([-flto-compression-level]): Likewise.
25231 ([-flto-report]): Likewise.
25232 ([-flto-report-wpa]): Likewise.
25233 ([-fuse-linker-plugin]): Likewise.
25234 ([-mfix-cortex-a53-835769]): Likewise.
25235 ([-mno-fix-cortex-a53-835769]): Likewise.
25236 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
25237 explicit listing; add a note to the discussion indicating they
25238 exist. Reorder table to group similar options. Add missing
25239 @opindex entries. Add @need commands throughout the table to
25240 allow it to be split across multiple pages.
25241 ([-m8bit-idiv]): Fix @opindex.
25242 ([-mavx256-split-unaligned-load]): Likewise.
25243 ([-mavx256-split-unaligned-store]): Likewise.
25244 ([-mstack-protector-guard]): Likewise.
25245 ([-mcpu=]): Likewise.
25246 ([-mcpu]): Likewise.
25247 ([-mpointer-size=]): Likewise.
25249 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
25251 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
25252 instead of `m' constraint. Likewise for unnamed movb comparison
25253 patterns using reg_before_reload_operand predicate.
25254 * config/pa/predicates.md (reg_before_reload_operand): Tighten
25255 predicate to reject register index and LO_SUM DLT memory forms
25258 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
25260 * doc/invoke.texi (Option Summary): Fix spelling of
25261 -fdevirtualize-at-ltrans.
25262 ([-fdevirtualize]): Fix markup.
25263 ([-fdevirtualize-speculatively]): Fix typo.
25264 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
25265 implementor-speaky.
25266 * common.opt (fdevirtualize-at-ltrans): Likewise.
25267 * ipa-devirt.c: Fix typos in comments throughout the file.
25268 (ipa_devirt): Fix typos in format strings for dump output.
25270 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
25272 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
25273 discussion of defaults, light copy-editing.
25275 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25277 * tsan.c (instrument_expr): corrected previous checkin.
25279 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25281 Instrument bit field and unaligned accesses for TSAN.
25282 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
25283 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
25284 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
25285 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
25286 unaligned memory regions.
25288 2015-01-01 Anthony Green <green@moxielogic.com>
25290 * config/moxie/predicates.md (moxie_general_movsrc_operand):
25291 Restrict move source register offsets to 16 bits.
25293 Copyright (C) 2015 Free Software Foundation, Inc.
25295 Copying and distribution of this file, with or without modification,
25296 are permitted in any medium without royalty provided the copyright
25297 notice and this notice are preserved.