1 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
4 after -mcmodel=large -fPIC sorry.
6 2015-08-12 Richard Biener <rguenther@suse.de>
8 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
9 comparison operand order and commutative ternary op operand order.
10 (sccvn_dom_walker::cond_stack): New state to track temporary
12 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
14 (sccvn_dom_walker::record_cond): Add a single temporary conditional
16 (sccvn_dom_walker::record_conds): Add a temporary conditional
17 expressions and all related expressions also true/false.
18 (sccvn_dom_walker::before_dom_children): Record temporary
19 expressions based on the controlling condition of a single
20 predecessor. When trying to simplify a conditional statement
21 lookup expressions we might have inserted earlier.
23 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
26 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
27 to ARM core registers.
29 2015-08-12 Nathan Sidwell <nathan@acm.org>
31 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
32 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
34 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
36 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
38 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
40 2015-08-12 Richard Biener <rguenther@suse.de>
42 * gimple.h (remove_pointer): New trait.
43 (GIMPLE_CHECK2): New inline template function.
44 (gassign::code_): New constant static member.
45 (is_a_helper<const gassign *>): Add.
46 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
47 and forward to a new gassign overload with less checking and a
48 cheaper way to access the operand.
49 (gimple_assign_lhs_ptr): Likewise.
50 (gimple_assign_set_lhs): Likewise.
51 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
53 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
55 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
57 (gimple_assign_rhs_code): Likewise.
58 * gimple.c (gassign::code_): Define.
60 2015-08-12 Richard Biener <rguenther@suse.de>
62 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
63 Eliminate edges marked as not executable by SCCVN.
64 * tree-ssa-sccvn.c: Include gimple-iterator.h.
65 (cond_dom_walker): Rename to sccvn_dom_walker.
66 (sccvn_dom_walker::before_dom_children): Value-number defs
68 (run_scc_vn): Remove loop value-numbering all SSA names.
69 Drop not visited SSA names to varying.
71 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
73 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
74 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
75 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
76 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
77 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
78 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
79 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
80 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
81 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
83 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
86 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
87 to enum feature_priority and feature_list.
88 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
91 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
93 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
96 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
100 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
101 account when deciding what was the command-line status.
103 2015-08-11 Nathan Sidwell <nathan@acm.org>
105 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
107 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
108 we're not the only contributor to target phi.
110 2015-08-11 Jiong Wang <jiong.wang@arm.com>
112 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
115 2015-08-11 Tom de Vries <tom@codesourcery.com>
117 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
119 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
121 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
123 * config/i386/i386.md (cpu): Remove knl.
125 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
129 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
131 * omp-low.c (oacc_process_reduction_data): Remove handline of
132 GOMP_DEVICE_HOST_NONSHM.
134 * lto-streamer-in.c (lto_input_mode_table): Adjust to
135 GET_MODE_INNER changes.
137 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
138 Ilya Verbin <ilya.verbin@intel.com>
140 * lto-streamer-in.c (lto_input_mode_table): Correctly advance
143 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
145 * doc/options.texi (EnabledBy): Document that the argument must be
147 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
148 Not enabled by -Wall.
149 * optc-gen.awk: Give nicer error messages. Detect if the argument
150 of EnabledBy is not a Common option.
151 * common.opt (Wnull-dereference): Not enabled by -Wall.
152 * opt-functions.awk (lang_enabled_by): Nicer error messages.
154 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
156 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
157 model == 0x4f as Broadwell.
159 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
161 PR rtl-optimization/67028
162 * combine.c (simplify_comparison): Fix comment. Rearrange code.
163 Add test to see if a const_int fits in the new mode.
165 2015-08-07 DJ Delorie <dj@redhat.com>
167 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
169 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
171 PR rtl-optimization/67029
172 * ira-color.c: Include "recog.h" before including "ira-int.h".
173 * target-globals.c: Likewise.
174 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
175 adds an alternative_mask argument and use it instead of
176 preferred_alternatives.
177 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
178 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
179 * sched-deps.c: Include "ira-int.h" after including "ira.h".
180 (sched_analyze_insn): Update call to
181 ira_implicitly_set_insn_hard_regs.
182 * sel-sched.c: Include "ira-int.h" after including "ira.h".
183 (implicit_clobber_conflict_p): Update call to
184 ira_implicitly_set_insn_hard_regs.
186 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
188 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
190 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
193 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
194 currently_expanding_to_rtl is set.
196 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
198 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
199 * configure: Regenerate.
201 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
202 Jiong Wang <jiong.wang@arm.com>
204 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
205 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
206 (REG_CLASS_NAMES): Likewise.
207 (REG_CLASS_CONTENTS): Likewise.
208 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
209 (aarch64_register_move_cost): Likewise.
210 (aarch64_load_symref_appropriately): Invoke the new added pattern if
212 * config/aarch64/constraints.md (Uc0): New constraint.
214 2015-08-06 Jiong Wang <jiong.wang@arm.com>
216 * config/aarch64/constraints.md (Usf): Add the test of
217 aarch64_is_noplt_call_p.
219 2015-08-06 Jiong Wang <jiong.wang@arm.com>
221 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
223 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
224 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
225 (call_symbol): Likewise.
227 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
229 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
230 for vectorizing multiplication patterns.
231 * tree-vectorizer.h: Adjust the number of patterns.
233 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
235 * config/i386/sse.md (*vec_concatv2df): Declare added
236 alternatives as sselog type.
238 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
240 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
243 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
245 * config/s390/s390.c (s390_expand_tbegin): Expand either
246 tbegin_1_z13 or tbegin_1 depending on VX flag.
247 * config/s390/s390.md ("tbegin_1_z13"): New expander.
249 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
251 * config/s390/s390.opt: Clarify description for -mzvector
252 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
255 2015-08-06 Richard Biener <rguenther@suse.de>
257 * gimple.h (gimple_call_set_fn): Access op member directly.
258 (gimple_call_chain_ptr): Likewise.
259 (gimple_call_set_chain): Likewise.
260 (gimple_cond_lhs_ptr): Likewise.
261 (gimple_cond_set_lhs): Likewise.
262 (gimple_cond_rhs_ptr): Likewise.
263 (gimple_cond_set_rhs): Likewise.
264 (gimple_cond_true_label): Likewise.
265 (gimple_cond_set_true_label): Likewise.
266 (gimple_cond_set_false_label): Likewise.
267 (gimple_cond_false_label): Likewise.
268 (gimple_label_label): Likewise.
269 (gimple_label_set_label): Likewise.
270 (gimple_goto_set_dest): Likewise.
271 (gimple_asm_input_op): Likewise.
272 (gimple_asm_input_op_ptr): Likewise.
273 (gimple_asm_set_input_op): Likewise.
274 (gimple_asm_output_op): Likewise.
275 (gimple_asm_output_op_ptr): Likewise.
276 (gimple_asm_set_output_op): Likewise.
277 (gimple_asm_clobber_op): Likewise.
278 (gimple_asm_set_clobber_op): Likewise.
279 (gimple_asm_label_op): Likewise.
280 (gimple_asm_set_label_op): Likewise.
281 (gimple_switch_index): Likewise.
282 (gimple_switch_index_ptr): Likewise.
283 (gimple_return_retval_ptr): Likewise.
284 (gimple_return_retval): Likewise.
285 (gimple_return_set_retval): Likewise.
286 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
287 (gimple_switch_label): Likewise.
288 (gimple_switch_set_label): Likewise.
290 2015-08-06 Richard Biener <rguenther@suse.de>
292 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
293 bool comparison canonicalization and restrict to integers.
295 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
297 * coretypes.h (enum symbol_visibility): Relocate here.
298 * flag-types.h (enum symbol_visibility): Remove.
299 * tree-core.h (enum symbol_visibility): Remove.
301 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
304 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
305 for no_split_stack function attribute along with
307 (rs6000_expand_split_stack_prologue): Likewise.
309 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
310 Jeff Law <law@redhat.com>
313 * doc/invoke.texi (Wnull-dereference): New.
314 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
315 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
316 Warn for potential NULL dereferences.
317 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
318 * ubsan.c (instrument_nonnull_arg): Call
319 infer_nonnull_range_by_attribute.
320 (instrument_nonnull_return): Likewise.
321 * common.opt (Wnull-dereference); New.
322 * gimple.c (infer_nonnull_range): Remove bool arguments.
323 (infer_nonnull_range_by_dereference): New.
324 (infer_nonnull_range_by_attribute): New.
325 * gimple.h: Update declarations.
327 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
329 * gensupport.c (sequence_num): Replace with...
330 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
331 ...these new variables.
332 (init_rtx_reader_args_cb): Update accordingly.
333 (get_num_code_insns): Likewise.
334 (read_md_rtx): Rework to use a while loop and get_c_test.
335 Use the new counters. Remove redundant DEFINE_SUBST case.
336 * genoutput.c (gen_split): Delete.
337 (main): Don't call it.
339 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
341 * gensupport.h (get_c_test): Declare.
342 * gensupport.c (get_c_test): New function.
343 * genconditions.c (main): Use it.
344 * genrecog.c (validate_pattern): Likewise.
345 (match_pattern_1): Likewise. Remove c_test argument.
346 (match_pattern): Update accordingly and remove c_test argument.
347 (main): Update accordingly.
349 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
351 * gensupport.h (get_num_insn_codes): Declare.
352 * gensupport.c (get_num_insn_codes): New function.
353 * genattrtab.c (optimize_attrs): Rename max_insn_code to
355 (main): Likewise. Use get_num_insn_codes.
356 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
358 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
361 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
362 is zero- rather than sign-extended.
364 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
366 * target-insns.def (can_extend): Delete.
368 2015-08-05 Richard Biener <rguenther@suse.de>
370 PR tree-optimization/67121
371 * tree-if-conv.c (combine_blocks): Clear range-info produced
372 by stmts no longer executed conditionally.
374 2015-08-05 Nick Clifton <nickc@redhat.com>
376 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
377 to allow identical far pointers to remain.
379 2015-08-05 Richard Biener <rguenther@suse.de>
382 * match.pd: Compare address bases with == if they are decls
383 or SSA names, not operand_equal_p. Otherwise fail.
385 2015-08-05 Richard Biener <rguenther@suse.de>
387 PR tree-optimization/67055
388 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
391 * g++.dg/torture/pr67055.C: New testcase.
393 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
395 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
397 (define_attr "enabled"): Handle avx521vl and noavx512vl.
398 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
399 AVX-512 alternative out of SSE.
400 (define_insn "*vec_concatv2df"): Ditto.
402 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
404 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
405 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
406 CODE_FOR_avx_ptestv4di.
407 * config/i386/sse.md (define_mode_iterator V_AVX): New.
408 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
409 (define_insn "avx_ptest256"): Merge this ...
410 (define_insn "sse4_1_ptest"): And this ...
411 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
413 2015-08-05 Richard Biener <rguenther@suse.de>
415 PR tree-optimization/67109
416 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
417 against too big groups. Print whether this is a load or store
418 group. Rename from ...
419 (vect_analyze_group_access): ... this which is now a wrapper
420 dissolving an invalid group.
421 (vect_analyze_data_ref_accesses): Print whether this is a load
424 2015-08-05 Richard Biener <rguenther@suse.de>
427 * match.pd: Guard const_binop result checking against NULL_TREE
430 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
432 * cse.c (cse_insn): Restoring old behaviour for src_eqv
433 when dest and value in the REG_EQUAL are same and dest
436 2015-08-04 Anatoly Sokolov <aesok@post.ru>
438 * config/moxie/moxie.h (PRINT_OPERAND,
439 PRINT_OPERAND_ADDRESS): Remove macros.
440 * config/moxie/moxie-protos.h (moxie_print_operand,
441 moxie_print_operand_address): Remove declaration.
442 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
443 TARGET_PRINT_OPERAND_ADDRESS): Define.
444 (moxie_print_operand, moxie_print_operand_address): Make static.
446 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
449 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
450 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
452 2015-08-04 Richard Biener <rguenther@suse.de>
454 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
456 (dt_operand::gen_gimple_expr): Adjust.
458 2015-08-04 Richard Biener <rguenther@suse.de>
460 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
461 bool compares on RHS.
462 * match.pd: Add X ==/!= !X is false/true pattern.
464 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
466 * config/aarch64/aarch64.c: Change inner loop statement cost
467 to be consistent with other targets.
469 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
471 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
474 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
476 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
477 (machine_function): Remove pseudos field.
479 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
481 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
482 Exit early and use target_option_current_node if processing current
485 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
487 * doc/extend.texi (AArch64 Function Attributes): New node.
488 (AArch64 Pragmas): Likewise.
490 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
492 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
493 Initialize simd builtins if TARGET_SIMD.
494 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
495 Make sure that the builtins are initialized only once no matter how
496 many times the function is called.
497 (aarch64_init_builtins): Unconditionally initialize crc builtins.
498 (aarch64_relayout_simd_param): New function.
499 (aarch64_simd_expand_args): Use above during argument expansion.
500 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
501 simd builtins if TARGET_SIMD.
502 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
504 (aarch64_relayout_simd_types): Likewise.
506 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
508 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
509 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
510 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
511 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
513 (aarch64_reset_previous_fndecl): New function.
514 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
516 * config/aarch64/aarch64-c.c: New file.
517 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
518 Push and pop options at beginning and end. Remove ifdef
520 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
521 Add pragma +nothing+simd and +nothing+crypto where appropriate.
522 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
523 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
525 (aarch64_register_pragmas): Likewise.
526 (aarch64_reset_previous_fndecl): Likewise.
527 (aarch64_process_target_attr): Likewise.
528 (aarch64_override_options_internal): Likewise.
530 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
532 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
534 (aarch64_can_inline_p): Likewise.
535 (TARGET_CAN_INLINE_P): Define.
537 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
539 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
540 Remove static. Handle OPT_mgeneral_regs_only,
541 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
542 OPT_momit_leaf_frame_pointer.
543 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
544 (aarch64_attr_opt_type): New enum.
545 (aarch64_attribute_info): New struct.
546 (aarch64_handle_attr_arch): New function.
547 (aarch64_handle_attr_cpu): Likewise.
548 (aarch64_handle_attr_tune): Likewise.
549 (aarch64_handle_attr_isa_flags): Likewise.
550 (aarch64_attributes): New table.
551 (aarch64_process_one_target_attr): New function.
552 (num_occurences_in_str): Likewise.
553 (aarch64_process_target_attr): Likewise.
554 (aarch64_option_valid_attribute_p): Likewise.
555 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
556 * config/aarch64/aarch64-protos.h: Include input.h
557 (aarch64_handle_option): Declare prototype.
559 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
561 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
562 * config/aarch64/aarch64.c: Include target-globals.h
563 (aarch64_previous_fndecl): New variable.
564 (aarch64_set_current_function): New function.
565 (TARGET_SET_CURRENT_FUNCTION): Define.
567 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
569 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
570 (explicit_arch): Likewise.
571 (x_aarch64_isa_flags): Likewise.
572 (mgeneral-regs-only): Mark as Save.
573 (mfix-cortex-a53-835769): Likewise.
574 (mcmodel=): Likewise.
575 (mstrict-align): Likewise.
576 (momit-leaf-frame-pointer): Likewise.
577 (mtls-dialect): Likewise.
579 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
580 (aarch64_isa_flags): Remove extern declaration.
581 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
582 to indicate success or failure.
583 (aarch64_validate_march): Likewise.
584 (aarch64_validate_mtune): Likewise.
585 (aarch64_isa_flags): Delete.
586 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
587 instead of aarch64_isa_flags.
588 (aarch64_get_tune_cpu): New function.
589 (aarch64_get_arch): Likewise.
590 (aarch64_override_options): Use above and set up explicit_tune_core
592 (aarch64_print_extension): Move earlier in file. Add isa_flags
593 argument and use that instead of the global aarch64_isa_flags.
594 (aarch64_option_save): New function.
595 (aarch64_option_restore): Likewise.
596 (aarch64_option_print): Likewise.
597 (aarch64_declare_function_name): Likewise.
598 (aarch64_start_file): Delete.
599 (TARGET_ASM_FILE_START): Do not define.
600 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
601 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
604 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
606 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
607 flag_omit_leaf_frame_pointer to 2.
609 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
611 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
613 (TARGET_FIX_ERR_A53_835769): New macro.
614 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
615 handling of opts->x_aarch64_fix_a53_err835769.
616 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
617 than aarch64_fix_a53_err835769.
618 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
619 * config/aarch64/aarch64-linux.h: Likewise.
621 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
623 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
624 ix86_expand_int_movcc as boolean.
626 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
628 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
629 (aarch64_cpu_string): Likewise.
630 (aarch64_tune_string): Likewise.
631 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
632 (aarch64_parse_extension): Return aarch64_parse_opt_result.
633 Add extra argument to put result into.
634 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
635 (aarch64_parse_cpu): Add arguments to put results into. Return
636 aarch64_parse_opt_result.
637 (aarch64_parse_tune): Likewise.
638 (aarch64_override_options_after_change_1): New function.
639 (aarch64_override_options_internal): New function.
640 (aarch64_validate_mcpu): Likewise.
641 (aarch64_validate_march): Likewise.
642 (aarch64_validate_mtune): Likewise.
643 (aarch64_override_options): Update to reflect above changes.
644 Move some logic into aarch64_override_options_internal.
645 Initialize target_option_default_node and target_option_current_node.
646 (aarch64_override_options_after_change): Move logic into
647 aarch64_override_options_after_change_1 and call it with global_options.
648 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
649 flag values from that.
651 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
653 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
654 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
655 * config/aarch64/aarch64.c (struct processor): Add arch field.
656 (all_architectures): Handle above, move above all_cores.
657 (all_cores): Handle above.
658 (aarch64_parse_arch): Handle above changes.
659 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
660 above. Update comments.
661 (armv8.1-a): Likewise.
662 * config/aarch64/aarch64-cores.def: Update according to above.
663 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
664 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
665 aarch64_arch_driver_info.
667 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
669 * config/aarch64/aarch64.c (struct processor): Add ident field.
670 Rename core sched_core.
671 (all_cores): Handle above changes.
672 (all_architectures): Likewise.
673 (aarch64_parse_arch): Likewise.
674 (aarch64_override_options): Likewise.
676 2015-08-04 Richard Biener <rguenther@suse.de>
678 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
679 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
680 comparisons embedded in [VEC_]COND_EXPRs.
682 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
684 * tree-if-conv.c: Fix various typos in comments.
685 * tree-vect-stmts.c: Likewise.
687 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
689 PR tree-optimization/67043
690 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
691 preheader after hoisting invariant in it.
692 (find_defs): Force recomputation of all luids.
694 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
696 * config/rs6000/htm.md (tabort.): Restrict the source operand to
697 using a base register.
699 2015-08-03 David Malcolm <dmalcolm@redhat.com>
701 * main.c (main): Pass in NULL for toplev's external_timer.
702 * timevar.c: Include coretypes.h.
703 (class timer::named_items): New.
704 (timer::named_items::named_items): New.
705 (timer::named_items::~named_items): New.
706 (timer::named_items::push): New.
707 (timer::named_items::pop): New.
708 (timer::named_items::print): New.
709 (timer::timer): Initialize field "m_jit_client_items".
710 (timer::~timer): New.
711 (timer::push): Move bulk of implementation to...
712 (timer::push_internal): ...here. New function.
713 (timer::pop): Move bulk of implementation to...
714 (timer::pop_internal): ...here. New function.
715 (timer::push_client_item): New.
716 (timer::pop_client_item): New.
717 (timer::print_row): New function, taken from timer::print.
718 (timer::print): Print "GCC items" header if we also have client
719 items. Move row-printing to timer::print_row. Print any client
721 (timer::get_topmost_item_name): New method.
722 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
723 (TV_JIT_CLIENT_CODE): New.
724 * timevar.h (timer::push_client_item): New declaration.
725 (timer::pop_client_item): New declaration.
726 (timer::get_topmost_item_name): New method.
727 (timer::push_internal): New declaration.
728 (timer::pop_internal): New declaration.
729 (timer::print_row): New declaration.
730 (timer::named_items): New declaration.
731 (timer::m_jit_client_items): New field.
732 (timer): Add friend class named_items.
733 (auto_timevar::auto_timevar): Add timer param.
734 (auto_timevar::~auto_timevar): Use field "m_timer".
735 (auto_timevar::m_timer): New field.
736 * toplev.c (initialize_rtl): Add g_timer as param when
737 constructing auto_timevar instance.
738 (toplev::toplev): Add "external_timer" param, and use it to
739 initialize the "g_timer" global if non-NULL.
740 (toplev::~toplev): If this created "g_timer", delete it.
741 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
742 with "external_timer" timer *.
744 2015-08-03 Alexander Basov <coohpt@gmail.com>
749 * cfgexpand.c (expand_one_var): Add check if stack is going to
750 be used in naked function.
751 * expr.c (expand_expr_addr_expr_1): Remove excess checking
752 whether expression should not reside in MEM.
753 * function.c (use_register_for_decl): Do not use registers for
754 non-register things (volatile, float, BLKMode) in naked functions.
756 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
759 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
760 Adjust splits to match new pattern.
762 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
764 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
767 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
768 point in VSX registers.
770 * config/rs6000/constraints.md (wb constraint): Document unused
772 (we constraint): Likewise.
773 (wo constraint): Likewise.
774 (wp constraint): New constraint for IEEE 128-bit floating point in
776 (wq constraint): Likewise.
778 * config/rs6000/predicates.md (easy_fp_constant): Add support for
779 IEEE 128-bit floating point in VSX registers.
780 (easy_scalar_constant): Likewise.
782 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
783 constraints (wp, wq) for IEEE 128-bit floating point in VSX
785 (rs6000_init_hard_regno_mode_ok): Likewise.
787 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
788 floating point in VSX registers.
797 (vsx_le_permute_<mode>): Add support to properly swap bytes for
798 IEEE 128-bit floating point in VSX registers on little endian.
799 (vsx_le_undo_permute_<mode>): Likewise.
800 (vsx_le_perm_load_<mode>): Likewise.
801 (vsx_le_perm_store_<mode>): Likewise.
802 (splitters for IEEE 128-bit fp moves): Likewise.
804 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
807 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
808 floating point in VSX registers.
811 * doc/md.text (Machine Constraints): Document wp and wq
812 constraints on PowerPC.
814 2015-08-03 Jeff Law <law@redhat.com>
817 PR gcov-profile/66899
818 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
819 iterate over the jump threading paths when an element in the
820 jump threading paths array is eliminated.
822 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
824 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
826 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
828 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
829 is_use_properly_guarded the variable def_preds. Free its
830 contents before returning.
831 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
832 (is_use_properly_guarded): Replace local variable def_preds with
833 a parameter. Adjust accordingly. Only update *def_preds if it's
836 2015-08-03 Richard Biener <rguenther@suse.de>
838 * genmatch.c (simplify::for_subst_vec): New member.
839 (binary_ok): New helper for for lowering.
840 (lower_for): Delay substituting operators into result expressions
841 if we can merge the results eventually again.
842 (capture_info::walk_result): Adjust for user_id appearing as
843 result expression operator.
844 (expr::gen_transform): Likewise.
845 (dt_simplify::gen_1): Likewise.
846 (dt_simplify::gen): Pass not substituted operators to tail
847 functions or initialize local variable with it.
848 (decision_tree::gen): Adjust function signature.
849 * match.pd: Fix tests against global code and add default
850 cases to switch stmts.
852 2015-08-03 Richard Biener <rguenther@suse.de>
854 * genmatch.c (dt_simplify::gen): Create captures array
857 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
859 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
860 the host compiler is affected by placement new aliasing bug.
861 * configure: Regenerate.
862 * Makefile.in (ALIASING_FLAGS): New variable.
863 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
865 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
868 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
869 (negmulsf3_vfp): Likewise.
870 (muldf3negdf_vfp): Disable for -frounding-math.
871 (mulsf3negsf_vfp): Likewise.
872 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
873 fix MULT cost with -frounding-math.
875 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
877 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
878 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
879 explicit. Prefer to add the flag whenever possible.
880 (noce_process_if_block): Try noce_try_store_flag_constants before
883 2015-08-03 Richard Biener <rguenther@suse.de>
885 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
886 New hash-map to record equivalent transforms.
887 (dt_node::analyze): Populate the equivalent transforms hash-map.
888 (dt_simplify::info): Add reference to hash-map entry.
889 (dt_simplify::gen): If we have split out a function for the
890 transform, generate a call to it.
891 (sinfo_hashmap_traits::hash): New function.
892 (compare_op): New helper function for ...
893 (sinfo_hashmap_traits::equal_keys): ... this new function.
894 (decision_tree::gen): Split out common equivalent transforms
897 2015-08-03 Richard Biener <rguenther@suse.de>
899 * gimple-fold.c (fold_gimple_assign): Remove folding of
900 the comparison in COND_EXPRs.
902 2015-08-03 Richard Biener <rguenther@suse.de>
904 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
905 on the rhs of assignments first simplify the embedded
908 2015-08-03 Richard Biener <rguenther@suse.de>
910 PR tree-optimization/66917
911 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
913 (DR_VECT_AUX): New macro.
914 (set_dr_misalignment): Adjust.
915 (dr_misalignment): Likewise.
916 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
917 Compute whether the base is at least element aligned.
918 * tree-vect-stmts.c (ensure_base_align): Adjust.
919 (vectorizable_store): If the base is not element aligned
920 preserve alignment of the original access if misalignment is unknown.
921 (vectorizable_load): Likewise.
923 2015-08-02 Martin Sebor <msebor@redhat.com>
925 * c-family/c.opt (-Wframe-address): New warning option.
926 * doc/invoke.texi (Wframe-address): Document it.
927 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
928 Clarify possible effects of calling the functions with non-zero
929 arguments and mention -Wframe-address.
930 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
932 2015-08-01 Michael Collison <michael.collison@linaro.org
933 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
935 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
936 (*arm_umin_cmp): Likewise.
938 2015-08-01 Caroline Tice <cmtice@google.com>
941 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
943 (vtbl_find_mangled_name): New function.
944 (vtbl_register_mangled_name): New function.
945 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
946 mangled name in mangled name vectors.
947 (find_or_create_vtbl_map_node): Ditto.
948 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
949 update recursion_depth on function entry; pass it to every recursive
950 call; automatically exit if depth > 25 (give up looking at that point).
951 (verify_bb_vtables): Initialize recursion_depth and pass it to
952 var_is_used_for_virtual_call_p.
953 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
954 global variable decls.
955 (vtbl_register_mangled_name): New extern function decl.
957 2015-08-01 Tom de Vries <tom@codesourcery.com>
959 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
961 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
963 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
964 operation_no_trapping_overflow. Allow non-overflow operations.
965 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
968 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
971 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
973 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
975 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
976 Enable for TARGET_32BIT.
977 (*if_move_neg): Likewise.
979 2015-07-31 Nick Clifton <nickc@redhat.com>
981 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
982 Returns true for __model__.
983 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
985 2015-07-31 Alan Modra <amodra@gmail.com>
988 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
989 (rs6000_emit_prologue): Set it.
990 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
992 2015-07-31 Richard Biener <rguenther@suse.de>
994 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
995 -> X == (C1 ^ C2) which is already implemented in match.pd.
996 Remove redundant dispatching to fold_relational_const.
997 Move unordered self and NaN compares ...
998 * match.pd: ... as patterns here. Remove some stray captures
1001 2015-07-31 Petr Murzin <petr.murzin@intel.com>
1003 * config/i386/i386.c
1004 (bdesc_special_args): Convert mask type from signed to unsigned for
1006 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
1007 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
1008 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
1009 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
1010 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
1011 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
1012 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
1013 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
1014 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
1015 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
1016 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
1017 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
1018 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
1019 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
1020 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
1021 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
1022 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
1023 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
1024 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
1025 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
1026 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
1027 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
1028 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
1029 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
1030 * config/i386/i386-builtin-types.def
1031 (V16QI_FTYPE_V16SI): Remove.
1032 (V8DF_FTYPE_V8SI): Ditto.
1033 (V8HI_FTYPE_V8DI): Ditto.
1034 (V8SI_FTYPE_V8DI): Ditto.
1035 (V8SF_FTYPE_V8DF): Ditto.
1036 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
1037 (V16HI_FTYPE_V16SI): Ditto.
1038 (V16SF_FTYPE_V16HI): Ditto.
1039 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
1040 (V16SF_FTYPE_V16SI): Ditto.
1041 (V4DI_FTYPE_V4DI): Ditto.
1042 (V16SI_FTYPE_V16SF): Ditto.
1043 (V16SF_FTYPE_FLOAT): Ditto.
1044 (V8DF_FTYPE_DOUBLE): Ditto.
1045 (V8DI_FTYPE_INT64): Ditto.
1046 (V8DI_FTYPE_V4DI): Ditto.
1047 (V16QI_FTYPE_V8DI): Ditto.
1048 (UINT_FTYPE_V4SF): Ditto.
1049 (UINT64_FTYPE_V4SF): Ditto.
1050 (UINT_FTYPE_V2DF): Ditto.
1051 (UINT64_FTYPE_V2DF): Ditto.
1052 (V16SI_FTYPE_V16SI): Ditto.
1053 (V8DI_FTYPE_V8DI): Ditto.
1054 (V16SI_FTYPE_PV4SI): Ditto.
1055 (V16SF_FTYPE_PV4SF): Ditto.
1056 (V8DI_FTYPE_PV2DI): Ditto.
1057 (V8DF_FTYPE_PV2DF): Ditto.
1058 (V4DI_FTYPE_PV2DI): Ditto.
1059 (V4DF_FTYPE_PV2DF): Ditto.
1060 (V16SI_FTYPE_PV2SI): Ditto.
1061 (V16SF_FTYPE_PV2SF): Ditto.
1062 (V8DI_FTYPE_PV4DI): Ditto.
1063 (V8DF_FTYPE_PV4DF): Ditto.
1064 (V8SF_FTYPE_FLOAT): Ditto.
1065 (V4SF_FTYPE_FLOAT): Ditto.
1066 (V4DF_FTYPE_DOUBLE): Ditto.
1067 (V8SF_FTYPE_PV4SF): Ditto.
1068 (V8SI_FTYPE_PV4SI): Ditto.
1069 (V4SI_FTYPE_PV2SI): Ditto.
1070 (V8SF_FTYPE_PV2SF): Ditto.
1071 (V8SI_FTYPE_PV2SI): Ditto.
1072 (V16SF_FTYPE_PV8SF): Ditto.
1073 (V16SI_FTYPE_PV8SI): Ditto.
1074 (V8DI_FTYPE_V8SF): Ditto.
1075 (V4DI_FTYPE_V4SF): Ditto.
1076 (V2DI_FTYPE_V4SF): Ditto.
1077 (V64QI_FTYPE_QI): Ditto.
1078 (V32HI_FTYPE_HI): Ditto.
1079 (V8UHI_FTYPE_V8UHI): Ditto.
1080 (V16UHI_FTYPE_V16UHI): Ditto.
1081 (V32UHI_FTYPE_V32UHI): Ditto.
1082 (V2UDI_FTYPE_V2UDI): Ditto.
1083 (V4UDI_FTYPE_V4UDI): Ditto.
1084 (V8UDI_FTYPE_V8UDI): Ditto.
1085 (V4USI_FTYPE_V4USI): Ditto.
1086 (V8USI_FTYPE_V8USI): Ditto.
1087 (V16USI_FTYPE_V16USI): Ditto.
1088 (V2DF_FTYPE_V2DF_UINT64): Ditto.
1089 (V2DI_FTYPE_V2DF_V2DF): Ditto.
1090 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
1091 (V8DF_FTYPE_V8DF_V8DI): Ditto.
1092 (V4SF_FTYPE_V4SF_UINT64): Ditto.
1093 (V4SI_FTYPE_V4SF_V4SF): Ditto.
1094 (V16SF_FTYPE_V16SF_V16SI): Ditto.
1095 (V64QI_FTYPE_V32HI_V32HI): Ditto.
1096 (V32HI_FTYPE_V16SI_V16SI): Ditto.
1097 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
1098 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
1099 (V32HI_FTYPE_V64QI_V64QI): Ditto.
1100 (V32HI_FTYPE_V32HI_V32HI): Ditto.
1101 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
1102 (V16SI_FTYPE_V16SI_V4SI): Ditto.
1103 (V16SI_FTYPE_V16SI_V16SI): Ditto.
1104 (V16SI_FTYPE_V32HI_V32HI): Ditto.
1105 (V16SI_FTYPE_V16SI_SI): Ditto.
1106 (V8DI_FTYPE_V8DI_V8DI): Ditto.
1107 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
1108 (V8DI_FTYPE_V16SI_V16SI): Ditto.
1109 (V8DI_FTYPE_V8DI_V2DI): Ditto.
1110 (QI_FTYPE_QI): Ditto.
1111 (SI_FTYPE_SI): Ditto.
1112 (DI_FTYPE_DI): Ditto.
1113 (QI_FTYPE_QI_QI): Ditto.
1114 (QI_FTYPE_QI_INT): Ditto.
1115 (HI_FTYPE_HI_INT): Ditto.
1116 (SI_FTYPE_SI_INT): Ditto.
1117 (DI_FTYPE_DI_INT): Ditto.
1118 (HI_FTYPE_V16QI_V16QI): Ditto.
1119 (SI_FTYPE_V32QI_V32QI): Ditto.
1120 (DI_FTYPE_V64QI_V64QI): Ditto.
1121 (QI_FTYPE_V8HI_V8HI): Ditto.
1122 (HI_FTYPE_V16HI_V16HI): Ditto.
1123 (SI_FTYPE_V32HI_V32HI): Ditto.
1124 (QI_FTYPE_V4SI_V4SI): Ditto.
1125 (QI_FTYPE_V8SI_V8SI): Ditto.
1126 (QI_FTYPE_V2DI_V2DI): Ditto.
1127 (QI_FTYPE_V4DI_V4DI): Ditto.
1128 (QI_FTYPE_V8DI_V8DI): Ditto.
1129 (HI_FTYPE_V16SI_V16SI): Ditto.
1130 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
1131 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
1132 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
1133 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
1134 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
1135 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
1136 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
1137 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
1138 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
1139 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
1140 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
1141 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
1142 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
1143 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
1144 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
1145 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
1146 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
1147 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
1148 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
1149 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
1150 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
1151 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
1152 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
1153 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
1154 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
1155 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
1156 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
1157 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
1158 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
1159 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
1160 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
1161 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
1162 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
1163 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
1164 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
1165 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
1166 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
1167 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
1168 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
1169 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
1170 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
1171 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
1172 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
1173 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
1174 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
1175 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
1176 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
1177 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
1178 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
1179 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
1180 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
1181 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
1182 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
1183 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
1184 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
1185 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
1186 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
1187 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
1188 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
1189 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
1190 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
1191 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
1192 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
1193 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
1194 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
1195 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
1196 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
1197 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
1198 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
1199 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
1200 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
1201 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
1202 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
1203 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
1204 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
1205 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
1206 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
1207 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
1208 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
1209 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
1210 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
1211 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
1212 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
1213 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
1214 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
1215 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
1216 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
1217 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
1218 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
1219 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
1220 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
1221 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
1222 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
1223 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
1224 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
1225 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
1226 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
1227 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
1228 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
1229 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
1230 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
1231 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
1232 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
1233 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
1234 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
1235 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
1236 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
1237 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
1238 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
1239 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
1240 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
1241 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
1242 (HI_FTYPE_HI): Ditto.
1243 (HI_FTYPE_V16QI): Ditto.
1244 (SI_FTYPE_V32QI): Ditto.
1245 (DI_FTYPE_V64QI): Ditto.
1246 (QI_FTYPE_V8HI): Ditto.
1247 (HI_FTYPE_V16HI): Ditto.
1248 (SI_FTYPE_V32HI): Ditto.
1249 (QI_FTYPE_V4SI): Ditto.
1250 (QI_FTYPE_V8SI): Ditto.
1251 (HI_FTYPE_V16SI): Ditto.
1252 (QI_FTYPE_V2DI): Ditto.
1253 (QI_FTYPE_V4DI): Ditto.
1254 (QI_FTYPE_V8DI): Ditto.
1255 (V16QI_FTYPE_HI): Ditto.
1256 (V32QI_FTYPE_SI): Ditto.
1257 (V64QI_FTYPE_DI): Ditto.
1258 (V8HI_FTYPE_QI): Ditto.
1259 (V16HI_FTYPE_HI): Ditto.
1260 (V32HI_FTYPE_SI): Ditto.
1261 (V4SI_FTYPE_QI): Ditto.
1262 (V4SI_FTYPE_HI): Ditto.
1263 (V8SI_FTYPE_QI): Ditto.
1264 (V8SI_FTYPE_HI): Ditto.
1265 (V2DI_FTYPE_QI): Ditto.
1266 (V4DI_FTYPE_QI): Ditto.
1267 (HI_FTYPE_HI_HI): Ditto.
1268 (SI_FTYPE_SI_SI): Ditto.
1269 (DI_FTYPE_DI_DI): Ditto.
1270 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
1271 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
1272 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
1273 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
1274 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
1275 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
1276 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
1277 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
1278 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
1279 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
1280 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
1281 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
1282 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
1283 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
1284 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
1285 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
1286 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
1287 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
1288 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
1289 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
1290 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
1291 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
1292 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
1293 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
1294 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
1295 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
1296 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
1297 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
1298 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
1299 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
1300 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
1301 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
1302 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
1303 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
1304 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
1305 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
1306 (V16SI_FTYPE_HI): Ditto.
1307 (V8DI_FTYPE_QI): Ditto.
1308 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
1309 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
1310 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
1311 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
1312 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
1313 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
1314 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
1315 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
1316 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
1317 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
1318 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
1319 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
1320 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
1321 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
1322 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
1323 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
1324 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
1325 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
1326 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
1327 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
1328 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
1329 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
1330 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
1331 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
1332 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
1333 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
1334 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
1335 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
1336 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
1337 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
1338 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
1339 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
1340 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
1341 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
1342 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
1343 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
1344 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
1345 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
1346 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
1347 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
1348 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
1349 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
1350 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
1351 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
1352 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
1353 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
1354 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
1355 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
1356 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
1357 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
1358 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
1359 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
1360 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
1361 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
1362 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
1363 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
1364 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
1365 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
1366 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
1367 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
1368 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
1369 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
1370 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
1371 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
1372 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
1373 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
1374 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
1375 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
1376 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
1377 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
1378 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
1379 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
1380 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
1381 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
1382 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
1383 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
1384 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
1385 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
1386 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
1387 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
1388 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
1389 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
1390 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
1391 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
1392 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
1393 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
1394 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
1395 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
1396 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
1397 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
1398 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
1399 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
1400 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
1401 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
1402 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
1403 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
1404 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
1405 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
1406 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
1407 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
1408 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
1409 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
1410 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
1411 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
1412 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
1413 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
1414 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
1415 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
1416 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
1417 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
1418 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
1419 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
1420 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
1421 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
1422 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
1423 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
1424 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
1425 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
1426 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
1427 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
1428 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
1429 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
1430 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
1431 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
1432 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
1433 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
1434 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
1435 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
1436 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
1437 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
1438 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
1439 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
1440 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
1441 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
1442 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
1443 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
1444 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
1445 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
1446 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
1447 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
1448 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
1449 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
1450 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
1451 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
1452 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
1453 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
1454 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
1455 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
1456 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
1457 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
1458 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
1459 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
1460 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
1461 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
1462 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
1463 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
1464 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
1465 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
1466 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
1467 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
1468 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
1469 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
1470 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
1471 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
1472 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
1473 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
1474 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
1475 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
1476 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
1477 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
1478 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
1479 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
1480 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
1481 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
1482 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
1483 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
1484 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
1485 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
1486 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
1487 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
1488 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
1489 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
1490 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
1491 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
1492 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
1493 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
1494 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
1495 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
1496 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
1497 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
1498 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
1499 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
1500 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
1501 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
1502 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
1503 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
1504 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
1505 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
1506 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
1507 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
1508 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
1509 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
1510 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
1511 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
1512 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
1513 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
1514 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
1515 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
1516 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
1517 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
1518 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
1519 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
1520 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
1521 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
1522 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
1523 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
1524 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
1525 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
1526 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
1527 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
1528 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
1529 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
1530 (QI_FTYPE_V8DF_INT_QI): Ditto.
1531 (QI_FTYPE_V4DF_INT_QI): Ditto.
1532 (QI_FTYPE_V2DF_INT_QI): Ditto.
1533 (HI_FTYPE_V16SF_INT_HI): Ditto.
1534 (QI_FTYPE_V8SF_INT_QI): Ditto.
1535 (QI_FTYPE_V4SF_INT_QI): Ditto.
1536 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
1538 2015-07-31 Richard Biener <rguenther@suse.de>
1540 * gimple-fold.c (fold_gimple_assign): Remove folding of
1543 2015-07-31 Tom de Vries <tom@codesourcery.com>
1545 PR tree-optimization/66846
1546 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
1547 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
1548 (expand_omp_target) [ENABLE_CHECKING]: Same.
1549 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
1550 cfun if !LOOPS_NEED_FIXUP.
1551 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
1552 that omp_for already has its own loop struct.
1553 * tree-parloops.c (create_phi_for_local_result)
1554 (create_call_for_reduction): Handle simple latch bb.
1555 (create_parallel_loop): Add simple latch bb to preserve
1556 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
1557 (gen_parallel_loop): Remove call to cancel_loop_tree.
1558 (parallelize_loops): Skip loops that are inner loops of parallelized
1560 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
1561 verify_loop_structure.
1563 2015-07-30 Anatoly Sokolov <aesok@post.ru>
1565 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
1566 * config/v850/v850.md (RV_REGNUM): New constants.
1567 * config/v850/v850.c (v850_libcall_value): New functions.
1568 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
1569 (TARGET_LIBCALL_VALUE): Define.
1571 2015-07-30 Anatoly Sokolov <aesok@post.ru>
1573 * rtl.h (lowpart_subreg): Move in file.
1574 * loop-iv.c (lowpart_subreg): Move to...
1575 * simplify-rtx.c (lowpart_subreg): ...here.
1576 (simplify_binary_operation_1): Use lowpart_subreg instead of
1577 simplify_gen_subreg.
1578 * expr.c (expand_expr_real_2): Ditto.
1579 * emit-rtl.c (gen_lowpart_common): Ditto.
1580 * combine.c (gen_lowpart_for_combine): Ditto.
1581 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
1582 expand_debug_source_expr): Ditto.
1584 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
1586 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
1587 (expand_builtin_atomic_clear): Remove support for atomic_clear
1590 2015-07-30 Richard Biener <rguenther@suse.de>
1592 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
1593 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
1594 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
1595 redundant operand canonicalization.
1597 2015-07-30 David Sherwood <david.sherwood@arm.com>
1599 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
1600 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
1601 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
1602 * config/arm/arm.c (neon_valid_immediate): Likewise.
1603 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
1604 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
1605 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
1606 (expand_vec_perm_vpshufb2_vpermq): Likewise.
1607 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
1608 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
1609 * config/i386/sse.md
1610 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
1611 (*ssse3_palignr<mode>_perm): Likewise.
1612 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
1613 * config/spu/spu.c (arith_immediate_p): Likewise.
1614 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1615 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
1617 2015-07-30 Richard Biener <rguenther@suse.de>
1619 * genmatch.c (decision_tree::gen_gimple): Merge with ...
1620 (decision_tree::gen_generic): ... this into ...
1621 (decision_tree::gen): ... this.
1622 (main): Adjust callers.
1624 2015-07-30 Richard Biener <rguenther@suse.de>
1626 * genmatch.c (verbose): New global.
1627 (warning_at): Add overload with source_location.
1628 (capture_info::capture_info): Add bool whether generating gimple
1629 or generic. Add gimple member.
1630 (capture_info::cinfo): Add capture member.
1631 (capture_info::walk_match): Record capture. Warn on
1633 (capture_info::walk_c_expr): Add more fragments captures cannot
1634 escape through. Warn on escaped captures.
1635 (dt_simplify::gen_1): Warn on operands we force to have no
1637 (main): Initialize verbose.
1638 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
1640 2015-07-30 Richard Biener <rguenther@suse.de>
1643 * match.pd: Allow both operands to independently have conversion
1644 when simplifying compares of addresses.
1646 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
1650 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
1651 around those cases that need one.
1653 2015-07-29 Aditya Kumar <hiraditya@msn.com>
1655 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
1657 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
1659 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
1660 New. Copied from config/i386/gnu-user.h.
1661 (ASM_COMMENT_START): Likewise.
1662 (DBX_REGISTER_NUMBER): Likewise.
1664 2015-07-29 Richard Biener <rguenther@suse.de>
1666 * gimple-fold.c (fold_gimple_cond): Remove.
1667 (fold_stmt_1): Do not call it.
1669 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
1671 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
1672 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
1674 * config/aarch64/aarch64-modes.def: Add HFmode.
1676 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1677 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
1679 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
1680 aarch64_promoted_type): New.
1682 (aarch64_float_const_representable_p): Disable HFmode.
1683 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
1684 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
1685 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
1687 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
1688 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
1690 * config/aarch64/iterators.md (GPF_F16): New.
1692 2015-07-29 Richard Biener <rguenther@suse.de>
1694 * match.pd: Merge address comparison patterns and make them
1695 handle some more cases.
1697 2015-07-29 Richard Biener <rguenther@suse.de>
1699 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
1700 (parser::parse_capture): Add bool argument on whether to reject
1702 (parser::parse_expr): Adjust.
1703 (parser::parse_op): Likewise.
1704 (parser::parse_pattern): Likewise.
1706 2015-07-29 Richard Biener <rguenther@suse.de>
1708 * gimple-fold.c (has_use_on_stmt): New function.
1709 (replace_stmt_with_simplification): Use it to allow
1710 abnormals originally referenced in the stmt.
1711 (fold_stmt_1): Canonicalize operand order.
1713 2015-07-28 David Sherwood <david.sherwood@arm.com>
1715 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
1716 GET_MODE_INNER unconditionally.
1717 * config/spu/spu.c (arith_immediate_p): Likewise.
1718 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
1719 * expmed.c (synth_mult): Remove check for VOIDmode result from
1721 (expand_mult_const): Likewise.
1722 * fold-const.c (fold_binary_loc): Replace call to element_precision
1723 with call to GET_MODE_PRECISION.
1724 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
1726 (emit_mode_inner): Likewise.
1727 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
1729 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
1730 (GET_MODE_UNIT_PRECISION): Likewise.
1731 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
1732 * simplify-rtx.c (simplify_immed_subreg): Likewise.
1733 * stor-layout.c (bitwise_type_for_mode): Update assert.
1734 (element_precision): Remove.
1736 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1738 * target-insns.def (reload_load_address): New targetm instruction
1740 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
1742 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1744 * target-insns.def (atomic_test_and_set): New targetm instruction
1746 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
1747 HAVE_*/gen_* interface.
1749 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1751 * target-insns.def (can_extend, ptr_extend): New targetm instruction
1753 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
1754 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1755 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
1756 * rtlanal.c (nonzero_bits1): Likewise.
1757 (num_sign_bit_copies1): Likewise.
1759 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1761 * target-insns.def (eh_return): New targetm instruction pattern.
1762 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
1764 * function.c (thread_prologue_and_epilogue_insns): Remove
1765 preprocessor condition.
1767 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1769 * target-insns.def (indirect_jump): New targetm instruction pattern.
1770 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
1773 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1775 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
1776 instead of nonimmediate_operand. Remove C condiition.
1778 2015-07-28 Richard Biener <rguenther@suse.de>
1780 * match.pd: Add more simplification of address comparisons.
1782 2015-07-28 Richard Biener <rguenther@suse.de>
1784 * match.pd: Re-order two cases in comparison with max/min
1785 value simplification to make it apply for bools.
1787 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1789 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
1790 Handle simple SIGN_EXTEND or ZERO_EXTEND.
1791 (aarch64_rtx_costs): Properly strip extend or extract before
1792 passing down to rtx costs again.
1794 2015-07-28 Nick Clifton <nickc@redhat.com>
1796 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
1797 Optimizes the case where -mes0 is active and a constant symbolic
1799 * config/rl78/rl78-protos.h: Prototype the new function.
1800 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
1802 2015-07-28 Tom de Vries <tom@codesourcery.com>
1804 * tree-parloops.c (reduc_stmt_res): New function.
1805 (initialize_reductions, add_field_for_reduction)
1806 (create_phi_for_local_result, create_loads_for_reductions)
1807 (create_stores_for_reduction, build_new_reduction): Handle case that
1808 reduc_stmt is a phi.
1809 (gather_scalar_reductions): Allow double_reduc reductions.
1811 2015-07-28 Richard Biener <rguenther@suse.de>
1813 * fold-const.c (fold_comparison): Remove equality folding
1814 of decl addresses ...
1815 * match.pd: ... here and merge with existing pattern.
1817 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
1819 PR tree-optimization/66828
1820 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
1821 from int64_t to uint64_t.
1823 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
1825 * opts-common.c (read_cmdline_option): List DriverOnly enum values
1826 as valid only in the error message of the driver, not in the
1827 messages of the language compilers.
1829 2015-07-27 Tom de Vries <tom@codesourcery.com>
1831 * tree-parloops.c (gather_scalar_reductions): Simplify function
1834 2015-07-27 Marek Polacek <polacek@redhat.com>
1836 * ipa-devirt.c (types_same_for_odr): Fix typo.
1838 2015-07-27 Jason Merrill <jason@redhat.com>
1841 * dwarf2out.c (gen_inlined_subroutine_die): Check
1842 cgraph_function_possibly_inlined_p.
1844 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
1846 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
1847 Place integer variant first.
1848 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
1850 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
1853 * config/arm/arm-builtins.c (enum arm_builtins):
1854 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
1855 (ARM_BUILTIN_NEON_BASE): Rename macro to....
1856 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
1857 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
1858 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
1860 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
1863 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
1864 Add qualifier_lane_index.
1865 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
1866 (arm_getlane_qualifiers): Use qualifier_lane_index.
1867 (arm_lanemac_qualifiers): Rename to...
1868 (arm_mac_n_qualifiers): ...this.
1869 (LANEMAC_QUALIFIERS): Rename to...
1870 (MAC_N_QUALIFIERS): ...this.
1871 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
1872 (arm_setlane_qualifiers): Use qualifier_lane_index.
1873 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
1874 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
1875 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
1876 (arm_expand_neon_builtin): Handle qualifier_lane_index.
1878 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
1879 * config/arm/arm.c (bounds_check): Likewise, improve error message.
1880 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
1881 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
1882 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
1883 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
1884 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
1885 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
1886 qualifiers to TERNOP_IMM.
1887 (vdup_lane): Change qualifiers to GETLANE.
1888 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
1889 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
1890 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
1891 vqdmlsl_n): Change qualifiers to MAC_N.
1893 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
1894 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
1895 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
1896 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
1897 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
1898 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
1899 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
1900 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
1901 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
1902 Remove call to neon_lane_bounds.
1904 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
1906 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
1907 Place integer variant first.
1909 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
1911 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
1912 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
1913 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
1914 for armv6kz targets.
1915 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
1916 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
1917 (FL_FOR_ARCH6ZK): Remove.
1918 (FL_FOR_ARCH6KZ): New.
1919 (arm_arch6zk): New declaration.
1920 * config/arm/arm-tables.opt: Regenerate.
1921 * config/arm/arm.c (arm_arch6kz): New.
1922 (arm_option_override): Set arm_arch6kz.
1923 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
1924 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
1925 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
1927 2015-07-27 Marek Polacek <polacek@redhat.com>
1931 * doc/invoke.texi: Document -Wtautological-compare.
1933 2015-07-27 Richard Biener <rguenther@suse.de>
1935 * genmatch.c (decision_tree::gen_gimple): Split out large
1936 subtrees into separate functions.
1937 (decision_tree::gen_generic): Likewise.
1939 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
1941 * config/alpha/alpha.c: Use SUBREG_P predicate.
1942 * config/alpha/predicates.md: Ditto.
1944 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
1946 * config.host (s390*-*-*): Include driver-native.c only when
1947 building with s390* as host *and* target.
1949 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
1952 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
1953 T bit register modified_between_p check.
1955 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
1957 * config/i386/i386.c: Use SUBREG_P predicate.
1958 * config/i386/i386.md: Ditto.
1959 * config/i386/sse.md: Ditto.
1960 * config/i386/predicates.md: Ditto.
1962 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
1965 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
1966 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
1968 2015-07-25 Sebastian Pop <s.pop@samsung.com>
1970 * Makefile.in: Remove use of TREEBROWSER.
1971 * config.in: Regenerated.
1972 * configure: Regenerated.
1973 * configure.ac: Remove definition of TREEBROWSER.
1974 * tree-browser.c: Removed.
1975 * tree-browser.def: Removed.
1977 2015-07-25 Sebastian Pop <s.pop@samsung.com>
1979 * graphite-scop-detection.c: Include gimple-pretty-print.h.
1980 (stmt_simple_for_scop_p): Print when a stmt is not handled in
1982 (scopdet_basic_block_info): Print when a loop or bb cannot be
1983 represented in Graphite.
1985 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
1988 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
1989 execution guard when min_size is less than size_needed.
1991 2015-07-25 Sebastian Pop <s.pop@samsung.com>
1993 * doc/install.texi: Document supported versions of ISL.
1995 2015-07-25 Jeff Law <law@redhat.com>
1999 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2000 unable to find X NE 0 in the tables, return X as the simplified
2002 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2003 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2005 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2006 after removing the control flow statement and unnecessary edges.
2008 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
2011 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
2013 PR rtl-optimization/64164
2014 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2015 * tree-ssa-copyrename.c: Removed.
2016 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2017 -ftree-coalesce-vars.
2018 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2019 * common.opt (ftree-copyrename): Ignore.
2020 (ftree-coalesce-inlined-vars): Likewise.
2021 * doc/invoke.texi: Remove the ignored options above.
2022 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2023 * tree-ssa-coalesce.h: ... here.
2024 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2025 headers required by it.
2026 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2027 across variables when flag_tree_coalesce_vars. Check register
2028 use and promoted modes to allow coalescing. Moved to
2029 tree-ssa-coalesce.c.
2030 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2031 with its member functions to tree-ssa-coalesce.c.
2032 (var_map_base_init): Likewise. Renamed to
2033 compute_samebase_partition_bases.
2034 (partition_view_normal): Drop want_bases parameter.
2035 (partition_view_bitmap): Likewise.
2036 * tree-ssa-live.h: Adjust declarations.
2037 * tree-ssa-coalesce.c: Include explow.h.
2038 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2039 default defs at the entry point.
2040 (dump_part_var_map): New.
2041 (compute_optimized_partition_bases): New, called by...
2042 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2043 of compute_samebase_partition_bases. Adjust.
2044 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2045 * cfgexpand.c (leader_merge): New.
2046 (get_rtl_for_parm_ssa_default_def): New.
2047 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2048 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2049 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2050 redundant MEM attr setting.
2051 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2053 (expand_one_stack_var): ... this. New wrapper to check and
2054 skip already expanded SSA partitions.
2055 (record_alignment_for_reg_var): New, factored out of...
2056 (expand_one_var): ... this.
2057 (expand_one_ssa_partition): New.
2058 (adjust_one_expanded_partition_var): New.
2059 (expand_one_register_var): Check and skip already expanded SSA
2061 (expand_used_vars): Don't create DECLs for anonymous SSA
2062 names. Expand all SSA partitions, then adjust all SSA names.
2063 (pass::execute): Replace the loops that set
2064 SA.partition_to_pseudo from partition leaders and cleared
2065 DECL_RTL for multi-location variables, and that which used to
2066 rename vars and set attrs, with one that clears DECL_RTL and
2067 checks that PARMs and RESULTs default_defs match DECL_RTL.
2068 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2069 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2070 * explow.c (promote_ssa_mode): New.
2071 * explow.h (promote_ssa_mode): Declare.
2072 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2073 * function.c: Include cfgexpand.h.
2074 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2075 (use_register_for_parm_decl): Wrapper for the above to
2076 special-case the result_ptr.
2077 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2078 (split_complex_args): Take assign_parm_data_all argument.
2079 Pass it to rtl_for_parm. Set up rtl and context for split
2081 (assign_parms_augmented_arg_list): Adjust.
2082 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2083 multiple locations. Recognize split complex args.
2084 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2085 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2086 (assign_parm_setup_block): Prefer SSA-assigned location.
2087 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2088 if stack_parm is NULL.
2089 (assign_parm_setup_stack): Prefer SSA-assigned location.
2090 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2091 rtl before testing for pointer bounds. Special-case result_ptr.
2092 (expand_function_start): Maybe reset DECL_RTL of result.
2093 Prefer SSA-assigned location for result and static chain.
2094 Factor out DECL_RESULT and SET_DECL_RTL.
2095 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2096 anonymous SSA names. Use promote_ssa_mode.
2097 (get_temp_reg): Likewise.
2098 (remove_ssa_form): Adjust.
2099 * stor-layout.c (layout_decl): Don't set mem attributes of
2101 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2102 and get its reg_usage for reg invalidation.
2103 (compute_bb_dataflow): Pass it insn.
2104 (emit_notes_in_bb): Likewise.
2106 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2108 * config/i386/i386.c (ix86_va_start): Remove
2109 unneeded !TARGET_64BIT check.
2110 (ix86_gimplify_va_arg): Ditto.
2112 2015-07-24 Tom de Vries <tom@codesourcery.com>
2114 * graphite-sese-to-poly.c (build_poly_scop): Always call
2115 rewrite_commutative_reductions_out_of_ssa.
2117 2015-07-24 Tom de Vries <tom@codesourcery.com>
2119 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
2120 flag_associative_math to FLOAT_TYPE_P. Honour
2121 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
2123 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
2126 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
2127 and "%qD" in warning_at instead of "%q+D" in warning.
2129 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
2131 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
2132 (ix86_function_abi): Cleanup.
2134 2015-07-24 Michael Darling <darlingm@gmail.com>
2137 * acinclude.m4: Reflects renaming of configure.in to configure.ac
2138 * configure: Likewise
2139 * configure.ac: Likewise
2140 * doc/install.texi: Likewise
2141 * doc/tm.texi: Likewise
2142 * doc/tm.texi.in: Likewise
2144 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2146 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
2147 manually swapping values.
2148 * cse.c (fold_rtx): Likewise.
2149 * lra-eliminations.c (form_sum): Likewise.
2151 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
2154 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
2155 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
2156 (*jcc_1, *jcc_2, jump, simple_return_internal)
2157 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
2158 Set length_nobnd attribute instead of length attribute.
2159 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
2160 (length_nobnd): Remove attribute.
2161 (length): Remove length_nobnd processing.
2163 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
2165 * gimplify.c (omp_default_clause): New function. Reorganize flow
2166 for clarity. Broken out of ...
2167 (omp_notice_variable): ... here.
2169 2015-07-24 Gary Funck <gary@intrepid.com>
2172 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
2173 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
2175 2015-07-24 Tom de Vries <tom@codesourcery.com>
2177 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
2178 exit-first loop transform.
2180 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
2183 * tree-cfg.c (struct replace_decls_d): New struct.
2184 (replace_block_vars_by_duplicates_1): New function.
2185 (replace_block_vars_by_duplicates): Use it to replace the decls
2186 in the value exprs by duplicates.
2188 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2190 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
2191 -shared, -symbolic, -rdynamic.
2193 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2196 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
2197 -dynamic-linker within %{!static %{!shared, and -rdynamic within
2200 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
2203 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
2204 edge summary is available.
2206 2015-07-24 Richard Biener <rguenther@suse.de>
2208 * genmatch.c (struct dt_node): Add statistic fields.
2209 (dt_node::analyze): New method.
2210 (decision_tree::gen_gimple): Call analyze on the root node
2211 and print statistics to stderr.
2212 (decision_tree::gen_generic): Likewise.
2214 2015-07-24 Richard Biener <rguenther@suse.de>
2216 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
2217 against the highest or lowest possible integer ...
2218 * match.pd: ... as patterns here.
2220 2015-07-24 Richard Biener <rguenther@suse.de>
2222 * genmatch.c (struct capture_info): Add same_as field.
2223 (capture_info::capture_info): Initialize same_as.
2224 (capture_info::walk_match): Compute same_as.
2225 (capture_info::walk_result): Compute stuff for the leader.
2226 (capture_info::walk_c_expr): Likewise.
2227 (dt_simplify::gen_1): Only look at leaders when deciding
2228 to force no side-effects or emit side-effects of omitted operands.
2230 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2232 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
2233 reg note to the GPR -> FPR save instructions.
2235 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2237 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
2239 (s390_expand_insv): Don't generate risbg pattern for constant zero
2241 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
2242 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
2245 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2247 * config/s390/s390.c (s390_reorg): Clean up handling of processors
2250 (s390_issue_rate): Likewise.
2251 (s390_sched_reorder): Likewise.
2252 (s390_sched_variable_issue): Likewise.
2253 (s390_loop_unroll_adjust): Likewise.
2254 (s390_option_override): Likewise.
2256 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2258 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
2259 processor capabilities with -march=native.
2260 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
2261 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
2262 (S390_TARGET_BITS_STRING): Macro to simplify specs.
2264 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2266 * config/s390/s390.c (s390_issue_rate): Handle
2267 PROCESSOR_2094_Z9_EC.
2268 (s390_option_override): Likewise.
2269 (s390_adjust_priority): Likewise.
2271 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2273 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
2274 when cross compiling.
2276 2015-07-24 Richard Biener <rguenther@suse.de>
2278 * fold-const.c (maybe_canonicalize_comparison_1): Move
2279 A code CST canonicalization ...
2280 * match.pd: ... to a pattern here.
2282 2015-07-24 Jiong Wang <jiong.wang@arm.com>
2285 2015-07-22 Jiong Wang <jiong.wang@arm.com>
2287 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
2288 (HONOR_REG_ALLOC_ORDER): Define.
2290 2015-07-24 Richard Biener <rguenther@suse.de>
2292 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
2293 * fold-const.c (fold_comparison): Move parameter does not
2294 alias &local simplification ...
2295 * match.pd: ... as a pattern here.
2297 2015-07-24 Richard Biener <rguenther@suse.de>
2299 * gimple-fold.c (replace_stmt_with_simplification): Special-case
2300 valueizing call operands.
2301 * gimple-match-head.c (maybe_push_res_to_seq): Take
2302 number of call arguments from ops array.
2303 (do_valueize): New function.
2304 (gimple_simplify): Return true if valueization changed
2305 any operand even if the result didn't simplify further.
2307 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2310 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
2312 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2315 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
2317 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2319 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
2322 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2324 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
2327 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
2329 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
2330 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
2332 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
2333 ms_va_list_type_node initialization.
2335 2015-07-23 Jeff Law <law@redhat.com>
2338 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2339 unable to find X NE 0 in the tables, return X as the simplified
2341 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2342 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2344 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2345 after removing the control flow statement and unnecessary edges.
2347 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2349 * tree-pass.h (get_current_pass_name): Removed.
2351 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
2353 PR rtl-optimization/64164
2354 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2355 * tree-ssa-copyrename.c: Removed.
2356 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2357 -ftree-coalesce-vars.
2358 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2359 * common.opt (ftree-copyrename): Ignore.
2360 (ftree-coalesce-inlined-vars): Likewise.
2361 * doc/invoke.texi: Remove the ignored options above.
2362 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2363 * tree-ssa-coalesce.h: ... here.
2364 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2365 headers required by it.
2366 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2367 across variables when flag_tree_coalesce_vars. Check register
2368 use and promoted modes to allow coalescing. Moved to
2369 tree-ssa-coalesce.c.
2370 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2371 with its member functions to tree-ssa-coalesce.c.
2372 (var_map_base_init): Likewise. Renamed to
2373 compute_samebase_partition_bases.
2374 (partition_view_normal): Drop want_bases parameter.
2375 (partition_view_bitmap): Likewise.
2376 * tree-ssa-live.h: Adjust declarations.
2377 * tree-ssa-coalesce.c: Include explow.h.
2378 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2379 default defs at the entry point.
2380 (dump_part_var_map): New.
2381 (compute_optimized_partition_bases): New, called by...
2382 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2383 of compute_samebase_partition_bases. Adjust.
2384 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2385 * cfgexpand.c (leader_merge): New.
2386 (get_rtl_for_parm_ssa_default_def): New.
2387 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2388 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2389 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2390 redundant MEM attr setting.
2391 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2393 (expand_one_stack_var): ... this. New wrapper to check and
2394 skip already expanded SSA partitions.
2395 (record_alignment_for_reg_var): New, factored out of...
2396 (expand_one_var): ... this.
2397 (expand_one_ssa_partition): New.
2398 (adjust_one_expanded_partition_var): New.
2399 (expand_one_register_var): Check and skip already expanded SSA
2401 (expand_used_vars): Don't create DECLs for anonymous SSA
2402 names. Expand all SSA partitions, then adjust all SSA names.
2403 (pass::execute): Replace the loops that set
2404 SA.partition_to_pseudo from partition leaders and cleared
2405 DECL_RTL for multi-location variables, and that which used to
2406 rename vars and set attrs, with one that clears DECL_RTL and
2407 checks that PARMs and RESULTs default_defs match DECL_RTL.
2408 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2409 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2410 * explow.c (promote_ssa_mode): New.
2411 * explow.h (promote_ssa_mode): Declare.
2412 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2413 * function.c: Include cfgexpand.h.
2414 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2415 (use_register_for_parm_decl): Wrapper for the above to
2416 special-case the result_ptr.
2417 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2418 (split_complex_args): Take assign_parm_data_all argument.
2419 Pass it to rtl_for_parm. Set up rtl and context for split
2421 (assign_parms_augmented_arg_list): Adjust.
2422 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2423 multiple locations. Recognize split complex args.
2424 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2425 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2426 (assign_parm_setup_block): Prefer SSA-assigned location.
2427 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2428 if stack_parm is NULL.
2429 (assign_parm_setup_stack): Prefer SSA-assigned location.
2430 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2431 rtl before testing for pointer bounds. Special-case result_ptr.
2432 (expand_function_start): Maybe reset DECL_RTL of result.
2433 Prefer SSA-assigned location for result and static chain.
2434 Factor out DECL_RESULT and SET_DECL_RTL.
2435 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2436 anonymous SSA names. Use promote_ssa_mode.
2437 (get_temp_reg): Likewise.
2438 (remove_ssa_form): Adjust.
2439 * stor-layout.c (layout_decl): Don't set mem attributes of
2441 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2442 and get its reg_usage for reg invalidation.
2443 (compute_bb_dataflow): Pass it insn.
2444 (emit_notes_in_bb): Likewise.
2446 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
2449 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
2451 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
2452 (rs6000_emit_2insn_and): Handle dot forms.
2453 * config/rs6000/rs6000.md (and<mode>3): Adjust.
2454 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
2455 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
2457 2015-07-23 Richard Biener <rguenther@suse.de>
2459 * generic-match-head.c: Include cgraph.h.
2460 * gimple-match-head.c: Likewise.
2461 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
2463 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
2464 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
2467 2015-07-23 Richard Biener <rguenther@suse.de>
2469 * gimple-fold.c (fold_gimple_cond): Do not require folding
2470 results to pass valid_gimple_rhs_p.
2471 * tree-cfg.h (fold_cond_expr_cond): Remove.
2472 * tree-cfg.c (fold_cond_expr_cond): Likewise.
2473 (make_edges): Do not call it.
2474 * tree-inline.c (tree_function_versioning): Likewise.
2476 2015-07-23 Tom de Vries <tom@codesourcery.com>
2478 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
2479 vect_force_simple_reduction.
2480 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
2481 (vect_is_simple_reduction_1): Add and handle
2482 need_wrapping_integral_overflow parameter.
2483 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
2484 need_wrapping_integral_overflow parameter.
2485 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
2486 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
2489 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
2491 PR tree-optimization/66926,66951
2492 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
2493 INNER_LOOP and fix up condition for renaming virtual operands.
2495 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2497 * combine.c (try_combine): Use std::swap instead of manually
2500 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
2502 * config/mips/i6400.md: New file.
2503 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
2504 (mips64r6): Likewise.
2506 * config/mips/mips-tables.opt: Regenerate.
2507 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
2508 (mips_issue_rate): Add support for i6400.
2509 (mips_multipass_dfa_lookahead): Likewise.
2510 * config/mips/mips.h (TUNE_I6400): Define.
2511 * config/mips/mips.md: Include i6400.md.
2512 (processor): Add i6400.
2513 * doc/invoke.texi (-march=@var{arch}): Add i6400.
2515 2015-07-23 Richard Biener <rguenther@suse.de>
2518 * match.pd: Guard widen and sign-change comparison simplification
2521 2015-07-23 Richard Biener <rguenther@suse.de>
2523 PR tree-optimization/66945
2524 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
2525 ::before_dom_children): Force the propagators idea of
2526 non-executable edges to materialize, not what the folder
2529 2015-07-23 Richard Biener <rguenther@suse.de>
2531 * gimple.h (gimple_cond_make_false): Use 0 != 0.
2532 (gimple_cond_make_true): Use 1 != 0.
2534 2015-07-22 DJ Delorie <dj@redhat.com>
2536 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
2539 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
2540 (ashrhi3): Likewise.
2541 (lshrhi3): Likewise.
2542 (movhi): Take advantage of zero-extend to load small constants.
2544 (and<mode>3): Likewise.
2545 (zero_extendqihi2): Likewise.
2546 (zero_extendqisi2): New.
2547 * config/msp430/constraints.md (N,O): New.
2548 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
2550 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
2553 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
2554 to enum feature_priority and feature_list.
2555 (fold_builtin_cpu): Add F_AES to enum processor_features
2556 and isa_names_table.
2558 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
2561 * config/i386/linux-common.h (MPX_SPEC): Use linker option
2562 for 64bit target only.
2564 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
2566 * config/nvptx/nvptx.c: Expand some comments.
2568 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
2570 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
2571 (cortex_a53_advsimd): ...This.
2573 2015-07-22 Richard Biener <rguenther@suse.de>
2575 * genmatch.c (expr::gen_transform): Clarify error message
2576 and display location.
2578 2015-07-22 Richard Biener <rguenther@suse.de>
2580 * genmatch.c (struct operand): Add location member.
2581 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
2583 (struct simplify): Remove match_location and result_location
2585 (elsehwere): Adjust.
2587 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
2589 * config/mips/m5100.md: New file.
2590 * config/mips/mips-cpus.def (m5100, m5101): Define.
2591 * config/mips/mips-tables.opt: Regenerate.
2592 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
2593 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
2594 -march=m5101 to -mips32r5.
2595 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
2596 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
2598 * config/mips/mips.md: Include m5100.md.
2599 (processor): Add m5100.
2600 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
2602 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
2604 * config/mips/mips-cpus.def (interaptiv): Define.
2605 * config/mips/mips-tables.opt: Regenerate.
2606 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
2608 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
2609 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
2611 2015-07-22 Jiong Wang <jiong.wang@arm.com>
2614 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
2615 (HONOR_REG_ALLOC_ORDER): Define.
2617 2015-07-22 Richard Biener <rguenther@suse.de>
2619 PR tree-optimization/66952
2620 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
2621 blocks we end up executing unconditionally reset all SSA
2622 info such as range and alignment.
2623 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
2624 * tree-ssanames.c (reset_flow_sensitive_info): New function.
2626 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
2628 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
2631 2015-07-22 Richard Biener <rguenther@suse.de>
2633 * genmatch.c (parser::parse_result): Properly handle
2634 match with result operands and conditions.
2636 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
2639 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
2640 Add qualifier_struct_load_store_lane_index.
2641 (aarch64_types_loadstruct_lane_qualifiers): Use
2642 qualifier_struct_load_store_lane_index for lane index argument for
2644 (aarch64_types_storestruct_lane_qualifiers): Ditto.
2645 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2646 (aarch64_simd_expand_args): Add new argument describing mode of
2647 builtin. Check lane bounds for arguments with
2648 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2649 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
2650 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2651 (aarch64_simd_expand_builtin): Handle arguments with
2652 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
2653 aarch64_simd_expand_args.
2654 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
2655 vst[234]_lane with BUILTIN_VALLDIF.
2656 * config/aarch64/aarch64-simd.md:
2657 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
2658 endianness reversal on lane index.
2659 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
2660 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
2661 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
2662 (vec_store_lanesci_lane<mode>): Ditto.
2663 (vec_store_lanesxi_lane<mode>): Ditto.
2664 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
2665 reversal of lane index.
2666 (aarch64_ld3_lane<mode>): Ditto.
2667 (aarch64_ld4_lane<mode>): Ditto.
2668 (aarch64_st2_lane<mode>): Ditto.
2669 (aarch64_st3_lane<mode>): Ditto.
2670 (aarch64_st4_lane<mode>): Ditto.
2671 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
2672 to qmode. Add new mode parameter. Update uses.
2673 (__LD3_LANE_FUNC): Ditto.
2674 (__LD4_LANE_FUNC): Ditto.
2675 (__ST2_LANE_FUNC): Ditto.
2676 (__ST3_LANE_FUNC): Ditto.
2677 (__ST4_LANE_FUNC): Ditto.
2679 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
2681 * doc/invoke.texi (Language Independent Options): Rename node to
2682 Diagnostic Message Formatting Options.
2684 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
2687 * lra-remat.c (operand_to_remat): Prevent using insns with input
2688 subregs processed separately by IRA.
2690 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
2692 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
2694 (single_imm_use): Check for iterator node.
2695 (num_imm_uses): Likewise.
2696 * tree-ssa-operands.c (has_zero_uses_1): Delete.
2697 (single_imm_use_1): Check for iterator node.
2699 2015-07-21 Mike Frysinger <vapier@gentoo.org>
2700 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2702 * configure.ac: Add check for new options in isl-0.15.
2703 * config.in, configure: Rebuilt.
2704 * graphite-blocking.c: Include <isl/constraint.h>
2705 * graphite-interchange.c, graphite-poly.c: Likewise.
2706 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
2707 * graphite.c: Likewise.
2708 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
2710 * graphite-dependences.c: Include <isl/constraint.h>.
2711 (max_number_of_out_dimensions): Returns isl_stat.
2712 (extend_schedule_1): Likewise
2713 (extend_schedule): Corresponding changes.
2714 * graphite-optimize-isl.c: Include <isl/constraint.h> and
2716 (getSingleMap): Change return type of isl_stat.
2717 (optimize_isl): Conditionally use
2718 isl_options_set_schedule_serialize_sccs.
2719 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
2720 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
2722 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
2725 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
2726 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
2728 2015-07-21 Richard Biener <rguenther@suse.de>
2730 PR tree-optimization/66948
2731 * genmatch.c (capture_info::walk_match): Also recurse to
2732 captures. Properly compute expr state from captures of
2734 * match.pd: Add single-use guards to
2735 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
2737 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
2739 * config/nvptx/mkoffload.c (process): Add static destructor call.
2741 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2744 * match.pd (A - B -> A + (-B)): Don't allow folding
2745 when type if a fixed-point type.
2747 2015-07-20 DJ Delorie <dj@redhat.com>
2749 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
2750 (iorqi3_real): Likewise for set1.
2752 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
2754 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
2757 2015-07-20 Aditya Kumar <hiraditya@msn.com>
2759 * graphite-isl-ast-to-gimple.c:
2760 Refactor so that each function can access 'region'. This will help
2761 maintain a parameter rename_map within a region.
2763 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2765 * config/rs6000/rs6000.md (*lt0_disi): New.
2767 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2770 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
2771 "available letters" comment.
2772 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
2773 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
2774 and_2rld_operand): Delete.
2775 (and_operand): Adjust.
2776 (rotate_mask_operator): New.
2777 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
2778 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
2779 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
2780 extract_ME): Delete.
2781 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
2782 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
2783 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
2784 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
2785 rs6000_emit_2insn_and): New.
2786 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
2787 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
2788 includes_rldic_lshift_p, includes_rldicr_lshift_p,
2789 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
2790 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
2791 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
2792 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
2793 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
2794 rs6000_emit_2insn_and): New.
2795 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
2796 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
2798 <NOT>: Don't fall through to next case.
2799 <AND>: Handle the various rotate-and-mask cases directly.
2800 <IOR>: Always cost as one insn.
2801 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
2802 (and<mode>3): Adjust expander for the new patterns.
2803 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
2804 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
2805 (*and<mode>3_imm_dot_shifted): New.
2806 (*and<mode>3_mask): Delete, rewrite as ...
2807 (and<mode>3_mask): ... New.
2808 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
2809 (andsi3_internal0_nomc): Delete.
2810 (*andsi3_internal6): Delete.
2811 (*and<mode>3_2insn): New.
2812 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
2813 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
2814 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
2815 *insvdi_internal3): Delete.
2816 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
2817 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
2818 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
2819 *ior<mode>_mask): New.
2820 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
2821 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
2822 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
2823 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
2825 (ashr<mode>3): Delete expander.
2826 (*ashr<mode>3): Rename to ...
2827 (ashr<mode>3): ... This.
2828 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
2829 (*rotldi3_internal4, *rotldi3_internal5 and split,
2830 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
2831 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
2832 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
2833 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
2834 (splitter for loading a mask): Adjust.
2835 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
2837 2015-07-20 Marek Polacek <polacek@redhat.com>
2839 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
2840 output_add_clobbers, output_added_clobbers_hard_reg_p,
2841 gen_rtx_scratch): Remove declarations.
2843 2015-07-20 Marek Polacek <polacek@redhat.com>
2846 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
2848 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2850 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
2851 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
2853 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2855 * combine.c (combine_simplify_rtx): Move simplification step
2856 before various transformations/substitutions.
2858 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
2860 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
2861 (struct int_traits): Likewise.
2863 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2865 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
2866 function to vmsdbgout_function_decl.
2868 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
2871 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
2872 from misaligned positions.
2873 (ix86_expand_pinsr): Reject insertions to misaligned positions.
2875 2015-07-18 Sebastian Pop <s.pop@samsung.com>
2879 * Makefile.in: Removed omega.o.
2880 * common.opt: Document flag fcheck-data-deps as deprecated.
2881 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
2882 its associated params: omega-max-vars, omega-max-geqs,
2883 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
2884 omega-max-keys, omega-eliminate-redundant-constraints.
2885 * doc/loop.texi: Remove all the section on Omega.
2886 * graphite-blocking.c: Include missing params.h: it used to be
2887 included through tree-data-ref.h and omega.h.
2888 * graphite-isl-ast-to-gimple.c: Same.
2889 * graphite-optimize-isl.c: Same.
2890 * graphite-sese-to-poly.c: Same.
2894 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
2895 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
2896 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
2897 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
2898 * passes.def: Remove pass_check_data_deps.
2899 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
2900 (dump_conflict_function): Same.
2901 (dump_subscript): Same.
2902 (print_direction_vector): Same.
2903 (print_dir_vectors): Same.
2904 (print_lambda_vector): Same.
2905 (print_dist_vectors): Same.
2906 (dump_data_dependence_relation): Same.
2907 (dump_data_dependence_relations): Same.
2908 (dump_dist_dir_vectors): Same.
2910 (init_omega_eq_with_af): Removed.
2911 (omega_extract_distance_vectors): Removed.
2912 (omega_setup_subscript): Removed.
2913 (init_omega_for_ddr_1): Removed.
2914 (init_omega_for_ddr): Removed.
2915 (ddr_consistent_p): Removed.
2916 (compute_affine_dependence): Do not use omega to check data
2918 (compute_data_dependences_for_bb): Removed.
2919 (analyze_all_data_dependences): Removed.
2920 (tree_check_data_deps): Removed.
2921 * tree-data-ref.h: Do not include omega.h.
2922 (compute_data_dependences_for_bb): Removed.
2923 (tree_check_data_deps): Removed.
2924 * tree-ssa-loop.c (pass_check_data_deps): Removed.
2925 (make_pass_check_data_deps): Removed.
2926 * tree-ssa-phiopt.c: Include params.h.
2927 * tree-vect-data-refs.c: Same.
2928 * tree-vect-slp.c: Same.
2930 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
2932 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
2933 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
2934 (mem->fpreg splitters): Ditto.
2935 (general_operand->nonimmediate_operand splitter): Use explicit modes.
2936 Disable DFmode for TARGET_64BIT.
2938 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
2941 * config/i386/i386.c (ix86_expand_prologue): Replicate static
2944 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
2946 * config/nvptx/mkoffload.c (process): Constify host data.
2947 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
2949 (generate_host_descr_file): Likewise.
2951 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
2952 Sebastian Pop <s.pop@samsung.com>
2955 * graphite-dependences.c (add_pdr_constraints): Renamed
2956 pdr->extent to pdr->subscript_sizes.
2957 * graphite-interchange.c (build_linearized_memory_access): Add
2958 back all gcc_assert's that the "isl_int to isl_val conversion"
2959 patch has removed. Refactored.
2960 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
2961 * graphite-poly.c (new_poly_dr): Same.
2962 (free_poly_dr): Same.
2963 * graphite-poly.h (struct poly_dr): Same.
2964 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
2965 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
2966 * graphite-scop-detection.h: Fix space.
2967 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
2968 back all gcc_assert's removed by a previous patch.
2969 (wrap): Remove the_isl_ctx global variable that the same patch has
2971 (build_loop_iteration_domains): Same.
2972 (add_param_constraints): Same.
2973 (pdr_add_data_dimensions): Same. Refactored.
2974 (build_poly_dr): Renamed extent to subscript_sizes.
2976 2015-07-17 Marek Polacek <polacek@redhat.com>
2978 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
2979 * match.pd: ... here.
2981 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
2983 * config/nvptx/mkoffload.c (process): Constify target data.
2984 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
2985 Constify target data.
2986 (generate_target_offloadend_file): Likewise.
2988 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
2990 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
2991 to allow renaming of PHI arguments on edges incoming from outer
2992 loop header, add corresponding check before start PHI iterator.
2993 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
2994 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
2995 with true force_vectorize. Set-up dominator for outer loop too.
2996 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
2997 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
2998 was marked with force_vectorize and has restricted cfg.
2999 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
3001 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3002 do peeling for outer loops.
3004 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
3005 Matthias Klose <doko@ubuntu.com>
3007 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
3008 build-sysroot, sysroot from the `Miscenalleous configure options' to
3009 the `Directories' section and strip trailing `/' from with_sysroot.
3010 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
3011 * configure: Regenerated.
3013 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
3016 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
3017 (TARGET_HARD_DF_REGS): Ditto.
3018 (TARGET_HARD_XF_REGS): Ditto.
3019 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
3020 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
3021 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
3022 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
3023 (*movsf_internal): Add alternatives 16 and 17. Enable
3024 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
3026 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
3028 PR rtl-optimization/66891
3029 * calls.c (expand_call): Wrap precompute_register_parameters with
3030 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
3032 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
3034 * config/nvptx/mkoffload.c (process): Constify mapping variables.
3035 Define target data struct and initialize it.
3037 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
3039 PR rtl-optimization/66626
3040 * ira.h (emit-rtl.h): Include.
3041 (non_spilled_static_chain_regno_p): New.
3042 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
3043 unless it is non spilled static chain pseudo.
3044 (assign_hard_rego): Spill memory profitable allocno unless it is
3045 non spilled static chain pseudo.
3046 (allocno_spill_priority_compare): Put non spilled static chain
3047 pseudo at the end of sorted array.
3048 (improve_allocation): Do nothing if we have static chain and
3050 (allocno__priority_compare_func): Put non spilled static chain
3051 pseudo at the beginning of sorted array.
3052 (move_spill_restore): Ignore non spilled static chain pseudo.
3053 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
3054 to non spilled static chain pseudo.
3055 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
3056 pseudo at the beginning of sorted array.
3057 (spill_for): Spill non spilled static chain pseudo last.
3058 * lra-constraints.c (lra_constraints): Remove static chain pseudo
3059 check for equivalence.
3061 2015-07-16 Martin Liska <mliska@suse.cz>
3064 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
3065 dst_ctx if it does not exist.
3067 2015-07-16 Martin Liska <mliska@suse.cz>
3069 * hash-set.h (remove): New function.
3070 (iterator): New iteration class for hash_set.
3072 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3074 * genattrtab.c (make_canonical): Add a file_location parameter.
3075 Use fatal_at rather than fatal.
3076 (get_attr_value): Likewise. Update call to make_canonical.
3077 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
3078 (make_internal_attr): Update calls accordingly.
3080 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3082 * read-md.h (message_with_line, error_with_line): Delete.
3083 * read-md.c (message_with_line, error_with_line): Delete.
3084 * gensupport.h: Include read-md.h.
3085 (md_rtx_info): New structure.
3086 (read_md_rtx): Use it. Return a bool success value.
3087 * gensupport.c (read_md_rtx): Likewise.
3088 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
3089 (main): Update after interface changes.
3090 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
3091 (main): Update after interface changes.
3092 * genattrtab.c (insn_code_number): Delete.
3093 (optimize_attrs): Add a max_insn_code parameter and use it instead
3094 of insn_code_number.
3095 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
3096 Use *_at rather than *_with_line functions.
3097 (gen_insn): Likewise.
3098 (gen_delay): Likewise.
3099 (gen_insn_reserv): Likewise.
3100 (gen_bypass): Take an md_rtx_info rather than an rtx.
3101 (main): Update after interface changes. Use a local max_insn_code
3102 variable instead of insn_code_number.
3103 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
3104 an rtx. Use fatal_at rather than fatal.
3105 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
3106 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
3107 (gen_absence_set, gen_final_absence_set, gen_automaton)
3108 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
3109 (main): Update after interface changes.
3110 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
3112 (main): Update after interface changes.
3113 * genconditions.c (main): Use new read_md_rtx interface.
3114 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
3115 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
3116 (main): Update after interface changes.
3117 * genemit.c (insn_code_number, insn_index_number): Delete.
3118 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3119 Use fatal_at rather than fatal.
3120 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
3122 (gen_split): Likewise.
3123 (main): Update after interface changes.
3124 * genextract.c (line_no): Delete.
3125 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3126 Update call to walk_rtx.
3127 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
3128 rather than message_with_line.
3129 (walk_rtx): Add an md_rtx_info argument. Update call to
3130 VEC_safe_set_locstr.
3131 (main): Update after interface changes.
3132 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
3133 and lineno. Use error_at rather than separate message_with_line
3134 calls and have_error assignments.
3135 (main): Update after interface changes.
3136 * genmddump.c (main): Use new read_md_rtx interface.
3137 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
3138 (main): Update after interface changes.
3139 * genoutput.c (next_code_number): Delete.
3140 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3141 (gen_peephole, gen_expand, gen_split): Likewise.
3142 (note_constraint): Likewise. Use *_at rather than *_with_line
3144 (main): Update after interface changes.
3145 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
3147 (main): Update after interface changes.
3148 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
3149 than an rtx and lineno.
3150 (process_define_constraint): Likewise.
3151 (process_define_register_constraint): Likewise.
3152 (main): Update after interface changes.
3153 * genrecog.c (next_insn_code, pattern_lineno): Delete.
3154 (validate_pattern): Replace top-level rtx with an md_rtx_info.
3155 Use *_at rather than *_with_line functions.
3156 (match_pattern_2): Likewise.
3157 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
3158 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
3159 Use *_at rather than *_with_line functions.
3160 * gentarget-def.c (add_insn): New function.
3161 (main): Use it. Use new read_md_rtx interface.
3163 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3165 * gensupport.h (compute_test_codes): Take a file_location rather
3167 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
3168 rather than *_with_line functions.
3169 (process_define_predicate): Update call to compute_test_codes.
3170 * genpreds.c (validate_exp): Take a file_location rather than a
3171 line number. Use *_at functions rather than *_with_line functions.
3172 (process_define_predicate): Update call to validate_exp.
3173 (constraint_data): Replace lineno field with a file_location.
3174 (add_constraint): Take a file_location rather than a line number.
3175 Use *_at functions rather than *_with_line functions. Fix error
3176 message for address constraints. Update after changes to
3177 validate_exp, constraint_data and compute_test_codes.
3178 (process_define_constraint): Update accordingly.
3179 (process_define_register_constraint): Likewise.
3181 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3183 * genoutput.c (data): Use a file_location to record the source
3186 (idata, idata_end): Remove initialization.
3187 (constraint_data): Replace lineno with a file_location.
3188 (output_insn_data): Update after changes to data.
3189 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
3190 (scan_operands): Likewise, using *_at rather than *_with_line
3192 (process_template): Likewise.
3193 (validate_insn_alternatives): Likewise.
3194 (validate_insn_operands): Likewise.
3195 (validate_optab_operands): Likewise.
3196 (init_insn_for_nothing): Initialize idata and idata_end.
3197 (note_constraint): Update after changes to constraint_data,
3198 using at rather than with_line functions.
3199 (mdep_constraint_len): Take a file_location rather than a
3200 line number. Use at rather than with_line functions.
3202 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3204 * read-md.h (fatal_at): Declare.
3205 * read-md.c (fatal_at): New function.
3206 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
3207 to record the source position.
3208 (check_attr_test): Take a file_location instead of a line number.
3209 Use fatal_at instead of fatal.
3210 (check_attr_value): Update after above changes, using "at"
3211 rather than "with_line" reporting functions.
3212 (convert_set_attr_alternative): Likewise.
3213 (gen_attr): Likewise.
3214 (check_defs): Likewise. Don't assign to read_md_filename.
3215 (gen_insn): Update initialization after above changes.
3216 (gen_delay): Likewise.
3217 (write_insn_cases): Print the filename for a define_peephole.
3218 (gen_insn_reserv): Take a line number as argument and update
3219 the call to check_attr_test.
3220 (main): Pass a line number to gen_insn_reserv.
3222 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3224 * read-md.h (file_location): New structure.
3225 (directive_handler_t): Take a file_location rather than a line number.
3226 (message_at, error_at): Declare.
3227 (read_skip_construct): Delete.
3228 * read-md.c (message_with_line_1): Replace with...
3229 (message_at_1): ...this new function.
3230 (message_at, error_at): New functions.
3231 (message_with_line, error_with_line): Update to use message_at_1.
3232 (handle_enum): Take a file_location rather than a line number
3233 and use error_at for error reporting.
3234 (handle_include): Likewise.
3235 (read_skip_construct): Likewise. Make static.
3236 (handle_file): Update after above changes. Pass a file_location
3237 rather than a line number to handle_directive.
3238 * gensupport.c (queue_elem): Replace separate filename and lineno
3239 with a file_location.
3240 (queue_pattern): Replace filename and lineno arguments with a
3241 file_location. Update after change to queue_elem.
3242 (process_define_predicate): Replace lineno argument with a
3243 file_location and use error_at for error reporting. Update
3244 after above changes.
3245 (process_rtx): Likewise.
3246 (subst_pattern_match): Likewise.
3247 (get_alternatives_number): Likewise.
3248 (alter_predicate_for_insn): Likewise.
3249 (rtx_handle_directive): Likewise.
3250 (is_predicable): Update after above changes, using error_at rather
3251 than error_with_line.
3252 (has_subst_attribute): Likewise.
3253 (identify_predicable_attribute): Likewise.
3254 (alter_attrs_for_subst_insn): Likewise.
3255 (process_one_cond_exec): Likewise.
3256 (process_substs_on_one_elem): Likewise.
3257 (process_define_subst): Likewise.
3258 (check_define_attr_duplicates): Likewise.
3259 (read_md_rtx): Update after change to queue_elem.
3261 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3263 * genoutput.c (next_index_number): Delete.
3264 (data): Remove index_number.
3265 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
3266 (main): Remove manipulation of next_index_number.
3268 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3270 * genattrtab.c (check_attr_value): Remove handling of null attrs.
3271 (make_canonical): Likewise.
3273 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
3275 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
3276 instead of adjust_address_nv.
3277 (restore_stack_nonlocal): Likewise.
3278 (nonlocal_goto): Likewise.
3280 2015-07-16 Tom de Vries <tom@codesourcery.com>
3282 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
3283 not have a corresponding loop header phi.
3285 2015-07-16 Tom de Vries <tom@codesourcery.com>
3287 * tree-parloops.c (create_loads_for_reductions): Handle case that
3288 reduction is unused.
3290 2015-07-16 Richard Biener <rguenther@suse.de>
3292 PR tree-optimization/66894
3293 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
3294 about deriving NE_EXPR from truncated values.
3296 2015-07-16 Martin Liska <mliska@suse.cz>
3299 (object_allocator): Add new class.
3300 (pool_allocator::initialize): Use the underlying class.
3301 (pool_allocator::allocate): Likewise.
3302 (pool_allocator::remove): Likewise.
3303 (operator new): A new generic allocator.
3304 * asan.c (struct asan_mem_ref): Remove unused members.
3305 (asan_mem_ref_new): Replace new operator with
3306 object_allocator::allocate.
3307 (free_mem_ref_resources): Change deallocation.
3308 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
3309 with object_allocator.
3310 * config/sh/sh.c (add_constant): Replace new operator with
3311 object_allocator::allocate.
3312 (sh_reorg): Change call to a release method.
3313 * cselib.c (struct elt_list): Remove unused members.
3314 (new_elt_list): Replace new operator with
3315 object_allocator::allocate.
3316 (new_elt_loc_list): Likewise.
3317 (new_cselib_val): Likewise.
3318 (unchain_one_elt_list): Change delete operator with remove method.
3319 (unchain_one_elt_loc_list): Likewise.
3320 (unchain_one_value): Likewise.
3321 (cselib_finish): Release newly added static allocators.
3322 * cselib.h (struct cselib_val): Remove unused members.
3323 (struct elt_loc_list): Likewise.
3324 * df-problems.c (df_chain_alloc): Replace pool_allocator with
3326 * df-scan.c (struct df_scan_problem_data): Likewise.
3327 (df_scan_alloc): Likewise.
3328 * df.h (struct dataflow): Likewise.
3329 * dse.c (struct read_info_type): Likewise.
3330 (struct insn_info_type): Likewise.
3331 (struct dse_bb_info_type): Likewise.
3332 (struct group_info): Likewise.
3333 (struct deferred_change): Likewise.
3334 (get_group_info): Likewise.
3335 (delete_dead_store_insn): Likewise.
3336 (free_read_records): Likewise.
3337 (replace_read): Likewise.
3338 (check_mem_read_rtx): Likewise.
3339 (scan_insn): Likewise.
3340 (dse_step1): Likewise.
3341 (dse_step7): Likewise.
3342 * et-forest.c (struct et_occ): Remove unused members.
3343 (et_new_occ): Use allocate instead of new operator.
3344 (et_new_tree): Likewise.
3345 (et_free_tree): Call release method explicitly.
3346 (et_free_tree_force): Likewise.
3347 (et_free_pools): Likewise.
3348 (et_split): Use remove instead of delete operator.
3349 * et-forest.h (struct et_node): Remove unused members.
3350 * ipa-cp.c: Change pool_allocator to object_allocator.
3351 * ipa-inline-analysis.c: Likewise.
3352 * ipa-profile.c: Likewise.
3353 * ipa-prop.c: Likewise.
3354 * ipa-prop.h: Likewise.
3355 * ira-build.c (initiate_cost_vectors): Cast return value.
3356 (ira_allocate_cost_vector): Likewise.
3357 * ira-color.c (struct update_cost_record): Remove unused members.
3358 * lra-int.h (struct lra_live_range): Likewise.
3359 (struct lra_copy): Likewise.
3360 (struct lra_insn_reg): Likewise.
3361 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
3362 * lra.c (new_insn_reg): Replace new operator with allocate method.
3363 (free_insn_regs): Same for operator delete.
3364 (finish_insn_regs): Release new static allocator.
3365 (finish_insn_recog_data): Likewise.
3366 (lra_free_copies): Replace delete operator with remove method.
3367 (lra_create_copy): Replace operator new with allocate method.
3368 (invalidate_insn_data_regno_info): Same for remove method.
3369 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
3370 (free_debug_insn_changes): Replace delete operator with remove method.
3371 (replace_oldest_value_reg): Replace operator new with allocate method.
3372 (pass_cprop_hardreg::execute): Release new static variable.
3373 * sched-deps.c (sched_deps_init): Change pool_allocator to
3375 * sel-sched-ir.c: Likewise.
3376 * sel-sched-ir.h: Likewise.
3377 * stmt.c (expand_case): Likewise.
3378 (expand_sjlj_dispatch_table): Likewise.
3379 * tree-sra.c (struct access): Remove unused members.
3380 (struct assign_link): Likewise.
3381 (sra_deinitialize): Release newly added static pools.
3382 (create_access_1):Replace operator new with allocate method.
3383 (build_accesses_from_assign): Likewise.
3384 (create_artificial_child_access): Likewise.
3385 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
3386 pool_allocator to object_allocator.
3387 * tree-ssa-pre.c: Likewise.
3388 * tree-ssa-reassoc.c: Likewise.
3389 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
3390 * tree-ssa-strlen.c: Likewise.
3391 * tree-ssa-structalias.c: Likewise.
3392 * var-tracking.c (onepart_pool_allocate): New function.
3393 (unshare_variable): Use the newly added function.
3394 (variable_merge_over_cur): Likewise.
3395 (variable_from_dropped): Likewise.
3396 (variable_was_changed): Likewise.
3397 (set_slot_part): Likewise.
3398 (emit_notes_for_differences_1): Likewise.
3399 (vt_finalize): Release newly added static pools.
3401 2015-07-16 Martin Jambor <mjambor@suse.cz>
3403 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
3404 all uses. Fix two typos in its general comment.
3405 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
3407 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
3409 * config/i386/linux-common.h (LINK_MPX): New.
3410 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
3411 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
3412 indicating '-z bndplt' support by linker.
3413 * configure: Regenerate.
3414 * config.in: Regenerate.
3416 2015-07-16 Richard Biener <rguenther@suse.de>
3418 * fold-const.c (fold_widened_comparison): Remove.
3419 (fold_sign_changed_comparison): Likewise.
3420 (fold_comparison): Move widened and sign-changed comparison
3422 * match.pd: ... to patterns here.
3423 * generic-match-head.c: Include target.h.
3424 * gimple-match-head.c: Likewise.
3426 2015-07-16 Richard Biener <rguenther@suse.de>
3428 * tree-ssa-dom.c (dom_valueize): New function.
3429 (record_temporary_equivalences): Also record equivalences
3430 for dominating stmts that have uses of equivalences we are
3433 2015-07-16 Bin Cheng <bin.cheng@arm.com>
3435 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
3436 add_autoinc_candidates.
3437 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
3438 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
3439 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
3440 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
3442 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
3443 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
3444 Remove parameter struct iv*. Call add_autoinc_candidates here.
3445 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
3446 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
3448 (find_iv_candidates): Call new functions.
3450 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
3452 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
3453 uninitialized-variable warning.
3455 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
3458 * config/sh/sh.md (movdi): Split simple reg move to two movsi
3459 when the destination is R0.
3461 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
3464 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
3465 * config/i386/i386.c (ix86_expand_pextr): New function.
3466 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
3467 for non-lowpart subregs.
3468 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
3469 (insv<mode>): Use SWI248 mode iterator.
3470 (insv<mode>_1): Ditto.
3472 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3473 Sebastian Pop <s.pop@samsung.com>
3475 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
3476 iterator to use_stmt.
3478 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3479 Sebastian Pop <s.pop@samsung.com>
3481 * graphite-scop-detection.c (build_scops_1): Discard scops for
3484 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3485 Sebastian Pop <s.pop@samsung.com>
3487 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
3488 case of a return statement in scop.
3490 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3491 Sebastian Pop <s.pop@samsung.com>
3493 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
3494 INTEGER_TYPE parameters.
3495 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
3496 VECTOR_CST in scan_tree_for_params.
3497 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
3499 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
3501 * gimple-pretty-print.h: Don't include pretty-print.h.
3502 * tree-streamer.h: Don't include lto-streamer.h.
3503 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
3504 * gimple-streamer-in.c: Remove redundant includes.
3505 * gimple-streamer-out.c: Likewise.
3506 * ipa-devirt.c: Likewise.
3507 * ipa-icf.c: Likewise.
3508 * ipa-inline-analysis.c: Likewise.
3509 * ipa-polymorphic-call.c: Likewise.
3510 * ipa-profile.c: Likewise.
3511 * ipa-prop.c: Likewise.
3512 * ipa-pure-const.c: Likewise.
3513 * lto-cgraph.c: Likewise.
3514 * lto-streamer-in.c: Likewise.
3515 * lto-streamer-out.c: Likewise.
3516 * lto-streamer.c: Likewise.
3517 * tree-streamer-in.c: Likewise.
3518 * tree-streamer-out.c: Likewise.
3519 * tree-streamer.c: Likewise.
3521 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
3523 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
3525 * opts.c: Remove multiline #include comment.
3527 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
3529 * config/nvptx/mkoffload.c (process): Add C++ protection to
3532 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3535 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
3536 null before IEEE 128-bit floating point support patch.
3538 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3540 * simplify-rtx.c (simplify_ternary_operation): Add simplification
3541 for (!c) != {0,...,0} ? a : b for vector modes.
3543 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
3544 Martin Jambor <mjambor@suse.cz>
3546 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
3547 struct func_body_info* instead of struct ipa_node_params*, expecting
3548 fbi->info to be filled in. Replace throughout. Adjust call to
3549 ipa_load_from_parm_agg.
3550 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
3551 instead of struct ipa_node_params*. Adjust calls to other functions
3552 so that they pass either fbi or fbi->info.
3553 (set_switch_stmt_execution_predicate): Likewise.
3554 (will_be_nonconstant_predicate): Likewise.
3555 (compute_bb_predicates): Likewise.
3556 (estimate_function_body_sizes): Move asserts earlier. Fill in
3557 struct func_body_info, replace parms_info with fbi.info. Adjust
3558 calls to functions that now accept struct func_body_info.
3559 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
3560 (struct func_body_info): Likewise.
3561 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
3562 remove static. Adjust callers.
3563 (ipa_load_from_parm_agg): Remove.
3564 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
3565 (func_body_info): Likewise.
3566 (ipa_load_from_parm_agg): Adjust prototype.
3568 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3570 * gensupport.c (rtx_handle_directive): Adjust.
3571 * read-rtl.c (apply_iterators): Take vector to add rtxs to
3572 instead of expr list rtx.
3573 (add_define_attr_for_define_subst): Likewise.
3574 (add_define_subst_attr): Likewise.
3575 (read_subst_mapping): Likewise.
3576 (read_rtx): Likewise.
3577 * rtl.h (read_rtx): Adjust.
3579 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3581 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
3583 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
3586 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
3587 (*tls_local_dynamic_base_64_<mode>): Ditto.
3588 (*tls_local_dynamic_base_64_largepic): Ditto.
3589 (tls_global_dynamic_64_<mode>): Update expander pattern.
3590 (tls_local_dynamic_base_64_<mode>): Ditto.
3592 2015-07-15 Richard Biener <rguenther@suse.de>
3594 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
3595 and bool_var == 1 -> bool_var simplifications ...
3596 * match.pd: ... to patterns here. Factor out negate_expr_p
3597 cases from the A - B -> A + (-B) patterns as negate_expr_p
3598 predicate and add a -(A + B) -> (-B) - A pattern.
3600 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
3602 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
3604 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
3605 Robert Suchanek <robert.suchanek@imgtec.com>
3607 * config/mips/mips.c (mips_int_mask): New enum.
3608 (mips_shadow_set): Likewise.
3609 (int_mask): New variable.
3610 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
3611 (machine_function): Add int_mask and use_shadow_register_set.
3612 (mips_attribute_table): Add attribute handlers for interrupt and
3613 use_shadow_register_set.
3614 (mips_interrupt_mask): New static function.
3615 (mips_handle_interrupt_attr): Likewise.
3616 (mips_handle_use_shadow_register_set_attr): Likewise.
3617 (mips_use_shadow_register_set): Change return type to enum
3618 mips_shadow_set. Add argument handling for use_shadow_register_set
3620 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
3621 compare with mips_shadow_set enum.
3622 (mips_compute_frame_info): Add interrupt mask and
3623 use_shadow_register_set to per-function information structure.
3624 Add a stack slot for EPC unconditionally.
3625 (mips_expand_prologue): Compare use_shadow_register_set value
3626 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
3627 masked interrupt register but in EIC mode use K0 and save Cause in K0.
3628 EPC saved and restored unconditionally. Use PMODE_INSN macro when
3629 copying the stack pointer from the shadow register set.
3630 * config/mips/mips.h (SR_IM0): New define.
3631 * config/mips/mips.md (mips_rdpgpr): Rename to...
3632 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
3633 * doc/extend.texi (Declaring Attributes of Functions): Document
3634 optional arguments for interrupt and use_shadow_register_set
3637 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
3639 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
3640 interrupt attribute.
3641 (mips_expand_prologue): Disable the floating point unit in an ISR.
3642 * config/mips/mips.h (SR_COP1): New define.
3644 2015-07-15 Richard Biener <rguenther@suse.de>
3646 * genmatch.c (parser::peek, parser::peek_ident): Add argument
3647 to tell how many tokens to peek ahead (default 1).
3648 (parser::eat_token, parser::eat_ident): Return token consumed.
3649 (parser::parse_result): Parse new switch statement.
3650 * match.pd: Use case statements where appropriate.
3652 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
3654 PR rtl-optimization/58066
3655 * calls.c (expand_call): Precompute register parameters before stack
3656 alignment is performed.
3658 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
3660 PR rtl-optimization/66838
3661 * postreload.c (reload_cse_move2add): Also process
3662 CALL_INSN_FUNCTION_USAGE when resetting information of
3663 call-clobbered registers.
3665 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3666 Cesar Philippidis <cesar@codesourcery.com>
3667 Chung-Lin Tang <cltang@codesourcery.com>
3669 * config/nios2/constraints.md (U, v): New constraints.
3670 * config/nios2/predicates.md (rdprs_dcache_operand): New.
3671 (ldstex_memory_operand): New.
3672 * config/nios2/sync.md: New file.
3673 * config/nios2/nios2.md (unspecv): Add new builtin function
3675 (rdprs, flushd, flushda, wrpie, eni): New patterns.
3676 (top-level): Include sync.md.
3677 * config/nios2/nios2.c (N2_FTYPES): Add function types for
3679 (N2_BUILTINS): Add arch field setting, add new builtins.
3680 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
3682 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
3683 Also handle ldex/stex/ldsex/stsex builtins.
3684 (nios2_expand_rdprs_builtin): New function.
3685 (nios2_expand_cache_builtin): New function.
3686 (nios2_expand_wrpie_builtin): New function.
3687 (nios2_expand_eni_builtin): New function.
3688 (nios2_expand_builtin): Add arch field handling and new builtin
3690 * doc/extend.texi (Altera Nios II Built-in Functions): Document
3692 * doc/md.texi (Machine Constraints): Document U and v constraints.
3694 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3695 Cesar Philippidis <cesar@codesourcery.com>
3696 Chung-Lin Tang <cltang@codesourcery.com>
3698 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
3699 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
3700 callee_save_reg_size and uses_anonymous_args fields.
3701 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
3702 (nios2_create_cfa_notes): New function.
3703 (nios2_adjust_stack): New function for adjusting stack.
3704 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
3705 Use nios2_adjust_stack.
3706 (nios2_expand_epilogue): Likewise.
3707 (nios2_expand_return): New function.
3708 (nios2_can_use_return_insn): Update for CDX pop.n usage.
3709 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
3710 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
3711 * config/nios2/nios2.md (return): Use nios2_expand_return.
3713 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3714 Cesar Philippidis <cesar@codesourcery.com>
3715 Chung-Lin Tang <cltang@codesourcery.com>
3717 * config/nios2/predicates.md (pop_operation): New.
3718 (ldwm_operation, stwm_operation): New.
3719 (nios2_hard_register_operand): New.
3720 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
3721 (ldstwm_operation_p): Declare.
3722 (gen_ldstwm_peep): Declare.
3723 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
3724 (base_reg_adjustment_p): New.
3725 (pop_operation_p): New.
3726 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
3727 (nios2_ldstwm_regset_p): New.
3728 (ldstwm_operation_p): New.
3730 (nios2_ldst_parallel): New.
3731 (struct ldswm_operand): Declare.
3732 (compare_ldstwm_operands): New.
3733 (can_use_cdx_ldstw): New.
3734 (gen_ldstwm_peep): New.
3735 * config/nios2/nios2-ldstwm.sml: New.
3736 * config/nios2/nios2.md: Include ldstwm.md.
3737 * config/nios2/ldstwm.md: Generated.
3739 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3740 Cesar Philippidis <cesar@codesourcery.com>
3741 Chung-Lin Tang <cltang@codesourcery.com>
3743 * config/nios2/nios2.h (LABEL_ALIGN): Define.
3744 (REG_ALLOC_ORDER): Define.
3745 (ADJUST_REG_ALLOC_ORDER): Define.
3746 (HONOR_REG_ALLOC_ORDER): Define.
3747 (CDX_REG_P): Define.
3748 (ANDCLEAR_INT): Define.
3749 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
3750 (nios2_label_align): Declare.
3751 (nios2_cdx_narrow_form_p): Declare.
3752 (nios2_adjust_reg_alloc_order): Declare.
3753 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
3755 (nios2_large_unspec_reloc_p): New function, split from...
3756 (nios2_legitimate_pic_operand_p): ...here.
3757 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
3758 (nios2_print_operand_punct_valid_p): New.
3759 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
3760 (split_mem_address): New.
3761 (split_alu_insn): New.
3763 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
3764 (enum nios2_add_insn_kind): New.
3765 (nios2_add_insn_names, nios2_add_insn_narrow): New.
3766 (nios2_add_insn_classify): New.
3767 (nios2_add_insn_asm): New.
3768 (nios2_cdx_narrow_form_p): New.
3769 (label_align, min_labelno, max_labelno): New.
3771 (nios2_label_align): New.
3772 (nios2_adjust_reg_alloc_order): New.
3773 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3774 (TARGET_MACHINE_DEPENDENT_REORG): Define.
3775 * config/nios2/constraints.md (P): New constraint.
3776 * config/nios2/predicates.md (const_and_operand): New.
3778 (stack_memory_operand): New.
3779 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
3780 (length): Update to use nios2_cdx_narrow_form_p().
3781 (type): Add new insn type values.
3782 (control, alu, st, ld, shift): Update insn reservations with
3783 new insn type values.
3784 (*high, *lo_sum): Define new insn patterns for constant generation.
3785 (movqi_internal, movhi_internal, movsi_internal): Reduce
3786 alternatives, update asm template to handle CDX variants, update
3788 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
3789 template, update type attributes.
3790 (extendhisi2, extendqi<mode>2): Likewise.
3791 (addsi3): Change to use function for asm string.
3792 (subsi3): Add CDX notation to asm template, update type attributes.
3793 (negsi3, one_cmplsi3): Likewise.
3794 (andsi3): New pattern, specialized from logical patterns.
3795 (<code>si3): Remove and case, combine alternatives, update asm
3797 (<shift_op>si3): Add CDX notation, update type attributes.
3798 (rotrsi3): Update type attribute.
3799 (*merge, extzv, insv): New insn patterns.
3800 (return): Change to define_expand.
3801 (simple_return): Add CDX notation, update type attributes.
3802 (indirect_jump): Add CDX notation.
3803 (jump): Update asm cases, update length attribute expression.
3804 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
3805 (nios2_cbranch): Update asm cases and length attribute expression
3806 to handle CDX variants.
3807 (nios2_cmp<code>): Update asm template.
3808 (nop): Add CDX notation, update type attributes.
3809 (trap): Add CDX notation.
3810 (ctrapsi4): Update asm cases and length attribute expression to
3812 * doc/md.texi (Machine Constraints): Document P constraint.
3814 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3815 Cesar Philippidis <cesar@codesourcery.com>
3816 Chung-Lin Tang <cltang@codesourcery.com>
3818 * config/nios2/nios2.h (SMALL_INT12): New macro.
3819 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
3820 (nios2_valid_addr_expr_p): Use it.
3821 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
3822 with implicit "io" instructions on R2.
3823 * config/nios2/constraints.md (w): New constraint.
3824 * config/nios2/predicates.md (ldstio_memory_operand): New.
3825 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
3826 operand predicate and constraint.
3827 (ld<bh>io_signed, st<bhw>io>): Likewise.
3828 * doc/md.texi (Machine Constraints): Document w constraint.
3830 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3831 Cesar Philippidis <cesar@codesourcery.com>
3832 Chung-Lin Tang <cltang@codesourcery.com>
3834 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
3835 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
3836 Nios II architecture level.
3837 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
3838 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
3839 (OPTION_DEFAULT_SPECS): Define.
3840 (ASM_SPEC): Add -march= spec strings.
3841 * config/nios2/nios2.c (nios2_option_override): Check for
3842 conflicts involving new options.
3843 * config.gcc (nios2*-*-*): Support --with-arch=.
3844 * doc/invoke.texi (Option Summary, Nios II Options): Document
3845 -march=, -mbmx, and -mcdx.
3847 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
3849 PR rtl-optimization/66626
3850 * lra-constraints.c (lra_constraints): Prevent equivalence
3851 substitution for static chain pseudo in functions with nonlocal
3854 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3856 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
3857 (nios2_emit_stack_limit_check): Add size parameter. Handle
3858 -fstack-limit-symbol as well as -fstack-limit-register.
3859 (nios2_expand_prologue): Emit only a single stack limit check,
3860 even if multiple stack adjustments are required.
3861 (nios2_option_override): Diagnose unsupported combination of -fpic
3862 and -stack-limit-symbol.
3864 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
3866 * Makefile.in (top_srcdir): New.
3867 * configure.ac: Use AM_ZLIB.
3868 * configure: Regeneated.
3870 2015-07-14 Matthias Klose <doko@ubuntu.com>
3873 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
3875 2015-07-14 Richard Biener <rguenther@suse.de>
3877 PR tree-optimization/66863
3878 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
3879 what we record for conversion use stmt lhs inequalities.
3881 2015-07-14 Richard Biener <rguenther@suse.de>
3883 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
3884 (decision_tree::gen_gimple): Likewise.
3886 2015-07-14 Tom de Vries <tom@codesourcery.com>
3888 * gcc.c (greater_than_spec_func): Declare forward.
3889 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
3890 -ftree-parallelize-loops={0,1}.
3891 (static_spec_functions): Add greater_than_spec_func function with name
3893 (greater_than_spec_func): New function.
3895 2015-07-14 Richard Biener <rguenther@suse.de>
3897 * tree-ssa-dom.c (record_temporary_equivalences): Merge
3898 wideing type conversion case from record_equivalences_from_incoming_edge
3899 and use record_equality to record equivalences.
3900 (record_equivalences_from_incoming_edge): Call
3901 record_temporary_equivalences.
3903 2015-07-14 Richard Biener <rguenther@suse.de>
3905 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
3906 (struct if_expr): New.
3907 (struct with_expr): Likewise.
3908 (is_a_helper): Add helpers for if_expr and with_expr.
3909 (struct simplify): Add simplify_kind enum and member. Remove
3911 (simplify::simplify): Adjust.
3912 (lower_commutative): Adjust.
3913 (lower_opt_convert): Likewise.
3914 (lower_cond): Likewise.
3915 (replace_id): Handle with_expr and if_expr.
3916 (lower_for): Adjust.
3917 (dt_simplify::gen_1): New recursive worker, split out from ...
3918 (dt_simplify::gen): ... here. Deal with if and with expansion
3920 (capture_info::capture_info): Take context argument
3921 (capture_info::walk_result): Only analyze specific result.
3922 (parser::parse_result): New function.
3923 (parser::parse_simplify): Adjust to parse ifs with then end
3925 (parser::parse_if): Simplify.
3926 (parser::parse_pattern): Pass down simplify kind.
3927 * match.pd: Convert if structure to new syntax.
3929 2015-07-13 Marek Polacek <polacek@redhat.com>
3931 * rtl.c (rtx_equal_p_cb): Fix typo.
3933 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
3935 * omega.h: Don't include config.h, don't include params.h again if
3936 omega.h has already been included.
3937 * graphite-poly.h: Include sese.h.
3938 * graphite.c: Don't include sese.h, remove needless includes and
3939 minimize includes outside #ifdef HAVE_isl block.
3940 * graphite-blocking.c: Don't include sese.h, remove needless includes,
3941 and wrap entire file in #ifdef HAVE_isl
3942 * graphite-dependences.c: Likewise.
3943 * graphite-interchange.c: Likewise.
3944 * graphite-isl-ast-to-gimple.c: Likewise.
3945 * graphite-optimize-isl.c: Likewise.
3946 * graphite-poly.c: Likewise.
3947 * graphite-scop-detection.c: Likewise.
3948 * graphite-sese-to-poly.c: Likewise.
3950 2015-07-13 Tom de Vries <tom@codesourcery.com>
3952 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
3954 2015-07-13 Renlin Li <renlin.li@arm.com>
3957 * simplify-rtx.c (simplify_const_relational_operation): Add
3958 side_effects_p checks.
3960 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
3962 * bitmap.h: Fix double word typos.
3965 * cfgloopmanip.c: Same.
3968 * cgraphclones.c: Same.
3970 * config/aarch64/aarch64-protos.h: Same.
3971 * config/aarch64/aarch64.c: Same.
3972 * config/aarch64/aarch64.md: Same.
3973 * config/arm/arm.md: Same.
3974 * config/arm/arm1020e.md: Same.
3975 * config/arm/arm1026ejs.md: Same.
3976 * config/arm/arm926ejs.md: Same.
3977 * config/arm/fa526.md: Same.
3978 * config/arm/fa606te.md: Same.
3979 * config/arm/fa626te.md: Same.
3980 * config/arm/fa726te.md: Same.
3981 * config/arm/fmp626.md: Same.
3982 * config/darwin.c: Same.
3983 * config/epiphany/epiphany.c: Same.
3984 * config/frv/frv.c: Same.
3985 * config/ft32/ft32.c: Same.
3986 * config/gnu-user.h: Same.
3987 * config/h8300/constraints.md: Same.
3988 * config/i386/i386.c: Same.
3989 * config/i386/i386.md: Same.
3990 * config/iq2000/iq2000.md: Same.
3991 * config/mips/mips.c: Same.
3992 * config/mmix/mmix.md: Same.
3993 * config/moxie/moxie.c: Same.
3994 * config/nds32/nds32.md: Same.
3995 * config/pa/pa.h: Same.
3996 * config/rs6000/aix.h: Same.
3997 * config/rs6000/rs6000.h: Same.
3998 * config/sh/sh.c: Same.
3999 * config/tilegx/tilegx.md: Same.
4000 * config/tilepro/gen-mul-tables.cc: Same.
4003 * doc/invoke.texi: Same.
4005 * dwarf2out.c: Same.
4010 * hash-table.h: Same.
4011 * internal-fn.c: Same.
4013 * ipa-devirt.c: Same.
4016 * ipa-profile.c: Same.
4021 * reg-stack.c: Same.
4027 * tree-inline.c: Same.
4029 * tree-ssa-dom.c: Same.
4030 * tree-ssa-loop-ivopts.c: Same.
4031 * tree-ssa-structalias.c: Same.
4032 * tree-ssa-tail-merge.c: Same.
4033 * tree-ssa-ter.c: Same.
4034 * tree-ssa-threadupdate.c: Same.
4035 * tree-ssa-uninit.c: Same.
4036 * tree-ssanames.c: Same.
4037 * tree-vect-loop-manip.c: Same.
4043 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4046 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
4047 tree_ssa_phiopt_worker): Call it.
4049 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4051 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
4052 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
4055 2015-07-11 Marek Polacek <polacek@redhat.com>
4058 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
4059 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
4060 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
4061 rather than bb_has_abnormal_call_pred.
4062 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
4063 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
4064 rather than bb_has_abnormal_call_pred.
4066 2015-07-10 Anatoly Sokolov <aesok@post.ru>
4068 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4069 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
4070 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4071 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
4072 v850_legitimate_address_p): New functions.
4073 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4075 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
4078 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
4079 indirect sibcall with register arguments if register available
4080 for argument passing.
4081 (init_cumulative_args): Set cfun->machine->arg_reg_available
4082 to (cum->nregs > 0) or to true if function has a variable
4084 (function_arg_advance_32): Set cfun->machine->arg_reg_available
4085 to false if cum->nregs <= 0.
4086 * config/i386/i386.h (machine_function): Add arg_reg_available.
4088 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
4090 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
4091 and gen_higpart instead of gen_rtx_SUBREG.
4092 * config/i386/i386.md
4093 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
4094 (read-modify peephole2): Use gen_lowpart instead of
4095 gen_rtx_SUBREG for operand 5.
4097 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
4099 * config/tilepro/gen-mul-tables.cc (main): Change include list for
4101 * config/tilepro/mul-tables.c: Regenerate.
4102 * config/tilegx/mul-tables.c: Regenerate.
4104 2015-07-10 Richard Biener <rguenther@suse.de>
4106 * fold-const.c (distribute_bit_expr): Remove.
4107 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
4108 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
4109 to A & (B | C) and simplifying A << C1 << C2 to ...
4110 * match.pd: ... patterns here.
4112 2015-07-10 Jiong Wang <jiong.wang@arm.com>
4114 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4115 Mark mem as READONLY and NOTRAP for PIC symbol.
4117 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
4119 * gimple-predict.h: New file.
4120 (gimple_predict_predictor, gimple_predict_set_predictor,
4121 gimple_predict_outcome, gimple_predict_set_outcome,
4122 gimple_build_predict): Relocate here.
4123 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
4124 gimple_predict_outcome, gimple_predict_set_outcome): Move to
4126 * gimple.c (gimple_build_predict): Move to gimple-predict.h
4127 * basic-block.h: Don't include cfghooks.h.
4128 * backend.h: Don't include predict.h.
4129 * cfghooks.h: Include predict.h.
4130 * gimple-pretty-print.c: Include gimple-predict.h.
4131 * gimplify.c: Likwise.
4132 * predict.c: Adjust includes.
4133 * tree-inline.c: Likewise.
4135 * auto-inc-dec.c: Likewise.
4136 * auto-profile.c: Likewise.
4137 * bb-reorder.c: Likewise.
4138 * builtins.c: Likewise.
4139 * caller-save.c: Likewise.
4140 * calls.c: Likewise.
4141 * cfganal.c: Likewise.
4142 * cfgbuild.c: Likewise.
4144 * cfgcleanup.c: Likewise.
4145 * cfgexpand.c: Likewise.
4146 * cfghooks.c: Likewise.
4147 * cfgloopanal.c: Likewise.
4148 * cfgloop.c: Likewise.
4149 * cfgloopmanip.c: Likewise.
4150 * cfgrtl.c: Likewise.
4151 * cgraph.c: Likewise.
4152 * cgraphunit.c: Likewise.
4153 * combine.c: Likewise.
4154 * cprop.c: Likewise.
4157 * dojump.c: Likewise.
4159 * except.c: Likewise.
4160 * expmed.c: Likewise.
4162 * final.c: Likewise.
4163 * fold-const.c: Likewise.
4164 * function.c: Likewise.
4165 * fwprop.c: Likewise.
4166 * gcc-plugin.h: Likewise.
4168 * genattrtab.c: Likewise.
4169 * genemit.c: Likewise.
4170 * gengtype.c: Likewise.
4171 * genopinit.c: Likewise.
4172 * genoutput.c: Likewise.
4173 * genpreds.c: Likewise.
4174 * genrecog.c: Likewise.
4175 * gimple-fold.c: Likewise.
4176 * gimple-iterator.c: Likewise.
4177 * gimple-ssa-isolate-paths.c: Likewise.
4178 * gimple-ssa-strength-reduction.c: Likewise.
4179 * graph.c: Likewise.
4180 * graphite-blocking.c: Likewise.
4181 * graphite.c: Likewise.
4182 * graphite-dependences.c: Likewise.
4183 * graphite-interchange.c: Likewise.
4184 * graphite-isl-ast-to-gimple.c: Likewise.
4185 * graphite-optimize-isl.c: Likewise.
4186 * graphite-poly.c: Likewise.
4187 * graphite-scop-detection.c: Likewise.
4188 * graphite-sese-to-poly.c: Likewise.
4189 * haifa-sched.c: Likewise.
4190 * ifcvt.c: Likewise.
4191 * internal-fn.c: Likewise.
4192 * ipa-cp.c: Likewise.
4193 * ipa-profile.c: Likewise.
4194 * ipa-split.c: Likewise.
4195 * ipa-utils.c: Likewise.
4196 * ira-build.c: Likewise.
4197 * ira-color.c: Likewise.
4198 * ira-conflicts.c: Likewise.
4199 * ira-costs.c: Likewise.
4200 * ira-emit.c: Likewise.
4201 * ira-lives.c: Likewise.
4203 * loop-doloop.c: Likewise.
4204 * loop-init.c: Likewise.
4205 * loop-invariant.c: Likewise.
4206 * loop-unroll.c: Likewise.
4207 * lower-subreg.c: Likewise.
4208 * lra-assigns.c: Likewise.
4210 * lra-coalesce.c: Likewise.
4211 * lra-constraints.c: Likewise.
4212 * lra-lives.c: Likewise.
4213 * lto-cgraph.c: Likewise.
4214 * lto-streamer-in.c: Likewise.
4215 * mode-switching.c: Likewise.
4216 * modulo-sched.c: Likewise.
4217 * omp-low.c: Likewise.
4218 * optabs.c: Likewise.
4219 * passes.c: Likewise.
4220 * postreload.c: Likewise.
4221 * postreload-gcse.c: Likewise.
4222 * profile.c: Likewise.
4223 * recog.c: Likewise.
4224 * regstat.c: Likewise.
4225 * reload1.c: Likewise.
4226 * reorg.c: Likewise.
4227 * rtlanal.c: Likewise.
4228 * sched-ebb.c: Likewise.
4229 * sel-sched-ir.c: Likewise.
4231 * shrink-wrap.c: Likewise.
4232 * simplify-rtx.c: Likewise.
4234 * store-motion.c: Likewise.
4235 * tracer.c: Likewise.
4236 * trans-mem.c: Likewise.
4237 * tree-call-cdce.c: Likewise.
4238 * tree-cfg.c: Likewise.
4239 * tree-cfgcleanup.c: Likewise.
4240 * tree-chkp.c: Likewise.
4241 * tree-complex.c: Likewise.
4242 * tree-eh.c: Likewise.
4243 * tree-if-conv.c: Likewise.
4244 * tree-loop-distribution.c: Likewise.
4245 * tree-outof-ssa.c: Likewise.
4246 * tree-parloops.c: Likewise.
4247 * tree-predcom.c: Likewise.
4248 * tree-pretty-print.c: Likewise.
4249 * tree-profile.c: Likewise.
4250 * tree-sra.c: Likewise.
4251 * tree-ssa.c: Likewise.
4252 * tree-ssa-coalesce.c: Likewise.
4253 * tree-ssa-dce.c: Likewise.
4254 * tree-ssa-dom.c: Likewise.
4255 * tree-ssa-forwprop.c: Likewise.
4256 * tree-ssa-ifcombine.c: Likewise.
4257 * tree-ssa-loop-ch.c: Likewise.
4258 * tree-ssa-loop-im.c: Likewise.
4259 * tree-ssa-loop-ivcanon.c: Likewise.
4260 * tree-ssa-loop-ivopts.c: Likewise.
4261 * tree-ssa-loop-manip.c: Likewise.
4262 * tree-ssa-loop-prefetch.c: Likewise.
4263 * tree-ssa-loop-unswitch.c: Likewise.
4264 * tree-ssa-math-opts.c: Likewise.
4265 * tree-ssa-phiopt.c: Likewise.
4266 * tree-ssa-pre.c: Likewise.
4267 * tree-ssa-reassoc.c: Likewise.
4268 * tree-ssa-sink.c: Likewise.
4269 * tree-ssa-tail-merge.c: Likewise.
4270 * tree-ssa-threadedge.c: Likewise.
4271 * tree-ssa-threadupdate.c: Likewise.
4272 * tree-switch-conversion.c: Likewise.
4273 * tree-tailcall.c: Likewise.
4274 * tree-vect-data-refs.c: Likewise.
4275 * tree-vect-loop.c: Likewise.
4276 * tree-vect-loop-manip.c: Likewise.
4277 * tree-vectorizer.c: Likewise.
4278 * tree-vrp.c: Likewise.
4279 * ubsan.c: Likewise.
4280 * value-prof.c: Likewise.
4281 * varasm.c: Likewise.
4282 * var-tracking.c: Likewise.
4283 * config/aarch64/aarch64-builtins.c: Likewise.
4284 * config/aarch64/aarch64.c: Likewise.
4285 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4286 * config/alpha/alpha.c: Likewise.
4287 * config/arc/arc.c: Likewise.
4288 * config/arm/arm.c: Likewise.
4289 * config/avr/avr.c: Likewise.
4290 * config/bfin/bfin.c: Likewise.
4291 * config/c6x/c6x.c: Likewise.
4292 * config/cr16/cr16.c: Likewise.
4293 * config/cris/cris.c: Likewise.
4294 * config/darwin.c: Likewise.
4295 * config/darwin-c.c: Likewise.
4296 * config/epiphany/epiphany.c: Likewise.
4297 * config/epiphany/mode-switch-use.c: Likewise.
4298 * config/epiphany/resolve-sw-modes.c: Likewise.
4299 * config/fr30/fr30.c: Likewise.
4300 * config/frv/frv.c: Likewise.
4301 * config/ft32/ft32.c: Likewise.
4302 * config/h8300/h8300.c: Likewise.
4303 * config/i386/i386.c: Likewise.
4304 * config/i386/winnt.c: Likewise.
4305 * config/ia64/ia64.c: Likewise.
4306 * config/iq2000/iq2000.c: Likewise.
4307 * config/lm32/lm32.c: Likewise.
4308 * config/m32c/m32c.c: Likewise.
4309 * config/m32r/m32r.c: Likewise.
4310 * config/m68k/m68k.c: Likewise.
4311 * config/mcore/mcore.c: Likewise.
4312 * config/mep/mep.c: Likewise.
4313 * config/microblaze/microblaze.c: Likewise.
4314 * config/mips/mips.c: Likewise.
4315 * config/mmix/mmix.c: Likewise.
4316 * config/mn10300/mn10300.c: Likewise.
4317 * config/moxie/moxie.c: Likewise.
4318 * config/msp430/msp430.c: Likewise.
4319 * config/nds32/nds32.c: Likewise.
4320 * config/nds32/nds32-cost.c: Likewise.
4321 * config/nds32/nds32-fp-as-gp.c: Likewise.
4322 * config/nds32/nds32-intrinsic.c: Likewise.
4323 * config/nds32/nds32-isr.c: Likewise.
4324 * config/nds32/nds32-md-auxiliary.c: Likewise.
4325 * config/nds32/nds32-memory-manipulation.c: Likewise.
4326 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4327 * config/nds32/nds32-predicates.c: Likewise.
4328 * config/nios2/nios2.c: Likewise.
4329 * config/nvptx/nvptx.c: Likewise.
4330 * config/pa/pa.c: Likewise.
4331 * config/pdp11/pdp11.c: Likewise.
4332 * config/rl78/rl78.c: Likewise.
4333 * config/rs6000/rs6000.c: Likewise.
4334 * config/rx/rx.c: Likewise.
4335 * config/s390/s390.c: Likewise.
4336 * config/sh/sh.c: Likewise.
4337 * config/sh/sh-mem.cc: Likewise.
4338 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4339 * config/sh/sh_treg_combine.cc: Likewise.
4340 * config/sparc/sparc.c: Likewise.
4341 * config/spu/spu.c: Likewise.
4342 * config/stormy16/stormy16.c: Likewise.
4343 * config/tilegx/tilegx.c: Likewise.
4344 * config/tilepro/tilepro.c: Likewise.
4345 * config/v850/v850.c: Likewise.
4346 * config/vax/vax.c: Likewise.
4347 * config/visium/visium.c: Likewise.
4348 * config/xtensa/xtensa.c: Likewise.
4350 2015-07-10 Richard Biener <rguenther@suse.de>
4352 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
4353 (decision_tree::gen_gimple): Likewise.
4354 (decision_tree::gen_generic): Likewise.
4356 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
4359 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
4360 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
4362 2015-07-10 Jakub Jelinek <jakub@redhat.com>
4365 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
4366 or ORT_TASK contexts.
4367 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
4370 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4372 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
4375 2015-07-10 Tom de Vries <tom@codesourcery.com>
4377 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
4378 insert nit + 1 bound.
4380 2015-07-10 Richard Biener <rguenther@suse.de>
4382 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
4383 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
4384 (if_convertible_loop_p_1): For this always compute bb predicates.
4385 (if_convertible_loop_p): And free them.
4387 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4389 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
4392 2015-07-10 Richard Biener <rguenther@suse.de>
4394 PR tree-optimization/66823
4395 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
4398 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
4400 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
4401 to handle mips[32|64]r3 and mips[32|64]r5.
4403 2015-07-09 Jakub Jelinek <jakub@redhat.com>
4406 * tree-nested.c (get_static_chain): Or in a flag into
4407 info->static_chain_added.
4408 (get_frame_field, get_nonlocal_debug_decl): Likewise.
4409 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
4411 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
4412 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
4415 PR tree-optimization/66718
4416 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
4418 (vect_simd_lane_linear): New function.
4419 (vectorizable_simd_clone_call): Support using linear arguments for
4420 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
4422 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4425 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
4427 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4429 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
4430 Use machine mode, not enum machine_mode in the prototype.
4432 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
4433 classify 128-bit floating point support.
4434 (FLOAT128_IBM_P): Likewise.
4435 (FLOAT128_VECTOR_P): Likewise.
4436 (FLOAT128_2REG_P): Likewise.
4437 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
4438 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
4439 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
4440 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
4442 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
4443 tests against TFmode/TDmode, since those modes do not use VSX
4445 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
4447 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
4448 tests against TFmode, etc.
4449 (invalid_e500_subreg): Add tests against IFmode/KFmode.
4450 (reg_offset_addressing_ok_p): Likewise.
4451 (rs6000_legitimate_offset_address_p): Likewise.
4452 (rs6000_legitimize_address): Likewise.
4453 (rs6000_legitimize_reload_address): Likewise.
4454 (rs6000_legitimate_address_p): Clean up tests against TFmode and
4455 TDmode to use the new helper macros, which will include IFmode and
4457 (rs6000_emit_move): Likewise.
4458 (rs6000_darwin64_record_arg_recurse): Likewise.
4459 (print_operand): Likewise.
4460 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
4461 that uses a single vector register as a vector and not as a
4462 floating point register in terms of the calling sequence.
4463 (rs6000_discover_homogeneous_aggregate): Likewise.
4464 (rs6000_return_in_memory): Likewise.
4465 (init_cumulative_args): Likewise.
4466 (rs6000_function_arg_boundary): Likewise.
4467 (rs6000_function_arg_advance_1): Likewise.
4468 (rs6000_function_arg): Likewise.
4469 (rs6000_pass_by_reference): Likewise.
4470 (rs6000_gimplify_va_arg): Likewise.
4471 (rs6000_secondary_reload_memory): Use machine_mode not enum
4473 (rs6000_split_multireg_move): Use new helper macros.
4474 (spe_func_has_64bit_regs_p): Likewise.
4475 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
4476 (output_toc): Use new helper macros.
4477 (rs6000_register_move_cost): Likewise.
4478 (rs6000_function_value): Add IEEE 128-bit floating point calling
4480 (rs6000_libcall_value): Likewise.
4481 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
4482 floating point support.
4483 (rs6000_vector_mode_supported_p): Likewise.
4485 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
4487 PR rtl-optimization/66782
4488 * lra-int.h (struct lra_insn_recog_data): Add comment about
4489 clobbered hard regs for arg_hard_regs.
4490 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
4491 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
4492 Add condition for processing used hard regs.
4493 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
4494 Process clobbered hard regs.
4496 2015-07-09 Michael Matz <matz@suse.de>
4498 * genmatch.c (fprintf_indent): New function.
4499 (operand::gen_transform): Add indent parameter.
4500 (expr::gen_transform, c_expr::gen_transform,
4501 capture::gen_transform): Ditto and use fprintf_indent.
4502 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
4503 (dt_operand::gen, dt_operand::gen_predicate,
4504 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
4505 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
4506 (decision_tree::gen_gimple): Adjust calls and indent generated
4508 (decision_tree::gen_generic): Ditto.
4509 (write_predicate): Ditto.
4511 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
4514 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
4515 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
4516 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
4517 {GENERAL,SSE,MMX}_REG_P where appropriate.
4519 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
4521 * lto-streamer.h: Don't include target.h and alloc-pool.h.
4522 * builtins.c: Adjust includes.
4523 * gimple.c: Likewise.
4524 * ipa-icf.c: Likewise.
4525 * lto-opts.c: Likewise.
4526 * ipa-reference.c: Likewise.
4527 * lto-section-out.c: Likewise.
4528 * lto-streamer-in.c: Likewise.
4529 * lto-streamer-out.c: Likewise.
4530 * opts-global.c: Likewise.
4531 * symtab.c: Likewise.
4532 * tree-chkp.c: Likewise.
4533 * tree-ssa-live.c: Likewise.
4534 * tree-streamer-in.c: Likewise.
4535 * tree-streamer-out.c: Likewise.
4536 * config/darwin.c: Likewise.
4537 * config/i386/winnt.c: Likewise.
4539 2015-07-09 Richard Biener <rguenther@suse.de>
4541 * genmatch.c (struct expr): Add force_single_use flag.
4542 (expr::expr): Add copy constructor.
4543 (capture_info::walk_match): Gather force_single_use captures.
4544 (expr::gen_transform): Use possibly NULLified sequence.
4545 (dt_simplify::gen): Apply single-use restrictions by NULLifying
4546 seq if any constrained expr is not single-use.
4547 (parser::parse_expr): Refactor to allow multiple flags. Handle
4548 's' flag to force an expression have a single-use if the pattern
4549 simplifies to more than one statement.
4550 * match.pd: Convert most single_use conditionals to :s flags.
4552 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4554 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
4555 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
4556 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
4558 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
4560 * flags.h: Don't include flag-types.h or options.h.
4561 * opts-common.c: Adjust includes.
4562 * opts-global.c: Likewise.
4563 * common/config/epiphany/epiphany-common.c: Likewise.
4565 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4568 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
4571 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4574 * config/i386/i386.c (ix86_return_in_memory): Return true
4575 if int_size_in_bytes returns negative for IA MCU.
4577 2015-07-09 Marek Polacek <polacek@redhat.com>
4579 PR tree-optimization/66718
4580 * Makefile.in (OBJS): Add gimple-laddress.o.
4581 * passes.def: Schedule pass_laddress.
4582 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
4583 * tree-pass.h (make_pass_laddress): Declare.
4584 * gimple-laddress.c: New file.
4586 2015-07-09 Richard Biener <rguenther@suse.de>
4588 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
4590 2015-07-09 Richard Biener <rguenther@suse.de>
4592 PR tree-optimization/66807
4593 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
4595 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
4597 * function.c (stack_protect_epilogue): Use if rather than switch for
4598 check targetm.have_stack_protect_test.
4600 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4602 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
4603 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
4604 * config/arc/arc.h: Likewise.
4605 * config/arm/arm.h: Likewise.
4606 * config/bfin/bfin.h: Likewise.
4607 * config/epiphany/epiphany.h: Likewise.
4608 * config/frv/frv.h: Likewise.
4609 * config/ia64/ia64.h: Likewise.
4610 * config/iq2000/iq2000.h: Likewise.
4611 * config/lm32/lm32.h: Likewise.
4612 * config/m32r/m32r.h: Likewise.
4613 * config/mcore/mcore.h: Likewise.
4614 * config/mep/mep.h: Likewise.
4615 * config/microblaze/microblaze.h: Likewise.
4616 * config/mips/mips.h: Likewise.
4617 * config/mmix/mmix.h: Likewise.
4618 * config/mn10300/mn10300.h: Likewise.
4619 * config/nds32/nds32.h: Likewise.
4620 * config/nios2/nios2.h: Likewise.
4621 * config/pa/pa.h: Likewise.
4622 * config/rl78/rl78.h: Likewise.
4623 * config/sh/sh.h: Likewise.
4624 * config/sparc/sparc.h: Likewise.
4625 * config/stormy16/stormy16.h: Likewise.
4626 * config/tilegx/tilegx.h: Likewise.
4627 * config/tilepro/tilepro.h: Likewise.
4628 * config/v850/v850.h: Likewise.
4629 * config/xtensa/xtensa.h: Likewise.
4630 * doc/tm.texi: Regenerate.
4631 * doc/tm.texi.in: Adjust.
4632 * combine.c (simplify_set): Likewise.
4633 (simplify_comparison): Likewise.
4634 * expr.c (store_constructor): Likewise.
4635 * internal-fn.c (expand_arith_overflow): Likewise.
4636 * reload.c (push_reload): Likewise.
4637 (find_reloads): Likewise.
4638 (find_reloads_subreg_address): Likewise.
4639 * reload1.c (eliminate_regs_1): Likewise.
4640 * rtlanal.c (nonzero_bits1): Likewise.
4641 (num_sign_bit_copies1): Likewise.
4642 * simplify-rtx.c (simplify_truncation): Likewise.
4644 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4646 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
4647 of AUTO_INC_DEC with the preprocessor.
4648 * combine.c (combine_instructions): Likewise.
4649 (can_combine_p): Likewise.
4650 (try_combine): Likewise.
4651 * emit-rtl.c (try_split): Likewise.
4652 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4653 * lower-subreg.c (resolve_simple_move): Likewise.
4654 * lra.c (update_inc_notes): Likewise.
4655 * recog.c (asm_operand_ok): Likewise.
4656 (constrain_operands): Likewise.
4657 * regrename.c (scan_rtx_address): Likewise.
4658 * reload.c (update_auto_inc_notes): Likewise.
4659 (reg_inc_found_and_valid_p): Likewise.
4660 * reload1.c (reload): Likewise.
4661 (emit_input_reload_insns): Likewise.
4662 (delete_output_reload): Likewise.
4663 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4664 * valtrack.c (cleanup_auto_inc_dec): Likewise.
4666 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4668 * rtl.h: Always define AUTO_INC_DEC.
4669 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
4670 * combine.c (combine_instructions): Likewise.
4671 (can_combine_p): Likewise.
4672 (try_combine): Likewise.
4673 * emit-rtl.c (try_split): Likewise.
4674 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4675 * lower-subreg.c (resolve_simple_move): Likewise.
4676 * lra.c (update_inc_notes): Likewise.
4677 * recog.c (asm_operand_ok): Likewise.
4678 (constrain_operands): Likewise.
4679 * regrename.c (scan_rtx_address): Likewise.
4680 * reload.c (update_auto_inc_notes): Likewise.
4681 (find_equiv_reg): Likewise.
4682 * reload1.c (reload): Likewise.
4683 (reload_as_needed): Likewise.
4684 (choose_reload_regs): Likewise.
4685 (emit_input_reload_insns): Likewise.
4686 (delete_output_reload): Likewise.
4687 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4688 * valtrack.c (cleanup_auto_inc_dec): Likewise.
4690 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4692 * combine.c (can_combine_def_p): Don't check the value of
4693 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
4694 (combinable_i3pat): Likewise.
4695 (mark_used_regs_combine): Likewise.
4696 * regrename.c (rename_chains): Likewise.
4697 * reload.c (find_reloads_address): Likewise.
4698 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4700 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4702 * combine.c (update_rsp_from_reg_equal): Don't check if
4703 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
4704 (reg_nonzero_bits_for_combine): Likewise.
4705 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
4707 * config/frv/frv.h: Likewise.
4708 * config/lm32/lm32.h: Likewise.
4709 * config/mep/mep.h: Likewise.
4710 * config/mips/mips.h: Likewise.
4711 * config/rs6000/rs6000.h: Likewise.
4712 * config/sh/sh.h: Likewise.
4713 * config/tilegx/tilegx.h (enum reg_class): Likewise.
4714 * config/tilepro/tilepro.h: Likewise.
4715 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
4716 * doc/tm.texi: Regenerate.
4717 * doc/tm.texi.in: Adjust.
4718 * rtlanal.c (nonzero_bits1): Likewise.
4720 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4722 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
4723 with the preprocessor.
4724 (combine_instructions): Likewise.
4725 (try_combine): Likewise.
4727 (distribute_notes): Likewise.
4729 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4731 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
4733 (simplify_set): Likewise.
4734 * cse.c (cse_insn): Likewise.
4735 * fold-const.c (fold_single_bit_test): Likewise.
4736 (fold_unary_loc): Likewise.
4737 * postreload.c (reload_cse_simplify_set): Likewise.
4738 (reload_cse_simplify_operands): Likewise.
4740 2015-07-08 Jiong Wang <jiong.wang@arm.com>
4742 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
4743 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
4745 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
4748 * config/i386/x86intrin.h: Include <adxintrin.h> even if
4749 __iamcu__ is defined.
4751 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
4753 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
4755 2015-07-08 Iain Sandoe <iain@codesourcery.com>
4758 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
4759 names from preservation.
4761 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
4764 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
4766 (function_arg_advance_32): Don't pass vectors in registers for
4768 (function_arg_32): Likewise.
4769 (ix86_return_in_memory): Don't return vectors in registers for
4772 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
4775 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
4776 hard regno live at the start of BB with incoming abnormal edges.
4777 * lra-lives.c (process_bb_lives): Ditto.
4779 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
4782 * config/nvptx/mkoffload.c (main): Create an offload image only in
4783 64-bit configurations.
4785 2015-07-08 Martin Liska <mliska@suse.cz>
4788 * tree-sra.c (create_access_1): Call ctor without brackets.
4789 (create_artificial_child_access): Likewise.
4791 2015-07-08 Richard Biener <rguenther@suse.de>
4793 PR tree-optimization/66793
4794 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
4795 Properly split the block after stmts ending it.
4797 2015-07-08 Richard Biener <rguenther@suse.de>
4799 PR tree-optimization/66794
4800 * passes.c (execute_function_todo): Assert that post-dominators
4802 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
4803 Free post-dominators.
4805 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4807 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
4810 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
4812 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
4813 more than or equal 8 and less than 32 when optimizing for size.
4815 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4817 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
4818 COSTS_N_INSNS (1) and increment it appropriately throughout the
4821 2015-07-08 Richard Biener <rguenther@suse.de>
4823 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
4825 2015-07-08 Alan Modra <amodra@gmail.com>
4827 * target.def (rtx_costs): Remove "code" param, add "mode".
4828 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
4829 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
4830 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
4831 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
4832 call. Track mode when given in rtx.
4833 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
4834 (default_address_cost): Pass Pmode to rtx_cost.
4835 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
4836 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
4838 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
4839 (notreg_cost): Add mode param. Use it.
4840 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
4841 mode param and pass to set_src_cost. Update all calls.
4842 (hash_scan_set): Formatting.
4843 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
4844 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
4846 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
4847 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
4848 emit_store_flag): Update set_src_cost and rtx_cost calls.
4849 * auto-inc-dec.c (attempt_change): Likewise.
4850 * calls.c (precompute_register_parameters): Likewise.
4851 * combine.c (expand_compound_operation, make_extraction,
4852 force_to_mode, distribute_and_simplify_rtx): Likewise.
4853 * dojump.c (prefer_and_bit_test): Likewise.
4854 * dse.c (find_shift_sequence): Likewise.
4855 * expr.c (compress_float_constant): Likewise.
4856 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4857 * ifcvt.c (noce_try_sign_mask): Likewise.
4858 * loop-doloop.c (doloop_optimize): Likewise.
4859 * loop-invariant.c (create_new_invariant): Likewise.
4860 * lower-subreg.c (shift_cost, compute_costs): Likewise.
4861 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
4862 lshift_cheap_p): Likewise.
4863 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
4864 try_replace_in_use, reload_cse_move2add): Likewise.
4865 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
4867 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4868 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4869 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
4870 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4871 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
4872 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
4874 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
4875 * config/arc/arc.c (arc_rtx_costs): Likewise.
4876 * config/arm/arm.c (arm_rtx_costs): Likewise.
4877 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
4878 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4879 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4880 * config/cris/cris.c (cris_rtx_costs): Likewise.
4881 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
4882 * config/frv/frv.c (frv_rtx_costs): Likewise.
4883 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4884 * config/i386/i386.c (ix86_rtx_costs): Likewise.
4885 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4886 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4887 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4888 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4889 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4890 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4891 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4892 * config/mep/mep.c (mep_rtx_cost): Likewise.
4893 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4894 * config/mips/mips.c (mips_rtx_costs): Likewise.
4895 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4896 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
4897 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
4898 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
4899 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
4900 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
4901 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
4902 * config/pa/pa.c (hppa_rtx_costs): Likewise.
4903 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4904 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
4905 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4906 * config/s390/s390.c (s390_rtx_costs): Likewise.
4907 * config/sh/sh.c (sh_rtx_costs): Likewise.
4908 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4909 * config/spu/spu.c (spu_rtx_costs): Likewise.
4910 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4911 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
4912 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
4913 * config/v850/v850.c (v850_rtx_costs): Likewise.
4914 * config/vax/vax.c (vax_rtx_costs): Likewise.
4915 * config/visium/visium.c (visium_rtx_costs): Likewise.
4916 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4917 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
4918 "code" param, and pass as outer_code to first rtx_cost call. Pass
4919 mode to rtx_cost calls.
4920 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
4922 (aarch64_rtx_costs_wrapper): Update.
4923 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
4924 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
4926 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
4928 (avr_operand_rtx_cost): Similarly.
4929 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
4930 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
4931 * config/mips/mips.c (mips_stack_address_p): Comment typo.
4932 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
4933 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
4934 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
4936 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
4937 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
4938 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
4939 * doc/tm.texi: Regenerate.
4941 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
4943 * tree-core.h: Include symtab.h.
4944 * rtl.h: Include hard-reg-set.h but not flags.h.
4945 (HARD_CONST): Remove condition compilation involving HARD_CONST since
4946 hard-reg-set.h is always included.
4947 * regs.h: Don't include hard-reg-set.h or rtl.h.
4948 * cfg.h: Include dominance.h.
4949 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
4950 * backend.h: New. Aggregate commonly used backend header files.
4951 * gimple-ssa.h: Don't include tree-hasher.h.
4952 * ssa.h: New. Aggregate commonly used SSA header files.
4953 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
4954 * sel-sched-ir.h: Flatten includes.
4955 * lra-int.h: Flatten completely.
4956 * sel-sched-dump.h: Flatten includes.
4957 * ira-int.h: Flatten includes.
4958 * gimple-streamer.h: Remove all includes.
4959 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
4960 * resource.h: Flatten hard-reg-set.h and df.h.
4961 * sched-int.h: Flatten insn-arrt.h and df.h.
4962 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
4963 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
4964 * genattrtab.c (write_header): Adjust generated includes.
4965 * genautomata.c (main): Likewise.
4966 * genconditions.c (write-header): Likewise.
4967 * genemit.c (main): Likewise.
4968 * gengtype.c (open_base_files): Likewise.
4969 * genopinit.c (main): Likewise.
4970 * genoutput.c (output_prologue): Likewise.
4971 * genpeep.c (main): Likewise.
4972 * genpreds.c (write_insn_preds_c): Likewise.
4973 * genrecog.c (write_header): Likewise.
4974 * alias.c: Adjust includes.
4976 * attribs.c: Likewise.
4977 * auto-inc-dec.c: Likewise.
4978 * auto-profile.c: Likewise.
4979 * bb-reorder.c: Likewise.
4980 * bt-load.c: Likewise.
4981 * builtins.c: Likewise.
4982 * caller-save.c: Likewise.
4983 * calls.c: Likewise.
4986 * cfganal.c: Likewise.
4987 * cfgbuild.c: Likewise.
4988 * cfgcleanup.c: Likewise.
4989 * cfgexpand.c: Likewise.
4990 * cfghooks.c: Likewise.
4991 * cfgloop.c: Likewise.
4992 * cfgloopanal.c: Likewise.
4993 * cfgloopmanip.c: Likewise.
4994 * cfgrtl.c: Likewise.
4995 * cgraph.c: Likewise.
4996 * cgraphbuild.c: Likewise.
4997 * cgraphclones.c: Likewise.
4998 * cgraphunit.c: Likewise.
4999 * cilk-common.c: Likewise.
5000 * combine-stack-adj.c: Likewise.
5001 * combine.c: Likewise.
5002 * compare-elim.c: Likewise.
5003 * convert.c: Likewise.
5004 * coverage.c: Likewise.
5005 * cppbuiltin.c: Likewise.
5006 * cprop.c: Likewise.
5008 * cselib.c: Likewise.
5009 * data-streamer-in.c: Likewise.
5010 * data-streamer-out.c: Likewise.
5011 * data-streamer.c: Likewise.
5012 * dbxout.c: Likewise.
5015 * debug.c: Likewise.
5016 * df-core.c: Likewise.
5017 * df-problems.c: Likewise.
5018 * df-scan.c: Likewise.
5020 * dojump.c: Likewise.
5021 * dominance.c: Likewise.
5022 * domwalk.c: Likewise.
5023 * double-int.c: Likewise.
5025 * dumpfile.c: Likewise.
5026 * dwarf2asm.c: Likewise.
5027 * dwarf2cfi.c: Likewise.
5028 * dwarf2out.c: Likewise.
5029 * emit-rtl.c: Likewise.
5030 * et-forest.c: Likewise.
5031 * except.c: Likewise.
5032 * explow.c: Likewise.
5033 * expmed.c: Likewise.
5035 * final.c: Likewise.
5036 * fixed-value.c: Likewise.
5037 * fold-const.c: Likewise.
5038 * function.c: Likewise.
5039 * fwprop.c: Likewise.
5040 * gcc-plugin.h: Likewise.
5041 * gcse-common.c: Likewise.
5043 * generic-match-head.c: Likewise.
5044 * ggc-page.c: Likewise.
5045 * gimple-builder.c: Likewise.
5046 * gimple-expr.c: Likewise.
5047 * gimple-fold.c: Likewise.
5048 * gimple-iterator.c: Likewise.
5049 * gimple-low.c: Likewise.
5050 * gimple-match-head.c: Likewise.
5051 * gimple-pretty-print.c: Likewise.
5052 * gimple-ssa-isolate-paths.c: Likewise.
5053 * gimple-ssa-strength-reduction.c: Likewise.
5054 * gimple-streamer-in.c: Likewise.
5055 * gimple-streamer-out.c: Likewise.
5056 * gimple-walk.c: Likewise.
5057 * gimple.c: Likewise.
5058 * gimplify-me.c: Likewise.
5059 * gimplify.c: Likewise.
5060 * godump.c: Likewise.
5061 * graph.c: Likewise.
5062 * graphite-blocking.c: Likewise.
5063 * graphite-dependences.c: Likewise.
5064 * graphite-interchange.c: Likewise.
5065 * graphite-isl-ast-to-gimple.c: Likewise.
5066 * graphite-optimize-isl.c: Likewise.
5067 * graphite-poly.c: Likewise.
5068 * graphite-scop-detection.c: Likewise.
5069 * graphite-sese-to-poly.c: Likewise.
5070 * graphite.c: Likewise.
5071 * haifa-sched.c: Likewise.
5072 * hw-doloop.c: Likewise.
5073 * ifcvt.c: Likewise.
5074 * init-regs.c: Likewise.
5075 * internal-fn.c: Likewise.
5076 * ipa-chkp.c: Likewise.
5077 * ipa-comdats.c: Likewise.
5078 * ipa-cp.c: Likewise.
5079 * ipa-devirt.c: Likewise.
5080 * ipa-icf-gimple.c: Likewise.
5081 * ipa-icf.c: Likewise.
5082 * ipa-inline-analysis.c: Likewise.
5083 * ipa-inline-transform.c: Likewise.
5084 * ipa-inline.c: Likewise.
5085 * ipa-polymorphic-call.c: Likewise.
5086 * ipa-profile.c: Likewise.
5087 * ipa-prop.c: Likewise.
5088 * ipa-pure-const.c: Likewise.
5089 * ipa-ref.c: Likewise.
5090 * ipa-reference.c: Likewise.
5091 * ipa-split.c: Likewise.
5092 * ipa-utils.c: Likewise.
5093 * ipa-visibility.c: Likewise.
5095 * ira-build.c: Likewise.
5096 * ira-color.c: Likewise.
5097 * ira-conflicts.c: Likewise.
5098 * ira-costs.c: Likewise.
5099 * ira-emit.c: Likewise.
5100 * ira-lives.c: Likewise.
5103 * langhooks.c: Likewise.
5105 * loop-doloop.c: Likewise.
5106 * loop-init.c: Likewise.
5107 * loop-invariant.c: Likewise.
5108 * loop-iv.c: Likewise.
5109 * loop-unroll.c: Likewise.
5110 * lower-subreg.c: Likewise.
5111 * lra-assigns.c: Likewise.
5112 * lra-coalesce.c: Likewise.
5113 * lra-constraints.c: Likewise.
5114 * lra-eliminations.c: Likewise.
5115 * lra-lives.c: Likewise.
5116 * lra-remat.c: Likewise.
5117 * lra-spills.c: Likewise.
5119 * lto-cgraph.c: Likewise.
5120 * lto-compress.c: Likewise.
5121 * lto-opts.c: Likewise.
5122 * lto-section-in.c: Likewise.
5123 * lto-section-out.c: Likewise.
5124 * lto-streamer-in.c: Likewise.
5125 * lto-streamer-out.c: Likewise.
5126 * lto-streamer.c: Likewise.
5128 * mode-switching.c: Likewise.
5129 * modulo-sched.c: Likewise.
5130 * omega.c: Likewise.
5131 * omp-low.c: Likewise.
5132 * optabs.c: Likewise.
5133 * opts-global.c: Likewise.
5134 * passes.c: Likewise.
5135 * plugin.c: Likewise.
5136 * postreload-gcse.c: Likewise.
5137 * postreload.c: Likewise.
5138 * predict.c: Likewise.
5139 * print-rtl.c: Likewise.
5140 * print-tree.c: Likewise.
5141 * profile.c: Likewise.
5143 * realmpfr.c: Likewise.
5144 * recog.c: Likewise.
5146 * reg-stack.c: Likewise.
5147 * regcprop.c: Likewise.
5148 * reginfo.c: Likewise.
5149 * regrename.c: Likewise.
5150 * regstat.c: Likewise.
5151 * reload.c: Likewise.
5152 * reload1.c: Likewise.
5153 * reorg.c: Likewise.
5154 * resource.c: Likewise.
5155 * rtl-chkp.c: Likewise.
5156 * rtlanal.c: Likewise.
5157 * rtlhooks.c: Likewise.
5158 * sanopt.c: Likewise.
5159 * sched-deps.c: Likewise.
5160 * sched-ebb.c: Likewise.
5161 * sched-rgn.c: Likewise.
5162 * sched-vis.c: Likewise.
5163 * sdbout.c: Likewise.
5164 * sel-sched-dump.c: Likewise.
5165 * sel-sched-ir.c: Likewise.
5166 * sel-sched.c: Likewise.
5168 * shrink-wrap.c: Likewise.
5169 * simplify-rtx.c: Likewise.
5170 * stack-ptr-mod.c: Likewise.
5172 * stor-layout.c: Likewise.
5173 * store-motion.c: Likewise.
5174 * stringpool.c: Likewise.
5175 * symtab.c: Likewise.
5176 * target-globals.c: Likewise.
5177 * targhooks.c: Likewise.
5178 * toplev.c: Likewise.
5179 * tracer.c: Likewise.
5180 * trans-mem.c: Likewise.
5181 * tree-affine.c: Likewise.
5182 * tree-browser.c: Likewise.
5183 * tree-call-cdce.c: Likewise.
5184 * tree-cfg.c: Likewise.
5185 * tree-cfgcleanup.c: Likewise.
5186 * tree-chkp-opt.c: Likewise.
5187 * tree-chkp.c: Likewise.
5188 * tree-chrec.c: Likewise.
5189 * tree-complex.c: Likewise.
5190 * tree-data-ref.c: Likewise.
5191 * tree-dfa.c: Likewise.
5192 * tree-diagnostic.c: Likewise.
5193 * tree-dump.c: Likewise.
5194 * tree-eh.c: Likewise.
5195 * tree-emutls.c: Likewise.
5196 * tree-if-conv.c: Likewise.
5197 * tree-inline.c: Likewise.
5198 * tree-into-ssa.c: Likewise.
5199 * tree-iterator.c: Likewise.
5200 * tree-loop-distribution.c: Likewise.
5201 * tree-nested.c: Likewise.
5202 * tree-nrv.c: Likewise.
5203 * tree-object-size.c: Likewise.
5204 * tree-outof-ssa.c: Likewise.
5205 * tree-parloops.c: Likewise.
5206 * tree-phinodes.c: Likewise.
5207 * tree-predcom.c: Likewise.
5208 * tree-pretty-print.c: Likewise.
5209 * tree-profile.c: Likewise.
5210 * tree-scalar-evolution.c: Likewise.
5211 * tree-sra.c: Likewise.
5212 * tree-ssa-address.c: Likewise.
5213 * tree-ssa-alias.c: Likewise.
5214 * tree-ssa-ccp.c: Likewise.
5215 * tree-ssa-coalesce.c: Likewise.
5216 * tree-ssa-copy.c: Likewise.
5217 * tree-ssa-copyrename.c: Likewise.
5218 * tree-ssa-dce.c: Likewise.
5219 * tree-ssa-dom.c: Likewise.
5220 * tree-ssa-dse.c: Likewise.
5221 * tree-ssa-forwprop.c: Likewise.
5222 * tree-ssa-ifcombine.c: Likewise.
5223 * tree-ssa-live.c: Likewise.
5224 * tree-ssa-loop-ch.c: Likewise.
5225 * tree-ssa-loop-im.c: Likewise.
5226 * tree-ssa-loop-ivcanon.c: Likewise.
5227 * tree-ssa-loop-ivopts.c: Likewise.
5228 * tree-ssa-loop-manip.c: Likewise.
5229 * tree-ssa-loop-niter.c: Likewise.
5230 * tree-ssa-loop-prefetch.c: Likewise.
5231 * tree-ssa-loop-unswitch.c: Likewise.
5232 * tree-ssa-loop.c: Likewise.
5233 * tree-ssa-math-opts.c: Likewise.
5234 * tree-ssa-operands.c: Likewise.
5235 * tree-ssa-phiopt.c: Likewise.
5236 * tree-ssa-phiprop.c: Likewise.
5237 * tree-ssa-pre.c: Likewise.
5238 * tree-ssa-propagate.c: Likewise.
5239 * tree-ssa-reassoc.c: Likewise.
5240 * tree-ssa-sccvn.c: Likewise.
5241 * tree-ssa-scopedtables.c: Likewise.
5242 * tree-ssa-sink.c: Likewise.
5243 * tree-ssa-strlen.c: Likewise.
5244 * tree-ssa-structalias.c: Likewise.
5245 * tree-ssa-tail-merge.c: Likewise.
5246 * tree-ssa-ter.c: Likewise.
5247 * tree-ssa-threadedge.c: Likewise.
5248 * tree-ssa-threadupdate.c: Likewise.
5249 * tree-ssa-uncprop.c: Likewise.
5250 * tree-ssa-uninit.c: Likewise.
5251 * tree-ssa.c: Likewise.
5252 * tree-ssanames.c: Likewise.
5253 * tree-stdarg.c: Likewise.
5254 * tree-streamer-in.c: Likewise.
5255 * tree-streamer-out.c: Likewise.
5256 * tree-streamer.c: Likewise.
5257 * tree-switch-conversion.c: Likewise.
5258 * tree-tailcall.c: Likewise.
5259 * tree-vect-data-refs.c: Likewise.
5260 * tree-vect-generic.c: Likewise.
5261 * tree-vect-loop-manip.c: Likewise.
5262 * tree-vect-loop.c: Likewise.
5263 * tree-vect-patterns.c: Likewise.
5264 * tree-vect-slp.c: Likewise.
5265 * tree-vect-stmts.c: Likewise.
5266 * tree-vectorizer.c: Likewise.
5267 * tree-vrp.c: Likewise.
5270 * ubsan.c: Likewise.
5271 * valtrack.c: Likewise.
5272 * value-prof.c: Likewise.
5273 * var-tracking.c: Likewise.
5274 * varasm.c: Likewise.
5275 * varpool.c: Likewise.
5276 * vmsdbgout.c: Likewise.
5277 * vtable-verify.c: Likewise.
5279 * wide-int.cc: Likewise.
5280 * xcoffout.c: Likewise.
5281 * config/aarch64/aarch64-builtins.c: Likewise.
5282 * config/aarch64/aarch64.c: Likewise.
5283 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5284 * config/alpha/alpha.c: Likewise.
5285 * config/arc/arc.c: Likewise.
5286 * config/arm/aarch-common.c: Likewise.
5287 * config/arm/arm-builtins.c: Likewise.
5288 * config/arm/arm-c.c: Likewise.
5289 * config/arm/arm.c: Likewise.
5290 * config/avr/avr-c.c: Likewise.
5291 * config/avr/avr-log.c: Likewise.
5292 * config/avr/avr.c: Likewise.
5293 * config/bfin/bfin.c: Likewise.
5294 * config/c6x/c6x.c: Likewise.
5295 * config/cr16/cr16.c: Likewise.
5296 * config/cris/cris.c: Likewise.
5297 * config/darwin-c.c: Likewise.
5298 * config/darwin.c: Likewise.
5299 * config/epiphany/epiphany.c: Likewise.
5300 * config/epiphany/mode-switch-use.c: Likewise.
5301 * config/epiphany/resolve-sw-modes.c: Likewise.
5302 * config/fr30/fr30.c: Likewise.
5303 * config/frv/frv.c: Likewise.
5304 * config/ft32/ft32.c: Likewise.
5305 * config/h8300/h8300.c: Likewise.
5306 * config/i386/i386-c.c: Likewise.
5307 * config/i386/i386.c: Likewise.
5308 * config/i386/msformat-c.c: Likewise.
5309 * config/i386/winnt-cxx.c: Likewise.
5310 * config/i386/winnt-stubs.c: Likewise.
5311 * config/i386/winnt.c: Likewise.
5312 * config/ia64/ia64-c.c: Likewise.
5313 * config/ia64/ia64.c: Likewise.
5314 * config/iq2000/iq2000.c: Likewise.
5315 * config/lm32/lm32.c: Likewise.
5316 * config/m32c/m32c-pragma.c: Likewise.
5317 * config/m32c/m32c.c: Likewise.
5318 * config/m32r/m32r.c: Likewise.
5319 * config/m68k/m68k.c: Likewise.
5320 * config/mcore/mcore.c: Likewise.
5321 * config/mep/mep-pragma.c: Likewise.
5322 * config/mep/mep.c: Likewise.
5323 * config/microblaze/microblaze-c.c: Likewise.
5324 * config/microblaze/microblaze.c: Likewise.
5325 * config/mips/mips.c: Likewise.
5326 * config/mmix/mmix.c: Likewise.
5327 * config/mn10300/mn10300.c: Likewise.
5328 * config/moxie/moxie.c: Likewise.
5329 * config/msp430/msp430-c.c: Likewise.
5330 * config/msp430/msp430.c: Likewise.
5331 * config/nds32/nds32-cost.c: Likewise.
5332 * config/nds32/nds32-fp-as-gp.c: Likewise.
5333 * config/nds32/nds32-intrinsic.c: Likewise.
5334 * config/nds32/nds32-isr.c: Likewise.
5335 * config/nds32/nds32-md-auxiliary.c: Likewise.
5336 * config/nds32/nds32-memory-manipulation.c: Likewise.
5337 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5338 * config/nds32/nds32-predicates.c: Likewise.
5339 * config/nds32/nds32.c: Likewise.
5340 * config/nios2/nios2.c: Likewise.
5341 * config/nvptx/nvptx.c: Likewise.
5342 * config/pa/pa.c: Likewise.
5343 * config/pdp11/pdp11.c: Likewise.
5344 * config/rl78/rl78-c.c: Likewise.
5345 * config/rl78/rl78.c: Likewise.
5346 * config/rs6000/rs6000-c.c: Likewise.
5347 * config/rs6000/rs6000.c: Likewise.
5348 * config/rx/rx.c: Likewise.
5349 * config/s390/s390-c.c: Likewise.
5350 * config/s390/s390.c: Likewise.
5351 * config/sh/sh-c.c: Likewise.
5352 * config/sh/sh-mem.cc: Likewise.
5353 * config/sh/sh.c: Likewise.
5354 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5355 * config/sh/sh_treg_combine.cc: Likewise.
5356 * config/sol2-c.c: Likewise.
5357 * config/sol2-cxx.c: Likewise.
5358 * config/sol2-stubs.c: Likewise.
5359 * config/sol2.c: Likewise.
5360 * config/sparc/sparc-c.c: Likewise.
5361 * config/sparc/sparc.c: Likewise.
5362 * config/spu/spu-c.c: Likewise.
5363 * config/spu/spu.c: Likewise.
5364 * config/stormy16/stormy16.c: Likewise.
5365 * config/tilegx/mul-tables.c: Likewise.
5366 * config/tilegx/tilegx-c.c: Likewise.
5367 * config/tilegx/tilegx.c: Likewise.
5368 * config/tilepro/mul-tables.c: Likewise.
5369 * config/tilepro/tilepro-c.c: Likewise.
5370 * config/tilepro/tilepro.c: Likewise.
5371 * config/v850/v850-c.c: Likewise.
5372 * config/v850/v850.c: Likewise.
5373 * config/vax/vax.c: Likewise.
5374 * config/visium/visium.c: Likewise.
5375 * config/vms/vms-c.c: Likewise.
5376 * config/vms/vms.c: Likewise.
5377 * config/vxworks.c: Likewise.
5378 * config/xtensa/xtensa.c: Likewise.
5380 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
5382 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
5383 Remove operand constraints. Change operand 2 predicate to
5384 nonmemory operand. Limit const_int values to mode bitsize. Only
5385 allow const_int values less than 32 when optimizing for size.
5386 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
5387 Remove operand constraints.
5388 (*bt<mode>): Use SImode for const_int values less than 32.
5389 (regmode): Remove mode attribute.
5391 2015-07-07 Anatoly Sokolov <aesok@post.ru>
5393 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5394 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
5395 moxie_legitimate_address_p): New functions.
5396 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5398 2015-07-07 Tom de Vries <tom@codesourcery.com>
5400 PR tree-optimization/66642
5401 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
5402 header comment. Rename split_edge variable to edge_at_split. Split
5403 exit edge to create new loop exit bb. Insert loop exit phis in new
5406 2015-07-07 Tom de Vries <tom@codesourcery.com>
5408 * tree-cfg.c (get_virtual_phi): New function.
5409 * tree-cfg.h (get_virtual_phi): Declare.
5410 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
5411 (rewrite_virtuals_into_loop_closed_ssa): New function.
5412 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
5414 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
5415 (transform_to_exit_first_loop_alt): Use
5416 rewrite_virtuals_into_loop_closed_ssa.
5418 2015-07-07 Richard Biener <rguenther@suse.de>
5420 * fold-const.c (fold_binary_loc): Move
5421 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
5422 * match.pd: ... here.
5423 Add (X * C1) % C2 -> 0 simplification pattern derived from
5426 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
5429 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
5430 change for target/65249.
5432 2015-07-07 Paulo Matos <pmatos@broadcom.com>
5434 * symtab.c (address_matters_1): Fix typo in comment above.
5435 (can_increase_alignment_p): Likewise.
5437 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5439 * function.c (free_after_compilation): Clear PROP_cfg in
5442 2015-07-07 Richard Biener <rguenther@suse.de>
5444 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
5446 (add_control_edge): Remove excessive vertical space in dumping.
5447 (process_ssa_edge_worklist): Simulate at most one statement and
5448 return whether we did. Do not simulate PHIs if they are in a
5449 BB not yet simulated.
5450 (ssa_propagate): Adjust to always drain the BB worklist whenever
5451 a BB is available there, likewise the VARYING edges list before
5452 the interesting edge list.
5454 2015-07-07 Christian Bruel <christian.bruel@st.com>
5457 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
5459 2015-07-07 Richard Biener <rguenther@suse.de>
5462 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
5465 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
5467 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
5468 modes for operands 0 and 3. Use SImode for operands 2 and 3.
5469 Copy operand 0 to a temporary if !ext_register_operand. Remove
5470 ancient extract_bit_field workaround.
5471 (insv<mode>_1): Rename from mov<mode>_insv_1.
5472 (*insvqi): Rename from *movqi_insv_2.
5473 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
5474 for renamed insvsi_1.
5475 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
5477 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
5479 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
5480 call to nvptx_reorg_subreg.
5482 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
5484 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
5485 * graphite-dependencies.c, graphite-interchange.c,
5486 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
5487 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
5490 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
5492 * match.pd: Remove element_mode inside HONOR_*.
5493 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
5494 (~X | X -> -1, ~X ^ X -> -1): Merge.
5495 * tree.c (build_each_one_cst): New function.
5496 * tree.h (build_each_one_cst): Likewise.
5498 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
5500 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5503 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
5505 * config.gcc <mips*-*-*>: Add fused-madd.opt.
5506 * config/mips/mips.opt (mfused-madd): Remove.
5507 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
5508 * config/mips/mips.h (TARGET_MIPS8000): New.
5509 (ISA_HAS_FP_MADD4_MSUB4): Remove.
5510 (ISA_HAS_FP_MADDF_MSUBF): Remove.
5511 (ISA_HAS_FP_MADD3_MSUB3): Remove.
5512 (ISA_HAS_NMADD4_NMSUB4): Remove.
5513 (ISA_HAS_NMADD3_NMSUB3): Remove.
5514 (ISA_HAS_FUSED_MADD4): New.
5515 (ISA_HAS_UNFUSED_MADD4): New.
5516 (ISA_HAS_FUSED_MADDF): New.
5517 (ISA_HAS_FUSED_MADD3): New.
5518 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
5519 (*fma<mode>4_madd3) New.
5520 (*fma<mode>4_madd4) New.
5521 (*fma<mode>4_maddf) New.
5523 (*fms<mode>4_msub3) New.
5524 (*fms<mode>4_msub4) New.
5526 (*fnma<mode>4_nmadd3) New.
5527 (*fnma<mode>4_nmadd4) New.
5529 (*fnms<mode>4_nmsub3) New.
5530 (*fnms<mode>4_nmsub4) New.
5531 (*madd4<mode>) Modify to be unfused only.
5532 (*msub4<mode>) Modify to be unfused only.
5533 (*nmadd4<mode>) Modify to be unfused only.
5534 (*nmsub4<mode>) Modify to be unfused only.
5535 (*madd3<mode>) Remove.
5536 (*msub3<mode>) Remove.
5537 (*nmadd3<mode>) Remove.
5538 (*nmsub3<mode>) Remove.
5539 (*nmadd3<mode>_fastmath) Remove.
5540 (*nmsub3<mode>_fastmath) Remove.
5541 (*nmadd4<mode>_fastmath) Update condition.
5542 (*nmsub4<mode>_fastmath) Update condition.
5544 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
5547 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
5548 alignment attribute, exploring one level down for records and arrays.
5550 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
5552 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
5553 modes for operands 0 and 1. Use SImode for operands 2 and 3.
5554 Copy operand 1 to a temporary if !ext_register_operand. Remove
5555 ancient extract_bit_field workaround.
5556 (*extv<mode>): Rename from *mov<mode>_extv_1.
5557 (*extvqi): Rename from *movqi_extv_1.
5558 (extzv<mode>): Rename from extzv. Use SWI248 modes for
5559 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
5560 to a temporary if !ext_register_operand. Remove ancient
5561 extract_bit_field workaround.
5562 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
5563 (*extzvqi): Rename from *movqi_extzv_2.
5564 (*testqi_ext_3): Remove modes from const_int_operand predicated
5565 operands. Add "n" constraint.
5566 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
5567 operand. Add "J" constraint.
5568 (*btsq, *btrq, *btcq peephole2s): Remove mode from
5569 const_0_to_63 predicated operand.
5570 (regmode): New insn attribute.
5571 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
5572 to nonmemory_operand. Use regmode insn attribute.
5573 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
5574 (*jcc_bt<mode>_mask): Remove mode from operand 3.
5575 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
5576 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
5577 operands. Use "N" constraint instead of "n".
5579 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
5581 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
5583 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
5586 * config/i386/i386.c (iamcu_cost): New.
5587 (m_IAMCU): Likewise.
5588 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
5589 (processor_target_table): Add an entry for "iamcu".
5590 (processor_alias_table): Likewise.
5591 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
5592 (ix86_adjust_cost): Likewise.
5593 (ia32_multipass_dfa_lookahead): Likewise.
5594 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
5595 * config/i386/x86-tune.def: Updated for m_IAMCU.
5597 2015-07-06 Richard Biener <rguenther@suse.de>
5599 PR tree-optimization/66772
5600 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
5601 values are available in the PHI node BB when there are
5602 still unexecutable edges.
5604 2015-07-06 Richard Biener <rguenther@suse.de>
5606 PR tree-optimization/66767
5607 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
5608 Make sure to build the alignment test on a SSA name without
5609 final alignment info valid only if the alignment test
5612 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
5615 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
5616 loop start when inserting LSETUP.
5618 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
5621 * config/i386/i386.c (ix86_option_override_internal): Allow
5622 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
5624 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5626 * read-md.c (decimal_string): Rename to ...
5627 (md_decimal_string): ... this.
5628 (handle_enum): Reflect this.
5630 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
5633 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
5635 2015-07-06 Richard Biener <rguenther@suse.de>
5638 * match.pd: Add missing constraint of y to REAL_CST in
5639 REAL_CST - x CMP y to y - CST CMP x simplification.
5641 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
5643 PR tree-optimization/66757
5644 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
5646 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
5647 Sandra Loosemore <sandra@codesourcery.com>
5649 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
5650 Delete extern declaration.
5651 (gprel_constant_p): Add extern declaration.
5652 * config/nios2/constraints.md ("S"): Use gprel_constant_p
5653 instead of nios2_symbol_ref_in_small_data_p.
5654 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
5655 (nios2_symbol_ref_in_small_data_p): Make static.
5656 (gprel_constant_p): Make non-static.
5658 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
5660 * doc/fragments.texi (Target Fragment): Convert debian.org
5662 * doc/install.texi (Configuration): Ditto.
5664 2015-07-05 Jakub Jelinek <jakub@redhat.com>
5666 PR tree-optimization/66718
5667 * tree-vect-stmts.c (vectorizable_call): Replace uses of
5668 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
5670 PR tree-optimization/66718
5671 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
5672 vectorizable_load, vectorizable_condition): Move vectype,
5673 nunits, ncopies computation after checking what kind of statement
5676 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5678 * target-insns.def (extv, extzv, insv): New targetm instruction
5680 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
5682 * recog.c (simplify_while_replacing): Likewise.
5684 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5686 * target-insns.def (doloop_begin, doloop_end): New targetm
5687 instruction patterns.
5688 * loop-init.c: Include target.h.
5689 (pass_loop2::gate): Use the new targetm patterns instead of
5690 HAVE_*/gen_* interface.
5691 (pass_rtl_doloop::gate): Likewise.
5692 (pass_rtl_doloop::execute): Remove preprocessor condition.
5693 * hw-doloop.c: Build unconditionally.
5694 * loop-doloop.c: Likewise.
5695 (doloop_optimize): Use the new targetm patterns instead of
5696 HAVE_*/gen_* interface.
5697 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
5698 * modulo-sched.c (doloop_register_get): Likewise.
5700 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5702 * target-insns.def (clear_cache): New targetm instruction pattern.
5703 * builtins.c (expand_builtin___clear_cache): Use it instead of
5704 HAVE_*/gen_* interface.
5706 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5708 * target-insns.def (allocate_stack, check_stack, probe_stack)
5709 (probe_stack_address, split_stack_prologue, split_stack_space_check):
5710 New targetm instruction patterns.
5711 * explow.c (allocate_dynamic_stack_space): Use them instead of
5712 HAVE_*/gen_* interface.
5713 (emit_stack_probe): Likewise.
5714 (probe_stack_range): Likewise.
5715 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5717 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5719 * target-insns.def (stack_protect_set, stack_protect_test): New
5720 targetm instruction patterns.
5721 * cfgexpand.c (stack_protect_prologue): Use them instead of
5722 HAVE_*/gen_* interface.
5723 * function.c (stack_protect_epilogue): Likewise.
5725 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5727 * expr.h (gen_move_insn_uncast): Delete.
5728 * expr.c (gen_move_insn_uncast): Delete.
5730 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5732 * target-insns.def (restore_stack_block, restore_stack_function)
5733 (restore_stack_nonlocal, save_stack_block, save_stack_function)
5734 (save_stack_nonlocal): New targetm instruction patterns.
5735 * builtins.c (expand_builtin_apply): Use them instead of
5736 HAVE_*/gen_* interface.
5737 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
5739 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5741 * target-insns.def (trap): New targetm instruction pattern.
5742 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
5744 * explow.c (allocate_dynamic_stack_space): Likewise.
5745 * ifcvt.c (find_if_header): Likewise.
5747 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5749 * target-insns.def (prefetch): New targetm instruction pattern.
5750 * tree-ssa-loop-prefetch.c: Include targeth.
5751 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
5752 of HAVE_*/gen_* interface.
5753 * builtins.c (expand_builtin_prefetch): Likewise.
5754 * toplev.c (process_options): Likewise.
5756 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5758 * target-insns.def (untyped_call, untyped_return): New targetm
5759 instruction patterns.
5760 * builtins.c (expand_builtin_apply): Use them instead of
5761 HAVE_*/gen_* interface.
5762 (result_vector): Define unconditionally.
5764 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5766 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
5767 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
5768 (nonlocal_goto_receiver): New targetm instruction patterns.
5769 * builtins.c (expand_builtin_setjmp_setup): Use them instead
5770 of HAVE_*/gen_* interface.
5771 (expand_builtin_setjmp_receiver): Likewise.
5772 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5773 * except.c (expand_dw2_landing_pad_for_region): Likewise.
5775 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5777 * target.def: Add code_for_* hooks.
5778 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
5779 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
5780 * target-insns.def (casesi, tablejump): New targetm instruction
5782 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
5783 (do_tablejump): Likewise.
5784 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
5785 (expand_sjlj_dispatch_table): Likewise.
5786 * targhooks.c (default_case_values_threshold): Likewise.
5788 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
5790 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
5791 Use rtx_insn * instead of rtx.
5792 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
5793 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
5794 (nios2_call_tls_get_addr): Likewise.
5795 (nios2_emit_expensive_div): Likewise.
5796 (nios2_emit_move_sequence): Change return type to bool.
5797 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
5798 Change return type to bool.
5800 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
5803 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
5805 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
5808 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
5809 of register_operand. Remove constraint.
5811 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
5813 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
5816 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
5818 * attribs.c (decl_attributes): Guard inform with the return value
5819 of the preceding warning.
5821 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
5823 * doc/invoke.texi (moverride): Move to correct section.
5825 2015-07-03 Richard Biener <rguenther@suse.de>
5827 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
5829 (dt_operand::gen_gimple_expr): After valueizing operands
5830 re-canonicalize operand order for commutative tree codes.
5832 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
5835 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
5837 (__crc32w): Likewise.
5838 (__crc32d): Likewise.
5839 (__rdpmc): Likewise.
5840 (__rdtscp): Likewise.
5842 (_rdtscp): Likewise.
5843 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
5846 2015-07-03 Richard Biener <rguenther@suse.de>
5848 * fold-const.c (fold_mathfn_compare): Remove.
5849 (fold_inf_compare): Likewise.
5850 (fold_comparison): Move floating point comparison simplifications...
5851 * match.pd: ... to patterns here. Introduce simple_comparisons
5852 operator list and use it for patterns formerly in fold_comparison.
5854 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
5856 PR tree-optimization/66119
5857 * toplev.c (process_options): Don't set up default values for
5858 the sra_max_scalarization_size_{speed,size} parameters.
5859 * tree-sra (analyze_all_variable_accesses): If no values
5860 have been set for the sra_max_scalarization_size_{speed,size}
5861 parameters, call get_move_ratio to get target defaults.
5863 2015-07-03 Richard Biener <rguenther@suse.de>
5865 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
5866 * match.pd: ... here.
5868 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
5871 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
5872 is not actually the default on FreeBSD.
5874 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5876 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
5878 (CMPGE_8HI): Likewise.
5879 (CMPGE_4SI): Likewise.
5880 (CMPGE_2DI): Likewise.
5881 (CMPGE_U16QI): Likewise.
5882 (CMPGE_U8HI): Likewise.
5883 (CMPGE_U4SI): Likewise.
5884 (CMPGE_U2DI): Likewise.
5885 (CMPLE_16QI): Likewise.
5886 (CMPLE_8HI): Likewise.
5887 (CMPLE_4SI): Likewise.
5888 (CMPLE_2DI): Likewise.
5889 (CMPLE_U16QI): Likewise.
5890 (CMPLE_U8HI): Likewise.
5891 (CMPLE_U4SI): Likewise.
5892 (CMPLE_U2DI): Likewise.
5893 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5894 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
5895 ALTIVEC_BUILTIN_VEC_CMPLE.
5896 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
5897 floating-point vector modes.
5898 (vector_nlt<mode>): New define_expand.
5899 (vector_nltu<mode>): Likewise.
5900 (vector_ngt<mode>): Likewise.
5901 (vector_ngtu<mode>): Likewise.
5903 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5905 PR rtl-optimization/66706
5906 * combine.c (make_compound_operation): If an AND of SUBREG of
5907 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
5909 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
5911 * tree-pass.h (make_pass_ch_vect): New.
5912 * passes.def: Add pass_ch_vect just before pass_if_conversion.
5914 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
5915 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
5916 make_pass_ch_vect): New.
5917 (pass_ch): Extend ch_base.
5919 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
5920 (ch_base::copy_headers): ...here.
5922 2015-07-02 Richard Biener <rguenther@suse.de>
5924 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
5925 * fold-const.c (get_pointer_modulus_and_residue): Remove.
5926 (fold_binary_loc): Implement (T)ptr & CST in terms of
5927 get_pointer_alignment_1.
5928 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
5929 Make sure to build the alignment test on a SSA name without
5930 final alignment info valid only after the prologue.
5932 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
5934 * config/cris/cris.md ("epilogue"): Remove condition.
5935 ("prologue"): Ditto.
5937 2015-07-02 Richard Biener <rguenther@suse.de>
5939 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
5940 parameter to record a condition that is false.
5941 (record_conditions): When recording an extra NE_EXPR that is
5942 true also record a EQ_EXPR that is false.
5944 2015-07-02 Bin Cheng <bin.cheng@arm.com>
5946 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
5947 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
5948 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
5949 (set_iv, find_interesting_uses_address, add_candidate_1): New
5950 argument to alloc_iv.
5951 (find_interesting_uses_op, find_interesting_uses_cond): Don't
5952 duplicate struct iv.
5953 (free_loop_data): Don't free struct iv explicitly.
5954 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
5956 2015-07-01 DJ Delorie <dj@redhat.com>
5958 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
5960 (SUPPORTS_DISCRIMINATOR): Define.
5962 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
5965 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
5966 there are no CALLs in the same pattern.
5968 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5970 PR rtl-optimization/61047
5971 * rtlanal.c (get_initial_register_offset): New function.
5972 (rtx_addr_can_trap_p_1): Check offsets of stack references.
5974 2015-07-01 Richard Biener <rguenther@suse.de>
5976 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
5977 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
5978 ~X CMP C -> X CMP' ~C to ...
5979 * match.pd: ... patterns here.
5981 2015-07-01 Nick Clifton <nickc@redhat.com>
5983 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
5984 a 16-bit value into a 20-bit memory slot.
5986 2015-07-01 Jiong Wang <jiong.wang@arm.com>
5988 * doc/sourcebuild.texi (AArch64-specific attributes): Document
5989 "aarch64_tiny", "aarch64_small", "aarch64_large",
5990 "aarch64_little_endian", "aarch64_big_endian".
5992 2015-07-01 Jiong Wang <jiong.wang@arm.com>
5994 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
5995 Document "aarch64_small_fpic".
5997 2015-07-01 Jiong Wang <jiong.wang@arm.com>
5999 * configure.ac: Add check for aarch64 assembler -fpic relocation
6001 * configure: Regenerate.
6002 * config.in: Regenerate.
6003 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
6004 to -fPIC if not support of -fpic relocation modifier in assembler.
6006 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
6009 * rtl.c (classify_insn): Handle returns in PARALLELs.
6011 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
6014 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
6015 to true if the function is nested and if not optimizing.
6016 (convert_local_omp_clauses): Initialize need_frame to true if the
6017 function contains nested functions and if not optimizing.
6019 2015-07-01 Richard Biener <rguenther@suse.de>
6021 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
6022 (X & Y) ^ Y -> ~X & Y transforms to ...
6023 * match.pd: ... here.
6025 2015-07-01 Richard Biener <rguenther@suse.de>
6027 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
6028 of converts to avoid uninteresting noise from the conversion
6029 simplifying patterns.
6031 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
6033 * config/c6x/c6x.c (try_rename_operands): Do not depend on
6034 gcc_assert evaluating its argument for side-effect.
6036 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
6039 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
6042 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
6044 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
6045 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
6046 (hash_scc): Add this_ref_p and ref_p parameters and pass them
6047 to the inner DFS walk.
6049 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6051 * target-insns.def (jump): New targetm instruction pattern.
6052 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
6053 instead of gen_jump.
6054 (fix_up_crossing_landing_pad): Likewise.
6055 (add_labels_and_missing_jumps): Likewise.
6056 (fix_crossing_conditional_branches): Likewise.
6057 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6058 (force_nonfallthru_and_redirect): Likewise.
6059 * cse.c (cse_insn): Likewise.
6060 * expmed.c (expand_divmod): Likewise.
6061 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
6062 * haifa-sched.c (init_before_recovery): Likewise.
6063 (sched_create_recovery_edges): Likewise.
6064 * ifcvt.c (find_cond_trap): Likewise.
6065 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
6066 (expand_float, expand_fix): Likewise.
6067 * stmt.c (emit_jump): Likewise.
6069 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6071 * defaults.h (HAVE_load_multiple, gen_load_multiple)
6072 (HAVE_store_multiple, gen_store_multiple): Delete.
6073 * target-insns.def (load_multiple, store_multiple): New targetm
6074 instruction patterns.
6075 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
6076 of HAVE_*/gen_* interface.
6078 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6080 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
6081 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
6082 (gen_mem_signal_fence): Delete.
6083 * target-insns.def (mem_signal_fence, mem_thread_fence)
6084 (memory_barrier): New targetm instruction patterns.
6085 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
6087 (expand_mem_signal_fence): Likewise.
6089 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6091 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
6092 * target-insns.def (epilogue, prologue, sibcall_prologue): New
6093 targetm instruction patterns.
6094 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
6096 * calls.c (expand_call): Likewise.
6097 * cfgrtl.c (cfg_layout_finalize): Likewise.
6098 * df-scan.c (df_get_entry_block_def_set): Likewise.
6099 (df_get_exit_block_use_set): Likewise.
6100 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
6101 * final.c (final_start_function): Likewise.
6102 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6103 (reposition_prologue_and_epilogue_notes): Likewise.
6104 * reorg.c (find_end_label): Likewise.
6105 * toplev.c (process_options): Likewise.
6107 2015-06-30 David Malcolm <dmalcolm@redhat.com>
6109 * typed-splay-tree.h: New file.
6111 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
6114 * lra-int.h (lra_substitute_pseudo): Add a parameter.
6115 (lra_substitute_pseudo_within_insn): Ditto.
6116 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
6118 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
6119 to lra_substitute_pseudo.
6120 * lra-lives.c (process_bb_lives): Add an argument to
6121 lra_substitute_pseudo_within_insn call.
6122 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
6123 argument to lra_substitute_pseudo and
6124 lra_substitute_pseudo_within_insn calls.
6125 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
6127 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
6129 * configure: Regenerated.
6131 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
6133 * config.gcc: Support i[34567]86-*-elfiamcu target.
6134 * config/i386/iamcu.h: New.
6135 * config/i386/i386.opt: Add -miamcu.
6136 * doc/invoke.texi: Document -miamcu.
6137 * common/config/i386/i386-common.c (ix86_handle_option): Turn
6138 off x87/MMX/SSE/AVX codegen for -miamcu.
6139 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6140 __iamcu/__iamcu__ for -miamcu.
6141 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
6142 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
6143 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
6144 * config/i386/i386.c (ix86_option_override_internal): Ignore and
6145 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
6146 MCU by default. Default long double to 64-bit for Intel MCU.
6147 Turn on -freg-struct-return for Intel MCU. Issue an error when
6148 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
6150 (function_arg_advance_32): Pass value whose size is no larger
6151 than 8 bytes in registers for Intel MCU.
6152 (function_arg_32): Likewise.
6153 (ix86_return_in_memory): Return value whose size is no larger
6154 than 8 bytes in registers for Intel MCU.
6155 (iamcu_alignment): New function.
6156 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
6158 (ix86_local_alignment): Don't increase alignment for Intel MCU.
6159 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
6162 2015-06-30 Marek Polacek <polacek@redhat.com>
6164 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
6165 both operands of the resulting expression.
6167 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
6168 the final expression with the operand's type and then convert
6169 it to the type of the expression.
6171 2015-06-30 Richard Biener <rguenther@suse.de>
6173 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
6174 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
6175 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
6176 * match.pd: ... to patterns here.
6178 2015-06-30 Richard Biener <rguenther@suse.de>
6180 PR tree-optimization/66704
6181 * tree-vect-data-refs.c (vect_setup_realignment): Use
6182 make_ssa_name for non-SSA name source.
6184 2015-06-30 Jakub Jelinek <jakub@redhat.com>
6187 * omp-low.c (simd_clone_adjust): Handle addressable linear
6188 or uniform parameters or non-gimple type uniform parameters.
6190 2015-06-30 Richard Biener <rguenther@suse.de>
6192 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
6193 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
6194 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
6195 * match.pd: ... here.
6196 Add a few cases of A - B -> A + (-B) when B "easily" negates.
6197 Move (x & y) | x -> x and friends before
6198 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
6200 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
6202 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
6203 -mfix-ut699 is not specified.
6204 (leon3_load): Rename into...
6205 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
6208 2015-06-30 Marek Polacek <polacek@redhat.com>
6210 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
6211 * match.pd: ... here.
6213 2015-06-30 Richard Biener <rguenther@suse.de>
6215 * target-insns.def (canonicalize_funcptr_for_compare): Add.
6216 * fold-const.c (build_range_check): Replace uses of
6217 HAVE_canonicalize_funcptr_for_compare.
6218 (fold_widened_comparison): Likewise.
6219 (fold_sign_changed_comparison): Likewise.
6220 * dojump.c: Include "target.h".
6221 (do_compare_and_jump): Replace uses of
6222 HAVE_canonicalize_funcptr_for_compare and
6223 gen_canonicalize_funcptr_for_compare.
6224 * expr.c (do_store_flag): Likewise.
6226 2015-06-30 Tom de Vries <tom@codesourcery.com>
6228 PR tree-optimization/66652
6229 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
6230 max_loop_iterations to determine if nit + 1 overflows.
6232 2015-06-30 Richard Biener <rguenther@suse.de>
6234 * tree-vrp.c (register_edge_assert_for_2): Also register
6235 asserts for dominating conversion results.
6237 2015-06-30 Bin Cheng <bin.cheng@arm.com>
6239 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
6242 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
6245 * configure.ac: Fix filds and fildq test for 64-bit.
6246 * configure: Regenerated.
6248 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
6250 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
6251 (nvptx_reorg): Here. Keep the non-subreg pieces.
6253 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
6255 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
6256 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
6258 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
6260 * config/i386/i386.md (*jcc_1): Use %! in asm template.
6261 Set attribute "length_nobnd" instead of "length".
6264 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
6266 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
6268 * config/nios2/nios2.c (nios2_delegitimize_address): Make
6269 assert less restrictive.
6271 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6274 * cgraphunit.c (cgraph_node::finalize_function): Do not call
6275 do_warn_unused_parameter.
6276 * function.c (do_warn_unused_parameter): Move from here.
6277 * function.h (do_warn_unused_parameter): Do not declare.
6279 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6282 * gcc.target/arm/armv-sync-comp-swap.c: New.
6283 * gcc.target/arm/armv-sync-op-acquire.c: New.
6284 * gcc.target/arm/armv-sync-op-full.c: New.
6285 * gcc.target/arm/armv-sync-op-release.c: New.
6287 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6290 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
6291 initial acquire barrier with final barrier.
6293 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6296 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
6297 initial acquire barrier with final barrier.
6299 2015-06-29 Richard Henderson <rth@redhat.com>
6301 * config/i386/constraints.md (Bf): New constraint.
6302 * config/i386/i386-c.c (ix86_target_macros): Define
6303 __GCC_ASM_FLAG_OUTPUTS__.
6304 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
6306 * doc/extend.texi (FlagOutputOperands): Document them.
6308 2015-06-29 Jiong Wang <jiong.wang@arm.com>
6310 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
6311 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
6313 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
6314 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
6315 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
6316 (aarch64_symbol_context): Ditto.
6317 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
6318 and use new pattern name.
6319 (aarch64_expand_mov_immediate): Ditto.
6320 (aarch64_print_operand): Ditto.
6321 (aarch64_classify_tls_symbol): Ditto.
6323 2015-06-29 Marek Polacek <polacek@redhat.com>
6324 Marc Glisse <marc.glisse@inria.fr>
6326 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
6327 * match.pd: ... pattern here.
6329 2015-06-29 Tom de Vries <tom@codesourcery.com>
6331 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
6334 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6336 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
6337 feature description, split out the native option, add a link to
6338 the feature documentation, rearrange and slightly rewrite text.
6339 (Aarch64 options, -mcpu): Likewise.
6340 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
6341 +rdma implies Adv. SIMD.
6343 2015-06-29 Marek Polacek <polacek@redhat.com>
6346 * function.c (stack_protect_epilogue): Remove a cast to int.
6347 * doc/invoke.texi: Update -Wswitch-bool description.
6349 2015-06-29 Richard Biener <rguenther@suse.de>
6351 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
6352 * fold-const.c (fold_binary_loc): Move &A - &B simplification
6353 via ptr_difference_const ...
6354 * match.pd: ... here.
6355 When matching (X ^ Y) == Y also match with swapped operands.
6357 2015-06-29 Richard Biener <rguenther@suse.de>
6359 * lto-streamer.h (LTO_major_version): Bump to 5.
6361 2015-06-29 Richard Biener <rguenther@suse.de>
6363 PR tree-optimization/66677
6364 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
6365 STMT_VINFO_VEC_STMT clobbering less strict.
6367 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
6370 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
6371 division, compute max and min when value ranges for dividend and
6372 divisor are available.
6374 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
6375 Sandra Loosemore <sandra@codesourcery.com>
6377 * regrename.h (regrename_do_replace): Change to return bool.
6378 * regrename.c (rename_chains): Check return value of
6380 (regrename_do_replace): Re-validate the modified insns and
6382 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
6383 Update to match rename_chains changes.
6384 * config/c6x/c6x.c (try_rename_operands): Assert that
6385 regrename_do_replace returns true.
6387 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
6389 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
6390 operand 2 here. Use copy_addr_to_reg to copy non-index
6391 register operand 2 to a temporary.
6392 (<mode>_stx): Ditto for operand 1.
6393 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
6394 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
6395 (ix86_store_bounds): Ditto.
6397 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
6399 * print-tree.c (print_node) [TREE_VEC]: Print its length.
6401 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
6403 * gimple.c (gimple_call_set_fndecl): Remove.
6404 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
6405 build1_loc directly instead of build_fold_addr_expr_loc.
6407 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
6409 * hash-map.h (hash_map::traverse): Use the definition of the
6410 Key typedef rather than the typedef itself.
6412 2015-06-26 Martin Jambor <mjambor@suse.cz>
6415 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
6416 NULL instead of calling dump_enabled_p.
6418 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6420 * config/aarch64/aarch64.opt: (override): New.
6421 * doc/invoke.texi (override): Document.
6422 * config/aarch64/aarch64.c (aarch64_flag_desc): New
6423 (aarch64_fusible_pairs): Likewise.
6424 (aarch64_tuning_flags): Likewise.
6425 (aarch64_tuning_override_function): Likewise.
6426 (aarch64_tuning_override_functions): Likewise.
6427 (aarch64_parse_one_option_token): Likewise.
6428 (aarch64_parse_boolean_options): Likewise.
6429 (aarch64_parse_fuse_string): Likewise.
6430 (aarch64_parse_tune_string): Likewise.
6431 (aarch64_parse_one_override_token): Likewise.
6432 (aarch64_parse_override_string): Likewise.
6433 (aarch64_override_options): Parse the -override string if it
6436 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6438 * config/aarch64/aarch64-protos.h (tune_params): Remove
6440 (aarch64_tune_params): Remove const, change to no longer be
6442 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
6443 change to no longer be a pointer, initialize to generic_tunings.
6444 (aarch64_min_divisions_for_recip_mul): Change dereference of
6445 aarch64_tune_params to member access.
6446 (aarch64_reassociation_width): Likewise.
6447 (aarch64_rtx_mult_cost): Likewise.
6448 (aarch64_address_cost): Likewise.
6449 (aarch64_branch_cost): Likewise.
6450 (aarch64_rtx_costs): Likewise.
6451 (aarch64_register_move_cost): Likewise.
6452 (aarch64_memory_move_cost): Likewise.
6453 (aarch64_sched_issue_rate): Likewise.
6454 (aarch64_builtin_vectorization_cost): Likewise.
6455 (aarch64_override_options): Take a copy of the selected tuning
6456 struct in to aarch64_tune_params, rather than just setting
6457 a pointer, change dereferences of aarch64_tune_params to member
6459 (aarch64_override_options_after_change): Change dereferences of
6460 aarch64_tune_params to member access.
6461 (aarch64_macro_fusion_p): Likewise.
6462 (aarch_macro_fusion_pair_p): Likewise.
6463 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
6465 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6467 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
6468 (aarch64_tune_flags): Likewise.
6469 (AARCH64_TUNE_FMA_STEERING): Likewise.
6470 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
6471 to AARCH64_FL_USE_FMA_STEERING_PASS.
6472 (cortex-a57.cortex-a53): Likewise.
6473 (cortex-a72): Use cortexa72_tunings.
6474 (cortex-a72.cortex-a53): Likewise.
6475 (exynos-m1): Likewise.
6476 * config/aarch64/aarch64-protos.h (tune_params): Add
6477 a field: extra_tuning_flags.
6478 * config/aarch64/aarch64-tuning-flags.def: New.
6479 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
6480 (aarch64_extra_tuning_flags): Likewise.
6481 (aarch64_tune_params): Declare here.
6482 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
6483 (cortexa53_tunings): Likewise.
6484 (cortexa57_tunings): Likewise.
6485 (thunderx_tunings): Likewise.
6486 (xgene1_tunings): Likewise.
6487 (cortexa72_tunings): New.
6488 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
6489 (gate): Check against aarch64_tune_params.
6490 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
6493 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6495 * config/aarch64/aarch64-fusion-pairs.def: New.
6496 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
6497 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
6498 aarch64_fusion_pairs.
6499 (AARCH64_FUSE_MOV_MOVK): Likewise.
6500 (AARCH64_FUSE_ADRP_ADD): Likewise.
6501 (AARCH64_FUSE_MOVK_MOVK): Likewise.
6502 (AARCH64_FUSE_ADRP_LDR): Likewise.
6503 (AARCH64_FUSE_CMP_BRANCH): Likewise.
6505 2015-06-26 Jiong Wang <jiong.wang@arm.com>
6507 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
6508 SYMBOL_SMALL_GOT_28K.
6509 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
6510 relocation modifiers.
6511 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
6512 (ldr_got_small_28k_<mode>): New.
6513 (ldr_got_small_28k_sidi): New.
6514 * config/aarch64/iterators.md (got_modifier): New mode iterator.
6515 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
6516 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
6517 SYMBOL_SMALL_GOT_28K.
6518 (aarch64_rtx_costs): Add costs for new instruction sequences.
6519 (initialize_aarch64_code_model): Initialize new model.
6520 (aarch64_classify_symbol): Recognize new model and new symbol classification.
6521 (aarch64_asm_preferred_eh_data_format): Support new model.
6522 (aarch64_load_symref_appropriately): Generate new instruction
6523 sequences for -fpic.
6524 (TARGET_USE_PSEUDO_PIC_REG): New definition.
6525 (aarch64_use_pseudo_pic_reg): New function.
6527 2015-06-26 Jiong Wang <jiong.wang@arm.com>
6529 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
6530 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
6531 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
6532 (aarch64_expand_mov_immediate): Ditto.
6533 (aarch64_print_operand): Ditto.
6534 (aarch64_classify_symbol): Ditto.
6536 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
6538 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
6540 2015-06-26 Bin Cheng <bin.cheng@arm.com>
6543 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
6544 assertion failed. Remove assertion itself.
6546 2015-06-26 Richard Biener <rguenther@suse.de>
6548 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
6549 and -A CMP CST -> A CMP -CST which is redundant with a pattern
6551 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
6552 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
6553 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
6554 * match.pd: ... patterns here.
6556 2015-06-26 Marek Polacek <polacek@redhat.com>
6558 * match.pd ((x | y) & ~(x & y) -> x ^ y,
6559 (x | y) & (~x ^ y) -> x & y): New patterns.
6561 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
6563 * rtl.h (emit): Add an optional boolean parameter to control
6564 whether barriers are emitted.
6565 * emit-rtl.c (emit): Likewise.
6566 * gensupport.c (get_emit_function): Return null rather than "emit".
6567 * genemit.c (gen_emit_seq): Handle the null return value.
6568 Don't emit barriers after the final instruction in the sequence.
6569 * gentarget-def.c (main): Don't emit barriers after the instruction.
6571 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6573 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
6576 2015-06-26 Richard Biener <rguenther@suse.de>
6578 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
6580 2015-06-26 Richard Biener <rguenther@suse.de>
6582 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
6583 irrespective on whether the inner operation has a single use
6584 of both off are constant.
6586 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
6587 Segher Boessenkool <segher@kernel.crashing.org>
6590 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
6591 before doing PUT_MODE or PUT_CODE on operands to avoid
6592 in-place RTX modification.
6594 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
6596 * gentarget-def.c (def_target_insn): Cast return of strtol to
6599 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
6601 * gimple.h (gimple_call_set_fn): Move inline function.
6602 * gimple.c (gimple_call_set_fn): Relocate here.
6604 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
6608 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
6609 the replacement insn will work.
6611 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
6613 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
6616 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
6618 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
6619 * cgraph.h: Include ipa-ref.h and plugin-api.h.
6620 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
6621 (symtab_node::address_can_be_compared_p): Move function.
6622 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
6624 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
6625 * auto-profile.c: Likewise.
6626 * bb-reorder.c: Likewise.
6627 * builtins.c: Likewise.
6628 * calls.c: Likewise.
6629 * cfgexpand.c: Likewise.
6630 * cgraphbuild.c: Likewise.
6631 * cgraphclones.c: Likewise.
6632 * cgraphunit.c: Likewise.
6633 * combine.c: Likewise.
6634 * coverage.c: Likewise.
6635 * data-streamer-in.c: Likewise.
6636 * data-streamer-out.c: Likewise.
6637 * data-streamer.c: Likewise.
6638 * dbxout.c: Likewise.
6639 * dwarf2out.c: Likewise.
6640 * except.c: Likewise.
6642 * final.c: Likewise.
6643 * fold-const.c: Likewise.
6644 * ggc-page.c: Likewise.
6645 * gimple-fold.c: Likewise.
6646 * gimple-iterator.c: Likewise.
6647 * gimple-pretty-print.c: Likewise.
6648 * gimple-streamer-in.c: Likewise.
6649 * gimple-streamer-out.c: Likewise.
6650 * gimple.c: Likewise.
6651 * gimplify.c: Likewise.
6652 * ipa-chkp.c: Likewise.
6653 * ipa-comdats.c: Likewise.
6654 * ipa-cp.c: Likewise.
6655 * ipa-devirt.c: Likewise.
6656 * ipa-icf-gimple.c: Likewise.
6657 * ipa-icf.c: Likewise.
6658 * ipa-inline-analysis.c: Likewise.
6659 * ipa-inline-transform.c: Likewise.
6660 * ipa-inline.c: Likewise.
6661 * ipa-polymorphic-call.c: Likewise.
6662 * ipa-profile.c: Likewise.
6663 * ipa-prop.c: Likewise.
6664 * ipa-pure-const.c: Likewise.
6665 * ipa-ref.c: Likewise.
6666 * ipa-reference.c: Likewise.
6667 * ipa-split.c: Likewise.
6668 * ipa-utils.c: Likewise.
6669 * ipa-visibility.c: Likewise.
6671 * langhooks.c: Likewise.
6672 * lto-cgraph.c: Likewise.
6673 * lto-compress.c: Likewise.
6674 * lto-opts.c: Likewise.
6675 * lto-section-in.c: Likewise.
6676 * lto-section-out.c: Likewise.
6677 * lto-streamer-in.c: Likewise.
6678 * lto-streamer-out.c: Likewise.
6679 * lto-streamer.c: Likewise.
6680 * omp-low.c: Likewise.
6681 * opts-global.c: Likewise.
6682 * passes.c: Likewise.
6683 * predict.c: Likewise.
6684 * print-tree.c: Likewise.
6685 * profile.c: Likewise.
6687 * sanopt.c: Likewise.
6688 * stor-layout.c: Likewise.
6689 * symtab.c: Likewise.
6690 * toplev.c: Likewise.
6691 * trans-mem.c: Likewise.
6692 * tree-cfg.c: Likewise.
6693 * tree-chkp.c: Likewise.
6694 * tree-eh.c: Likewise.
6695 * tree-emutls.c: Likewise.
6696 * tree-inline.c: Likewise.
6697 * tree-nested.c: Likewise.
6698 * tree-parloops.c: Likewise.
6699 * tree-pretty-print.c: Likewise.
6700 * tree-profile.c: Likewise.
6701 * tree-sra.c: Likewise.
6702 * tree-ssa-alias.c: Likewise.
6703 * tree-ssa-live.c: Likewise.
6704 * tree-ssa-loop-ivcanon.c: Likewise.
6705 * tree-ssa-loop-ivopts.c: Likewise.
6706 * tree-ssa-pre.c: Likewise.
6707 * tree-ssa-sccvn.c: Likewise.
6708 * tree-ssa-strlen.c: Likewise.
6709 * tree-ssa-structalias.c: Likewise.
6710 * tree-streamer-in.c: Likewise.
6711 * tree-streamer-out.c: Likewise.
6712 * tree-streamer.c: Likewise.
6713 * tree-switch-conversion.c: Likewise.
6714 * tree-tailcall.c: Likewise.
6715 * tree-vect-data-refs.c: Likewise.
6716 * tree-vect-stmts.c: Likewise.
6717 * tree-vectorizer.c: Likewise.
6720 * ubsan.c: Likewise.
6721 * value-prof.c: Likewise.
6722 * varasm.c: Likewise.
6723 * varpool.c: Likewise.
6724 * config/arm/arm.c: Likewise.
6725 * config/bfin/bfin.c: Likewise.
6726 * config/c6x/c6x.c: Likewise.
6727 * config/cris/cris.c: Likewise.
6728 * config/darwin-c.c: Likewise.
6729 * config/darwin.c: Likewise.
6730 * config/i386/i386.c: Likewise.
6731 * config/i386/winnt.c: Likewise.
6732 * config/microblaze/microblaze.c: Likewise.
6733 * config/mips/mips.c: Likewise.
6734 * config/rs6000/rs6000.c: Likewise.
6735 * config/rx/rx.c: Likewise.
6736 * config/s390/s390.c: Likewise.
6737 * config/tilegx/mul-tables.c: Likewise.
6739 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6741 * config/aarch64/aarch64.c, config/alpha/alpha.c,
6742 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
6743 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
6744 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
6745 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
6746 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6747 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
6748 config/microblaze/microblaze.c, config/mips/mips.c,
6749 config/mmix/mmix.c, config/mn10300/mn10300.c,
6750 config/moxie/moxie.c, config/msp430/msp430.c,
6751 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
6752 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
6753 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
6754 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
6755 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6756 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6757 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
6758 target-def.h include.
6759 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
6761 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6763 * Makefile.in (TARGET_DEF): Add target-insns.def.
6764 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
6765 (build/gentarget-def.o): New rule.
6766 (genprogrtl): Add target-def.
6767 * target-insns.def, gentarget-def.c: New files.
6768 * target.def: Add targetm.have_* and targetm.gen_* hooks,
6769 based on the contents of target-insns.def.
6770 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
6771 (HAVE_return, gen_return): Delete.
6772 * target-def.h: Include insn-target-def.h.
6773 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
6774 instead of direct calls. Rely on them to do the appropriate assertions.
6775 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
6776 (convert_jumps_to_returns): Use targetm interface instead of
6778 (thread_prologue_and_epilogue_insns): Likewise.
6779 * reorg.c (find_end_label, dbr_schedule): Likewise.
6780 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
6781 * shrink-wrap.c (convert_to_simple_return): Likewise.
6782 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
6784 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6786 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
6787 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6788 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
6789 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
6790 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
6791 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6792 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
6793 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
6794 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
6795 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
6796 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
6797 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
6798 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
6799 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6800 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6801 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
6804 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6806 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
6807 (unbounded_int_hashmap_traits::key_type): Likewise.
6808 * hash-map.h (hash_map): Get the key type from the traits.
6809 * hash-traits.h (default_hash_traits): By default, inherit from the
6811 * alias.c (alias_set_traits): Delete.
6812 (alias_set_entry_d::children): Use alias_set_hash as the first
6814 (record_alias_subset): Update accordingly.
6815 * except.c (tree_hash_traits): Delete.
6816 (type_to_runtime_map): Use tree_hash as the first template parameter.
6817 (init_eh): Update accordingly.
6818 * genmatch.c (capture_id_map_hasher): Delete.
6819 (cid_map_t): Use nofree_string_hash as first template parameter.
6820 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
6821 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
6822 Use symbol_compare_hash as the first template parameter in
6824 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
6825 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
6827 * passes.c (pass_registry_hasher): Delete.
6828 (name_to_pass_map): Use nofree_string_hash as the first template
6830 (register_pass_name): Update accordingly.
6831 * sanopt.c (sanopt_tree_map_traits): Delete.
6832 (sanopt_tree_triplet_map_traits): Delete.
6833 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
6835 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
6836 the first template parameter.
6837 * sese.c (rename_map_hasher): Delete.
6838 (rename_map_type): Use tree_ssa_name_hash as the first template
6840 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
6841 (function_summary::m_map): Use map_hash as the first template
6843 (function_summary::release): Update accordingly.
6844 * tree-if-conv.c (phi_args_hash_traits): Delete.
6845 (predicate_scalar_phi): Use tree_operand_hash as the first template
6846 parameter to phi_arg_map.
6847 * tree-inline.h (dependence_hasher): Delete.
6848 (copy_body_data::dependence_map): Use dependence_hash as the first
6850 * tree-inline.c (remap_dependence_clique): Update accordingly.
6851 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
6852 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
6854 (addr_stridxptr): Update accordingly.
6855 * value-prof.c (profile_id_traits): Delete.
6856 (cgraph_node_map): Use profile_id_hash as the first template
6858 (init_node_map): Update accordingly.
6859 * config/alpha/alpha.c (string_traits): Delete.
6860 (machine_function::links): Use nofree_string_hash as the first
6862 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
6863 * config/m32c/m32c.c (pragma_traits): Delete.
6864 (pragma_htab): Use nofree_string_hash as the first template parameter.
6865 (m32c_note_pragma_address): Update accordingly.
6866 * config/mep/mep.c (pragma_traits): Delete.
6867 (pragma_htab): Use nofree_string_hash as the first template parameter.
6868 (mep_note_pragma_flag): Update accordingly.
6869 * config/mips/mips.c (mips16_flip_traits): Delete.
6870 (mflip_mips16_htab): Use nofree_string_hash as the first template
6872 (mflip_mips16_use_mips16_p): Update accordingly.
6873 (local_alias_traits): Delete.
6874 (mips16_local_aliases): Use nofree_string_hash as the first template
6876 (mips16_local_alias): Update accordingly.
6878 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6880 * hash-map-traits.h (default_hashmap_traits): Delete.
6882 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6884 * hash-map-traits.h (unbounded_hashmap_traits): New class.
6885 (unbounded_int_hashmap_traits): Likewise.
6886 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
6888 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6890 * ipa-icf.h (symbol_compare_hash): New class.
6891 (symbol_compare_hashmap_traits): Use it.
6892 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
6893 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
6894 (mem_alloc_description::reverse_mem_map_t): Remove redundant
6895 default_hashmap_traits.
6896 * sanopt.c (sanopt_tree_triplet_hash): New class.
6897 (sanopt_tree_triplet_map_traits): Use it.
6899 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6901 * gengtype-parse.c (require_template_declaration): Allow '+' in
6902 template parameters. Consolidate cases.
6903 * hash-traits.h (int_hash): New class.
6904 * alias.c (alias_set_hash): New structure.
6905 (alias_set_traits): Use it.
6906 * symbol-summary.h (function_summary::map_hash): New class.
6907 (function_summary::summary_hashmap_traits): Use it.
6908 * tree-inline.h (dependence_hash): New class.
6909 (dependence_hasher): Use it.
6910 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
6911 * value-prof.c (profile_id_hash): New class.
6912 (profile_id_traits): Use it.
6914 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6916 * config/mips/mips.c (mips16_flip_traits): Use it.
6917 (local_alias_traits, mips16_local_aliases): Convert from a map of
6918 rtxes to a map of symbol names.
6919 (mips16_local_alias): Update accordingly.
6921 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6923 * hash-traits.h (string_hash, nofree_string_hash): New classes.
6924 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
6925 * passes.c (pass_registry_hasher): Likewise.
6926 * config/alpha/alpha.c (string_traits): Likewise.
6927 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
6928 * config/m32c/m32c.c (pragma_traits): Likewise.
6929 * config/mep/mep.c (pragma_traits): Likewise.
6931 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6933 * tree-hash-traits.h (tree_hash): New class.
6934 * except.c: Include tree-hash-traits.h.
6935 (tree_hash_traits): Use tree_hash.
6937 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6939 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
6940 * sese.c: Include tree-hash-traits.h.
6941 (rename_map_hasher): Use tree_ssa_name_hasher.
6943 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6945 * tree-hash-traits.h (tree_decl_hash): New class.
6946 * tree-ssa-strlen.c: Include tree-hash-traits.h.
6947 (stridxlist_hash_traits): Use tree_decl_hash.
6949 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6951 * tree-hash-traits.h: New file.
6952 (tree_operand_hash): New class.
6953 * sanopt.c: Include tree-hash-traits.h.
6954 (sanopt_tree_map_traits): Use tree_operand_hash.
6955 * tree-if-conv.c: Include tree-hash-traits.h.
6956 (phi_args_hash_traits): Use tree_operand_hash.
6957 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
6958 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
6960 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6962 * hash-map-traits.h: Include hash-traits.h.
6963 (simple_hashmap_traits): New class.
6964 * mem-stats.h (hash_map): Change the default traits to
6965 simple_hashmap_traits<default_hash_traits<Key> >.
6967 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6969 * hash-table.h: Update comments.
6971 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6973 * hash-traits.h (default_hash_traits): New structure.
6974 * hash-set.h (default_hashset_traits): Delete.
6975 (hash_set): Use default_hash_traits<Key> instead of
6976 default_hashset_traits. Delete hash_entry type and use Key directly.
6977 * ipa-devirt.c (pair_traits): Delete.
6978 (default_hash_traits <type_pair>): Override.
6979 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
6980 (odr_types_equivalent_p, add_type_duplicate): Likewise.
6982 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6984 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
6986 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6988 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
6989 (has_is_empty, is_empty_helper): Delete.
6990 (has_mark_deleted, mark_deleted_helper): Delete.
6991 (has_mark_empty, mark_empty_helper): Delete.
6992 (hash_table::is_deleted): Call the Descriptor unconditionally.
6993 (hash_table::is_empty): Likewise.
6994 (hash_table::mark_deleted): Likewise.
6995 (hash_table::mark_empty): Likewise.
6997 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6999 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
7000 redundant typedefs and members.
7001 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
7003 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
7004 * ipa-devirt.c (odr_name_hasher): Likewise.
7005 (polymorphic_call_target_hasher): Likewise.
7006 * ira-costs.c (cost_classes_hasher): Likewise.
7007 * statistics.c (stats_counter_hasher): Likewise.
7008 * trans-mem.c (log_entry_hasher): Likewise.
7009 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
7010 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
7011 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
7012 * var-tracking.c (variable_hasher): Likewise.
7013 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
7014 Remove redundant typedefs and members.
7016 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7018 * hash-traits.h (ggc_cache_hasher): Rename to...
7019 (ggc_cache_remove): ...this and remove typedefs.
7020 (ggc_cache_ptr_hash): New class.
7021 * hash-table.h: Update commentary.
7022 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
7023 rather than ggc_cache_hasher.
7024 (const_wide_int_hasher, reg_attr_hasher): Likewise.
7025 (const_double_hasher, const_fixed_hasher): Likewise.
7026 * function.c (insn_cache_hasher): Likewise.
7027 * trans-mem.c (tm_wrapper_hasher): Likewise.
7028 * tree.h (tree_decl_map_cache_hasher): Likewise.
7029 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
7030 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
7031 * ubsan.c (tree_type_map_cache_hasher): Likewise.
7032 * varasm.c (tm_clone_hasher): Likewise.
7033 * config/i386/i386.c (dllimport_hasher): Likewise.
7034 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
7035 (tree_hasher): Likewise.
7037 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7039 * hash-traits.h (ggc_hasher): Rename to...
7040 (ggc_remover): ...this and remove typedefs.
7041 (ggc_cache_hasher): Update accordingly. Add typedefs.
7042 (ggc_ptr_hash): New class.
7043 * hash-table.h: Update comment.
7044 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
7046 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
7047 (tree_descriptor_hasher): Likewise.
7048 * cgraph.c (function_version_hasher): Likewise.
7049 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
7050 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
7051 (dw_loc_list_hasher, addr_hasher): Likewise.
7052 * function.h (used_type_hasher): Likewise.
7053 * function.c (temp_address_hasher): Likewise.
7054 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
7055 * libfuncs.h (libfunc_hasher): Likewise.
7056 * lto-streamer.h (decl_state_hasher): Likewise.
7057 * optabs.c (libfunc_decl_hasher): Likewise.
7058 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
7059 * varasm.c (section_hasher, object_block_hasher): Likewise.
7060 (const_rtx_desc_hasher): Likewise.
7061 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
7062 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
7064 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7066 * hash-traits.h (free_ptr_hash): New class.
7067 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
7068 rather than typed_free_remove. Remove redudant typedefs.
7069 (external_ref_hasher): Likewise.
7070 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
7071 (ehspec_hasher): Likewise.
7072 * ggc-common.c (saving_hasher): Likewise.
7073 * gimplify.c (gimplify_hasher): Likewise.
7074 * haifa-sched.c (delay_i2_hasher): Likewise.
7075 * loop-invariant.c (invariant_expr_hasher): Likewise.
7076 * loop-iv.c (biv_entry_hasher): Likewise.
7077 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
7078 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
7079 * tree-cfg.c (locus_discrim_hasher): Likewise.
7080 * tree-eh.c (finally_tree_hasher): Likewise.
7081 * tree-into-ssa.c (var_info_hasher): Likewise.
7082 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
7083 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
7084 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
7085 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
7086 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
7087 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
7088 (shared_bitmap_hasher): Likewise.
7089 * tree-ssa-threadupdate.c (redirection_data): Likewise.
7090 * tree-vectorizer.h (peel_info_hasher): Likewise.
7091 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
7092 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
7094 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7096 * hash-table.h: Update comments.
7097 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
7098 (nofree_ptr_hash): New class.
7099 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
7100 than typed_noop_remove. Remove redudant typedefs.
7101 * attribs.c (attribute_hasher): Likewise.
7102 * cfg.c (bb_copy_hasher): Likewise.
7103 * cselib.c (cselib_hasher): Likewise.
7104 * dse.c (invariant_group_base_hasher): Likewise.
7105 * dwarf2cfi.c (trace_info_hasher): Likewise.
7106 * dwarf2out.c (macinfo_entry_hasher): Likewise.
7107 (comdat_type_hasher, loc_list_hasher): Likewise.
7108 * gcse.c (pre_ldst_expr_hasher): Likewise.
7109 * genmatch.c (id_base): Likewise.
7110 * genrecog.c (test_pattern_hasher): Likewise.
7111 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
7112 * haifa-sched.c (delay_i1_hasher): Likewise.
7113 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
7114 * ipa-icf.h (congruence_class_group_hash): Likewise.
7115 * ipa-profile.c (histogram_hash): Likewise.
7116 * ira-color.c (allocno_hard_regs_hasher): Likewise.
7117 * lto-streamer.h (string_slot_hasher): Likewise.
7118 * lto-streamer.c (tree_entry_hasher): Likewise.
7119 * plugin.c (event_hasher): Likewise.
7120 * postreload-gcse.c (expr_hasher): Likewise.
7121 * store-motion.c (st_expr_hasher): Likewise.
7122 * tree-sra.c (uid_decl_hasher): Likewise.
7123 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
7124 (ssa_name_var_hash): Likewise.
7125 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
7126 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
7127 * tree-ssa-pre.c (pre_expr_d): Likewise.
7128 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
7129 * vtable-verify.h (registration_hasher): Likewise.
7130 * vtable-verify.c (vtbl_map_hasher): Likewise.
7131 * config/arm/arm.c (libcall_hasher): Likewise.
7132 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
7133 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
7134 * config/sol2.c (comdat_entry_hasher): Likewise.
7135 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
7136 (print_fold_checksum, fold_checksum_tree): Likewise.
7137 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
7138 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
7139 (fold_build_call_array_loc): Likewise.
7140 * tree-ssa-ccp.c (gimple_htab): Likewise.
7141 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
7142 rather than pointer_type.
7144 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7146 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
7147 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
7149 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7151 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
7152 (ggc_hasher::ggc_mx): Likewise.
7153 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
7154 that duplicate ggc_hasher ones.
7156 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7158 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
7159 (gt_cleare_cache): Check here for deleted and empty entries.
7160 Replace handle_cache_entry with a call to keep_cache_entry.
7161 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
7162 (ggc_cache_hasher::keep_cache_entry): New function.
7163 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
7164 (tm_wrapper_hasher::keep_cache_entry): New function.
7165 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
7166 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
7167 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
7168 (type_cache_hasher::keep_cache_entry): New function.
7169 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
7170 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
7171 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
7172 (tree_type_map_cache_hasher::keep_cache_entry): New function.
7173 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
7174 (tm_clone_hasher::keep_cache_entry): New function.
7175 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
7176 (dllimport_hasher::keep_cache_entry): New function.
7178 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7180 * hash-table.h: Include hash-traits.h.
7181 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
7182 (ggc_cache_hasher): Move to...
7183 * hash-traits.h: ...this new file.
7185 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7187 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
7188 struct cl_optimization.
7189 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
7190 * tree.c (make_node_stat): Allocate cl_optimization struct.
7191 (copy_node_stat): Allocate and copy cl_optimization struct.
7193 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7195 * function.h (struct incoming_args): Move struct.
7196 (pass_by_reference, reference_callee_copied): Remove prototypes.
7197 * emit-rtl.h (struct incoming_args): Relocate struct here.
7198 * calls.h (pass_by_reference, reference_callee_copied): Relocate
7200 * function.c (pass_by_reference, reference_callee_copied): Move.
7201 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
7202 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
7203 * ipa-chkp.c: Include calls.h.
7205 2015-06-25 Andrew Macleod <amacleod@redhat.com>
7207 * alias.h (alias_set_type): Move typedef.
7208 * coretypes.h (alias_set_type): Relocate typedef here.
7209 * rtl.h: Don't include alias.h.
7211 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7213 * cgraph.h (cgraph_rtl_info): Move to rtl.h
7214 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
7216 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
7217 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
7219 * calls.c: Include hard-reg-set.h before rtl.h.
7222 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7223 Vladimir Makarov <vmakarov@redhat.com>
7225 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
7228 2015-06-25 Richard Biener <rguenther@suse.de>
7230 * fold-const.c (fold_binary_loc): Move simplification of
7231 (X <<>> C1) & C2 ...
7232 * match.pd: ... here.
7234 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
7236 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
7238 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7240 * match.pd: Add patterns for vec_conds between 1 and 0.
7242 2015-06-25 Richard Biener <rguenther@suse.de>
7244 * tree-vect-stmts.c (vectorizable_conversion): Do not set
7245 STMT_VINFO_VEC_STMT for SLP.
7246 (vectorizable_store): Likewise.
7247 (vectorizable_load): Likewise.
7248 (vect_transform_stmt): Catch SLP vectorization clobbering
7249 STMT_VINFO_VEC_STMT.
7251 2015-06-25 Richard Biener <rguenther@suse.de>
7253 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
7255 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
7256 cleanup resulting dead code and parameters.
7257 (vect_transform_slp_perm_load): Adjust.
7259 2015-06-25 Nick Clifton <nickc@redhat.com>
7261 * config/bfin/bfin.c (bfin_expand_prologue): Set
7262 current_function_static_stack_size if flag_stack_usage_info is set.
7263 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
7264 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
7265 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7266 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
7268 2015-06-25 Tom de Vries <tom@codesourcery.com>
7270 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
7271 comment that the generated IV is unsigned.
7273 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7276 * config/arm/arm.c (arm_dbx_register_number): Return
7277 DWARF_FRAME_REGISTERS by default.
7279 2015-06-25 Tom de Vries <tom@codesourcery.com>
7281 * dominance.c (calculate_dominance_info): Fix verify_dominators call
7282 argument. Call verify_dominator when reusing dominator info.
7284 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
7287 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
7288 an additional element of the unspec vector. Modify indices
7290 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
7291 * config/sh/sh.c (prepare_move_operands): Pass incremented
7292 const_int to gen_GOTaddr2picreg.
7293 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
7295 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7297 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
7298 Condition on TARGET_FLOAT.
7300 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7302 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
7305 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7307 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
7309 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
7310 aarch64_err_no_fpadvsimd.
7312 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
7313 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
7314 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
7315 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
7316 Turn error into assert, test TARGET_FLOAT.
7317 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
7320 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
7323 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
7325 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
7327 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
7329 2015-06-24 Renlin Li <renlin.li@arm.com>
7331 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
7332 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
7334 2015-06-24 Richard Biener <rguenther@suse.de>
7336 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
7338 (lower_opt_convert): Support lowering of conditional view_convert.
7339 (parser::parse_operation): Likewise.
7340 (parser::parse_for): Likewise.
7342 2015-06-24 Renlin Li <renlin.li@arm.com>
7344 * varasm.c (emit_local): Use unsigned int for align variable.
7346 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7349 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
7350 for negative numbers.
7352 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7354 PR rtl-optimization/66306
7355 * reload.c (find_reloads): Swap the match_dup info for
7356 commutative operands.
7358 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7360 * config/s390/vx-builtins.md
7361 ("vec_scatter_element<mode>_<non_vec_int>")
7362 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
7363 attribute with bhfgq.
7365 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7367 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
7369 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7371 * config/s390/s390-builtin-types.def: Add flag to indicate the
7372 options under which the function type is needed.
7373 * config/s390/s390-builtins.def: Add flag to indicate the options
7374 under which the builtin is enabled.
7375 * config/s390/s390-builtins.h: Add flags parameter to macro
7377 (bflags_for_builtin): New function.
7378 (flags_for_builtin): Renamed to ...
7379 (opflags_for_builtin): ... this.
7380 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
7381 flags_for_builtin to bflags_for_builtin and
7382 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
7383 * config/s390/s390.c: Add initialization of bflags_builtin and
7384 opflags_builtin arrays.
7385 Remove code for flags_builtin.
7386 (s390_init_builtins): Only create builtin function types if one of
7387 their flags is active.
7388 Only create builtins if all of their flags are active.
7389 (s390_expand_builtin): Rename flags_for_builtin to
7390 opflags_for_builtin.
7392 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7394 * config/s390/vecintrin.h: Remove internal builtins.
7396 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7398 * config/s390/s390.c (s390_secondary_reload): Fix check for
7399 GENERAL_REGS register class.
7401 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7403 * config/s390/s390.c (s390_support_vector_misalignment): Call
7404 default implementation for !TARGET_VX.
7406 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7408 * config/s390/s390.c (s390_legitimate_constant_p): Add
7411 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7413 * config/s390/s390.c (s390_vector_abi): New variable definition.
7414 (s390_check_type_for_vector_abi): New function.
7415 (TARGET_ASM_FILE_END): New macro definition.
7416 (s390_asm_file_end): New function.
7417 (s390_function_arg): Call s390_check_type_for_vector_abi.
7418 (s390_gimplify_va_arg): Likewise.
7419 * configure: Regenerate.
7420 * configure.ac: Check for .gnu_attribute Binutils feature.
7422 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
7425 * config/bfin/bfin.c (hwloop_optimize): Initialize
7426 JUMP_LABEL for newly created jump.
7428 2015-06-23 Tristan Gingold <gingold@adacore.com>
7430 * collect-utils.c (collect_wait): Unlink the response file here
7433 (utils_cleanup): ...and here.
7435 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
7437 * df-scan.c: Don't include target-def.h.
7438 * targhooks.c: Likewise.
7439 * config/arm/arm-c.c: Likewise.
7440 * config/i386/i386-c.c: Likewise.
7441 * config/nds32/nds32-cost.c: Likewise.
7442 * config/nds32/nds32-fp-as-gp.c: Likewise.
7443 * config/nds32/nds32-intrinsic.c: Likewise.
7444 * config/nds32/nds32-isr.c: Likewise.
7445 * config/nds32/nds32-md-auxiliary.c: Likewise.
7446 * config/nds32/nds32-memory-manipulation.c: Likewise.
7447 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7448 * config/nds32/nds32-predicates.c: Likewise.
7450 2015-06-23 Richard Biener <rguenther@suse.de>
7452 PR tree-optimization/66636
7453 * tree-vect-stmts.c (vectorizable_store): Properly compute the
7454 def type for further defs for strided stores.
7456 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
7458 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
7459 conditional selects.
7460 (setcc_int<mode>, setcc_float<mode>): Reformat.
7462 2015-06-23 Marek Polacek <polacek@redhat.com>
7464 * match.pd ((x + y) - (x | y) -> x & y,
7465 (x + y) - (x & y) -> x | y): New patterns.
7467 2015-06-23 Ludovic Courtès <ludo@gnu.org>
7470 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
7471 '-dynamic-linker' within %{!shared: ...}.
7473 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
7476 * config/i386/predicates.md (addsub_vm_operator): New predicate.
7477 (addsub_vs_operator): Ditto.
7478 (addsub_vs_parallel): Ditto.
7479 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
7480 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
7481 Put minus RTX before plus and adjust vec_merge selector.
7482 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
7483 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
7484 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
7485 (addsub vec_merge splitters): New combiner splitters.
7486 (addsub vec_select/vec_concat splitters): Ditto.
7488 2015-06-23 Bin Cheng <bin.cheng@arm.com>
7490 PR tree-optimization/66449
7491 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
7492 POINTER_PLUS_EXPR for pointers.
7494 2015-06-23 Alan Modra <amodra@gmail.com>
7496 * rtlanal.c (commutative_operand_precedence): Correct comments.
7497 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
7498 declaration. Return an int. Distinguish REG,REG return from
7500 (struct simplify_plus_minus_op_data): Make local to function.
7501 (simplify_plus_minus): Don't set canonicalized if merely sorting
7502 registers. Avoid packing ops if nothing changes. White space fixes.
7504 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
7506 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
7507 -fdump-ada-spec is passed but not if -fsyntax-only is.
7509 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
7512 * lra-lives.c (process_bb_lives): Check insn copying the same
7513 reload pseudo and don't create a copy for it.
7515 2015-06-22 Tom de Vries <tom@codesourcery.com>
7517 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
7520 2015-06-22 Tom de Vries <tom@codesourcery.com>
7522 * builtins.def (DEF_GOMP_BUILTIN): Test
7523 'flag_tree_parallelize_loops > 1' instead of
7524 'flag_tree_parallelize_loops'. Test flag_cilkplus.
7526 2015-06-22 Tom de Vries <tom@codesourcery.com>
7528 * dominance.c (calculate_dominance_info): Verify dominators if
7531 2015-06-22 Marek Polacek <polacek@redhat.com>
7533 * match.pd ((x ^ y) ^ (x | y) -> x & y,
7534 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
7535 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
7536 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
7538 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
7541 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
7542 cost of embedded comparison.
7544 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7547 * config/rs6000/predicates.md (altivec_register_operand): Permit
7548 virtual stack registers.
7549 (vsx_register_operand): Likewise.
7550 (vfloat_operand): Likewise.
7551 (vint_operand): Likewise.
7552 (vlogical_operand): Likewise.
7554 2015-06-22 Richard Biener <rguenther@suse.de>
7556 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
7557 and single_scalar_iteration_cost members.
7558 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
7559 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
7560 (vect_get_single_scalar_iteration_cost): Remove.
7561 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
7562 Use LOOP_VINFO_SCALAR_ITERATION_COST.
7563 * tree-vect-loop.c (destroy_loop_vec_info): Free
7565 (vect_get_single_scalar_iteration_cost): Compute result into
7566 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
7567 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
7568 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
7569 (vect_estimate_min_profitable_iters): Use them.
7571 2015-06-22 Christian Bruel <christian.bruel@st.com>
7574 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
7575 (TARGET_INSERT_ATTRIBUTES): Define.
7576 (thumb_flipper): New var.
7577 * config/arm/arm.opt (-mflip-thumb): New switch.
7579 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
7580 Martin Liska <mliska@suse.cz>
7583 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
7584 construction of arg_types.
7585 (sem_function::sem_function): Likewise.
7586 (sem_function::~sem_function): Remove destruction of arg_types.
7587 (sem_function::compatible_parm_types_p): New function.
7588 (sem_function::equals_wpa): Reorg matching of return values
7589 and parameter types.
7590 (sem_function::equals_private): Reorg mathcing of argument types.
7591 (sem_function::parse_tree_args): Remove.
7592 * ipa-icf.h (init_wpa): Do not call it.
7593 (parse_tree_args): Remove.
7594 (compatible_parm_types_p): Declare.
7595 (result_type): Remove.
7596 (arg_types): Remove.
7598 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
7601 * ipa-polymorphic-call.c
7602 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
7603 initializing alias oracle; fix formating; set base_alias_set if it
7606 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
7608 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
7609 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
7610 (find_inc): Likewise.
7611 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
7613 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
7614 * df-scan.c (df_swap_refs): Remove.
7615 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
7616 * dominance.c (link_roots): Use std::swap instead of manually swapping.
7617 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
7618 * fold-const.c (fold_relational_const): Likewise.
7619 * genattrtab.c (simplify_test_exp): Likewise.
7620 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
7621 gimple_simplify): Likewise.
7622 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
7623 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
7624 * ipa-devirt.c (add_type_duplicate): Likewise.
7625 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
7626 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
7627 * lra.c (lra_create_copy): Likewise.
7628 * lto-streamer-out.c (DFS::DFS): Likewise.
7629 * modulo-sched.c (get_sched_window): Likewise.
7630 * omega.c (omega_pretty_print_problem): Likewise.
7631 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
7632 * reload1.c (reloads_unique_chain_p): Likewise.
7633 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
7634 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
7636 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
7638 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
7639 predicate_mem_writes): Likewise.
7640 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
7641 * tree-predcom.c (combine_chains): Likewise.
7642 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
7643 refs_may_alias_p_1): Likewise.
7644 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
7645 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
7646 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
7647 number_of_iterations_cond): Likewise.
7648 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
7649 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
7650 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7651 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7652 * tree-vrp.c (extract_range_from_binary_expr_1,
7653 extract_range_from_unary_expr_1): Likewise.
7655 2015-06-20 Marek Polacek <polacek@redhat.com>
7657 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
7659 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
7662 * config/sh/sh.c (prepare_move_operands): Replace subreg
7663 index term with R0 for base and index addressing.
7665 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
7667 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
7669 (movsf_aarch64): Change condition from register_operand to
7670 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
7671 load1. Change type for alternative 7 to store1.
7672 (movdf_aarch64): Likewise.
7674 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
7676 * config/vax/vax.md: Adjust sign/zero extend patterns to
7677 handle SUBREGs in operands[1].
7679 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7681 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
7682 of manually swapping.
7683 (expand_vec_perm_interleave2): Likewise.
7685 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
7687 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
7688 reuse bounds created for abnormal ssa names.
7690 2015-06-19 Jakub Jelinek <jakub@redhat.com>
7692 * config/nvptx/nvptx.md (allocate_stack): Rename to...
7693 (allocate_stack_<mode>): ... this, and add :P on both
7694 match_operand and unspec.
7695 (allocate_stack): New expander.
7697 2015-06-19 Christian Bruel <christian.bruel@st.com>
7701 * config/arm/arm.c (arm_set_current_function): Handle
7702 explicit default options.
7704 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
7706 * config/i386/i386.md (*movsicc_noc_zext): New insn.
7707 (zero-extended cmove with mem peephole2): New pattern.
7708 (cmove with mem peephole2): Merge patterns.
7710 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
7712 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
7714 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
7716 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
7717 * config/mips/mips.md (*madd4<mode>): Ditto.
7718 (*nmadd3<mode>) Ditto.
7719 (*nmadd4<mode>_fastmath): Ditto.
7720 (*nmadd3<mode>_fastmath): Ditto.
7721 (*nmsub4<mode>): Ditto.
7722 (*nmsub3<mode>): Ditto.
7723 (*nmsub4<mode>_fastmath): Ditto.
7724 (*nmsub3<mode>_fastmath): Ditto.
7726 2015-06-18 Michael Matz <matz@suse.de>
7729 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
7730 grouped strided stores.
7731 (vectorizable_load): Don't use the DR from first_stmt in
7732 the non-SLP grouped strided case.
7734 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7737 * function.c (assign_bounds): Add arguments assign_regs,
7738 assign_special, assign_bt.
7739 (assign_parms): For vararg functions handle bounds in BT
7740 and special slots after incoming vararg bounds.
7742 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7745 * cfgexpand.c (expand_return): Handle missing bounds.
7746 (expand_gimple_stmt_1): Likewise.
7747 * tree-chkp.c (chkp_expand_zero_bounds): New.
7748 * tree-chkp.h (chkp_expand_zero_bounds): New.
7750 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7753 * ipa-chkp.c (chkp_maybe_create_clone): Require
7754 functions to be instrumentable.
7755 * tree-chkp.c (chkp_replace_function_pointer): Use
7756 chkp_instrumentable_p instead of attribute check.
7758 2015-06-18 Richard Biener <rguenther@suse.de>
7760 PR tree-optimization/66510
7761 * tree-vect-stmts.c (vectorizable_load): Properly compute the
7762 number of vector loads for SLP permuted loads.
7763 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
7764 check the stride for loop vectorization.
7765 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
7766 vectorization factor.
7767 (vect_analyze_group_access): If the group size is not a power
7768 of two require a epilogue loop.
7769 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
7770 compute and optimizing and alias test pruning after final
7771 vectorization factor computation.
7772 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
7774 (vect_transform_slp_perm_load): Properly compute the original
7775 number of vector load stmts.
7777 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
7779 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
7780 "unlikely character , in @var" warning.
7782 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
7784 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
7785 (ix86_function_arg_advance): Ditto.
7786 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
7788 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
7790 * function.h (struct rtl_data): Remove struct and accessor macros.
7791 * emit-rtl.h (struct rtl_data): Relocate to here.
7792 * Makefile.in (GTFILES): Add emit-rtl.h.
7793 * df-core.c: Include emit-rtl.h.
7794 * genattrtab.c: Likewise.
7795 * genconditions.c: Likewise.
7796 * genpreds.c: Likewise.
7797 * genrecog.c: Likewise.
7798 * regcprop.c: Likewise.
7799 * resource.c: Likewise.
7800 * sched-rgn.c: Likewise.
7801 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7802 * config/i386/winnt.c: Likewise.
7804 2015-06-17 Jakub Jelinek <jakub@redhat.com>
7807 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
7808 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
7809 and has_force_vectorize_loops flags from cfun into
7811 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
7812 if simduid is non-NULL.
7813 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
7814 * passes.def (pass_simduid_cleanup): Add new pass after loop
7816 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
7817 indirection from htab argument's type.
7818 (shrink_simd_arrays): New function.
7819 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
7820 Don't call adjust_simduid_builtins if there are no loops.
7821 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
7822 (pass_simduid_cleanup::execute): New method.
7823 (make_pass_simduid_cleanup): New function.
7825 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
7827 * tree-core.h (tree_target_option): Make opts field a pointer to a
7828 cl_target_option instead of an instance of the struct.
7829 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
7831 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
7833 (copy_node_stat): Allocate and copy struct cl_target_option.
7835 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
7837 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
7838 Remove conditional exposure of prototypes.
7839 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
7840 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
7841 definitions in tree.h with functions.
7842 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
7844 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
7846 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
7848 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
7849 (*cmp<mode>_signed): ... this.
7850 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
7851 (*cmp<mode>_unsigned): ... this. Remove %b.
7853 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
7855 * coretypes.h: Include input.h and as-a.h.
7856 * rtl.h: Include input.h and as-a.h for generator files.
7857 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
7858 * vec.c: Don't include diagnostic-core.h.
7859 * alias.c: Do not include input.h, line-map.h or is-a.h.
7861 * attribs.c: Likewise.
7862 * auto-inc-dec.c: Likewise.
7863 * auto-profile.c: Likewise.
7864 * bb-reorder.c: Likewise.
7865 * bt-load.c: Likewise.
7866 * builtins.c: Likewise.
7867 * caller-save.c: Likewise.
7868 * calls.c: Likewise.
7871 * cfganal.c: Likewise.
7872 * cfgbuild.c: Likewise.
7873 * cfgcleanup.c: Likewise.
7874 * cfgexpand.c: Likewise.
7875 * cfghooks.c: Likewise.
7876 * cfgloop.c: Likewise.
7877 * cfgloop.h: Likewise.
7878 * cfgloopanal.c: Likewise.
7879 * cfgloopmanip.c: Likewise.
7880 * cfgrtl.c: Likewise.
7881 * cgraph.c: Likewise.
7882 * cgraphbuild.c: Likewise.
7883 * cgraphclones.c: Likewise.
7884 * cgraphunit.c: Likewise.
7885 * cilk-common.c: Likewise.
7886 * combine-stack-adj.c: Likewise.
7887 * combine.c: Likewise.
7888 * compare-elim.c: Likewise.
7889 * convert.c: Likewise.
7890 * coverage.c: Likewise.
7891 * cppbuiltin.c: Likewise.
7892 * cprop.c: Likewise.
7894 * cselib.c: Likewise.
7895 * data-streamer-in.c: Likewise.
7896 * data-streamer-out.c: Likewise.
7897 * data-streamer.c: Likewise.
7898 * dbxout.c: Likewise.
7901 * debug.c: Likewise.
7902 * df-core.c: Likewise.
7903 * df-problems.c: Likewise.
7904 * df-scan.c: Likewise.
7907 * diagnostic-core.h: Likewise.
7908 * diagnostic.c: Likewise.
7909 * dojump.c: Likewise.
7910 * dominance.c: Likewise.
7911 * domwalk.c: Likewise.
7912 * double-int.c: Likewise.
7914 * dumpfile.c: Likewise.
7915 * dumpfile.h: Likewise.
7916 * dwarf2asm.c: Likewise.
7917 * dwarf2cfi.c: Likewise.
7918 * dwarf2out.c: Likewise.
7919 * emit-rtl.c: Likewise.
7920 * et-forest.c: Likewise.
7921 * except.c: Likewise.
7922 * explow.c: Likewise.
7923 * expmed.c: Likewise.
7925 * final.c: Likewise.
7926 * fixed-value.c: Likewise.
7927 * fold-const.c: Likewise.
7928 * function.c: Likewise.
7929 * fwprop.c: Likewise.
7930 * gcc-plugin.h: Likewise.
7932 * generic-match-head.c: Likewise.
7933 * ggc-page.c: Likewise.
7934 * gimple-builder.c: Likewise.
7935 * gimple-expr.c: Likewise.
7936 * gimple-fold.c: Likewise.
7937 * gimple-iterator.c: Likewise.
7938 * gimple-low.c: Likewise.
7939 * gimple-match-head.c: Likewise.
7940 * gimple-pretty-print.c: Likewise.
7941 * gimple-ssa-isolate-paths.c: Likewise.
7942 * gimple-ssa-strength-reduction.c: Likewise.
7943 * gimple-streamer-in.c: Likewise.
7944 * gimple-streamer-out.c: Likewise.
7945 * gimple-streamer.h: Likewise.
7946 * gimple-walk.c: Likewise.
7947 * gimple.c: Likewise.
7948 * gimplify-me.c: Likewise.
7949 * gimplify.c: Likewise.
7950 * godump.c: Likewise.
7951 * graph.c: Likewise.
7952 * graphite-blocking.c: Likewise.
7953 * graphite-dependences.c: Likewise.
7954 * graphite-interchange.c: Likewise.
7955 * graphite-isl-ast-to-gimple.c: Likewise.
7956 * graphite-optimize-isl.c: Likewise.
7957 * graphite-poly.c: Likewise.
7958 * graphite-scop-detection.c: Likewise.
7959 * graphite-sese-to-poly.c: Likewise.
7960 * graphite.c: Likewise.
7961 * haifa-sched.c: Likewise.
7962 * hw-doloop.c: Likewise.
7963 * ifcvt.c: Likewise.
7964 * init-regs.c: Likewise.
7965 * input.c: Likewise.
7966 * internal-fn.c: Likewise.
7967 * ipa-chkp.c: Likewise.
7968 * ipa-comdats.c: Likewise.
7969 * ipa-cp.c: Likewise.
7970 * ipa-devirt.c: Likewise.
7971 * ipa-icf-gimple.c: Likewise.
7972 * ipa-icf.c: Likewise.
7973 * ipa-inline-analysis.c: Likewise.
7974 * ipa-inline-transform.c: Likewise.
7975 * ipa-inline.c: Likewise.
7976 * ipa-polymorphic-call.c: Likewise.
7977 * ipa-profile.c: Likewise.
7978 * ipa-prop.c: Likewise.
7979 * ipa-pure-const.c: Likewise.
7980 * ipa-ref.c: Likewise.
7981 * ipa-reference.c: Likewise.
7982 * ipa-split.c: Likewise.
7983 * ipa-utils.c: Likewise.
7984 * ipa-visibility.c: Likewise.
7986 * ira-build.c: Likewise.
7987 * ira-color.c: Likewise.
7988 * ira-conflicts.c: Likewise.
7989 * ira-costs.c: Likewise.
7990 * ira-emit.c: Likewise.
7991 * ira-lives.c: Likewise.
7994 * langhooks.c: Likewise.
7996 * loop-doloop.c: Likewise.
7997 * loop-init.c: Likewise.
7998 * loop-invariant.c: Likewise.
7999 * loop-iv.c: Likewise.
8000 * loop-unroll.c: Likewise.
8001 * lower-subreg.c: Likewise.
8002 * lra-assigns.c: Likewise.
8003 * lra-coalesce.c: Likewise.
8004 * lra-constraints.c: Likewise.
8005 * lra-eliminations.c: Likewise.
8006 * lra-lives.c: Likewise.
8007 * lra-remat.c: Likewise.
8008 * lra-spills.c: Likewise.
8010 * lto-cgraph.c: Likewise.
8011 * lto-compress.c: Likewise.
8012 * lto-opts.c: Likewise.
8013 * lto-section-in.c: Likewise.
8014 * lto-section-out.c: Likewise.
8015 * lto-streamer-in.c: Likewise.
8016 * lto-streamer-out.c: Likewise.
8017 * lto-streamer.c: Likewise.
8019 * mode-switching.c: Likewise.
8020 * modulo-sched.c: Likewise.
8021 * omega.c: Likewise.
8022 * omp-low.c: Likewise.
8023 * optabs.c: Likewise.
8024 * opts-global.c: Likewise.
8026 * passes.c: Likewise.
8027 * plugin.c: Likewise.
8028 * postreload-gcse.c: Likewise.
8029 * postreload.c: Likewise.
8030 * predict.c: Likewise.
8031 * pretty-print.h: Likewise.
8032 * print-rtl.c: Likewise.
8033 * print-tree.c: Likewise.
8034 * profile.c: Likewise.
8036 * realmpfr.c: Likewise.
8037 * recog.c: Likewise.
8039 * reg-stack.c: Likewise.
8040 * regcprop.c: Likewise.
8041 * reginfo.c: Likewise.
8042 * regrename.c: Likewise.
8043 * regstat.c: Likewise.
8044 * reload.c: Likewise.
8045 * reload1.c: Likewise.
8046 * reorg.c: Likewise.
8047 * resource.c: Likewise.
8048 * rtl-chkp.c: Likewise.
8049 * rtl-error.c: Likewise.
8050 * rtlanal.c: Likewise.
8051 * rtlhooks.c: Likewise.
8052 * sanopt.c: Likewise.
8053 * sched-deps.c: Likewise.
8054 * sched-ebb.c: Likewise.
8055 * sched-rgn.c: Likewise.
8056 * sched-vis.c: Likewise.
8057 * sdbout.c: Likewise.
8058 * sel-sched-dump.c: Likewise.
8059 * sel-sched-ir.c: Likewise.
8060 * sel-sched.c: Likewise.
8062 * shrink-wrap.c: Likewise.
8063 * simplify-rtx.c: Likewise.
8064 * stack-ptr-mod.c: Likewise.
8065 * statistics.c: Likewise.
8067 * stor-layout.c: Likewise.
8068 * store-motion.c: Likewise.
8069 * streamer-hooks.c: Likewise.
8070 * stringpool.c: Likewise.
8071 * symtab.c: Likewise.
8072 * target-globals.c: Likewise.
8073 * targhooks.c: Likewise.
8074 * toplev.c: Likewise.
8075 * tracer.c: Likewise.
8076 * trans-mem.c: Likewise.
8077 * tree-affine.c: Likewise.
8078 * tree-browser.c: Likewise.
8079 * tree-call-cdce.c: Likewise.
8080 * tree-cfg.c: Likewise.
8081 * tree-cfgcleanup.c: Likewise.
8082 * tree-chkp-opt.c: Likewise.
8083 * tree-chkp.c: Likewise.
8084 * tree-chrec.c: Likewise.
8085 * tree-complex.c: Likewise.
8086 * tree-data-ref.c: Likewise.
8087 * tree-dfa.c: Likewise.
8088 * tree-diagnostic.c: Likewise.
8089 * tree-dump.c: Likewise.
8090 * tree-eh.c: Likewise.
8091 * tree-emutls.c: Likewise.
8092 * tree-if-conv.c: Likewise.
8093 * tree-inline.c: Likewise.
8094 * tree-into-ssa.c: Likewise.
8095 * tree-iterator.c: Likewise.
8096 * tree-loop-distribution.c: Likewise.
8097 * tree-nested.c: Likewise.
8098 * tree-nrv.c: Likewise.
8099 * tree-object-size.c: Likewise.
8100 * tree-outof-ssa.c: Likewise.
8101 * tree-parloops.c: Likewise.
8102 * tree-phinodes.c: Likewise.
8103 * tree-predcom.c: Likewise.
8104 * tree-pretty-print.c: Likewise.
8105 * tree-profile.c: Likewise.
8106 * tree-scalar-evolution.c: Likewise.
8107 * tree-sra.c: Likewise.
8108 * tree-ssa-address.c: Likewise.
8109 * tree-ssa-alias.c: Likewise.
8110 * tree-ssa-ccp.c: Likewise.
8111 * tree-ssa-coalesce.c: Likewise.
8112 * tree-ssa-copy.c: Likewise.
8113 * tree-ssa-copyrename.c: Likewise.
8114 * tree-ssa-dce.c: Likewise.
8115 * tree-ssa-dom.c: Likewise.
8116 * tree-ssa-dse.c: Likewise.
8117 * tree-ssa-forwprop.c: Likewise.
8118 * tree-ssa-ifcombine.c: Likewise.
8119 * tree-ssa-live.c: Likewise.
8120 * tree-ssa-loop-ch.c: Likewise.
8121 * tree-ssa-loop-im.c: Likewise.
8122 * tree-ssa-loop-ivcanon.c: Likewise.
8123 * tree-ssa-loop-ivopts.c: Likewise.
8124 * tree-ssa-loop-manip.c: Likewise.
8125 * tree-ssa-loop-niter.c: Likewise.
8126 * tree-ssa-loop-prefetch.c: Likewise.
8127 * tree-ssa-loop-unswitch.c: Likewise.
8128 * tree-ssa-loop.c: Likewise.
8129 * tree-ssa-math-opts.c: Likewise.
8130 * tree-ssa-operands.c: Likewise.
8131 * tree-ssa-phiopt.c: Likewise.
8132 * tree-ssa-phiprop.c: Likewise.
8133 * tree-ssa-pre.c: Likewise.
8134 * tree-ssa-propagate.c: Likewise.
8135 * tree-ssa-reassoc.c: Likewise.
8136 * tree-ssa-sccvn.c: Likewise.
8137 * tree-ssa-scopedtables.c: Likewise.
8138 * tree-ssa-sink.c: Likewise.
8139 * tree-ssa-strlen.c: Likewise.
8140 * tree-ssa-structalias.c: Likewise.
8141 * tree-ssa-tail-merge.c: Likewise.
8142 * tree-ssa-ter.c: Likewise.
8143 * tree-ssa-threadedge.c: Likewise.
8144 * tree-ssa-threadupdate.c: Likewise.
8145 * tree-ssa-uncprop.c: Likewise.
8146 * tree-ssa-uninit.c: Likewise.
8147 * tree-ssa.c: Likewise.
8148 * tree-ssanames.c: Likewise.
8149 * tree-stdarg.c: Likewise.
8150 * tree-streamer-in.c: Likewise.
8151 * tree-streamer-out.c: Likewise.
8152 * tree-streamer.c: Likewise.
8153 * tree-switch-conversion.c: Likewise.
8154 * tree-tailcall.c: Likewise.
8155 * tree-vect-data-refs.c: Likewise.
8156 * tree-vect-generic.c: Likewise.
8157 * tree-vect-loop-manip.c: Likewise.
8158 * tree-vect-loop.c: Likewise.
8159 * tree-vect-patterns.c: Likewise.
8160 * tree-vect-slp.c: Likewise.
8161 * tree-vect-stmts.c: Likewise.
8162 * tree-vectorizer.c: Likewise.
8163 * tree-vrp.c: Likewise.
8166 * ubsan.c: Likewise.
8167 * valtrack.c: Likewise.
8168 * value-prof.c: Likewise.
8169 * var-tracking.c: Likewise.
8170 * varasm.c: Likewise.
8171 * varpool.c: Likewise.
8172 * vmsdbgout.c: Likewise.
8173 * vtable-verify.c: Likewise.
8175 * wide-int.cc: Likewise.
8176 * xcoffout.c: Likewise.
8177 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
8178 * common/common-targhooks.c: Likewise.
8179 * config/aarch64/aarch64-builtins.c: Likewise.
8180 * config/aarch64/aarch64.c: Likewise.
8181 * config/alpha/alpha.c: Likewise.
8182 * config/arc/arc.c: Likewise.
8183 * config/arm/aarch-common.c: Likewise.
8184 * config/arm/arm-builtins.c: Likewise.
8185 * config/arm/arm-c.c: Likewise.
8186 * config/arm/arm.c: Likewise.
8187 * config/avr/avr-c.c: Likewise.
8188 * config/avr/avr-log.c: Likewise.
8189 * config/avr/avr.c: Likewise.
8190 * config/bfin/bfin.c: Likewise.
8191 * config/c6x/c6x.c: Likewise.
8192 * config/cr16/cr16.c: Likewise.
8193 * config/cris/cris.c: Likewise.
8194 * config/darwin-c.c: Likewise.
8195 * config/darwin.c: Likewise.
8196 * config/default-c.c: Likewise.
8197 * config/epiphany/epiphany.c: Likewise.
8198 * config/epiphany/mode-switch-use.c: Likewise.
8199 * config/epiphany/resolve-sw-modes.c: Likewise.
8200 * config/fr30/fr30.c: Likewise.
8201 * config/frv/frv.c: Likewise.
8202 * config/ft32/ft32.c: Likewise.
8203 * config/glibc-c.c: Likewise.
8204 * config/h8300/h8300.c: Likewise.
8205 * config/i386/i386-c.c: Likewise.
8206 * config/i386/i386.c: Likewise.
8207 * config/i386/msformat-c.c: Likewise.
8208 * config/i386/winnt-cxx.c: Likewise.
8209 * config/i386/winnt-stubs.c: Likewise.
8210 * config/i386/winnt.c: Likewise.
8211 * config/ia64/ia64-c.c: Likewise.
8212 * config/ia64/ia64.c: Likewise.
8213 * config/iq2000/iq2000.c: Likewise.
8214 * config/lm32/lm32.c: Likewise.
8215 * config/m32c/m32c-pragma.c: Likewise.
8216 * config/m32c/m32c.c: Likewise.
8217 * config/m32r/m32r.c: Likewise.
8218 * config/m68k/m68k.c: Likewise.
8219 * config/mcore/mcore.c: Likewise.
8220 * config/mep/mep-pragma.c: Likewise.
8221 * config/mep/mep.c: Likewise.
8222 * config/microblaze/microblaze-c.c: Likewise.
8223 * config/microblaze/microblaze.c: Likewise.
8224 * config/mips/mips.c: Likewise.
8225 * config/mmix/mmix.c: Likewise.
8226 * config/mn10300/mn10300.c: Likewise.
8227 * config/moxie/moxie.c: Likewise.
8228 * config/msp430/msp430-c.c: Likewise.
8229 * config/msp430/msp430.c: Likewise.
8230 * config/nds32/nds32-cost.c: Likewise.
8231 * config/nds32/nds32-fp-as-gp.c: Likewise.
8232 * config/nds32/nds32-intrinsic.c: Likewise.
8233 * config/nds32/nds32-isr.c: Likewise.
8234 * config/nds32/nds32-md-auxiliary.c: Likewise.
8235 * config/nds32/nds32-memory-manipulation.c: Likewise.
8236 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8237 * config/nds32/nds32-predicates.c: Likewise.
8238 * config/nds32/nds32.c: Likewise.
8239 * config/nios2/nios2.c: Likewise.
8240 * config/nvptx/nvptx.c: Likewise.
8241 * config/pa/pa.c: Likewise.
8242 * config/pdp11/pdp11.c: Likewise.
8243 * config/rl78/rl78-c.c: Likewise.
8244 * config/rl78/rl78.c: Likewise.
8245 * config/rs6000/rs6000-c.c: Likewise.
8246 * config/rs6000/rs6000.c: Likewise.
8247 * config/rx/rx.c: Likewise.
8248 * config/s390/s390-c.c: Likewise.
8249 * config/s390/s390.c: Likewise.
8250 * config/sh/sh-c.c: Likewise.
8251 * config/sh/sh-mem.cc: Likewise.
8252 * config/sh/sh.c: Likewise.
8253 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8254 * config/sh/sh_treg_combine.cc: Likewise.
8255 * config/sol2-c.c: Likewise.
8256 * config/sol2-cxx.c: Likewise.
8257 * config/sol2-stubs.c: Likewise.
8258 * config/sol2.c: Likewise.
8259 * config/sparc/sparc-c.c: Likewise.
8260 * config/sparc/sparc.c: Likewise.
8261 * config/spu/spu-c.c: Likewise.
8262 * config/spu/spu.c: Likewise.
8263 * config/stormy16/stormy16.c: Likewise.
8264 * config/tilegx/mul-tables.c: Likewise.
8265 * config/tilegx/tilegx-c.c: Likewise.
8266 * config/tilegx/tilegx.c: Likewise.
8267 * config/tilepro/mul-tables.c: Likewise.
8268 * config/tilepro/tilepro-c.c: Likewise.
8269 * config/tilepro/tilepro.c: Likewise.
8270 * config/v850/v850-c.c: Likewise.
8271 * config/v850/v850.c: Likewise.
8272 * config/vax/vax.c: Likewise.
8273 * config/visium/visium.c: Likewise.
8274 * config/vms/vms-c.c: Likewise.
8275 * config/vms/vms.c: Likewise.
8276 * config/vxworks.c: Likewise.
8277 * config/winnt-c.c: Likewise.
8278 * config/xtensa/xtensa.c: Likewise.
8280 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
8282 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
8284 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
8286 2015-06-17 Richard Biener <rguenther@suse.de>
8288 PR tree-optimization/66251
8289 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
8290 stmts for SLP strided stores.
8293 2015-05-22 Richard Biener <rguenther@suse.de>
8295 PR tree-optimization/66251
8296 * tree-vect-stmts.c (vectorizable_conversion): Properly
8297 set STMT_VINFO_VEC_STMT even for the SLP case.
8299 2015-05-26 Michael Matz <matz@suse.de>
8302 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
8303 STMT_VINFO_VEC_STMT, also with SLP.
8305 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
8308 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
8309 (*avx_addsubv4df3_1s): Ditto.
8310 (*sse3_addsubv2df3_1): Ditto.
8311 (*sse3_addsubv2df3_1s): Ditto.
8312 (*avx_addsubv8sf3_1): Ditto.
8313 (*avx_addsubv8sf3_1s): Ditto.
8314 (*sse3_addsubv4sf3_1): Ditto.
8315 (*sse3_addsubv4sf3_1s): Ditto.
8317 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
8319 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
8320 (SYSROOT_SUFFIX_SPEC): Update.
8321 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
8322 (STARTFILE_PREFIX_SPEC): Update.
8323 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
8324 (MULTILIB_REQUIRED): New.
8325 (MULTILIB_OSDIRNAMES): New.
8326 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
8327 (MULTILIB_REQUIRED): New.
8328 (MULTILIB_OSDIRNAMES): New.
8330 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
8332 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
8333 * config/aarch64/aarch64-options-extensions.def: Update "fP",
8334 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
8335 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
8336 (AARCH64_FL_PAN): New.
8337 (AARCH64_FL_LOR): New.
8338 (AARCH64_FL_RDMA): New.
8339 (AARCH64_FL_FOR_ARCH8_1): New.
8340 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
8341 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
8343 2015-06-16 Martin Liska <mliska@suse.cz>
8345 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
8346 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
8349 2015-06-16 Richard Biener <rguenther@suse.de>
8351 * tree-vect-stmts.c (vectorizable_store): Adjust.
8352 (vectorizable_load): Likewise.
8353 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8355 (vect_create_data_ref_ptr): Likewise.
8356 (bump_vector_ptr): Adjust.
8358 2015-06-16 Richard Biener <rguenther@suse.de>
8360 * tree-vect-stmts.c (vectorizable_load): Properly start loads
8361 with the first element if this is grouped loads.
8363 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
8365 * config/arm/arm-protos.h (struct tune_params): Rename
8366 log_op_non_sc to log_op_non_short_circuit, and rename enum
8367 values to expand SC to SHORT_CIRCUIT.
8368 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
8369 to LOG_OP_NON_SHORT_CIRCUIT.
8370 (arm_fastmul_tune):Likewise
8371 (arm_strongarm_tune): Likewise.
8372 (arm_xscale_tune): Likewise.
8373 (arm_9e_tune): Likewise.
8374 (arm_marvell_pj4_tune): Likewise.
8375 (arm_v6t2_tune): Likewise.
8376 (arm_cortex_tune): Likewise.
8377 (arm_cortex_a8_tune): Likewise.
8378 (arm_cortex_a7_tune): Likewise.
8379 (arm_cortex_a15_tune): Likewise.
8380 (arm_cortex_a53_tune): Likewise.
8381 (arm_cortex_a57_tune): Likewise.
8382 (arm_xgene1_tune): Likewise.
8383 (arm_cortex_a5_tune): Likewise.
8384 (arm_cortex_a9_tune): Likewise.
8385 (arm_cortex_a12_tune): Likewise.
8386 (arm_v7m_tune): Likewise.
8387 (arm_cortex_m7_tune): Likewise.
8388 (arm_v6m_tune): Likewise.
8389 (arm_fa726te_tune): Likewise.
8391 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
8393 * altivec.md: Delete UNSPEC_VMLADDUHM.
8394 (mulv4si3_p8): New pattern.
8395 (mulv4si3): Use it for POWER8.
8396 (mulv8hi3): Use vmladduhm with zero addend.
8397 (altivec_vmladduhm): Descriptive RTL.
8399 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
8401 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
8402 to use neon_move instead of mov_imm.
8403 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
8404 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
8406 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
8407 aarch64_float_const_zero_rtx_p check before TFmode check.
8408 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
8410 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
8411 code and attributes to match. Change condition from register_operand
8412 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
8413 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
8416 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
8419 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
8422 2015-06-14 Shiva Chen <shiva0217@gmail.com>
8424 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
8425 HOST_WIDE_INT parameter.
8427 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
8430 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
8431 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
8433 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8435 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
8437 * rtl.h (classify_insn): Declare.
8438 * emit-rtl.c (classify_insn): Move to...
8439 * rtl.c: ...here and add generator support.
8440 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
8441 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
8442 * genemit.c (gen_emit_seq): New function.
8443 (gen_expand, gen_split): Use it.
8445 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
8447 * tree.c (make_vector_stat): Fix comment to state that the
8448 function returns a VECTOR_CST.
8450 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
8452 * gensupport.h (add_implicit_parallel): Declare.
8453 * genrecog.c (add_implicit_parallel): Move to...
8454 * gensupport.c (add_implicit_parallel): ...here.
8455 (process_one_cond_exec): Use it.
8456 * genemit.c (gen_insn): Likewise.
8458 2015-06-13 Iain Sandoe <iain@codesourcery.com>
8461 * passes.c (rest_of_decl_compilation): Do not register globals for
8462 early debug if they are declared in built-ins.
8464 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
8466 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
8468 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8470 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
8472 (noce_try_cmove_arith): Likewise.
8473 (noce_get_alt_condition): Likewise.
8475 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8477 * common/config/i386/i386-common.c
8478 (OPTION_MASK_ISA_MWAITX_SET): New.
8479 (ix86_handle_option): Handle mwaitx.
8480 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
8481 (x86_64-*-*): Likewise.
8482 * config/i386/mwaitxintrin.h: New header.
8483 * config/i386/cpuid.h (bit_MWAITX): Define.
8484 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8486 * config/i386/i386.opt (mwaitx): New.
8487 * config/i386/i386-builtin-types.def
8488 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
8489 * config/i386/i386-c.c: Define __MWAITX__ if needed.
8490 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
8492 (ix86_option_override_internal): Handle new option.
8493 (processor_alias_table): Added PTA_MWAITX.
8494 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
8495 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
8496 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
8497 IX86_BUILTIN_MONITORX built-ins.
8498 * config/i386/i386.h (TARGET_MWAITX): New.
8499 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
8501 (mwaitx): New pattern.
8502 (monitorx_<mode>): New pattern.
8503 * config/i386/x86intrin.h: Include mwaitxintrin.h.
8504 * doc/extend.texi: Document monitorx and mwaitx builtins.
8505 * doc/invoke.texi: Document -mmwaitx option.
8507 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
8509 * emit-rtl.c (need_atomic_barrier_p): Mask model with
8510 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
8512 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
8514 * dbxout.c (xcoff_debug_hooks): Provide a function for
8515 register_main_translation_unit hook.
8517 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
8519 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
8520 variants cases from switch.
8521 (rs6000_post_atomic_barrier): Same.
8522 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
8523 (rs6000_expand_atomic_exchange): Same.
8524 (rs6000_expand_atomic_op): Same.
8525 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
8526 SYNC variants cases from switch.
8527 (atomic_load): Same.
8528 (atomic_store): Same.
8530 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
8532 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
8535 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
8538 * dwarf2out.c (check_die): Check for common duplicate attributes.
8539 (add_location_or_const_value_attribute): Do not add duplicate
8541 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
8543 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
8544 (gen_type_die_with_usage): Call check_die.
8545 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
8547 2015-06-11 Jason Merrill <jason@redhat.com>
8549 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
8552 2015-06-11 Marek Polacek <polacek@redhat.com>
8554 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
8556 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
8559 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
8560 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
8561 (*addx_extend_sp32): Fix pasto.
8562 (*subx_extend): Rename into...
8563 (*subx_extend_sp32): ...this.
8564 (*adddi3_extend_sp32): Add earlyclobber.
8565 (*subdi3_insn_sp32): Likewise.
8566 (*subdi3_extend_sp32): Likewise.
8567 (*and_not_di_sp32): Likewise.
8568 (*or_not_di_sp32): Likewise.
8569 (*xor_not_di_sp32): Likewise.
8570 (*negdi2_sp32): Likewise.
8571 (*one_cmpldi2_sp32): Likewise.
8573 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
8575 * debug.h (struct gcc_debug_hooks): Add a
8576 register_main_translation_unit hook.
8577 * debug.c (do_nothing_debug_hooks): Provide a function for this
8579 * dbxout.c (dbx_debug_hooks): Likewise.
8580 * sdbout.c (sdb_debug_hooks): Likewise.
8581 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8582 * dwarf2out.c (main_translation_unit): New global variable.
8583 (dwarf2out_register_main_translation_unit): New function
8584 implementing the new hook.
8585 (dwarf2_debug_hooks): Assign
8586 dwarf2out_register_main_translation_unit to this new hook.
8587 (dwarf2out_init): Associate any main translation unit to
8590 2015-06-11 Marek Polacek <polacek@redhat.com>
8592 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
8594 2015-06-11 Marek Polacek <polacek@redhat.com>
8596 * match.pd: Use single_use throughout.
8598 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8600 * config/arm/arm.c (arm_option_params_internal): When optimising
8601 for speed set max_insns_skipped when arm_restrict_it.
8603 2015-06-11 Christian Bruel <christian.bruel@st.com>
8606 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
8608 (arm_cpu_builtins): New function.
8609 (arm_pragma_target_parse): Call arm_cpu_builtins.
8610 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
8611 (arm_register_target_pragmas): Likewise.
8612 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
8613 Call arm_register_target_pragmas.
8614 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
8615 (arm_pragma_target_parse): Likewise.
8617 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
8619 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
8620 of the second operand.
8622 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
8625 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
8626 to prepare mask operand for AVX512 modes.
8628 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
8631 * doc/md.texi (Machine Constraints): Document that on the PowerPC
8632 if you use a constraint that targets a VSX register, you must use
8633 %x<n> in the template.
8635 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
8637 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
8638 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
8639 (define_insn "trap"): New definition.
8641 2015-06-10 Richard Biener <rguenther@suse.de>
8643 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
8645 (vect_supported_load_permutation_p): ... here. Handle
8646 supportable permutations in reductions.
8647 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
8648 for vectorizing strided group loads.
8650 2015-06-10 Jakub Jelinek <jakub@redhat.com>
8653 * config/i386/i386.c (ix86_split_long_move): For collisions
8654 involving direct tls segment refs, move the UNSPEC_TP possibly
8655 wrapped in ZERO_EXTEND out of the address for lea, to each of
8658 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8660 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
8661 dmb sy. Adjust tabs.
8663 2015-06-10 Tom de Vries <tom@codesourcery.com>
8665 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
8667 2015-06-10 Martin Liska <mliska@suse.cz>
8670 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
8671 all enum values in mem_alloc_origin.
8672 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
8674 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
8675 * bitmap.c (bitmap_register): Likewise.
8676 (dump_bitmap_statistics): Likewise.
8677 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
8678 (ggc_record_overhead): Likewise.
8679 * hash-map.h: Likewise.
8680 * hash-set.h: Likewise.
8681 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
8682 * hash-table.h: Likewise.
8683 * vec.c (vec_prefix::register_overhead): Likewise.
8684 (vec_prefix::release_overhead): Likewise.
8685 (dump_vec_loc_statistics): Likewise.
8687 2015-06-09 Christian Bruel <christian.bruel@st.com>
8690 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
8691 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
8692 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
8693 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
8694 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
8695 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
8696 (arm_valid_target_attribute_p): Likewise.
8697 (arm_set_current_function, arm_can_inline_p): Likewise.
8698 (arm_valid_target_attribute_rec): Likewise.
8699 (arm_previous_fndecl): New variable.
8700 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
8701 (TARGET_CAN_INLINE_P): Define.
8702 (arm_asm_trampoline_template): Emit mode.
8703 (arm_file_start): Don't set unified syntax.
8704 (arm_declare_function_name): Set unified syntax and mode.
8705 (arm_option_override): Init target_option_default_node.
8706 and target_option_current_node.
8707 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
8708 (*call_symbol): Likewise.
8709 * doc/extend.texi: Document ARM/Thumb target attribute.
8710 * doc/invoke.texi: Likewise.
8712 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8715 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8716 PR rtl-optimization/64164
8717 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8718 * tree-ssa-copyrename.c: Removed.
8719 * opts.c (default_options_table): Drop -ftree-copyrename. Add
8720 -ftree-coalesce-vars.
8721 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8722 * common.opt (ftree-copyrename): Ignore.
8723 (ftree-coalesce-inlined-vars): Likewise.
8724 * doc/invoke.texi: Remove the ignored options above.
8725 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8726 * tree-ssa-coalesce.h: ... here.
8727 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8728 headers required by it.
8729 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8730 across variables when flag_tree_coalesce_vars. Check register
8731 use and promoted modes to allow coalescing. Moved to
8732 tree-ssa-coalesce.c.
8733 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8734 with its member functions to tree-ssa-coalesce.c.
8735 (var_map_base_init): Likewise. Renamed to
8736 compute_samebase_partition_bases.
8737 (partition_view_normal): Drop want_bases parameter.
8738 (partition_view_bitmap): Likewise.
8739 * tree-ssa-live.h: Adjust declarations.
8740 * tree-ssa-coalesce.c: Include explow.h.
8741 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8742 default defs at the entry point.
8743 (dump_part_var_map): New.
8744 (compute_optimized_partition_bases): New, called by...
8745 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8746 of compute_samebase_partition_bases. Adjust.
8747 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8748 * cfgexpand.c (leader_merge): New.
8749 (get_rtl_for_parm_ssa_default_def): New.
8750 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8751 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8752 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
8753 redundant MEM attr setting.
8754 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
8756 (expand_one_stack_var): ... this. New wrapper to check and
8757 skip already expanded SSA partitions.
8758 (record_alignment_for_reg_var): New, factored out of...
8759 (expand_one_var): ... this.
8760 (expand_one_ssa_partition): New.
8761 (adjust_one_expanded_partition_var): New.
8762 (expand_one_register_var): Check and skip already expanded SSA
8764 (expand_used_vars): Don't create DECLs for anonymous SSA
8765 names. Expand all SSA partitions, then adjust all SSA names.
8766 (pass::execute): Replace the loops that set
8767 SA.partition_to_pseudo from partition leaders and cleared
8768 DECL_RTL for multi-location variables, and that which used to
8769 rename vars and set attrs, with one that clears DECL_RTL and
8770 checks that PARMs and RESULTs default_defs match DECL_RTL.
8771 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8772 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
8773 * explow.c (promote_ssa_mode): New.
8774 * explow.h (promote_ssa_mode): Declare.
8775 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8776 * function.c: Include cfgexpand.h.
8777 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8778 (use_register_for_parm_decl): Wrapper for the above to
8779 special-case the result_ptr.
8780 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8781 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8783 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8784 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
8785 (assign_parm_setup_block): Prefer SSA-assigned location.
8786 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
8787 if stack_parm is NULL.
8788 (assign_parm_setup_stack): Prefer SSA-assigned location.
8789 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
8790 rtl before testing for pointer bounds. Special-case result_ptr.
8791 (expand_function_start): Maybe reset DECL_RTL of result.
8792 Prefer SSA-assigned location for result and static chain.
8793 Factor out DECL_RESULT and SET_DECL_RTL.
8794 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8795 anonymous SSA names. Use promote_ssa_mode.
8796 (get_temp_reg): Likewise.
8797 (remove_ssa_form): Adjust.
8798 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8799 and get its reg_usage for reg invalidation.
8800 (compute_bb_dataflow): Pass it insn.
8801 (emit_notes_in_bb): Likewise.
8802 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
8803 fail assert on conversion between unsigned types.
8805 2015-06-09 Tom de Vries <tom@codesourcery.com>
8807 PR tree-optimization/65460
8808 * omp-low.c (expand_omp_target): Set parallelized_function on
8809 cgraph_node for child_fn.
8811 2015-06-09 Tom de Vries <tom@codesourcery.com>
8813 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
8814 parallelized_function before add_new_function.
8816 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
8818 * gcc-plugin.h: Move decls to plugin.h and include it.
8819 * plugin.h: Relocate decls from gcc-plugin.h
8820 * ggc-page.c: Include required header files.
8821 * passes.c: Likewise.
8822 * cgraphunit.c: Likewise.
8824 2015-06-09 Tom de Vries <tom@codesourcery.com>
8826 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
8828 2015-06-09 Jason Merrill <jason@redhat.com>
8831 * toplev.c (check_global_declaration): Don't warn about a clone.
8833 2015-06-09 Marek Polacek <polacek@redhat.com>
8835 PR tree-optimization/66299
8836 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
8837 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
8840 2015-06-09 Richard Biener <rguenther@suse.de>
8842 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
8843 (vect_analyze_slp_instance): Instead do not falsely drop
8846 2015-06-09 Richard Biener <rguenther@suse.de>
8849 * match.pd: Handle A % (unsigned)(1 << B).
8851 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
8853 * varasm.c (output_object_block_htab): Remove.
8854 (output_object_block_compare): New.
8855 (output_object_blocks): Sort named object_blocks before outputting
8858 2015-06-09 Richard Biener <rguenther@suse.de>
8860 PR tree-optimization/66419
8861 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
8862 consider GROUP_GAP when detecting a perfect subchain.
8864 2015-06-09 Nick Clifton <nickc@redhat.com>
8866 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
8867 place read only data in the .frodata section.
8869 2015-06-09 Shiva Chen <shiva0217@gmail.com>
8871 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
8872 (atomic_store<mode>): Likewise.
8874 2015-06-09 Richard Biener <rguenther@suse.de>
8876 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
8878 2015-06-09 Richard Biener <rguenther@suse.de>
8881 * tree-inline.c (insert_init_debug_bind): Unshare value.
8883 2015-06-09 Richard Biener <rguenther@suse.de>
8885 PR tree-optimization/66396
8886 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
8887 Rename virtual operands.
8889 2015-06-09 Tom de Vries <tom@codesourcery.com>
8891 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
8892 always return false.
8894 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8896 PR rtl-optimization/64164
8897 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8898 * tree-ssa-copyrename.c: Removed.
8899 * opts.c (default_options_table): Drop -ftree-copyrename. Add
8900 -ftree-coalesce-vars.
8901 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8902 * common.opt (ftree-copyrename): Ignore.
8903 (ftree-coalesce-inlined-vars): Likewise.
8904 * doc/invoke.texi: Remove the ignored options above.
8905 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8906 * tree-ssa-coalesce.h: ... here.
8907 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8908 headers required by it.
8909 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8910 across variables when flag_tree_coalesce_vars. Check register
8911 use and promoted modes to allow coalescing. Moved to
8912 tree-ssa-coalesce.c.
8913 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8914 with its member functions to tree-ssa-coalesce.c.
8915 (var_map_base_init): Likewise. Renamed to
8916 compute_samebase_partition_bases.
8917 (partition_view_normal): Drop want_bases parameter.
8918 (partition_view_bitmap): Likewise.
8919 * tree-ssa-live.h: Adjust declarations.
8920 * tree-ssa-coalesce.c: Include explow.h.
8921 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8922 default defs at the entry point.
8923 (dump_part_var_map): New.
8924 (compute_optimized_partition_bases): New, called by...
8925 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8926 of compute_samebase_partition_bases. Adjust.
8927 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8928 * cfgexpand.c (leader_merge): New.
8929 (get_rtl_for_parm_ssa_default_def): New.
8930 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8931 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8932 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
8933 redundant MEM attr setting.
8934 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
8936 (expand_one_stack_var): ... this. New wrapper to check and
8937 skip already expanded SSA partitions.
8938 (record_alignment_for_reg_var): New, factored out of...
8939 (expand_one_var): ... this.
8940 (expand_one_ssa_partition): New.
8941 (adjust_one_expanded_partition_var): New.
8942 (expand_one_register_var): Check and skip already expanded SSA
8944 (expand_used_vars): Don't create DECLs for anonymous SSA
8945 names. Expand all SSA partitions, then adjust all SSA names.
8946 (pass::execute): Replace the loops that set
8947 SA.partition_to_pseudo from partition leaders and cleared
8948 DECL_RTL for multi-location variables, and that which used to
8949 rename vars and set attrs, with one that clears DECL_RTL and
8950 checks that PARMs and RESULTs default_defs match DECL_RTL.
8951 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8952 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
8953 * explow.c (promote_ssa_mode): New.
8954 * explow.h (promote_ssa_mode): Declare.
8955 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8956 * function.c: Include cfgexpand.h.
8957 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8958 (use_register_for_parm_decl): Wrapper for the above to
8959 special-case the result_ptr.
8960 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8961 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8963 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8964 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
8965 (assign_parm_setup_block): Prefer SSA-assigned location.
8966 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
8967 if stack_parm is NULL.
8968 (assign_parm_setup_stack): Prefer SSA-assigned location.
8969 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
8970 rtl before testing for pointer bounds. Special-case result_ptr.
8971 (expand_function_start): Maybe reset DECL_RTL of result.
8972 Prefer SSA-assigned location for result and static chain.
8973 Factor out DECL_RESULT and SET_DECL_RTL.
8974 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8975 anonymous SSA names. Use promote_ssa_mode.
8976 (get_temp_reg): Likewise.
8977 (remove_ssa_form): Adjust.
8978 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8979 and get its reg_usage for reg invalidation.
8980 (compute_bb_dataflow): Pass it insn.
8981 (emit_notes_in_bb): Likewise.
8982 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
8983 fail assert on conversion between unsigned types.
8985 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8988 * tree-inline.c (reset_debug_binding): New.
8989 (reset_debug_bindings): Likewise.
8990 (expand_call_inline): Call it.
8992 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
8994 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
8997 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
8999 * lto-streamer-out.c (lto_output_location): Stream
9000 reserved locations correctly.
9001 * lto-streamer-in.c (lto_output_location): Likewise.
9003 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
9005 * coretypes.h: Include hash-table.h and hash-set.h for host files.
9006 * ggc.h: Don't include statistics.h>
9007 * hash-map.h: Remove all includes.
9008 * hash-set.h: Likewise.
9009 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
9010 the include list. Remove <new>.
9011 * inchash.h: Remove all includes.
9012 * mem-stats.h: Likewise.
9013 * vec.h: No special processing for generators or ggc.
9014 * alias.c : Adjust include files.
9015 * alloc-pool.c : Likewise.
9016 * alloc-pool.h : Likewise.
9017 * asan.c : Likewise.
9018 * attribs.c : Likewise.
9019 * auto-inc-dec.c : Likewise.
9020 * auto-profile.c : Likewise.
9021 * bb-reorder.c : Likewise.
9022 * bitmap.c : Likewise.
9023 * bitmap.h : Likewise.
9024 * bt-load.c : Likewise.
9025 * builtins.c : Likewise.
9026 * caller-save.c : Likewise.
9027 * calls.c : Likewise.
9028 * ccmp.c : Likewise.
9030 * cfganal.c : Likewise.
9031 * cfgbuild.c : Likewise.
9032 * cfgcleanup.c : Likewise.
9033 * cfgexpand.c : Likewise.
9034 * cfghooks.c : Likewise.
9035 * cfgloop.c : Likewise.
9036 * cfgloop.h : Likewise.
9037 * cfgloopanal.c : Likewise.
9038 * cfgloopmanip.c : Likewise.
9039 * cfgrtl.c : Likewise.
9040 * cgraph.c : Likewise.
9041 * cgraphbuild.c : Likewise.
9042 * cgraphclones.c : Likewise.
9043 * cgraphunit.c : Likewise.
9044 * cilk-common.c : Likewise.
9045 * combine-stack-adj.c : Likewise.
9046 * combine.c : Likewise.
9047 * compare-elim.c : Likewise.
9048 * context.c : Likewise.
9049 * convert.c : Likewise.
9050 * coverage.c : Likewise.
9051 * cppbuiltin.c : Likewise.
9052 * cprop.c : Likewise.
9054 * cselib.c : Likewise.
9055 * data-streamer-in.c : Likewise.
9056 * data-streamer-out.c : Likewise.
9057 * data-streamer.c : Likewise.
9058 * data-streamer.h : Likewise.
9059 * dbxout.c : Likewise.
9062 * debug.c : Likewise.
9063 * df-core.c : Likewise.
9064 * df-problems.c : Likewise.
9065 * df-scan.c : Likewise.
9068 * dojump.c : Likewise.
9069 * dominance.c : Likewise.
9070 * domwalk.c : Likewise.
9071 * double-int.c : Likewise.
9073 * dumpfile.c : Likewise.
9074 * dwarf2asm.c : Likewise.
9075 * dwarf2cfi.c : Likewise.
9076 * dwarf2out.c : Likewise.
9077 * emit-rtl.c : Likewise.
9078 * et-forest.c : Likewise.
9079 * except.c : Likewise.
9080 * except.h : Likewise.
9081 * explow.c : Likewise.
9082 * expmed.c : Likewise.
9083 * expr.c : Likewise.
9084 * final.c : Likewise.
9085 * fixed-value.c : Likewise.
9086 * fold-const.c : Likewise.
9087 * function.c : Likewise.
9088 * fwprop.c : Likewise.
9089 * gcc-plugin.h : Likewise.
9091 * gcse-common.c : Likewise.
9092 * gcse.c : Likewise.
9093 * genattrtab.c : Likewise.
9094 * genautomata.c : Likewise.
9095 * genconditions.c : Likewise.
9096 * genemit.c : Likewise.
9097 * generic-match-head.c : Likewise.
9098 * genextract.c : Likewise.
9099 * gengtype-state.c : Likewise.
9100 * gengtype.c : Likewise.
9101 * genhooks.c : Likewise.
9102 * genmatch.c : Likewise.
9103 * genmodes.c : Likewise.
9104 * genrecog.c : Likewise.
9105 * gensupport.c : Likewise.
9106 * ggc-common.c : Likewise.
9107 * ggc-internal.h : Likewise.
9108 * ggc-none.c : Likewise.
9109 * ggc-page.c : Likewise.
9110 * gimple-builder.c : Likewise.
9111 * gimple-expr.c : Likewise.
9112 * gimple-fold.c : Likewise.
9113 * gimple-iterator.c : Likewise.
9114 * gimple-low.c : Likewise.
9115 * gimple-match-head.c : Likewise.
9116 * gimple-pretty-print.c : Likewise.
9117 * gimple-ssa-isolate-paths.c : Likewise.
9118 * gimple-ssa-strength-reduction.c : Likewise.
9119 * gimple-ssa.h : Likewise.
9120 * gimple-streamer-in.c : Likewise.
9121 * gimple-streamer-out.c : Likewise.
9122 * gimple-streamer.h : Likewise.
9123 * gimple-walk.c : Likewise.
9124 * gimple.c : Likewise.
9125 * gimplify-me.c : Likewise.
9126 * gimplify.c : Likewise.
9127 * godump.c : Likewise.
9128 * graph.c : Likewise.
9129 * graphds.c : Likewise.
9130 * graphite-blocking.c : Likewise.
9131 * graphite-dependences.c : Likewise.
9132 * graphite-interchange.c : Likewise.
9133 * graphite-isl-ast-to-gimple.c : Likewise.
9134 * graphite-optimize-isl.c : Likewise.
9135 * graphite-poly.c : Likewise.
9136 * graphite-scop-detection.c : Likewise.
9137 * graphite-sese-to-poly.c : Likewise.
9138 * graphite.c : Likewise.
9139 * haifa-sched.c : Likewise.
9140 * hard-reg-set.h : Likewise.
9141 * hw-doloop.c : Likewise.
9142 * ifcvt.c : Likewise.
9143 * inchash.c : Likewise.
9144 * incpath.c : Likewise.
9145 * init-regs.c : Likewise.
9146 * input.c : Likewise.
9147 * internal-fn.c : Likewise.
9148 * ipa-chkp.c : Likewise.
9149 * ipa-comdats.c : Likewise.
9150 * ipa-cp.c : Likewise.
9151 * ipa-devirt.c : Likewise.
9152 * ipa-icf-gimple.c : Likewise.
9153 * ipa-icf.c : Likewise.
9154 * ipa-inline-analysis.c : Likewise.
9155 * ipa-inline-transform.c : Likewise.
9156 * ipa-inline.c : Likewise.
9157 * ipa-polymorphic-call.c : Likewise.
9158 * ipa-profile.c : Likewise.
9159 * ipa-prop.c : Likewise.
9160 * ipa-pure-const.c : Likewise.
9161 * ipa-ref.c : Likewise.
9162 * ipa-reference.c : Likewise.
9163 * ipa-split.c : Likewise.
9164 * ipa-utils.c : Likewise.
9165 * ipa-visibility.c : Likewise.
9167 * ira-build.c : Likewise.
9168 * ira-color.c : Likewise.
9169 * ira-conflicts.c : Likewise.
9170 * ira-costs.c : Likewise.
9171 * ira-emit.c : Likewise.
9172 * ira-lives.c : Likewise.
9174 * jump.c : Likewise.
9175 * langhooks.c : Likewise.
9177 * libfuncs.h : Likewise.
9178 * lists.c : Likewise.
9179 * loop-doloop.c : Likewise.
9180 * loop-init.c : Likewise.
9181 * loop-invariant.c : Likewise.
9182 * loop-iv.c : Likewise.
9183 * loop-unroll.c : Likewise.
9184 * lower-subreg.c : Likewise.
9185 * lra-assigns.c : Likewise.
9186 * lra-coalesce.c : Likewise.
9187 * lra-constraints.c : Likewise.
9188 * lra-eliminations.c : Likewise.
9189 * lra-lives.c : Likewise.
9190 * lra-remat.c : Likewise.
9191 * lra-spills.c : Likewise.
9193 * lto-cgraph.c : Likewise.
9194 * lto-compress.c : Likewise.
9195 * lto-opts.c : Likewise.
9196 * lto-section-in.c : Likewise.
9197 * lto-section-out.c : Likewise.
9198 * lto-streamer-in.c : Likewise.
9199 * lto-streamer-out.c : Likewise.
9200 * lto-streamer.c : Likewise.
9201 * lto-streamer.h : Likewise.
9203 * mode-switching.c : Likewise.
9204 * modulo-sched.c : Likewise.
9205 * omega.c : Likewise.
9206 * omp-low.c : Likewise.
9207 * optabs.c : Likewise.
9208 * opts-global.c : Likewise.
9209 * opts.h : Likewise.
9210 * passes.c : Likewise.
9211 * plugin.c : Likewise.
9212 * postreload-gcse.c : Likewise.
9213 * postreload.c : Likewise.
9214 * predict.c : Likewise.
9215 * print-rtl.c : Likewise.
9216 * print-tree.c : Likewise.
9217 * profile.c : Likewise.
9218 * read-md.c : Likewise.
9219 * read-md.h : Likewise.
9220 * read-rtl.c : Likewise.
9221 * real.c : Likewise.
9222 * realmpfr.c : Likewise.
9223 * recog.c : Likewise.
9225 * reg-stack.c : Likewise.
9226 * regcprop.c : Likewise.
9227 * reginfo.c : Likewise.
9228 * regrename.c : Likewise.
9229 * regstat.c : Likewise.
9230 * reload.c : Likewise.
9231 * reload1.c : Likewise.
9232 * reorg.c : Likewise.
9233 * resource.c : Likewise.
9234 * rtl-chkp.c : Likewise.
9237 * rtlanal.c : Likewise.
9238 * rtlhash.c : Likewise.
9239 * rtlhash.h : Likewise.
9240 * rtlhooks.c : Likewise.
9241 * sanopt.c : Likewise.
9242 * sched-deps.c : Likewise.
9243 * sched-ebb.c : Likewise.
9244 * sched-rgn.c : Likewise.
9245 * sched-vis.c : Likewise.
9246 * sdbout.c : Likewise.
9247 * sel-sched-dump.c : Likewise.
9248 * sel-sched-ir.c : Likewise.
9249 * sel-sched-ir.h : Likewise.
9250 * sel-sched.c : Likewise.
9251 * sese.c : Likewise.
9252 * shrink-wrap.c : Likewise.
9253 * shrink-wrap.h : Likewise.
9254 * simplify-rtx.c : Likewise.
9255 * stack-ptr-mod.c : Likewise.
9256 * statistics.c : Likewise.
9257 * stmt.c : Likewise.
9258 * stor-layout.c : Likewise.
9259 * store-motion.c : Likewise.
9260 * stringpool.c : Likewise.
9261 * symtab.c : Likewise.
9262 * target-globals.c : Likewise.
9263 * targhooks.c : Likewise.
9264 * tlink.c : Likewise.
9265 * toplev.c : Likewise.
9266 * tracer.c : Likewise.
9267 * trans-mem.c : Likewise.
9268 * tree-affine.c : Likewise.
9269 * tree-affine.h : Likewise.
9270 * tree-browser.c : Likewise.
9271 * tree-call-cdce.c : Likewise.
9272 * tree-cfg.c : Likewise.
9273 * tree-cfgcleanup.c : Likewise.
9274 * tree-chkp-opt.c : Likewise.
9275 * tree-chkp.c : Likewise.
9276 * tree-chrec.c : Likewise.
9277 * tree-complex.c : Likewise.
9278 * tree-data-ref.c : Likewise.
9279 * tree-dfa.c : Likewise.
9280 * tree-diagnostic.c : Likewise.
9281 * tree-dump.c : Likewise.
9282 * tree-eh.c : Likewise.
9283 * tree-eh.h : Likewise.
9284 * tree-emutls.c : Likewise.
9285 * tree-hasher.h : Likewise.
9286 * tree-if-conv.c : Likewise.
9287 * tree-inline.c : Likewise.
9288 * tree-inline.h : Likewise.
9289 * tree-into-ssa.c : Likewise.
9290 * tree-iterator.c : Likewise.
9291 * tree-loop-distribution.c : Likewise.
9292 * tree-nested.c : Likewise.
9293 * tree-nrv.c : Likewise.
9294 * tree-object-size.c : Likewise.
9295 * tree-outof-ssa.c : Likewise.
9296 * tree-parloops.c : Likewise.
9297 * tree-phinodes.c : Likewise.
9298 * tree-predcom.c : Likewise.
9299 * tree-pretty-print.c : Likewise.
9300 * tree-profile.c : Likewise.
9301 * tree-scalar-evolution.c : Likewise.
9302 * tree-sra.c : Likewise.
9303 * tree-ssa-address.c : Likewise.
9304 * tree-ssa-alias.c : Likewise.
9305 * tree-ssa-ccp.c : Likewise.
9306 * tree-ssa-coalesce.c : Likewise.
9307 * tree-ssa-copy.c : Likewise.
9308 * tree-ssa-copyrename.c : Likewise.
9309 * tree-ssa-dce.c : Likewise.
9310 * tree-ssa-dom.c : Likewise.
9311 * tree-ssa-dse.c : Likewise.
9312 * tree-ssa-forwprop.c : Likewise.
9313 * tree-ssa-ifcombine.c : Likewise.
9314 * tree-ssa-live.c : Likewise.
9315 * tree-ssa-loop-ch.c : Likewise.
9316 * tree-ssa-loop-im.c : Likewise.
9317 * tree-ssa-loop-ivcanon.c : Likewise.
9318 * tree-ssa-loop-ivopts.c : Likewise.
9319 * tree-ssa-loop-manip.c : Likewise.
9320 * tree-ssa-loop-niter.c : Likewise.
9321 * tree-ssa-loop-prefetch.c : Likewise.
9322 * tree-ssa-loop-unswitch.c : Likewise.
9323 * tree-ssa-loop.c : Likewise.
9324 * tree-ssa-math-opts.c : Likewise.
9325 * tree-ssa-operands.c : Likewise.
9326 * tree-ssa-phiopt.c : Likewise.
9327 * tree-ssa-phiprop.c : Likewise.
9328 * tree-ssa-pre.c : Likewise.
9329 * tree-ssa-propagate.c : Likewise.
9330 * tree-ssa-reassoc.c : Likewise.
9331 * tree-ssa-sccvn.c : Likewise.
9332 * tree-ssa-scopedtables.c : Likewise.
9333 * tree-ssa-sink.c : Likewise.
9334 * tree-ssa-strlen.c : Likewise.
9335 * tree-ssa-structalias.c : Likewise.
9336 * tree-ssa-tail-merge.c : Likewise.
9337 * tree-ssa-ter.c : Likewise.
9338 * tree-ssa-threadedge.c : Likewise.
9339 * tree-ssa-threadupdate.c : Likewise.
9340 * tree-ssa-uncprop.c : Likewise.
9341 * tree-ssa-uninit.c : Likewise.
9342 * tree-ssa.c : Likewise.
9343 * tree-ssanames.c : Likewise.
9344 * tree-stdarg.c : Likewise.
9345 * tree-streamer-in.c : Likewise.
9346 * tree-streamer-out.c : Likewise.
9347 * tree-streamer.c : Likewise.
9348 * tree-streamer.h : Likewise.
9349 * tree-switch-conversion.c : Likewise.
9350 * tree-tailcall.c : Likewise.
9351 * tree-vect-data-refs.c : Likewise.
9352 * tree-vect-generic.c : Likewise.
9353 * tree-vect-loop-manip.c : Likewise.
9354 * tree-vect-loop.c : Likewise.
9355 * tree-vect-patterns.c : Likewise.
9356 * tree-vect-slp.c : Likewise.
9357 * tree-vect-stmts.c : Likewise.
9358 * tree-vectorizer.c : Likewise.
9359 * tree-vectorizer.h : Likewise.
9360 * tree-vrp.c : Likewise.
9361 * tree.c : Likewise.
9362 * tsan.c : Likewise.
9363 * ubsan.c : Likewise.
9364 * valtrack.c : Likewise.
9365 * valtrack.h : Likewise.
9366 * value-prof.c : Likewise.
9367 * var-tracking.c : Likewise.
9368 * varasm.c : Likewise.
9369 * varpool.c : Likewise.
9371 * vmsdbgout.c : Likewise.
9372 * vtable-verify.c : Likewise.
9373 * vtable-verify.h : Likewise.
9375 * wide-int.cc : Likewise.
9376 * xcoffout.c : Likewise.
9377 * config/aarch64/aarch64-builtins.c : Likewise.
9378 * config/aarch64/aarch64.c : Likewise.
9379 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
9380 * config/alpha/alpha.c : Likewise.
9381 * config/arc/arc.c : Likewise.
9382 * config/arm/aarch-common.c : Likewise.
9383 * config/arm/arm-builtins.c : Likewise.
9384 * config/arm/arm-c.c : Likewise.
9385 * config/arm/arm.c : Likewise.
9386 * config/avr/avr-c.c : Likewise.
9387 * config/avr/avr-log.c : Likewise.
9388 * config/avr/avr.c : Likewise.
9389 * config/bfin/bfin.c : Likewise.
9390 * config/c6x/c6x.c : Likewise.
9391 * config/cr16/cr16.c : Likewise.
9392 * config/cris/cris.c : Likewise.
9393 * config/darwin-c.c : Likewise.
9394 * config/darwin.c : Likewise.
9395 * config/default-c.c : Likewise.
9396 * config/epiphany/epiphany.c : Likewise.
9397 * config/epiphany/mode-switch-use.c : Likewise.
9398 * config/epiphany/resolve-sw-modes.c : Likewise.
9399 * config/fr30/fr30.c : Likewise.
9400 * config/frv/frv.c : Likewise.
9401 * config/ft32/ft32.c : Likewise.
9402 * config/glibc-c.c : Likewise.
9403 * config/h8300/h8300.c : Likewise.
9404 * config/i386/i386-c.c : Likewise.
9405 * config/i386/i386.c : Likewise.
9406 * config/i386/msformat-c.c : Likewise.
9407 * config/i386/winnt-cxx.c : Likewise.
9408 * config/i386/winnt-stubs.c : Likewise.
9409 * config/i386/winnt.c : Likewise.
9410 * config/ia64/ia64-c.c : Likewise.
9411 * config/ia64/ia64.c : Likewise.
9412 * config/iq2000/iq2000.c : Likewise.
9413 * config/lm32/lm32.c : Likewise.
9414 * config/m32c/m32c-pragma.c : Likewise.
9415 * config/m32c/m32c.c : Likewise.
9416 * config/m32r/m32r.c : Likewise.
9417 * config/m68k/m68k.c : Likewise.
9418 * config/mcore/mcore.c : Likewise.
9419 * config/mep/mep-pragma.c : Likewise.
9420 * config/mep/mep.c : Likewise.
9421 * config/microblaze/microblaze-c.c : Likewise.
9422 * config/microblaze/microblaze.c : Likewise.
9423 * config/mips/mips.c : Likewise.
9424 * config/mmix/mmix.c : Likewise.
9425 * config/mn10300/mn10300.c : Likewise.
9426 * config/moxie/moxie.c : Likewise.
9427 * config/msp430/msp430-c.c : Likewise.
9428 * config/msp430/msp430.c : Likewise.
9429 * config/nds32/nds32-cost.c : Likewise.
9430 * config/nds32/nds32-fp-as-gp.c : Likewise.
9431 * config/nds32/nds32-intrinsic.c : Likewise.
9432 * config/nds32/nds32-isr.c : Likewise.
9433 * config/nds32/nds32-md-auxiliary.c : Likewise.
9434 * config/nds32/nds32-memory-manipulation.c : Likewise.
9435 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
9436 * config/nds32/nds32-predicates.c : Likewise.
9437 * config/nds32/nds32.c : Likewise.
9438 * config/nios2/nios2.c : Likewise.
9439 * config/nvptx/nvptx.c : Likewise.
9440 * config/pa/pa.c : Likewise.
9441 * config/pdp11/pdp11.c : Likewise.
9442 * config/rl78/rl78-c.c : Likewise.
9443 * config/rl78/rl78.c : Likewise.
9444 * config/rs6000/rs6000-c.c : Likewise.
9445 * config/rs6000/rs6000.c : Likewise.
9446 * config/rx/rx.c : Likewise.
9447 * config/s390/s390-c.c : Likewise.
9448 * config/s390/s390.c : Likewise.
9449 * config/sh/sh-c.c : Likewise.
9450 * config/sh/sh-mem.cc : Likewise.
9451 * config/sh/sh.c : Likewise.
9452 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
9453 * config/sh/sh_treg_combine.cc : Likewise.
9454 * config/sol2-c.c : Likewise.
9455 * config/sol2-cxx.c : Likewise.
9456 * config/sol2-stubs.c : Likewise.
9457 * config/sol2.c : Likewise.
9458 * config/sparc/sparc-c.c : Likewise.
9459 * config/sparc/sparc.c : Likewise.
9460 * config/spu/spu-c.c : Likewise.
9461 * config/spu/spu.c : Likewise.
9462 * config/stormy16/stormy16.c : Likewise.
9463 * config/tilegx/mul-tables.c : Likewise.
9464 * config/tilegx/tilegx-c.c : Likewise.
9465 * config/tilegx/tilegx.c : Likewise.
9466 * config/tilepro/mul-tables.c : Likewise.
9467 * config/tilepro/tilepro-c.c : Likewise.
9468 * config/tilepro/tilepro.c : Likewise.
9469 * config/v850/v850-c.c : Likewise.
9470 * config/v850/v850.c : Likewise.
9471 * config/vax/vax.c : Likewise.
9472 * config/visium/visium.c : Likewise.
9473 * config/vms/vms-c.c : Likewise.
9474 * config/vms/vms.c : Likewise.
9475 * config/vxworks.c : Likewise.
9476 * config/winnt-c.c : Likewise.
9477 * config/xtensa/xtensa.c : Likewise.
9479 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9482 * ipa-utils.h (warn_types_mismatch): Update prototype.
9483 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
9485 (type_mismatch_p): New function.
9486 (warn_types_mismatch): Reorg to work better on non-C++ types.
9487 (odr_types_equivalent_p): Add loc1/loc2 parameters.
9488 (add_type_duplicate): Update.
9490 2015-06-08 Tom de Vries <tom@codesourcery.com>
9492 PR rtl-optimization/66444
9493 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
9496 2015-06-08 Richard Biener <rguenther@suse.de>
9498 PR tree-optimization/66422
9499 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
9500 block after inserted gcc_unreachable.
9502 2015-06-08 Nick Clifton <nickc@redhat.com>
9504 * config/rx/rx.c (rx_function_value): Do not promote vector types.
9505 (rx_promote_function_mode): Likewise.
9506 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
9508 2015-06-08 Jakub Jelinek <jakub@redhat.com>
9510 * genattrtab.c (insn_alternatives): Change type from int *
9512 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
9513 (get_attr_value): Change type of num_alt to uint64_t.
9514 (compute_alternative_mask): Change return type from
9515 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
9516 (make_alternative_compare, mk_attr_alt): Change argument type
9517 from int to uint64_t.
9518 (simplify_test_exp): Change type of i from int to uint64_t.
9519 Shift ((uint64_t) 1) instead of 1 up.
9520 (main): Adjust oballocvec first argument from int to uint64_t.
9521 Shift ((uint64_t) 1) instead of 1 up.
9523 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9526 * gdbhooks.py: Import sys.
9527 (intptr): New function. Replace int(...) by intptr(...).
9529 2015-06-08 Richard Biener <rguenther@suse.de>
9531 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
9532 adjustment for gaps at the end of a SLP load group properly.
9533 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
9534 all permutations we can generate.
9535 (vect_transform_slp_perm_load): Use the correct group-size.
9537 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
9539 * genmatch.c (expr::gen_transform): For conditions, guess the type
9540 from the second operand.
9542 2015-06-08 Tom de Vries <tom@codesourcery.com>
9544 PR tree-optimization/66442
9545 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
9546 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
9547 if the loop latch is not a singleton. Use
9548 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
9550 2015-06-08 Marek Polacek <polacek@redhat.com>
9553 * toplev.c (check_global_declaration): Don't warn about artificial
9556 2015-06-08 Tom de Vries <tom@codesourcery.com>
9558 PR tree-optimization/66436
9559 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
9561 * gimplify.c: Add tree-dump.h include.
9562 (gimplify_function_tree): Dump function to gimple dump file.
9563 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
9566 2015-06-08 Tom de Vries <tom@codesourcery.com>
9568 PR tree-optimization/66435
9569 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
9572 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
9574 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
9575 of ptr_type_node to not be ptr_to_node.
9576 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
9577 TREE_TYPE of pointers.
9578 * gimple-expr.c (useless_type_conversion): Reorder the check for
9579 function pointers and TYPE_CANONICAL.
9581 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
9584 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
9585 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
9586 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
9588 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
9589 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
9590 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
9591 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
9592 and non iso if unix2003.
9594 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
9596 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
9598 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
9600 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
9601 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
9602 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
9603 except.c, final.c, function.c, gcse-common.c, genemit.c,
9604 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
9605 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
9606 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
9607 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
9610 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
9612 * combine.c (combine_split_insns): Remove cast.
9613 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
9614 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
9615 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
9616 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
9617 * genemit.c (gen_split): Change return type of generated functions to
9619 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
9620 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
9621 gen_peephole2_* functions.
9622 (print_subroutine, main): Likewise.
9623 * recog.c (peephole2_optimize): Remove cast.
9624 (peep2_next_insn): Promote return type to rtx_insn.
9625 * recog.h (peep2_next_insn): Fix prototype.
9626 * rtl.h (try_split, split_insns): Likewise.
9628 2015-06-06 DJ Delorie <dj@redhat.com>
9630 * config/msp430/msp430.c (msp430_asm_integer): Support addition
9631 and subtraction too.
9633 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
9636 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
9637 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
9638 instead of Snd. Disparage Sid/z alternative with '^'.
9640 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
9642 * dwarf2out.c: Remove deferred_locations*.
9643 (dwarf2_debug_hooks): Add early_finish hook.
9644 Remove global_decl hook.
9645 Add early_global_decl and late_global_decl hook.
9646 New global early_dwarf.
9647 New structure set_early_dwarf.
9648 (output_die): Indicate whether a DIE was generated early
9649 when generating assembly with -dA.
9650 (struct limbo_die_struct): Document created_for field.
9651 Remove file_table_last_lookup.
9652 (remove_AT): Return TRUE if successful.
9653 (remove_child_TAG): Clear die_parent.
9654 (reparent_child): New function abstracted from...
9655 (splice_child_die): ...here.
9656 (new_die): ICE if a DIE ends up in limbo too late.
9658 (defer_location): Remove.
9659 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
9660 (fill_variable_array_bounds): New.
9661 (decl_start_label): Call fill_variable_array_bounds.
9662 (gen_formal_parameter_die): Rewrite to reuse previously generated
9664 (gen_subprogram_die): Same.
9665 (gen_variable_die): Same.
9666 (gen_const_die): Same.
9667 (gen_label_die): Same.
9668 (gen_lexical_block_die): Same.
9669 (decl_will_get_specification_p): New.
9670 (local_function_static): New.
9671 (gen_struct_or_union_type_die): Fill in variable-length fields.
9672 (gen_typedef_die): Fill in variable-length typedefs.
9673 (gen_tagged_type_die): Gracefully return on error_mark_node.
9675 (gen_type_die_with_usage): Handle variable-length types.
9676 Remove duplicate code for ARRAY_TYPE case.
9677 (process_scope_var): Only process imported modules during early
9679 (dwarf2out_early_global_decl): New.
9680 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
9681 (dwarf2out_type_decl): Set early_dwarf while calling
9683 (dwarf2out_decl): Verify that we did not recreate a previously
9685 Do not return on DECL_EXTERNALs in VAR_DECLs.
9686 Abstract some code to local_function_static.
9687 (lookup_filename): Remove use of file_table_last_lookup.
9688 Gracefully exit on missing file_name.
9689 (dwarf2out_finish): Verify limbo list.
9690 Remove deferred_locations_list use.
9691 Move deferred_asm_name and limbo flushing to...
9692 (dwarf2out_early_finish): ...here. New.
9693 (dwarf2out_c_finalize): Remove set of deferred_location_list,
9694 deferred_asm_name, and file_table_last_lookup.
9695 * cgraph.h (referred_to_p): Add default argument.
9696 * cgraphunit.c (referred_to_p): Add and handle include_self
9698 (analyze_functions): Add first_time argument.
9699 Call check_global_declaration for all symbols.
9700 Call late_global_decl for nodes for moribund nodes.
9701 (finalize_compilation_unit): Add new argument to
9703 Call early_global_decl for functions.
9704 Call early_finish debug hook.
9705 * dbxout.c (dbxout_early_global_decl): New.
9706 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
9707 (dbx_debug_hooks): Add new hooks.
9708 (xcoff_debug_hooks): Same.
9709 * debug.c (do_nothing_debug_hooks): Add early_finish field.
9710 Add early and late debug hooks.
9711 Remove global_decl hook.
9712 * debug.h (struct gcc_debug_hooks): Add early_finish,
9713 early_global_decl, and late_global_decl fields.
9714 Remove global_decl field.
9715 Document gcc_debug_hooks.
9716 * gengtype.c (output_typename): Remove.
9717 * godump.c (go_early_global_decl): New.
9718 (go_late_global_decl): New.
9719 (go_global_decl): Remove.
9720 (dump_go_spec_init): Remove global_decl. Add
9721 {early,late}_global_decl.
9722 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
9723 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
9724 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
9725 (write_global_declarations): Remove.
9726 (global_decl_processing): New.
9727 * langhooks.h (struct lang_hooks_for_decls): Remove
9728 final_write_globals field.
9729 Add post_compilation_parsing_cleanups field.
9730 * passes.c (rest_of_decl_compilation): Call early_global_decl.
9731 * sdbout.c: Add early and late_global_decl hooks. Remove
9732 sdbout_global_decl hook.
9733 Add early_finish field for sdb_debug_hooks.
9734 (sdbout_global_decl): Remove.
9735 (sdbout_early_global_decl): New.
9736 (sdbout_late_global_decl): New.
9737 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
9738 * toplev.c (check_global_declaration): Rename from
9739 check_global_declaration_1.
9740 Adapt to use symtab infrastructure.
9741 (check_global_declarations): Remove.
9742 (emit_debug_global_declarations): Remove.
9743 (compile_file): Remove call to final_write_globals langhook.
9744 Run the actual compilation process.
9745 Perform any post compilation parser cleanups.
9746 Generate late debug info.
9747 * toplev.h (check_global_declaration): New.
9748 (check_global_declaration_1): Remove.
9749 (check_global_declarations): Remove.
9750 (write_global_declarations): Remove.
9751 (emit_debug_global_declarations): Remove.
9752 (global_decl_processing): New.
9753 * tree-core.h (struct tree_block): Add DIE field.
9754 * tree.h (BLOCK_DIE): New.
9755 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
9757 (vmsdbgout_early_global_decl): New.
9758 (vmsdbgout_late_global_decl): New.
9759 Add early_finish debug hook field to vmsdbg_debug_hooks.
9760 Remove vmsdbgout_decl to vmsdbgout_function_decl.
9761 Add early and late_global_decl debug hooks.
9763 2015-06-05 Julian Brown <julian@codesourcery.com>
9764 Sandra Loosemore <sandra@codesourcery.com>
9766 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
9767 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
9768 to print-sysroot-suffix.sh script.
9770 2015-06-05 Tom de Vries <tom@codesourcery.com>
9772 merge from gomp4 branch:
9773 2015-05-28 Tom de Vries <tom@codesourcery.com>
9775 PR tree-optimization/65443
9776 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
9777 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
9778 (try_transform_to_exit_first_loop_alt): New function.
9779 (transform_to_exit_first_loop): Use
9780 try_transform_to_exit_first_loop_alt.
9782 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
9784 * builtins.c (expand_builtin_atomic_compare_exchange): Call
9785 emit_cmp_and_jump_insns with the mode of target.
9787 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9789 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
9791 2015-06-04 DJ Delorie <dj@redhat.com>
9793 * config/msp430/msp430.md (movsi_s): New. Special case for
9794 storing a 20-bit symbol into a 32-bit register.
9795 * config/msp430/msp430.c (msp430_subreg): Add support for it.
9796 * config/msp430/predicates.md (msp430_symbol_operand): New.
9798 2015-06-04 Sriraman Tallam <tmsriram@google.com>
9800 * c-family/c-common.c (noplt): New attribute.
9801 (handle_noplt_attribute): New handler.
9802 * calls.c (prepare_call_address): Check for noplt
9804 * config/i386/i386.c (ix86_expand_call): Check
9805 for noplt attribute.
9806 (ix86_nopic_noplt_attribute_p): New function.
9807 (ix86_output_call_insn): Output indirect call for non-pic
9809 * doc/extend.texi (noplt): Document new attribute.
9810 * doc/invoke.texi: Document new attribute.
9812 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
9814 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
9815 real.h, and fixed-value.h when included in host source files.
9816 * double-int.h: Remove redundant #includes listed above.
9817 * fixed-value.h: Likewise.
9819 * wide-int.h: Likewise.
9820 * inchash.h: Likewise.
9821 * rtl.h: Add some include files When included from a generator file.
9822 * target.h: Remove wide-int.h and insn-modes.h from the include list.
9823 * internal-fn.h: Don't include coretypes.h.
9824 * alias.c: Adjust includes for restructured coretypes.h.
9826 * attribs.c: Likewise.
9827 * auto-inc-dec.c: Likewise.
9828 * auto-profile.c: Likewise.
9829 * bb-reorder.c: Likewise.
9830 * bt-load.c: Likewise.
9831 * builtins.c: Likewise.
9832 * caller-save.c: Likewise.
9833 * calls.c: Likewise.
9836 * cfganal.c: Likewise.
9837 * cfgbuild.c: Likewise.
9838 * cfgcleanup.c: Likewise.
9839 * cfgexpand.c: Likewise.
9840 * cfghooks.c: Likewise.
9841 * cfgloop.c: Likewise.
9842 * cfgloop.h: Likewise.
9843 * cfgloopanal.c: Likewise.
9844 * cfgloopmanip.c: Likewise.
9845 * cfgrtl.c: Likewise.
9846 * cgraph.c: Likewise.
9847 * cgraphbuild.c: Likewise.
9848 * cgraphclones.c: Likewise.
9849 * cgraphunit.c: Likewise.
9850 * cilk-common.c: Likewise.
9851 * combine-stack-adj.c: Likewise.
9852 * combine.c: Likewise.
9853 * compare-elim.c: Likewise.
9854 * convert.c: Likewise.
9855 * coverage.c: Likewise.
9856 * cppbuiltin.c: Likewise.
9857 * cprop.c: Likewise.
9859 * cselib.c: Likewise.
9860 * data-streamer-in.c: Likewise.
9861 * data-streamer-out.c: Likewise.
9862 * data-streamer.c: Likewise.
9863 * dbxout.c: Likewise.
9866 * debug.c: Likewise.
9867 * df-core.c: Likewise.
9868 * df-problems.c: Likewise.
9869 * df-scan.c: Likewise.
9872 * dojump.c: Likewise.
9873 * dominance.c: Likewise.
9874 * domwalk.c: Likewise.
9875 * double-int.c: Likewise.
9877 * dumpfile.c: Likewise.
9878 * dwarf2asm.c: Likewise.
9879 * dwarf2cfi.c: Likewise.
9880 * dwarf2out.c: Likewise.
9881 * dwarf2out.h: Likewise.
9882 * emit-rtl.c: Likewise.
9883 * et-forest.c: Likewise.
9884 * except.c: Likewise.
9885 * explow.c: Likewise.
9886 * expmed.c: Likewise.
9888 * final.c: Likewise.
9889 * fixed-value.c: Likewise.
9890 * fold-const.c: Likewise.
9891 * function.c: Likewise.
9892 * fwprop.c: Likewise.
9893 * gcc-plugin.h: Likewise.
9895 * generic-match-head.c: Likewise.
9896 * ggc-page.c: Likewise.
9897 * gimple-builder.c: Likewise.
9898 * gimple-expr.c: Likewise.
9899 * gimple-fold.c: Likewise.
9900 * gimple-iterator.c: Likewise.
9901 * gimple-low.c: Likewise.
9902 * gimple-match-head.c: Likewise.
9903 * gimple-pretty-print.c: Likewise.
9904 * gimple-ssa-isolate-paths.c: Likewise.
9905 * gimple-ssa-strength-reduction.c: Likewise.
9906 * gimple-streamer-in.c: Likewise.
9907 * gimple-streamer-out.c: Likewise.
9908 * gimple-streamer.h: Likewise.
9909 * gimple-walk.c: Likewise.
9910 * gimple.c: Likewise.
9911 * gimplify-me.c: Likewise.
9912 * gimplify.c: Likewise.
9913 * godump.c: Likewise.
9914 * graph.c: Likewise.
9915 * graphite-blocking.c: Likewise.
9916 * graphite-dependences.c: Likewise.
9917 * graphite-interchange.c: Likewise.
9918 * graphite-isl-ast-to-gimple.c: Likewise.
9919 * graphite-optimize-isl.c: Likewise.
9920 * graphite-poly.c: Likewise.
9921 * graphite-scop-detection.c: Likewise.
9922 * graphite-sese-to-poly.c: Likewise.
9923 * graphite.c: Likewise.
9924 * haifa-sched.c: Likewise.
9925 * hooks.h: Likewise.
9926 * hw-doloop.c: Likewise.
9927 * ifcvt.c: Likewise.
9928 * incpath.c: Likewise.
9929 * init-regs.c: Likewise.
9930 * internal-fn.c: Likewise.
9931 * ipa-chkp.c: Likewise.
9932 * ipa-comdats.c: Likewise.
9933 * ipa-cp.c: Likewise.
9934 * ipa-devirt.c: Likewise.
9935 * ipa-icf-gimple.c: Likewise.
9936 * ipa-icf.c: Likewise.
9937 * ipa-inline-analysis.c: Likewise.
9938 * ipa-inline-transform.c: Likewise.
9939 * ipa-inline.c: Likewise.
9940 * ipa-polymorphic-call.c: Likewise.
9941 * ipa-profile.c: Likewise.
9942 * ipa-prop.c: Likewise.
9943 * ipa-pure-const.c: Likewise.
9944 * ipa-ref.c: Likewise.
9945 * ipa-reference.c: Likewise.
9946 * ipa-split.c: Likewise.
9947 * ipa-utils.c: Likewise.
9948 * ipa-visibility.c: Likewise.
9950 * ira-build.c: Likewise.
9951 * ira-color.c: Likewise.
9952 * ira-conflicts.c: Likewise.
9953 * ira-costs.c: Likewise.
9954 * ira-emit.c: Likewise.
9955 * ira-lives.c: Likewise.
9958 * langhooks.c: Likewise.
9960 * loop-doloop.c: Likewise.
9961 * loop-init.c: Likewise.
9962 * loop-invariant.c: Likewise.
9963 * loop-iv.c: Likewise.
9964 * loop-unroll.c: Likewise.
9965 * lower-subreg.c: Likewise.
9966 * lra-assigns.c: Likewise.
9967 * lra-coalesce.c: Likewise.
9968 * lra-constraints.c: Likewise.
9969 * lra-eliminations.c: Likewise.
9970 * lra-lives.c: Likewise.
9971 * lra-remat.c: Likewise.
9972 * lra-spills.c: Likewise.
9974 * lto-cgraph.c: Likewise.
9975 * lto-compress.c: Likewise.
9976 * lto-opts.c: Likewise.
9977 * lto-section-in.c: Likewise.
9978 * lto-section-out.c: Likewise.
9979 * lto-streamer-in.c: Likewise.
9980 * lto-streamer-out.c: Likewise.
9981 * lto-streamer.c: Likewise.
9983 * mode-switching.c: Likewise.
9984 * modulo-sched.c: Likewise.
9985 * omega.c: Likewise.
9986 * omp-low.c: Likewise.
9987 * optabs.c: Likewise.
9988 * opts-global.c: Likewise.
9989 * passes.c: Likewise.
9990 * plugin.c: Likewise.
9991 * postreload-gcse.c: Likewise.
9992 * postreload.c: Likewise.
9993 * predict.c: Likewise.
9994 * print-rtl.c: Likewise.
9995 * print-tree.c: Likewise.
9996 * profile.c: Likewise.
9998 * realmpfr.c: Likewise.
9999 * realmpfr.h: Likewise.
10000 * recog.c: Likewise.
10002 * reg-stack.c: Likewise.
10003 * regcprop.c: Likewise.
10004 * reginfo.c: Likewise.
10005 * regrename.c: Likewise.
10006 * regs.h: Likewise.
10007 * regstat.c: Likewise.
10008 * reload.c: Likewise.
10009 * reload1.c: Likewise.
10010 * reorg.c: Likewise.
10011 * resource.c: Likewise.
10012 * rtl-chkp.c: Likewise.
10013 * rtlanal.c: Likewise.
10014 * rtlhooks.c: Likewise.
10015 * sanopt.c: Likewise.
10016 * sched-deps.c: Likewise.
10017 * sched-ebb.c: Likewise.
10018 * sched-rgn.c: Likewise.
10019 * sched-vis.c: Likewise.
10020 * sdbout.c: Likewise.
10021 * sel-sched-dump.c: Likewise.
10022 * sel-sched-ir.c: Likewise.
10023 * sel-sched.c: Likewise.
10024 * sese.c: Likewise.
10025 * shrink-wrap.c: Likewise.
10026 * shrink-wrap.h: Likewise.
10027 * simplify-rtx.c: Likewise.
10028 * stack-ptr-mod.c: Likewise.
10029 * statistics.c: Likewise.
10030 * stmt.c: Likewise.
10031 * stor-layout.c: Likewise.
10032 * store-motion.c: Likewise.
10033 * stringpool.c: Likewise.
10034 * symtab.c: Likewise.
10035 * target-globals.c: Likewise.
10036 * targhooks.c: Likewise.
10037 * toplev.c: Likewise.
10038 * tracer.c: Likewise.
10039 * trans-mem.c: Likewise.
10040 * tree-affine.c: Likewise.
10041 * tree-affine.h: Likewise.
10042 * tree-browser.c: Likewise.
10043 * tree-call-cdce.c: Likewise.
10044 * tree-cfg.c: Likewise.
10045 * tree-cfgcleanup.c: Likewise.
10046 * tree-chkp-opt.c: Likewise.
10047 * tree-chkp.c: Likewise.
10048 * tree-chrec.c: Likewise.
10049 * tree-complex.c: Likewise.
10050 * tree-data-ref.c: Likewise.
10051 * tree-dfa.c: Likewise.
10052 * tree-diagnostic.c: Likewise.
10053 * tree-dump.c: Likewise.
10054 * tree-eh.c: Likewise.
10055 * tree-emutls.c: Likewise.
10056 * tree-if-conv.c: Likewise.
10057 * tree-inline.c: Likewise.
10058 * tree-into-ssa.c: Likewise.
10059 * tree-iterator.c: Likewise.
10060 * tree-loop-distribution.c: Likewise.
10061 * tree-nested.c: Likewise.
10062 * tree-nrv.c: Likewise.
10063 * tree-object-size.c: Likewise.
10064 * tree-outof-ssa.c: Likewise.
10065 * tree-parloops.c: Likewise.
10066 * tree-phinodes.c: Likewise.
10067 * tree-predcom.c: Likewise.
10068 * tree-pretty-print.c: Likewise.
10069 * tree-pretty-print.h: Likewise.
10070 * tree-profile.c: Likewise.
10071 * tree-scalar-evolution.c: Likewise.
10072 * tree-sra.c: Likewise.
10073 * tree-ssa-address.c: Likewise.
10074 * tree-ssa-alias.c: Likewise.
10075 * tree-ssa-ccp.c: Likewise.
10076 * tree-ssa-coalesce.c: Likewise.
10077 * tree-ssa-copy.c: Likewise.
10078 * tree-ssa-copyrename.c: Likewise.
10079 * tree-ssa-dce.c: Likewise.
10080 * tree-ssa-dom.c: Likewise.
10081 * tree-ssa-dse.c: Likewise.
10082 * tree-ssa-forwprop.c: Likewise.
10083 * tree-ssa-ifcombine.c: Likewise.
10084 * tree-ssa-live.c: Likewise.
10085 * tree-ssa-loop-ch.c: Likewise.
10086 * tree-ssa-loop-im.c: Likewise.
10087 * tree-ssa-loop-ivcanon.c: Likewise.
10088 * tree-ssa-loop-ivopts.c: Likewise.
10089 * tree-ssa-loop-manip.c: Likewise.
10090 * tree-ssa-loop-niter.c: Likewise.
10091 * tree-ssa-loop-prefetch.c: Likewise.
10092 * tree-ssa-loop-unswitch.c: Likewise.
10093 * tree-ssa-loop.c: Likewise.
10094 * tree-ssa-loop.h: Likewise.
10095 * tree-ssa-math-opts.c: Likewise.
10096 * tree-ssa-operands.c: Likewise.
10097 * tree-ssa-phiopt.c: Likewise.
10098 * tree-ssa-phiprop.c: Likewise.
10099 * tree-ssa-pre.c: Likewise.
10100 * tree-ssa-propagate.c: Likewise.
10101 * tree-ssa-reassoc.c: Likewise.
10102 * tree-ssa-sccvn.c: Likewise.
10103 * tree-ssa-scopedtables.c: Likewise.
10104 * tree-ssa-sink.c: Likewise.
10105 * tree-ssa-strlen.c: Likewise.
10106 * tree-ssa-structalias.c: Likewise.
10107 * tree-ssa-tail-merge.c: Likewise.
10108 * tree-ssa-ter.c: Likewise.
10109 * tree-ssa-threadedge.c: Likewise.
10110 * tree-ssa-threadupdate.c: Likewise.
10111 * tree-ssa-uncprop.c: Likewise.
10112 * tree-ssa-uninit.c: Likewise.
10113 * tree-ssa.c: Likewise.
10114 * tree-ssanames.c: Likewise.
10115 * tree-stdarg.c: Likewise.
10116 * tree-streamer-in.c: Likewise.
10117 * tree-streamer-out.c: Likewise.
10118 * tree-streamer.c: Likewise.
10119 * tree-switch-conversion.c: Likewise.
10120 * tree-tailcall.c: Likewise.
10121 * tree-vect-data-refs.c: Likewise.
10122 * tree-vect-generic.c: Likewise.
10123 * tree-vect-loop-manip.c: Likewise.
10124 * tree-vect-loop.c: Likewise.
10125 * tree-vect-patterns.c: Likewise.
10126 * tree-vect-slp.c: Likewise.
10127 * tree-vect-stmts.c: Likewise.
10128 * tree-vectorizer.c: Likewise.
10129 * tree-vrp.c: Likewise.
10130 * tree.c: Likewise.
10131 * tsan.c: Likewise.
10132 * ubsan.c: Likewise.
10133 * valtrack.c: Likewise.
10134 * value-prof.c: Likewise.
10135 * var-tracking.c: Likewise.
10136 * varasm.c: Likewise.
10137 * varpool.c: Likewise.
10138 * vmsdbgout.c: Likewise.
10139 * vtable-verify.c: Likewise.
10141 * wide-int-print.cc: Likewise.
10142 * wide-int-print.h: Likewise.
10143 * wide-int.cc: Likewise.
10144 * xcoffout.c: Likewise.
10145 * config/aarch64/aarch64-builtins.c: Likewise.
10146 * config/aarch64/aarch64.c: Likewise.
10147 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10148 * config/alpha/alpha.c: Likewise.
10149 * config/arc/arc.c: Likewise.
10150 * config/arm/aarch-common.c: Likewise.
10151 * config/arm/arm-builtins.c: Likewise.
10152 * config/arm/arm-c.c: Likewise.
10153 * config/arm/arm.c: Likewise.
10154 * config/avr/avr-c.c: Likewise.
10155 * config/avr/avr-log.c: Likewise.
10156 * config/avr/avr.c: Likewise.
10157 * config/bfin/bfin.c: Likewise.
10158 * config/c6x/c6x.c: Likewise.
10159 * config/cr16/cr16.c: Likewise.
10160 * config/cris/cris.c: Likewise.
10161 * config/darwin-c.c: Likewise.
10162 * config/darwin.c: Likewise.
10163 * config/default-c.c: Likewise.
10164 * config/epiphany/epiphany.c: Likewise.
10165 * config/epiphany/mode-switch-use.c: Likewise.
10166 * config/epiphany/resolve-sw-modes.c: Likewise.
10167 * config/fr30/fr30.c: Likewise.
10168 * config/frv/frv.c: Likewise.
10169 * config/ft32/ft32.c: Likewise.
10170 * config/glibc-c.c: Likewise.
10171 * config/h8300/h8300.c: Likewise.
10172 * config/i386/i386-c.c: Likewise.
10173 * config/i386/i386.c: Likewise.
10174 * config/i386/msformat-c.c: Likewise.
10175 * config/i386/winnt-cxx.c: Likewise.
10176 * config/i386/winnt-stubs.c: Likewise.
10177 * config/i386/winnt.c: Likewise.
10178 * config/ia64/ia64-c.c: Likewise.
10179 * config/ia64/ia64.c: Likewise.
10180 * config/iq2000/iq2000.c: Likewise.
10181 * config/lm32/lm32.c: Likewise.
10182 * config/m32c/m32c-pragma.c: Likewise.
10183 * config/m32c/m32c.c: Likewise.
10184 * config/m32r/m32r.c: Likewise.
10185 * config/m68k/m68k.c: Likewise.
10186 * config/mcore/mcore.c: Likewise.
10187 * config/mep/mep-pragma.c: Likewise.
10188 * config/mep/mep.c: Likewise.
10189 * config/microblaze/microblaze-c.c: Likewise.
10190 * config/microblaze/microblaze.c: Likewise.
10191 * config/mips/mips.c: Likewise.
10192 * config/mmix/mmix.c: Likewise.
10193 * config/mn10300/mn10300.c: Likewise.
10194 * config/moxie/moxie.c: Likewise.
10195 * config/msp430/msp430-c.c: Likewise.
10196 * config/msp430/msp430.c: Likewise.
10197 * config/nds32/nds32-cost.c: Likewise.
10198 * config/nds32/nds32-fp-as-gp.c: Likewise.
10199 * config/nds32/nds32-intrinsic.c: Likewise.
10200 * config/nds32/nds32-isr.c: Likewise.
10201 * config/nds32/nds32-md-auxiliary.c: Likewise.
10202 * config/nds32/nds32-memory-manipulation.c: Likewise.
10203 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10204 * config/nds32/nds32-predicates.c: Likewise.
10205 * config/nds32/nds32.c: Likewise.
10206 * config/nios2/nios2.c: Likewise.
10207 * config/nvptx/nvptx.c: Likewise.
10208 * config/pa/pa.c: Likewise.
10209 * config/pdp11/pdp11.c: Likewise.
10210 * config/rl78/rl78-c.c: Likewise.
10211 * config/rl78/rl78.c: Likewise.
10212 * config/rs6000/rs6000-c.c: Likewise.
10213 * config/rs6000/rs6000.c: Likewise.
10214 * config/rx/rx.c: Likewise.
10215 * config/s390/s390-c.c: Likewise.
10216 * config/s390/s390.c: Likewise.
10217 * config/sh/sh-c.c: Likewise.
10218 * config/sh/sh-mem.cc: Likewise.
10219 * config/sh/sh.c: Likewise.
10220 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10221 * config/sh/sh_treg_combine.cc: Likewise.
10222 * config/sol2-c.c: Likewise.
10223 * config/sol2-cxx.c: Likewise.
10224 * config/sol2-stubs.c: Likewise.
10225 * config/sol2.c: Likewise.
10226 * config/sparc/sparc-c.c: Likewise.
10227 * config/sparc/sparc.c: Likewise.
10228 * config/spu/spu-c.c: Likewise.
10229 * config/spu/spu.c: Likewise.
10230 * config/stormy16/stormy16.c: Likewise.
10231 * config/tilegx/mul-tables.c: Likewise.
10232 * config/tilegx/tilegx-c.c: Likewise.
10233 * config/tilegx/tilegx.c: Likewise.
10234 * config/tilepro/mul-tables.c: Likewise.
10235 * config/tilepro/tilepro-c.c: Likewise.
10236 * config/tilepro/tilepro.c: Likewise.
10237 * config/v850/v850-c.c: Likewise.
10238 * config/v850/v850.c: Likewise.
10239 * config/vax/vax.c: Likewise.
10240 * config/visium/visium.c: Likewise.
10241 * config/vms/vms-c.c: Likewise.
10242 * config/vms/vms.c: Likewise.
10243 * config/vxworks.c: Likewise.
10244 * config/winnt-c.c: Likewise.
10245 * config/xtensa/xtensa.c: Likewise.
10246 * common/config/bfin/bfin-common.c: Likewise.
10248 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
10250 * tree.h (tree_code_for_canonical_type_merging): New function.
10251 * tree.c (gimple_canonical_types_compatible_p): Use
10252 tree_code_for_canonical_type_merging..
10254 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10258 * doc/tm.texi: Regenerate.
10259 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
10260 * target.def (TARGET_RELAXED_ORDERING): Likewise.
10261 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
10262 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
10263 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
10264 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
10265 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
10266 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
10267 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
10269 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10271 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
10272 register fma steering pass.
10273 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
10274 AARCH64_TUNE_FMA_STEERING.
10276 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
10278 * tree.c (verify_type_variant): Verify that type and variant is
10280 (gimple_canonical_types_compatible_p): Look for main variants.
10282 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10284 * config.gcc (powerpc*-*-*): Add support for a new configure
10285 option --with-advance-toolchain=<xxx> which overrides using the
10286 default header files, libraries and dynamic linker.
10288 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
10289 specs to support the configure --with-advance-toolchain=<xxx>
10291 (INCLUDE_EXTRA_SPEC): Likewise.
10292 (LINK_OS_EXTRA_SPEC32): Likewise.
10293 (LINK_OK_EXTRA_SPEC64): Likewise.
10294 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
10295 (DYNAMIC_LINKER_PREFIX): Likewise.
10296 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
10298 (GLIBC_DYNAMIC_LINKER32): Likewise.
10299 (GLIBC_DYNAMIC_LINKER64): Likewise.
10300 (LINK_OS_LINUX_SPEC32): Likewise.
10301 (LINK_OS_LINUX_SPEC64): Likewise.
10303 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
10304 configuration option.
10306 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
10309 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
10310 to determine current function ABI.
10311 (ix86_function_value_regno_p): Ditto.
10313 2015-06-03 Martin Liska <mliska@suse.cz>
10315 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
10316 * bitmap.h (struct bitmap_usage): Likewise.
10317 * ggc-common.c (struct ggc_usage): Likewise.
10318 * mem-stats.h (struct mem_location): Likewise.
10319 (struct mem_usage): Likewise.
10320 * vec.c (struct vec_usage): Likewise.
10322 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
10324 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
10327 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
10329 * doc/plugins.texi (enum plugin_event): New event.
10330 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
10331 and PLUGIN_FINISH_FUNCTION.
10332 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
10333 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
10335 2015-06-03 Richard Biener <rguenther@suse.de>
10337 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
10338 compute GROUP_GAP for the first element.
10339 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
10342 2015-06-03 Nick Clifton <nickc@redhat.com>
10344 * config/rl78/rl78-real.md: Add peepholes to avoid a register
10345 copy when calling a function.
10346 * config/rl78/rl78.c (need_to_save): Do not push the frame
10347 pointer in an interrupt handler prologue if it is never used.
10349 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10351 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
10353 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
10355 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
10356 reference when cloning alias node.
10358 2015-06-03 Martin Liska <mliska@suse.cz>
10360 * alloc-pool.h (struct pool_usage): Correct space padding.
10361 * ggc-page.c (ggc_print_statistics): Align columns in a report.
10362 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
10363 * tree.c (dump_tree_statistics): Align columns in a report.
10365 2015-06-03 Martin Liska <mliska@suse.cz>
10367 * alloc-pool.c (allocate_pool_descriptor): Remove.
10368 (struct pool_output_info): Likewise.
10369 (print_alloc_pool_statistics): Likewise.
10370 (dump_alloc_pool_statistics): Likewise.
10371 * alloc-pool.h (struct pool_usage): New struct.
10372 (pool_allocator::initialize): Change usage of memory statistics
10373 to a new interface.
10374 (pool_allocator::release): Likewise.
10375 (pool_allocator::allocate): Likewise.
10376 (pool_allocator::remove): Likewise.
10377 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
10378 for a pool allocator.
10379 * mem-stats.h (struct mem_location): Add new ctor.
10380 (struct mem_usage): Add counter for number of
10382 (mem_alloc_description::register_descriptor): New overload of
10383 * mem-stats.h (mem_location::to_string): New function.
10384 * bitmap.h (struct bitmap_usage): Use this new function.
10385 * ggc-common.c (struct ggc_usage): Likewise.
10388 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
10390 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
10391 of GCC_INSN_FLAGS_H block.
10393 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
10395 * explow.c (plus_constant): Update check after force_const_mem call
10396 to see if the value returned is not a NULL_RTX.
10398 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
10400 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
10401 remove instumentation thunks calling reachable functions.
10402 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
10403 * lto/lto-partition.c (privatize_symbol_name_1): New.
10404 (privatize_symbol_name): Privatize both decl and orig_decl
10405 names for instrumented functions.
10406 * cgraph.c (cgraph_node::verify_node): Add transparent
10407 alias chain check for instrumented node.
10409 2015-06-03 Marek Polacek <polacek@redhat.com>
10413 * tree.c (attribute_value_equal): Handle attribute format.
10414 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
10416 2015-06-03 Richard Biener <rguenther@suse.de>
10418 PR tree-optimization/63916
10419 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10420 Forward-propagate non-invariant addresses by splicing their
10421 reference ops if the result isn't going to be used by PRE.
10422 (vn_reference_lookup_3): Remove pointless assert.
10424 2015-06-03 Richard Biener <rguenther@suse.de>
10426 PR tree-optimization/66375
10427 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
10428 add to the evolution before following SSA edges.
10430 2015-06-03 Bin Cheng <bin.cheng@arm.com>
10432 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
10433 (dump_use, dump_cand, find_induction_variables): Pass new argument
10435 (record_use): Preserve the ssa name information in IV.
10437 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
10439 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
10441 (add_mode_tests): Don't add mode tests if the predicate only
10442 accepts scalar constant integers. Otherwise, allow the mode
10443 of "op" to be VOIDmode if the predicate does accept such integers.
10445 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
10448 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
10449 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
10450 (aarch64_secondary_reload): Likewise
10451 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
10453 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
10456 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
10457 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10460 * cprop.c (try_replace_reg): Check cost of constants before propagating.
10462 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10464 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
10465 provide access to the IBM extended double floating point mode if
10466 long double is IEEE 128-bit floating point.
10467 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
10468 point if long double is the IBM extended double type.
10470 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
10471 enable adding IEEE 128-bit floating point support.
10472 (-mfloat128-software): Likewise.
10473 (-mfloat128-sw): Likewise.
10475 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
10476 128-bit floating point types to occupy any register if
10477 -mlong-double-64. Do not allow use of IFmode/KFmode unless
10478 -mfloat128-software is enabled.
10479 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
10481 (rs6000_option_override_internal): Add -mfloat128-* support.
10482 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
10484 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
10485 and float128 type nodes.
10486 (ieee128_float_type_node): Likewise.
10487 (ibm128_float_type_node): Likewise.
10489 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10492 * config/aarch64/geniterators.sh: Rewrite in awk.
10494 2015-06-02 Martin Liska <mliska@suse.cz>
10496 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
10497 values to avoid -Wmaybe-uninitialized errors.
10499 2015-06-02 Richard Biener <rguenther@suse.de>
10502 * dwarf2out.c (lookup_context_die): New function.
10503 (resolve_addr): Avoid forcing a full DIE for the
10504 target of a DW_TAG_GNU_call_site during late compilation.
10505 Instead create a stub DIE without a type if we have a
10506 context DIE present.
10508 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
10510 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
10512 2015-06-02 Bin Cheng <bin.cheng@arm.com>
10514 PR tree-optimization/48052
10515 * cfgloop.h (struct control_iv): New.
10516 (struct loop): New field control_ivs.
10517 * tree-ssa-loop-niter.c : Include "stor-layout.h".
10518 (number_of_iterations_lt): Set no_overflow information.
10519 (number_of_iterations_exit): Init control iv in niter struct.
10520 (record_control_iv): New.
10521 (estimate_numbers_of_iterations_loop): Call record_control_iv.
10522 (loop_exits_before_overflow): New. Interface factored out of
10523 scev_probably_wraps_p.
10524 (scev_probably_wraps_p): Factor loop niter related code into
10525 loop_exits_before_overflow.
10526 (free_numbers_of_iterations_estimates_loop): Free control ivs.
10527 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
10529 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
10531 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
10532 the target doesn't belong to the current function.
10534 2015-06-02 Marek Polacek <polacek@redhat.com>
10536 PR middle-end/66345
10537 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
10538 get_maxval_strlen does not produce an INTEGER_CST.
10540 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
10542 * config/arc/constraints.md: Use lower-case names in match_code.
10543 * config/mmix/constraints.md: Likewise.
10545 2015-06-02 Richard Biener <rguenther@suse.de>
10547 PR tree-optimization/65961
10548 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
10549 check and clarify dump message.
10550 (vect_build_slp_tree): If all children are built up from scalars
10551 build up the parent from scalars instead.
10552 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
10554 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10557 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
10558 instead of print ... .
10560 2015-06-02 Alan Modra <amodra@gmail.com>
10562 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
10565 2015-06-02 Bin Cheng <bin.cheng@arm.com>
10567 PR tree-optimization/52563
10568 PR tree-optimization/62173
10569 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
10570 (alloc_iv, set_iv): New parameter.
10571 (determine_biv_step): Delete.
10572 (find_bivs): Inline original determine_biv_step. Pass new
10573 argument to set_iv.
10574 (idx_find_step): Use no_overflow information for conversion.
10575 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
10576 resolve_mixers handle folded_casts.
10577 (instantiate_scev_name): Change bool parameter to bool pointer.
10578 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
10579 (instantiate_array_ref, instantiate_scev_not): Ditto.
10580 (instantiate_scev_3, instantiate_scev_2): Ditto.
10581 (instantiate_scev_1, instantiate_scev_r): Ditto.
10582 (instantiate_scev_convert, ): Change parameter. Pass argument
10583 to chrec_convert_aggressive.
10584 (instantiate_scev): Change argument.
10585 (resolve_mixers): New parameter and set it.
10586 (scev_const_prop): New argument.
10587 * tree-scalar-evolution.h (resolve_mixers): New parameter.
10588 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
10590 (chrec_convert): New parameter. Move definition below.
10591 (chrec_convert_aggressive): New parameter and set it. Call
10592 convert_affine_scev.
10593 * tree-chrec.h (chrec_convert): New parameter.
10594 (chrec_convert_aggressive): Ditto.
10596 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
10598 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
10599 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
10600 the LHS of a no-return call if its type has variable size.
10601 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
10602 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
10604 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
10606 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
10607 * config.in: Regenerate.
10609 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
10611 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10612 consecutive accesses within outer-loop with force_vectorize
10613 for references with zero step in inner-loop.
10615 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
10617 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
10618 rather than from gcc/build directory.
10620 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
10623 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
10624 for __sync memory models, emit initial loads and final barriers as
10627 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
10630 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
10631 (aarch64_split_atomic_op): Check for __sync memory models, emit
10632 appropriate initial loads and final barriers.
10634 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
10636 * Makefile.in: Fix gcov dependencies that should
10637 not point to a build folder.
10639 2015-06-01 Richard Biener <rguenther@suse.de>
10642 2015-05-29 Richard Biener <rguenther@suse.de>
10644 PR tree-optimization/66314
10645 * tree-ssa-threadupdate.c (create_block_for_threading): Add
10646 parameter that says which loop the new block belongs to.
10647 (ssa_create_duplicates): Blocks duplicated for the threaded
10648 path belong to the loop of the thread destination.
10650 2015-06-01 Martin Liska <mliska@suse.cz>
10652 * sched-deps.c: Include pool-alloc.h before
10653 cselib.h header file is included.
10655 2015-06-01 Richard Biener <rguenther@suse.de>
10657 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
10660 2015-06-01 Martin Liska <mliska@suse.cz>
10662 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
10663 a function local variable.
10665 2015-06-01 Martin Liska <mliska@suse.cz>
10667 * alloc-pool.c (create_alloc_pool): Remove.
10668 (empty_alloc_pool): Likewise.
10669 (free_alloc_pool): Likewise.
10670 (free_alloc_pool_if_empty): Likewise.
10671 (pool_alloc): Likewise.
10672 (pool_free): Likewise.
10673 * alloc-pool.h: Remove old declarations.
10675 2015-06-01 Martin Liska <mliska@suse.cz>
10677 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
10678 (ira_create_object): Likewise.
10679 (ira_create_allocno): Likewise.
10680 (ira_create_live_range): Likewise.
10681 (copy_live_range): Likewise.
10682 (ira_finish_live_range): Likewise.
10683 (ira_free_allocno_costs): Likewise.
10684 (finish_allocno): Likewise.
10685 (finish_allocnos): Likewise.
10686 (initiate_prefs): Likewise.
10687 (ira_create_pref): Likewise.
10688 (finish_pref): Likewise.
10689 (finish_prefs): Likewise.
10690 (initiate_copies): Likewise.
10691 (ira_create_copy): Likewise.
10692 (finish_copy): Likewise.
10693 (finish_copies): Likewise.
10694 (finish_prefs): Likewise.
10696 2015-06-01 Martin Liska <mliska@suse.cz>
10698 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
10699 (allocate_and_init_ipcp_value): Likewise.
10700 (ipcp_lattice::add_value): Likewise.
10701 (merge_agg_lats_step): Likewise.
10702 (ipcp_driver): Likewise.
10703 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
10704 (ipa_free_all_structures_after_iinln): Likewise.
10705 * ipa-prop.h: Likewise.
10707 2015-06-01 Martin Liska <mliska@suse.cz>
10709 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
10711 (set_hint_predicate): Likewise.
10712 (inline_summary_alloc): Likewise.
10713 (reset_inline_edge_summary): Likewise.
10714 (reset_inline_summary): Likewise.
10715 (set_cond_stmt_execution_predicate): Likewise.
10716 (set_switch_stmt_execution_predicate): Likewise.
10717 (compute_bb_predicates): Likewise.
10718 (estimate_function_body_sizes): Likewise.
10719 (inline_free_summary): Likewise.
10721 2015-06-01 Martin Liska <mliska@suse.cz>
10723 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
10724 (ipa_edge_duplication_hook): Likewise.
10725 (ipa_free_all_structures_after_ipa_cp): Likewise.
10726 (ipa_free_all_structures_after_iinln): Likewise.
10728 2015-06-01 Martin Liska <mliska@suse.cz>
10730 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
10731 (ipa_profile_generate_summary): Likewise.
10732 (ipa_profile_read_summary): Likewise.
10733 (ipa_profile): Likewise.
10735 2015-06-01 Martin Liska <mliska@suse.cz>
10737 * tree-ssa-structalias.c (new_var_info): Use new type-based
10739 (new_constraint): Likewise.
10740 (init_alias_vars): Likewise.
10741 (delete_points_to_sets): Likewise.
10743 2015-06-01 Martin Liska <mliska@suse.cz>
10745 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
10746 (free_strinfo): Likewise.
10747 (pass_strlen::execute): Likewise.
10749 2015-06-01 Martin Liska <mliska@suse.cz>
10751 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
10753 (vn_reference_insert_pieces): Likewise.
10754 (vn_phi_insert): Likewise.
10755 (visit_reference_op_call): Likewise.
10756 (copy_phi): Likewise.
10757 (copy_reference): Likewise.
10758 (process_scc): Likewise.
10759 (allocate_vn_table): Likewise.
10760 (free_vn_table): Likewise.
10762 2015-06-01 Martin Liska <mliska@suse.cz>
10764 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
10766 (add_repeat_to_ops_vec): Likewise.
10767 (get_ops): Likewise.
10768 (maybe_optimize_range_tests): Likewise.
10769 (init_reassoc): Likewise.
10770 (fini_reassoc): Likewise.
10772 2015-06-01 Martin Liska <mliska@suse.cz>
10774 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
10776 (bitmap_set_new): Likewise.
10777 (get_or_alloc_expr_for_constant): Likewise.
10778 (get_or_alloc_expr_for): Likewise.
10779 (phi_translate_1): Likewise.
10780 (compute_avail): Likewise.
10781 (init_pre): Likewise.
10782 (fini_pre): Likewise.
10784 2015-06-01 Martin Liska <mliska@suse.cz>
10786 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
10787 (delete_dep_node): Likewise.
10788 (create_deps_list): Likewise.
10789 (free_deps_list): Likewise.
10790 (sched_deps_init): Likewise.
10791 (sched_deps_finish): Likewise.
10793 2015-06-01 Martin Liska <mliska@suse.cz>
10795 * regcprop.c (free_debug_insn_changes): Use new type-based
10797 (replace_oldest_value_reg): Likewise.
10798 (pass_cprop_hardreg::execute): Likewise.
10800 2015-06-01 Martin Liska <mliska@suse.cz>
10802 * ira-build.c (initiate_cost_vectors): Use new type-based
10804 (ira_allocate_cost_vector): Likewise.
10805 (ira_free_cost_vector): Likewise.
10806 (finish_cost_vectors): Likewise.
10808 2015-06-01 Martin Liska <mliska@suse.cz>
10810 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
10812 (free_sched_pools): Likewise.
10813 * sel-sched-ir.h (_list_alloc): Likewise.
10814 (_list_remove): Likewise.
10816 2015-06-01 Martin Liska <mliska@suse.cz>
10818 * stmt.c (add_case_node): Use new type-based pool allocator.
10819 (expand_case): Likewise.
10820 (expand_sjlj_dispatch_table): Likewise.
10822 2015-06-01 Martin Liska <mliska@suse.cz>
10824 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
10825 (free_bb): Likewise.
10826 (pass_cse_reciprocals::execute): Likewise.
10828 2015-06-01 Martin Liska <mliska@suse.cz>
10830 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
10831 (sra_deinitialize) Likewise.
10832 (create_access_1) Likewise.
10833 (build_accesses_from_assign) Likewise.
10834 (create_artificial_child_access) Likewise.
10836 2015-06-01 Martin Liska <mliska@suse.cz>
10838 * dse.c (get_group_info):Use new type-based pool allocator.
10839 (dse_step0) Likewise.
10840 (free_store_info) Likewise.
10841 (delete_dead_store_insn) Likewise.
10842 (free_read_records) Likewise.
10843 (record_store) Likewise.
10844 (replace_read) Likewise.
10845 (check_mem_read_rtx) Likewise.
10846 (scan_insn) Likewise.
10847 (dse_step1) Likewise.
10848 (dse_step7) Likewise.
10850 2015-06-01 Martin Liska <mliska@suse.cz>
10852 * df-scan.c (struct df_scan_problem_data):Use new type-based
10854 (df_scan_free_internal) Likewise.
10855 (df_scan_alloc) Likewise.
10856 (df_grow_reg_info) Likewise.
10857 (df_free_ref) Likewise.
10858 (df_insn_create_insn_record) Likewise.
10859 (df_mw_hardreg_chain_delete) Likewise.
10860 (df_insn_info_delete) Likewise.
10861 (df_free_collection_rec) Likewise.
10862 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
10863 (df_sort_and_compress_mws) Likewise.
10864 (df_ref_create_structure) Likewise.
10865 (df_ref_record) Likewise.
10867 2015-06-01 Martin Liska <mliska@suse.cz>
10869 * df-problems.c (df_chain_create):Use new type-based pool allocator.
10870 (df_chain_unlink_1) Likewise.
10871 (df_chain_unlink) Likewise.
10872 (df_chain_remove_problem) Likewise.
10873 (df_chain_alloc) Likewise.
10874 (df_chain_free) Likewise.
10875 * df.h (struct dataflow) Likewise.
10877 2015-06-01 Martin Liska <mliska@suse.cz>
10879 * cselib.c (new_elt_list):Use new type-based pool allocator.
10880 (new_elt_loc_list) Likewise.
10881 (unchain_one_elt_list) Likewise.
10882 (unchain_one_elt_loc_list) Likewise.
10883 (unchain_one_value) Likewise.
10884 (new_cselib_val) Likewise.
10885 (cselib_init) Likewise.
10886 (cselib_finish) Likewise.
10888 2015-06-01 Martin Liska <mliska@suse.cz>
10890 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
10891 (sh_reorg) Likewise.
10893 2015-06-01 Martin Liska <mliska@suse.cz>
10895 * cfg.c (initialize_original_copy_tables):Use new type-based
10897 (free_original_copy_tables) Likewise.
10898 (copy_original_table_clear) Likewise.
10899 (copy_original_table_set) Likewise.
10901 2015-06-01 Martin Liska <mliska@suse.cz>
10903 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
10905 (asan_mem_ref_new) Likewise.
10906 (free_mem_ref_resources) Likewise.
10908 2015-06-01 Martin Liska <mliska@suse.cz>
10910 * var-tracking.c (variable_htab_free):Use new type-based
10912 (attrs_list_clear) Likewise.
10913 (attrs_list_insert) Likewise.
10914 (attrs_list_copy) Likewise.
10915 (shared_hash_unshare) Likewise.
10916 (shared_hash_destroy) Likewise.
10917 (unshare_variable) Likewise.
10918 (var_reg_delete_and_set) Likewise.
10919 (var_reg_delete) Likewise.
10920 (var_regno_delete) Likewise.
10921 (drop_overlapping_mem_locs) Likewise.
10922 (variable_union) Likewise.
10923 (insert_into_intersection) Likewise.
10924 (canonicalize_values_star) Likewise.
10925 (variable_merge_over_cur) Likewise.
10926 (dataflow_set_merge) Likewise.
10927 (remove_duplicate_values) Likewise.
10928 (variable_post_merge_new_vals) Likewise.
10929 (dataflow_set_preserve_mem_locs) Likewise.
10930 (dataflow_set_remove_mem_locs) Likewise.
10931 (variable_from_dropped) Likewise.
10932 (variable_was_changed) Likewise.
10933 (set_slot_part) Likewise.
10934 (clobber_slot_part) Likewise.
10935 (delete_slot_part) Likewise.
10936 (loc_exp_insert_dep) Likewise.
10937 (notify_dependents_of_changed_value) Likewise.
10938 (emit_notes_for_differences_1) Likewise.
10939 (vt_emit_notes) Likewise.
10940 (vt_initialize) Likewise.
10941 (vt_finalize) Likewise.
10943 2015-06-01 Martin Liska <mliska@suse.cz>
10945 * ira-color.c (init_update_cost_records):Use new type-based
10947 (get_update_cost_record) Likewise.
10948 (free_update_cost_record_list) Likewise.
10949 (finish_update_cost_records) Likewise.
10950 (initiate_cost_update) Likewise.
10952 2015-06-01 Martin Liska <mliska@suse.cz>
10954 * lra.c (init_insn_regs): Use new type-based pool allocator.
10955 (new_insn_reg) Likewise.
10956 (free_insn_reg) Likewise.
10957 (free_insn_regs) Likewise.
10958 (finish_insn_regs) Likewise.
10959 (init_insn_recog_data) Likewise.
10960 (init_reg_info) Likewise.
10961 (finish_reg_info) Likewise.
10962 (lra_free_copies) Likewise.
10963 (lra_create_copy) Likewise.
10964 (invalidate_insn_data_regno_info) Likewise.
10966 2015-06-01 Martin Liska <mliska@suse.cz>
10968 * lra-lives.c (free_live_range): Use new type-based pool allocator.
10969 (free_live_range_list) Likewise.
10970 (create_live_range) Likewise.
10971 (copy_live_range) Likewise.
10972 (lra_merge_live_ranges) Likewise.
10973 (remove_some_program_points_and_update_live_ranges) Likewise.
10974 (lra_live_ranges_init) Likewise.
10975 (lra_live_ranges_finish) Likewise.
10977 2015-06-01 Martin Liska <mliska@suse.cz>
10979 * et-forest.c (et_new_occ): Use new type-based pool allocator.
10980 (et_new_tree): Likewise.
10981 (et_free_tree): Likewise.
10982 (et_free_tree_force): Likewise.
10983 (et_free_pools): Likewise.
10984 (et_split): Likewise.
10986 2015-06-01 Martin Liska <mliska@suse.cz>
10988 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
10990 * alloc-pool.h (pool_allocator::pool_allocator): New function.
10991 (pool_allocator::release): Likewise.
10992 (inline pool_allocator::release_if_empty): Likewise.
10993 (inline pool_allocator::~pool_allocator): Likewise.
10994 (pool_allocator::allocate): Likewise.
10995 (pool_allocator::remove): Likewise.
10997 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
10999 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
11002 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11004 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
11006 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
11007 (arm_macro_fusion_p): Likewise.
11008 (arm_macro_fusion_pair_p): Likewise.
11010 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11012 * config/aarch64/aarch64-protos.h (tune_params): Rename
11013 fuseable_ops to fusible_ops.
11014 * config/aarch64/aarch64.c (generic_tunings): Rename
11015 fuseable_ops to fusible_ops.
11016 (cortexa53_tunings): Likewise.
11017 (cortexa57_tunings): Likewise.
11018 (thunderx_tunings): Likewise.
11019 (xgene1_tunings): Likewise.
11020 (aarch64_macro_fusion_p): Likewise.
11021 (aarch64_macro_fusion_pair_p): Likewise.
11023 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
11025 * config/s390/driver-native.c: New file.
11026 * config/s390/x-native: New file.
11027 * config.host: Add new files for s390.
11028 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
11030 * config.gcc: Likewise.
11031 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
11032 * config/s390/s390-opts.h (enum processor_type): Ditto.
11033 * config/s390/s390.c (s390_option_override): Catch unhandled
11036 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
11039 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
11040 redirection for instrumented calls.
11041 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
11042 (append_compiler_options): Append -fcheck-pointer-bounds.
11043 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
11044 (chkp_redirect_edge): New.
11045 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
11046 (chkp_redirect_edge): New.
11048 2015-06-01 Richard Biener <rguenther@suse.de>
11050 PR tree-optimization/66280
11051 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
11054 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11056 * config/aarch64/aarch64.md
11057 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
11060 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
11062 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
11063 Remove obsolete kludge.
11065 2015-06-01 Richard Biener <rguenther@suse.de>
11067 * tree-ssa-reassoc.c (get_rank): Simplify.
11069 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
11071 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
11072 * configure: Regenerated.
11074 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
11076 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
11077 issue (add space between string literal and macro).
11078 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
11080 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
11082 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
11083 implict or explicit -fPIE or -fpie.
11085 2015-05-30 Mike Frysinger <vapier@gentoo.org>
11087 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
11089 2015-05-28 DJ Delorie <dj@redhat.com>
11091 * expmed.c (extract_bit_field_1): Avoid clobbering a
11092 yet-to-be-used base/index register.
11094 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
11096 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
11097 (alias_stats): Add num_universal.
11098 (alias_set_subset_of): Special case pointers; be ready for NULL
11100 (alias_sets_conflict_p): Special case pointers; be ready for NULL
11102 (init_alias_set_entry): Break out from ...
11103 (record_alias_subset): ... here; propagate new fields;
11104 allocate children only when really needed.
11105 (get_alias_set): Do less generous pointer globbing.
11106 (dump_alias_stats_in_alias_c): Update statistics.
11108 2015-05-30 Alan Modra <amodra@gmail.com>
11110 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
11111 correct block for use of r12.
11112 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
11114 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
11117 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
11120 2015-05-29 Jakub Jelinek <jakub@redhat.com>
11122 PR tree-optimization/66142
11123 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
11124 virtual phis that feed themselves.
11126 2015-05-29 Richard Biener <rguenther@suse.de>
11128 PR tree-optimization/66314
11129 * tree-ssa-threadupdate.c (create_block_for_threading): Add
11130 parameter that says which loop the new block belongs to.
11131 (ssa_create_duplicates): Blocks duplicated for the threaded
11132 path belong to the loop of the thread destination.
11134 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11136 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
11137 to cleanup-saved-temps.
11138 * doc/sourcebuild.texi (Clean up generated test files): Expand
11140 (dg-keep-saved-temps): Document new proc.
11141 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
11142 cleanup-saved-temps): Remove.
11144 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
11146 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
11147 gcc_AC_CHECK_DECLS.
11148 * configure: Regenerate.
11150 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11152 * config/nios2/linux.h (CPP_SPEC): Define.
11154 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11156 * config/microblaze/linux.h (CPP_SPEC): Define.
11158 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11160 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
11161 -pthread is specified.
11163 2015-05-28 Richard Biener <rguenther@suse.de>
11165 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
11166 (vect_fixup_scalar_cycles_with_patterns): Likewise.
11167 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
11168 after pattern recog.
11169 (vect_create_epilog_for_reduction): Properly handle reductions
11171 (vectorizable_reduction): Likewise.
11172 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
11174 (vect_get_constant_vectors): Create the correct number of
11175 initial values for reductions.
11176 (vect_schedule_slp_instance): Handle reduction chains that are
11177 type changing properly.
11178 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
11180 2015-05-28 Richard Biener <rguenther@suse.de>
11182 PR tree-optimization/66142
11183 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
11184 values better in memcpy destination handling. Handle non-aliasing
11187 2015-05-28 Lawrence Velázquez <vq@larryv.me>
11190 * config/darwin-c.c (version_components): New global enum.
11191 (parse_version, version_as_legacy_macro)
11192 (version_as_modern_macro, macosx_version_as_macro): New functions.
11193 (version_as_macro): Remove.
11194 (darwin_cpp_builtins): Use new function.
11196 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
11198 * builtins.c (expand_builtin_acc_on_device): Mark parameters
11199 with ATTRIBUTE_UNUSED.
11201 2015-05-28 Julian Brown <julian@codesourcery.com>
11205 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
11206 sequence for !ACCEL_COMPILER.
11208 2015-05-28 Nick Clifton <nickc@redhat.com>
11210 * config/rx/rx.c (push_regs): New function. Extracts code from...
11211 (rx_expand_prologue): ... here. Use push_regs to push even small
11212 spans of registers.
11213 (pop_regs): New function.
11214 (rx_expand_epilogue): Use pop_regs to pop even small spans of
11217 2015-05-28 Richard Biener <rguenther@suse.de>
11219 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
11221 (SLP_INSTANCE_BODY_COST_VEC): Remove.
11222 (vect_update_slp_costs_according_to_vf): Likewise.
11223 (vect_slp_analyze_operations): Update prototype.
11224 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
11225 vect_update_slp_costs_according_to_vf, adjust.
11226 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
11227 (vect_analyze_slp_cost_1): Likewise.
11228 (vect_analyze_slp_cost): Likewise. Properly deal with
11229 widening reduction ops. Commit body costs.
11230 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
11231 cost for loops from here.
11232 (vect_slp_analyze_operations): But do it from here when
11233 the vectorization factor is known and stmts are analyzed.
11234 (vect_bb_vectorization_profitable_p): Simplify.
11235 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
11236 (vect_update_slp_costs_according_to_vf): Remove.
11238 2015-05-27 Magnus Granberg <zorry@gentoo.org>
11239 H.J. Lu <hongjiu.lu@intel.com>
11241 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
11242 (BUILD_CFLAGS): Likewise.
11243 (BUILD_CXXFLAGS): Likewise.
11244 (LINKER): Add @NO_PIE_FLAG@.
11245 (BUILD_LDFLAGS): Likewise.
11246 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
11247 --enable-default-pie.
11248 * common.opt (fPIE): Initialize to -1.
11250 (no-pie): New option.
11251 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
11252 * configure.ac: Add --enable-default-pie.
11253 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
11254 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
11255 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
11256 * gcc.c (NO_PIE_SPEC): New.
11257 (PIE_SPEC): Likewise.
11258 (NO_FPIE1_SPEC): Likewise.
11259 (FPIE1_SPEC): Likewise.
11260 (NO_FPIE2_SPEC): Likewise.
11261 (FPIE2_SPEC): Likewise.
11262 (NO_FPIE2_SPEC): Likewise.
11263 (FPIE_SPEC): Likewise.
11264 (NO_FPIE_SPEC): Likewise.
11265 (NO_FPIC1_SPEC): Likewise.
11266 (FPIC1_SPEC): Likewise.
11267 (NO_FPIC2_SPEC): Likewise.
11268 (FPIC2_SPEC): Likewise.
11269 (NO_FPIC2_SPEC): Likewise.
11270 (FPIC_SPEC): Likewise.
11271 (NO_FPIC_SPEC): Likewise.
11272 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
11273 (FPIE1_OR_FPIC1_SPEC): Likewise.
11274 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
11275 (FPIE2_OR_FPIC2_SPEC): Likewise.
11276 (NO_FPIE_AND_FPIC_SPEC): Likewise.
11277 (FPIE_OR_FPIC_SPEC): Likewise.
11278 (LD_PIE_SPEC): Likewise.
11279 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
11280 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
11281 * config/darwin.h (PIE_SPEC): Renamed to ...
11282 (DARWIN_PIE_SPEC): This.
11283 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
11284 * config/darwin9.h (PIE_SPEC): Renamed to ...
11285 (DARWIN_PIE_SPEC): This.
11286 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
11287 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
11288 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
11289 FPIE2_OR_FPIC2_SPEC.
11290 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
11291 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
11292 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
11293 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11294 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11295 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11296 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
11297 * config/m32r/m32r.h (ASM_SPEC): Likewise.
11298 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
11299 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11300 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
11301 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
11302 * config/sparc/linux.h (ASM_SPEC): Likewise.
11303 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11304 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
11305 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
11306 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11307 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11308 * config/sparc/sparc.h (ASM_SPEC): Likewise.
11309 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
11310 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
11311 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
11312 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
11313 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
11314 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
11315 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
11316 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
11317 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
11318 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
11319 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
11320 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
11321 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11322 * config/vax/linux.h (ASM_SPEC): Likewise.
11323 * doc/install.texi: Document --enable-default-pie.
11324 * doc/invoke.texi: Document -no-pie.
11325 * config.in: Regenerated.
11326 * configure: Likewise.
11328 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
11330 PR rtl-optimization/66168
11331 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
11332 can_move_invariant_reg.
11334 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
11337 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
11338 REG_EQUAL note when doing insert.
11340 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
11341 instead of "%d" for 'o' operand.
11343 2015-05-27 Nathan Sidwell <nathan@acm.org>
11346 * tree.c (build_pointer_type_for_mode): Canonical type does not
11347 inherit can_alias_all.
11348 (build_reference_type_for_mode): Likewise.
11350 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
11352 * expr.h (array_at_struct_end_p): Move to...
11353 (array_ref_element_size): Likewise.
11354 (component_ref_field_offset): Likewise.
11355 * tree.h (array_ref_element_size): ...here.
11356 (array_at_struct_end_p): Likewise.
11357 (component_ref_field_offset): Likewise.
11358 * expr.c (array_ref_element_size): Move to...
11359 (array_ref_low_bound): Likewise.
11360 (array_at_struct_end_p): Likewise.
11361 (array_ref_up_bound): Likewise.
11362 (component_ref_field_offset): Likewise.
11363 * tree.c (array_ref_element_size): ...here.
11364 (array_ref_low_bound): Likewise.
11365 (array_ref_up_bound): Likewise.
11366 (array_at_struct_end_p): Likewise.
11367 (component_ref_field_offset): Likewise.
11369 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
11370 Szabolcs Nagy <szabolcs.nagy@arm.com>
11372 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
11374 2015-05-27 Jason Merrill <jason@redhat.com>
11377 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
11378 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
11379 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
11381 2015-05-22 Aditya Kumar <hiraditya@msn.com>
11383 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
11386 * statistics.c (statistics_fini_pass): Print pass name.
11388 2015-05-27 Richard Biener <rguenther@suse.de>
11390 PR tree-optimization/66272
11392 2014-08-15 Richard Biener <rguenther@suse.de>
11394 PR tree-optimization/62031
11395 * tree-data-ref.c (dr_analyze_indices): Do not set
11396 DR_UNCONSTRAINED_BASE.
11397 (dr_may_alias_p): All indirect accesses have to go the
11398 formerly DR_UNCONSTRAINED_BASE path.
11399 * tree-data-ref.h (struct indices): Remove
11400 unconstrained_base member.
11401 (DR_UNCONSTRAINED_BASE): Remove.
11403 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
11405 * dwarf2out.c: Remove block_map.
11406 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
11407 (gen_lexical_block_die): Same.
11408 (dwarf2out_function_decl): Remove block_map use.
11409 (dwarf2out_c_finalize): Same.
11410 * tree-core.h (struct tree_block): Add die field.
11411 * tree.h (BLOCK_DIE): New.
11413 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11416 * expr.c (memory_load_overlap): New function.
11417 (emit_push_insn): When pushing partial args to the stack would
11418 clobber the register part load the overlapping part into a pseudo
11419 and put it into the hard reg after pushing. Change return type
11420 to bool. Add bool argument.
11421 * expr.h (emit_push_insn): Change return type to bool.
11423 * calls.c (expand_call): Cancel sibcall optimization when encountering
11424 partial argument on targets with ARGS_GROW_DOWNWARD and
11425 !STACK_GROWS_DOWNWARD.
11426 (emit_library_call_value_1): Update callsite of emit_push_insn.
11427 (store_one_arg): Likewise.
11429 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
11431 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
11433 2015-05-27 Martin Liska <mliska@suse.cz>
11435 * Makefile.in: Add additional dependencies related to memory report
11437 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
11438 * bitmap.c (struct bitmap_descriptor_d): Remove.
11439 (struct loc): Likewise.
11440 (struct bitmap_desc_hasher): Likewise.
11441 (bitmap_desc_hasher::hash): Likewise.
11442 (bitmap_desc_hasher::equal): Likewise.
11443 (get_bitmap_descriptor): Likewise.
11444 (bitmap_register): User new memory descriptor API.
11445 (register_overhead): Likewise.
11446 (bitmap_find_bit): Register nsearches and search_iter statistics.
11447 (struct bitmap_output_info): Remove.
11448 (print_statistics): Likewise.
11449 (dump_bitmap_statistics): Use new memory descriptor.
11450 * bitmap.h (struct bitmap_usage): New class.
11451 * genmatch.c: Extend header file inclusion.
11452 * genpreds.c: Likewise.
11453 * ggc-common.c (struct ggc_usage): New class.
11454 (struct ggc_loc_desc_hasher): Remove.
11455 (ggc_loc_desc_hasher::hash): Likewise.
11456 (ggc_loc_desc_hasher::equal): Likewise.
11457 (struct ggc_ptr_hash_entry): Likewise.
11458 (struct ptr_hash_hasher): Likewise.
11459 (ptr_hash_hasher::hash): Likewise.
11460 (ptr_hash_hasher::equal): Likewise.
11461 (make_loc_descriptor): Likewise.
11462 (ggc_prune_ptr): Likewise.
11463 (dump_ggc_loc_statistics): Use new memory descriptor.
11464 (ggc_record_overhead): Likewise.
11465 (ggc_free_overhead): Likewise.
11466 (final_cmp_statistic): Remove.
11467 (cmp_statistic): Likewise.
11468 (ggc_add_statistics): Liekwise.
11469 (ggc_prune_overhead_list): Likewise.
11470 * hash-map-traits.h: New file.
11471 * hash-map.h (struct default_hashmap_traits): Move the traits to a
11472 separate header file.
11473 * hash-set.h: Pass memory statistics info to ctor.
11474 * hash-table.c (void dump_hash_table_loc_statistics): New function.
11475 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
11476 (hash_table::~hash_table): Register memory release operation.
11477 (hash_table::alloc_entries): Handle memory allocation operation.
11478 (hash_table::expand): Likewise.
11479 * inchash.c (iterative_hash_hashval_t): Move implementation to header
11481 (iterative_hash_host_wide_int): Likewise.
11482 * inchash.h (class hash): Likewise.
11483 * mem-stats-traits.h: New file.
11484 * mem-stats.h: New file.
11485 (mem_location): Add new class.
11486 (mem_usage): Likewise.
11487 (mem_alloc_description): Likewise.
11488 * sese.c: Add new header file inclusision.
11489 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
11491 * tree-sra.c: Add new header file inclusision.
11492 * vec.c (struct vec_descriptor): Remove.
11493 (hash_descriptor): Likewise.
11494 (struct vec_usage): Likewise.
11495 (struct ptr_hash_entry): Likewise.
11496 (hash_ptr): Likewise.
11497 (eq_ptr): Likewise.
11498 (vec_prefix::register_overhead): Use new memory descriptor API.
11499 (vec_prefix::release_overhead): Likewise.
11500 (add_statistics): Remove.
11501 (dump_vec_loc_statistics): Use new memory descriptor API.
11502 * vec.h (struct vec_prefix): Likewise.
11503 (va_heap::reserve): Likewise.
11504 (va_heap::release): Likewise.
11505 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
11507 2015-05-27 Richard Biener <rguenther@suse.de>
11509 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
11510 earlier and remove ??? comment.
11511 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
11512 and got called from loop analysis bail out. Always pass the SLP
11513 node to the vectorizable_* functions.
11514 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
11515 the premature SLP check here.
11516 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
11517 detected SLP stmts.
11518 (vect_detect_hybrid_slp_1): Likewise.
11520 2015-05-26 Jeff Law <law@redhat.com>
11522 * combine.c (find_split_point): Verify that the shift count is a
11523 constant when choosing (plus (ashift ...)) as a split point.
11525 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
11526 No functional changes.
11528 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
11530 * ipa-polymorphic-call.c
11531 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
11532 case when call target is already known.
11534 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
11537 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
11538 take into account the case that operands[1] and operands[2]
11539 are the same register.
11541 2015-05-26 Michael Matz <matz@suse.de>
11543 PR middle-end/66251
11545 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
11547 (vect_create_vectorized_demotion_stmts): Always set
11548 STMT_VINFO_VEC_STMT, also with SLP.
11549 (vectorizable_store): Handle strided group stores.
11551 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11554 * config/aarch64/aarch64.md
11555 (*adds_shift_imm_<mode>): New pattern.
11556 (*subs_shift_imm_<mode>): Likewise.
11557 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
11558 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
11559 (*add_uxt<mode>_shift2): Likewise.
11560 (*add_uxtsi_shift2_uxtw): Likewise.
11561 (*sub_uxt<mode>_shift2): Likewise.
11562 (*sub_uxtsi_shift2_uxtw): Likewise.
11564 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
11566 * config/rs6000/constraints.md (Y, U): Use match_test.
11568 2015-05-26 Christian Bruel <christian.bruel@st.com>
11571 * config/arm/arm.c (arm_option_check_internal)
11572 (arm_option_params_internal): Check opts->target_flags to set macros.
11573 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
11574 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
11575 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
11576 (builtin_define): Replaced with def_or_undef_macro.
11577 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
11578 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
11579 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
11580 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
11581 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
11582 (TARGET_ARM_FEATURE_LDREX_P)
11583 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
11584 * config/arm/arm-c.c (def_or_undef_macro): New function.
11585 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
11587 2015-05-26 Christian Bruel <christian.bruel@st.com>
11589 * c-common.h (builtin_define_with_int_value)
11590 (builtin_define_type_sizeof): Declare.
11591 * c-cppbuiltin.c (builtin_define_with_int_value)
11592 (builtin_define_type_sizeof): Externalize.
11593 (builtin_define_std): Cleanup declaration.
11594 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
11595 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
11596 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
11597 (builtin_define, builtin_assert): New macros.
11599 2015-05-26 Richard Biener <rguenther@suse.de>
11601 PR tree-optimization/66142
11602 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
11603 MEM_REFs for the same base address.
11605 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11608 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
11610 2015-05-26 Jason Merrill <jason@redhat.com>
11612 * configure.ac: Set CXXFLAGS for ISL test.
11613 * configure: Regenerate.
11615 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
11616 strstr and basename.
11617 * configure: Regenerate.
11619 2015-05-26 Richard Biener <rguenther@suse.de>
11621 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
11622 X % C -> X & (C - 1) for C being a power-of two to ...
11623 * match.pd: ... patterns.
11625 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
11627 * match.pd (swapped_tcc_comparison): New operator list.
11628 (-A CMP -B): New simplification.
11629 * fold-const.c (fold_comparison): Remove corresponding code.
11631 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
11633 * caller-save.c (init_caller_save): Base temporary register numbers
11634 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
11635 * cfgloopanal.c (init_set_costs): Likewise.
11636 * dojump.c (prefer_and_bit_test): Likewise.
11637 * expr.c (init_expr_target): Likewise.
11638 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11639 * lower-subreg.c (init_lower_subreg): Likewise.
11640 * postreload.c (reload_cse_regs_1): Likewise.
11642 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
11644 * gensupport.h (compute_test_codes): Declare.
11645 * gensupport.c (compute_predicate_codes): Rename to...
11646 (compute_test_codes): ...this. Generalize error message.
11647 (process_define_predicate): Update accordingly.
11648 * genpreds.c (compute_maybe_allows): Delete.
11649 (add_constraint): Use compute_test_codes to determine whether
11650 something can accept a SUBREG, REG or MEM.
11652 2015-05-26 Torvald Riegel <triegel@redhat.com>
11654 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
11655 'memory model' to align with C++11; fix description of memory orders;
11658 2015-05-26 Richard Biener <rguenther@suse.de>
11660 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
11661 (vect_analyze_loop_operations): ... here. Remove slp parameter,
11662 detect whether we apply SLP. Remove call to
11663 vect_update_slp_costs_according_to_vf.
11664 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
11665 vect_update_slp_costs_according_to_vf from here. Dispatch
11666 to vect_slp_analyze_operations to analyze SLP stmts.
11667 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
11668 unused bb_vec_info parameter, adjust assert.
11669 (vect_slp_analyze_operations): Pass in the slp instance tree
11670 instead of bb_vec_info.
11671 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
11672 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
11674 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
11676 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
11677 Q_REGS. Expand comment.
11678 (REG_CLASS_NAMES): Ditto.
11679 (REG_CLASS_CONTENTS): Ditto.
11681 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
11684 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
11685 when LEGACY_INT_REGNO_P is processed.
11687 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
11689 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
11691 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11693 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
11694 register if not marked dead/unused, before return.
11696 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11699 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
11700 is set; check for assembler name at LTO time.
11701 (type_in_anonymous_namespace): Remove hacks, check that all
11702 anonymous types are called "<anon>"
11703 (odr_type_p): Simplify; add check for "<anon>"
11704 (odr_subtypes_equivalent): Add odr_type_p check.
11705 * tree.c (need_assembler_name_p): Even anonymous namespace needs
11708 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11710 * ipa-utils.h (method_class_type): Remove.
11711 * cgraphunit.c (walk_polymorphic_call_targets): Use
11712 TYPE_METHOD_BASETYPE.
11713 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
11714 on main variants only.
11715 (method_class_type): Remove.
11716 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
11717 (build_type_inheritance_graph): Likewise.
11718 * ipa-icf.c (sem_function::equals_wpa): Likewise.
11719 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
11720 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
11722 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11724 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
11725 is_typedef_decl, typedef_variant_p): Constify.
11726 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
11727 is_typedef_decl, typedef_variant_p): Constify.
11729 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11731 * defaults.h (gen_tablejump): New function.
11732 (HAVE_tablejump): Add default value.
11734 * stmt.c: Likewise.
11736 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11738 * defaults.h (gen_store_multiple): New function.
11739 (HAVE_store_multiple): Add default value.
11740 * expr.c (move_block_from_reg): Adjust.
11742 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11744 * defaults.h (gen_load_multiple): New function.
11745 (HAVE_load_multiple): Add default value.
11746 * expr.c (move_block_to_reg): Adjust.
11748 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11750 * defaults.h (gen_mem_signal_fence): New function.
11751 (HAVE_mem_signal_fence): Add default value.
11752 * optabs.c: Adjust.
11754 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11756 * defaults.h (gen_memory_barrier): New function.
11757 (HAVE_memory_barrier): Add default value.
11758 * optabs.c: Adjust.
11760 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11762 * defaults.h (gen_mem_thread_fence): New function.
11763 (HAVE_mem_thread_fence): Add default definition.
11764 * optabs.c: Adjust.
11766 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11768 * combine.c (find_split_point): Check the value of HAVE_lo_sum
11769 instead of if it is defined.
11770 (combine_simplify_rtx): Likewise.
11771 * lra-constraints.c (process_address_1): Likewise.
11772 * config/darwin.c: Adjust.
11773 * genconfig.c (main): Always define HAVE_lo_sum.
11775 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11777 * genmatch.c (parser::parse_operation): Reject expanding
11778 operator-list inside 'for'.
11780 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11782 * genmatch.c (parser::parse_for): Reject iterator if used as
11785 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11787 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
11788 after end of id-list.
11790 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
11792 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
11793 we do not try to compute canonical type for type that does not need
11795 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
11797 * tree.h (type_with_alias_set_p): New.
11799 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
11801 * tree.c (gimple_canonical_types_compatible_p): Do not compare
11802 function attributes.
11803 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
11805 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
11807 * Makefile.in (check_gcc_parallelize): Delete.
11808 (lang_checks_parallelized): Update comment.
11810 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
11812 PR rtl-optimization/66237
11813 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
11814 location of an "as_a" cast.
11816 2015-05-22 Jeff Law <law@redhat.com>
11818 * config/pa/pa.md (non-canonical shift-add insns): Remove.
11819 (peepholes with non-canonical RTL sources): Remove.
11820 (peepholes for indexed stores of FP regs in integer modes): Match and
11821 generate canonical RTL.
11823 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
11825 PR tree-optimization/63387
11826 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
11827 ((x ord x) & (y ord y) -> (x ord y),
11828 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
11829 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
11830 vectors like scalars.
11832 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
11834 * convert.c (convert_to_integer, convert_to_vector): Include the
11835 types in the error message.
11837 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
11839 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
11842 2015-05-22 Jeff Law <law@redhat.com>
11844 * config/pa/pa.md (integer_indexed_store splitters): Use
11845 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
11846 insns -- adjusting the constant 2nd operand accordingly.
11848 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
11849 (plus (ashift X log2) Y) if it is a split point.
11851 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
11852 out of hppa_legitimize_address to handle both forms of a multiply
11854 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
11855 Always generate the ASHIFT variant as the result is not directly
11856 used in a MEM. Update comments and refactor slightly to improve
11859 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11862 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
11863 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
11864 (aarch64_composite_type_p): Return false if given type and mode are
11865 for a short vector.
11867 2015-05-22 Richard Biener <rguenther@suse.de>
11869 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
11871 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
11872 patterns when determining whether SLP is pure.
11873 (vect_is_slp_reduction): Remove check for pattern stmts.
11874 (vect_is_simple_reduction_1): Remove dead code.
11875 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
11876 (vect_get_and_check_slp_defs): Pass in the stmt number.
11877 Allow the first def in a reduction to be not a pattern stmt when
11878 the rest of the stmts def are patterns.
11879 (vect_build_slp_tree_1): Allow tcc_expression codes like
11880 SAD_EXPR and DOT_PROD_EXPR.
11881 (vect_build_slp_tree): Adjust.
11882 (vect_analyze_slp): Refactor and move BB vect error message ...
11883 (vect_slp_analyze_bb_1): ... here.
11885 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
11887 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
11888 for CSWTCH temporary.
11890 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11892 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
11893 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
11896 2015-05-22 Richard Biener <rguenther@suse.de>
11898 PR tree-optimization/66251
11899 * tree-vect-stmts.c (vectorizable_conversion): Properly
11900 set STMT_VINFO_VEC_STMT even for the SLP case.
11902 2015-05-22 Marek Polacek <polacek@redhat.com>
11904 * doc/extend.texi: Use @pxref instead of @xref.
11906 2015-05-22 hiraditya <hiraditya@msn.com>
11908 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
11911 2015-05-22 Richard Biener <rguenther@suse.de>
11913 PR tree-optimization/65701
11914 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11915 Move peeling cost models into one place. Peel for alignment
11916 for single loads only if an aligned load is cheaper than
11919 2015-05-22 Marek Polacek <polacek@redhat.com>
11922 * doc/extend.texi (Enumerator Attributes): New section.
11923 Document syntax of enumerator attributes.
11925 2015-05-22 Richard Biener <rguenther@suse.de>
11927 * tree-vect-loop.c (get_reduction_op): New function.
11928 (vect_model_reduction_cost): Use it, add reduc_index parameter.
11929 Make ready for BB reductions.
11930 (vect_create_epilog_for_reduction): Use get_reduction_op.
11931 (vectorizable_reduction): Init reduc_index to a valid value.
11932 Adjust vect_model_reduction_cost call.
11933 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
11934 operand for reduction defaults. Add SAD_EXPR support.
11935 Assert we have a neutral op for SLP reductions.
11936 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
11937 walking pattern stmt ops only recurse to SSA names.
11939 2015-05-22 Richard Biener <rguenther@suse.de>
11941 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
11942 assert with guard, remove check on detected reduction.
11943 (vect_recog_sad_pattern): Likewise.
11944 (vect_recog_widen_sum_pattern): Likewise.
11946 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11948 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
11949 __always_inline__ attribute.
11950 (vaesdq_u8): Likewise.
11951 (vaesmcq_u8): Likewise.
11952 (vaesimcq_u8): Likewise.
11953 (vsha1cq_u32): Likewise.
11954 (vsha1mq_u32): Likewise.
11955 (vsha1pq_u32): Likewise.
11956 (vsha1h_u32): Likewise.
11957 (vsha1su0q_u32): Likewise.
11958 (vsha1su1q_u32): Likewise.
11959 (vsha256hq_u32): Likewise.
11960 (vsha256h2q_u32): Likewise.
11961 (vsha256su0q_u32): Likewise.
11962 (vsha256su1q_u32): Likewise.
11963 (vmull_p64): Likewise.
11964 (vmull_high_p64): Likewise.
11966 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11968 * final.c (final_scan_insn): Don't check HAVE_peephole with the
11970 * output.h: Likewise.
11971 * genconfig.c (main): Alwways define HAVE_peephole.
11972 * genpeep.c: Don't emit checks of HAVE_peephole.
11974 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11976 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
11977 check HAVE_conditional_move with the preprocessor.
11979 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11981 * genconfig.c (main): Always define HAVE_conditional_move.
11982 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
11983 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
11986 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11988 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
11989 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
11990 and FRAME_POINTER_REGNUM with the preprocessor.
11992 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11994 * defaults.h: Add default for STACK_PUSH_CODE.
11995 * expr.c: Don't redefine STACK_PUSH_CODE.
11996 * recog.c: Likewise.
11998 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12000 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
12001 sched-deps.c: Use if instead of preprocessor checks with
12002 STACK_GROWS_DOWNWARD.
12004 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12006 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
12008 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
12009 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
12010 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
12011 * doc/tm.texi: Regenerate.
12013 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
12016 * config/i386/constraints.md (Bg): New constraint for GOT memory
12018 * config/i386/i386.md (*call_got_x32): New pattern.
12019 (*call_value_got_x32): Likewise.
12020 * config/i386/predicates.md (GOT_memory_operand): New predicate.
12022 2015-05-21 Jakub Jelinek <jakub@redhat.com>
12024 PR tree-optimization/66233
12025 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
12028 2015-05-21 Jeff Law <law@redhat.com>
12030 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
12031 than MULT for shadd sequences.
12033 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
12035 * alias.c (alias_stats): New static var.
12036 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
12037 (dump_alias_stats_in_alias_c): New function.
12038 * alias.h (dump_alias_stats_in_alias_c): Declare.
12039 * tree-ssa-alias.c (dump_alias_stats): Call it.
12041 2015-05-08 Michael Matz <matz@suse.de>
12043 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
12045 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
12046 (STMT_VINFO_STRIDED_P): ... this.
12047 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
12048 (vect_verify_datarefs_alignment): Likewise.
12049 (vect_enhance_data_refs_alignment): Likewise.
12050 (vect_analyze_data_ref_access): Likewise.
12051 (vect_analyze_data_refs): Accept strided stores.
12052 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
12053 (vect_model_load_cost): Adjust for macro rename.
12054 (vectorizable_mask_load_store): Likewise.
12055 (vectorizable_load): Likewise.
12056 (vectorizable_store): Open code strided stores.
12058 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12060 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
12061 Document sqrt_insn.
12063 2015-05-21 Richard Biener <rguenther@suse.de>
12066 * match.pd: Guard pattern optimzing (int)(float)int
12067 conversions to apply only on GIMPLE.
12069 2015-05-21 Jeff Law <law@redhat.com>
12071 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
12072 multiply-accumulate/shift-add insn generation.
12074 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
12077 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
12078 operands[1] are the same.
12080 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
12082 PR middle-end/66221
12083 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
12084 build_distinct_type_copy to copy bounds.
12086 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
12088 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
12089 Change to unsigned int.
12091 2015-05-20 Jeff Law <law@redhat.com>
12093 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
12094 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
12095 (pa_shadd_constant_p): Allow constants for shadd insns rather
12096 than valid scaling constants for memory addresses.
12097 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
12098 * config/pa/predicates.md (mem_shadd_operand): New predicate.
12099 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
12100 (shift-add insns using ASHIFT): New patterns.
12102 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
12104 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
12106 (fix_up_fall_thru_edges): Likewise.
12107 (fix_crossing_conditional_branches): Likewise. Promote jump targets
12108 from to rtx_insn to rtx_code_label where feasible.
12109 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
12110 gen_move_insn (returned type changed to rtx_insn).
12111 * builtins.c (expand_errno_check): Fix arguments of
12112 do_compare_rtx_and_jump (now expects rtx_code_label).
12113 (expand_builtin_acc_on_device): Likewise.
12114 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
12115 invert_jump (now exprects rtx_jump_insn).
12116 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
12117 (construct_init_block): Use rtx_code_label.
12118 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
12119 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
12120 calling redirect_jump.
12121 (patch_jump_insn): Likewise.
12122 (redirect_branch_edge): Likewise.
12123 (force_nonfallthru_and_redirect): Likewise.
12124 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
12126 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
12127 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
12128 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
12129 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
12130 to store the value retured by gen_label_rtx.
12131 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
12133 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
12134 (split_branches): Fix calls of redirect_jump.
12135 * dojump.c (jumpifnot): Promote argument type from rtx to
12137 (jumpifnot_1): Likewise.
12138 (jumpif): Likewise.
12139 (jumpif_1): Likewise.
12140 (do_jump_1): Likewise.
12141 (do_jump): Likewise. Use rtx_code_label when feasible.
12142 (do_jump_by_parts_greater_rtx): Likewise.
12143 (do_jump_by_parts_zero_rtx): Likewise.
12144 (do_jump_by_parts_equality_rtx): Likewise.
12145 (do_compare_rtx_and_jump): Likewise.
12146 * dojump.h: Update function prototypes.
12147 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
12149 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
12151 (emit_label_before): Likewise.
12152 (emit_jump_insn_after_noloc): Likewise.
12153 (emit_jump_insn_after_setloc): Likewise.
12154 (emit_jump_insn_after): Likewise
12155 (emit_jump_insn_before_setloc): Likewise.
12156 (emit_jump_insn_before): Likewise.
12157 (emit_label_before): Promote return type to rtx_code_label.
12158 (emit_label): Likewise.
12159 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
12160 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
12162 (emit_stack_restore): Likewise.
12163 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
12164 (do_cmp_and_jump): Likewise.
12165 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
12166 from rtx to rtx_code_label.
12167 (gen_move_insn_uncast): New function.
12168 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
12169 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
12170 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
12171 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
12172 invert_jump_1 and redirect_jump_1.
12173 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
12174 do_compare_rtx_and_jump.
12175 (expand_addsub_overflow): Likewise.
12176 (expand_neg_overflow): Likewise.
12177 (expand_mul_overflow): Likewise.
12178 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
12179 return value of gen_move_insn.
12180 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
12181 * loop-doloop.c (add_test): Use rtx_code_label.
12182 (doloop_modify): Likewise.
12183 (doloop_optimize): Likewise.
12184 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
12185 * lra-constraints.c (emit_spill_move): Remove cast of value returned
12187 (inherit_reload_reg): Add cast when calling dump_insn_slim.
12188 (split_reg): Likewise.
12189 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
12191 * optabs.c (expand_binop_directly): Remove casts of values returned by
12193 (expand_unop_direct): Likewise.
12194 (expand_abs): Likewise.
12195 (maybe_emit_unop_insn): Likewise.
12196 (maybe_gen_insn): Promote return type to rtx_insn.
12197 * optabs.h: Update prototype of maybe_gen_insn.
12198 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
12200 * recog.c (struct peep2_insn_data): Promote type of insn field to
12202 (peep2_reinit_state): Use NULL instead of NULL_RTX.
12203 (peep2_attempt): Remove casts of insn in peep2_insn_data.
12204 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
12205 * recog.h (struct insn_gen_fn): Promote return types of function
12206 pointers and operator ().from rtx to rtx_insn.
12207 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
12208 (fill_eager_delay_slots): Likewise.
12209 (relax_delay_slots): Likewise.
12210 (make_return_insns): Likewise.
12211 (dbr_schedule): Likewise.
12212 (optimize_skips): Likewise.
12213 (reorg_redirect_jump): Likewise.
12214 (fill_slots_from_thread): Likewise.
12215 * reorg.h: Update prototypes.
12216 * resource.c (find_dead_or_set_registers): Use dyn_cast to
12217 rtx_jump_insn instead of check. Use it's jump_target method.
12218 * rtl.h (rtx_jump_insn::jump_label): Define new method.
12219 (rtx_jump_insn::jump_target): Define new method.
12220 (rtx_jump_insn::set_jump_target): Define new method.
12221 * rtlanal.c (tablejump_p): Promote type of one local variable.
12222 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
12223 (sched_analyze_insn): Likewise.
12224 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
12225 (print_insn): Likewise.
12226 * stmt.c (label_rtx): Promote return type to rtx_insn.
12227 (force_label_rtx): Likewise.
12228 (jump_target_rtx): Define new function.
12229 (expand_label): Use it, get rid of one cast.
12230 (expand_naked_return): Promote rtx to rtx_code_label.
12231 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
12232 (expand_case): Use rtx_code_label instread of rtx where feasible.
12233 (expand_sjlj_dispatch_table): Likewise.
12234 (emit_case_nodes): Likewise.
12235 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
12236 * store-motion.c (insert_store): Make use of new return type of
12237 gen_move_insn and remove a cast.
12238 (replace_store_insn): Likewise.
12240 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
12242 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
12243 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
12245 2015-05-20 Jeff Law <law@redhat.com>
12247 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
12248 dispose of the jump thread path when the jump threading
12249 opportunity is cancelled.
12251 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
12253 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
12254 when printing the caret character.
12256 2015-05-20 Marek Polacek <polacek@redhat.com>
12258 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
12260 2015-05-20 Marek Polacek <polacek@redhat.com>
12262 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
12263 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
12264 * gimple-fold.c (canonicalize_bool): Likewise.
12265 (same_bool_result_p): Likewise.
12266 * tree-if-conv.c (parse_predicate): Likewise.
12268 2015-05-20 Marek Polacek <polacek@redhat.com>
12270 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
12271 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
12273 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12275 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
12276 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
12279 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
12281 * config/mips/mips.h (micromips_globals): Declare.
12283 2015-05-20 David Malcolm <dmalcolm@redhat.com>
12285 * timevar.def (TV_INITIALIZE_RTL): New.
12286 * toplev.c (initialize_rtl): Use an auto_timevar to account this
12287 function's time to TV_INITIALIZE_RTL.
12289 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
12291 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
12292 gimple_build_nop calls.
12293 (chkp_find_bounds_for_elem): Likewise.
12294 (chkp_get_zero_bounds): Likewise.
12295 (chkp_get_none_bounds): Likewise.
12296 (chkp_get_bounds_by_definition): Likewise.
12297 (chkp_generate_extern_var_bounds): Likewise.
12298 (chkp_get_bounds_for_decl_addr): Likewise.
12299 (chkp_get_bounds_for_string_cst): Likewise.
12301 2015-05-20 Bin Cheng <bin.cheng@arm.com>
12303 PR tree-optimization/65447
12304 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
12305 (dump_use, dump_uses): Support to dump sub use.
12306 (record_use): New parameters to support sub use. Remove call to
12308 (record_sub_use, record_group_use): New functions.
12309 (compute_max_addr_offset, split_all_small_groups): New functions.
12310 (group_address_uses, rewrite_use_address): New functions.
12311 (strip_offset): New declaration.
12312 (find_interesting_uses_address): Call record_group_use.
12313 (add_candidate): New assertion.
12314 (infinite_cost_p): Move definition forward.
12315 (add_costs): Check INFTY cost and return immediately.
12316 (get_computation_cost_at): Clear setup cost and dependent bitmap
12318 (determine_use_iv_cost_address): Compute cost for sub uses.
12319 (rewrite_use_address_1): Rename from old rewrite_use_address.
12320 (free_loop_data): Free sub uses.
12321 (tree_ssa_iv_optimize_loop): Call group_address_uses.
12323 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12324 Jim Wilson <jim.wilson@linaro.org>
12326 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
12327 new fields loadv and storev.
12328 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
12329 Initialize loadv and storev.
12330 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
12331 (cortexa53_extra_costs): Likewise.
12332 (cortexa57_extra_costs): Likewise.
12333 (xgene1_extra_costs): Likewise.
12334 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
12337 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12339 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
12341 (cortexa8_extra_costs): Likewise.
12342 (cortexa5_extra_costs): Likewise.
12343 (cortexa7_extra_costs): Likewise.
12344 (cortexa12_extra_costs): Likewise.
12345 (cortexa15_extra_costs): Likewise.
12346 (v7m_extra_costs): Likewise.
12348 2015-05-20 Jeff Law <law@redhat.com>
12350 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
12351 instead of open-coded version. Also delete the jump thread created
12352 within this function.
12354 2015-05-20 Alan Modra <amodra@gmail.com>
12356 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
12357 stack adjusting insn. Formatting.
12358 (rs6000_emit_prologue): Track stack adjusting insn, and use of
12359 r12. If possible, emit first -fsplit-stack arg pointer insn
12360 before stack adjust. Don't use r12 to save cr if split-stack.
12362 2015-05-20 Alan Modra <amodra@gmail.com>
12364 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
12366 (rs6000_supports_split_stack): New function.
12367 * gcc/config/rs6000/rs6000.c (machine_function): Add
12368 split_stack_arg_pointer.
12369 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
12370 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
12371 rather than virtual_incoming_args_rtx.
12372 (rs6000_va_start): Likewise.
12373 (split_stack_arg_pointer_used_p): New function.
12374 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
12375 (morestack_ref): New var.
12376 (gen_add3_const, rs6000_expand_split_stack_prologue,
12377 rs6000_internal_arg_pointer, rs6000_live_on_entry,
12378 rs6000_split_stack_space_check): New functions.
12379 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
12380 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
12381 (UNSPECV_SPLIT_STACK_RETURN): Define.
12382 (split_stack_prologue, load_split_stack_limit,
12383 load_split_stack_limit_di, load_split_stack_limit_si,
12384 split_stack_return, split_stack_space_check): New expands and insns.
12385 * gcc/config/rs6000/rs6000-protos.h
12386 (rs6000_expand_split_stack_prologue): Declare.
12387 (rs6000_split_stack_space_check): Declare.
12389 2015-05-20 Alan Modra <amodra@gmail.com>
12391 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
12392 (direct_return): Test vrsave_size rather than vrsave_mask.
12393 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
12394 (rs6000_emit_epilogue): Likewise.
12396 2015-05-20 Alan Modra <amodra@gmail.com>
12398 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
12399 when not saving registers.
12400 (debug_stack_info): Adjust to omit printing unused offsets,
12402 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
12405 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12408 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
12409 value_type to const char *.
12411 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
12413 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
12414 to build a biarch toolchain again.
12416 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
12418 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
12419 or implicit declarations.
12420 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
12422 (get_odr_type): Check type has linkage before adding bases.
12423 (register_odr_type): Check that type has linkage before adding it.
12424 (type_known_to_have_no_deriavations_p): Rename to ..
12425 (type_known_to_have_no_derivations_p): This one.
12426 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
12427 (type_known_to_have_no_derivations_p): This one.
12428 * ipa-polymorphic-call.c
12429 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
12432 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
12434 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
12435 (layout_type): Use RECORD_OR_UNION_TYPE_P.
12437 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12439 * config/s390/s390.c (s390_vector_bool_type_p): New function.
12440 (s390_invalid_binary_op): New function.
12441 (TARGET_INVALID_BINARY_OP): Define macro.
12443 2015-05-19 David Sherwood <david.sherwood@arm.com>
12445 * loop-invariant.c (create_new_invariant): Don't calculate address cost
12446 if mode is not a scalar integer.
12447 (get_inv_cost): Increase computational cost for unused invariants.
12449 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12451 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
12452 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
12453 * config/s390/s390-builtin-types.def: New file.
12454 * config/s390/s390-builtins.def: New file.
12455 * config/s390/s390-builtins.h: New file.
12456 * config/s390/s390-c.c: New file.
12457 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
12458 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
12459 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
12460 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
12462 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
12464 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
12465 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
12466 variable definitions.
12467 (s390_const_operand_ok): New function.
12468 (s390_expand_builtin): Rewrite.
12469 (s390_init_builtins): New function.
12470 (s390_handle_vectorbool_attribute): New function.
12471 (s390_attribute_table): Add s390_vector_bool attribute.
12472 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
12473 (s390_branch_condition_mask): Generate masks for new modes.
12474 (s390_expand_vec_compare_cc): New function.
12475 (s390_mangle_type): Add mangling for vector bool types.
12476 (enum s390_builtin): Remove.
12477 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
12479 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
12480 s390_cpu_cpp_builtins.
12481 (REGISTER_TARGET_PRAGMAS): New macro.
12482 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
12483 (insn_cmp mode attribute): Add new CC modes.
12484 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
12485 (lcbb): New pattern definition.
12486 * config/s390/s390intrin.h: Include vecintrin.h.
12487 * config/s390/t-s390: New file.
12488 * config/s390/vecintrin.h: New file.
12489 * config/s390/vector.md: Include vx-builtins.md.
12490 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
12493 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12495 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
12497 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
12498 (s390_select_ccmode): Likewise.
12499 (s390_canonicalize_comparison): Swap operands if necessary.
12500 (s390_expand_vec_compare_scalar): Expand DFmode compare using
12501 single element vector instructions.
12502 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
12503 (s390_branch_condition_mask): Generate CC masks for the new modes.
12504 * config/s390/s390.md (v0, vf, vd): New mode attributes.
12505 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
12506 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
12507 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
12508 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
12509 (*extend<DSF:mode><BFP:mode>2): New insn definition.
12510 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
12511 (extend<DSF:mode><BFP:mode>2): Turn into expander.
12512 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
12513 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
12514 (sqrt<mode>2): Add vector instruction.
12516 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12518 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
12520 * config/s390/predicates.md (const0_operand, constm1_operand)
12521 (constable_operand): Accept vector operands.
12522 * config/s390/s390-modes.def: Add supported vector modes.
12523 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
12524 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
12525 (s390_bytemask_vector_p, s390_expand_vec_strlen)
12526 (s390_expand_vec_compare, s390_expand_vcond)
12527 (s390_expand_vec_init): Add prototypes.
12528 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
12529 (s390_vector_mode_supported_p): New function.
12530 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
12531 (s390_contiguous_bitmask_vector_p): New function.
12532 (s390_bytemask_vector_p): New function.
12533 (s390_split_ok_p): Vector regs don't work either.
12534 (regclass_map): Add VEC_REGS.
12535 (s390_legitimate_constant_p): Handle vector constants.
12536 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
12537 (legitimate_reload_vector_constant_p): New function.
12538 (s390_preferred_reload_class): Handle CONST_VECTOR.
12539 (s390_reload_symref_address): Likewise.
12540 (s390_secondary_reload): Vector memory instructions only support
12541 short displacements. Rename reload*_nonoffmem* to reload*_la*.
12542 (s390_emit_ccraw_jump): New function.
12543 (s390_expand_vec_strlen): New function.
12544 (s390_expand_vec_compare): New function.
12545 (s390_expand_vcond): New function.
12546 (s390_expand_vec_init): New function.
12547 (s390_dwarf_frame_reg_mode): New function.
12548 (print_operand): Handle addresses with 'O' and 'R' constraints.
12549 (NR_C_MODES, constant_modes): Add vector modes.
12550 (s390_output_pool_entry): Handle vector constants.
12551 (s390_hard_regno_mode_ok): Handle vector registers.
12552 (s390_class_max_nregs): Likewise.
12553 (s390_cannot_change_mode_class): New function.
12554 (s390_invalid_arg_for_unprototyped_fn): New function.
12555 (s390_function_arg_vector): New function.
12556 (s390_function_arg_float): Remove size variable.
12557 (s390_pass_by_reference): Handle vector arguments.
12558 (s390_function_arg_advance): Likewise.
12559 (s390_function_arg): Likewise.
12560 (s390_return_in_memory): Vector values are returned in a VR if
12562 (s390_function_and_libcall_value): Handle vector arguments.
12563 (s390_gimplify_va_arg): Likewise.
12564 (s390_call_saved_register_used): Consider the arguments named.
12565 (s390_conditional_register_usage): Disable v16-v31 for non-vec
12567 (s390_preferred_simd_mode): New function.
12568 (s390_support_vector_misalignment): New function.
12569 (s390_vector_alignment): New function.
12570 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
12571 (TARGET_VECTOR_MODE_SUPPORTED_P)
12572 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
12573 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
12574 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
12575 (TARGET_VECTOR_ALIGNMENT): Define target macro.
12576 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
12577 (FIRST_PSEUDO_REGISTER): Increase value.
12578 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
12579 (VECTOR_REG_P): Define macros.
12580 (FIXED_REGISTERS, CALL_USED_REGISTERS)
12581 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
12582 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
12583 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
12584 Add vector registers.
12585 (CANNOT_CHANGE_MODE_CLASS): Call C function.
12586 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
12587 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
12589 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
12590 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
12591 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
12592 (VR*_REGNUM): New constants.
12593 (ALL): New mode iterator.
12594 (INTALL): Remove mode iterator.
12596 (movti): Implement TImode moves for VRs.
12597 Disable TImode splitter for VR targets.
12598 Implement splitting TImode GPR<->VR moves.
12599 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
12600 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
12601 reload<mode>_la_in, reload<mode>_la_out.
12602 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
12603 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
12604 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
12605 (mov<mode> SF SD): Prefer lder, lde for loading.
12606 Add lrl and strl instructions.
12607 Add vector instructions.
12608 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
12609 Call s390_expand_vec_strlen on z13.
12610 (*cc_to_int): Change predicate to nonimmediate_operand.
12611 (addti3): Rename to *addti3. New expander.
12612 (subti3): Rename to *subti3. New expander.
12613 * config/s390/vector.md: New file.
12615 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12617 * common/config/s390/s390-common.c (processor_flags_table): Add
12619 * config.gcc: Add z13.
12620 * config/s390/s390-opts.h (enum processor_type): Add
12621 PROCESSOR_2964_Z13.
12622 * config/s390/s390.c (s390_adjust_priority): Check for
12623 PROCESSOR_2964_Z13.
12624 (s390_reorg): Likewise.
12625 (s390_sched_reorder): Likewise.
12626 (s390_sched_variable_issue): Likewise.
12627 (s390_loop_unroll_adjust): Likewise.
12628 (s390_option_override): Likewise. Default to -mvx when available.
12629 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
12630 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
12631 (TARGET_VX_ABI): Define macros.
12633 (TARGET_DEFAULT): Add MASK_OPT_VX.
12634 * config/s390/s390.md ("cpu" attribute): Add z13.
12635 ("cpu_facility" attribute): Add vec.
12636 * config/s390/s390.opt (processor_type): Add z13.
12637 (mvx): New options.
12638 * doc/invoke.texi: Add z13 option for -march.
12640 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12642 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
12643 mode check to make sure that only scalar integer values are
12646 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
12648 * tree.c (verify_type_variant): Fix #undef.
12649 (gimple_canonical_types_compatible_p): Move here from lto.c
12650 (verify_type): Verify TYPE_CANONICAL compatibility.
12651 * tree.h (gimple_canonical_types_compatible_p): Declare.
12653 2015-05-19 Jakub Jelinek <jakub@redhat.com>
12655 PR middle-end/66199
12656 * tree.h (OMP_TEAMS_COMBINED): Define.
12657 * gimplify.c (enum gimplify_omp_var_data): Add
12658 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
12659 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
12660 (omp_notice_variable): Accept both ORT_TEAMS
12661 and ORT_COMBINED_TEAMS. Don't recurse if
12662 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
12663 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
12665 (omp_no_lastprivate): New function.
12666 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
12667 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
12668 notice_outer and set appropriate bits, otherwise make
12669 sure default(none) combined constructs won't complain.
12670 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
12671 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
12672 omp_no_lastprivate either remove the clause or turn it
12673 into OMP_CLAUSE_PRIVATE.
12674 (gimplify_omp_for): Fix up handling of implicit
12675 lastprivate or linear iterators.
12676 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
12677 ORT_COMBINED_TEAMS.
12678 * omp-low.c (lower_omp_for_lastprivate): For combined
12679 for simd use fd.loop.n2 from the for rather than simd.
12681 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12683 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
12684 instead of gen_rtx_raw_REG.
12685 (cris_expand_epilogue): Likewise.
12686 * config/microblaze/microblaze.c (microblaze_classify_address):
12688 * config/sparc/sparc.md: Likewise.
12690 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
12692 * config/alpha/alpha.c (alpha_legitimize_reload_address)
12693 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
12694 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
12695 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
12696 Use CASE_CONST_SCALAR_INT.
12697 (print_operand) <case 'M'>: Use mode_width_operand to check the
12698 value of the constant.
12699 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
12700 * config/alpha/predicates.md (input_operand): Use general_operand
12701 instead of match_code as operand check.
12702 (symbolic_operand): Use match_code with subexpression digits.
12703 * config/alpha/constraints.md (Q): Ditto.
12705 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12707 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
12709 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12711 * config/s390/s390.c (s390_secondary_reload): Fix check for
12712 load/store relative.
12714 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12716 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
12717 alternative_mask to uint64_t.
12719 2015-05-19 Jakub Jelinek <jakub@redhat.com>
12721 PR tree-optimization/66187
12722 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
12723 Pass TYPE_SIGN to tree_int_cst_min_precision. If
12724 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
12726 2015-05-19 David Malcolm <dmalcolm@redhat.com>
12728 * diagnostic.c (diagnostic_report_current_module): Strengthen
12729 local "new_map" from const line_map * to
12730 const line_map_ordinary *.
12731 * genmatch.c (error_cb): Likewise for local "map".
12732 (output_line_directive): Likewise for local "map".
12733 * input.c (expand_location_1): Likewise for local "map".
12734 Pass NULL rather than &map to
12735 linemap_unwind_to_first_non_reserved_loc, since the value is never
12736 read from there, and the value written back not read from here.
12737 (is_location_from_builtin_token): Strengthen local "map" from
12738 const line_map * to const line_map_ordinary *.
12739 (dump_location_info): Strengthen locals "map" from
12740 line_map *, one to const line_map_ordinary *, the other
12741 to const line_map_macro *.
12742 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
12743 const line_map * to const line_map_macro *.
12744 (maybe_unwind_expanded_macro_loc): Add a call to
12745 linemap_check_macro when writing to the "map" field of the
12747 Introduce local const line_map_ordinary * "ord_map", using it in
12748 place of "map" in the part of the function where we know we have
12749 an ordinary map. Strengthen local "m" from const line_map * to
12750 const line_map_ordinary *.
12752 2015-05-19 Nick Clifton <nickc@redhat.com>
12755 * config/msp430/msp430.md (zero_extendhisi2): Add support for
12756 separate source and destination registers.
12758 2015-05-19 Richard Biener <rguenther@suse.de>
12760 PR tree-optimization/66165
12761 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
12762 for no load permutation.
12764 PR tree-optimization/66185
12765 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
12766 when building the SLP node from scalars.
12768 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
12769 Tristan Gingold <gingold@adacore.com>
12771 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
12772 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
12773 (expand_stack_restore): Call record_new_stack_level.
12774 (expand_stack_save): Do not call do_pending_stack_adjust.
12775 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
12776 * calls.c (expand_call): Call record_new_stack_level for alloca.
12777 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
12778 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
12779 (update_sjlj_context): New global function.
12780 * except.h (update_sjlj_context): Declare.
12781 * explow.c (record_new_stack_level): New global function.
12782 (allocate_dynamic_stack_space): Call record_new_stack_level.
12783 * explow.h (record_new_stack_level): Declare.
12784 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
12785 * cfgrtl.c (duplicate_insn_chain): Likewise.
12787 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12789 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
12790 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
12791 STACK_GROWS_DOWNWARD as normal if.
12792 (expand_call): Likewise.
12794 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
12797 * config/sh/sh.md (*round_int_even): New insn_and_split and
12798 accompanying new unnamed split.
12800 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12802 * bitmap.c (bitmap_set_range): Handle count==1 specially.
12803 (bitmap_clear_range): Likewise.
12804 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
12805 bitmap_set_range unconditionally.
12806 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
12807 * df-scan.c (df_mark_reg): Likewise.
12808 * haifa-sched.c (setup_ref_regs): Likewise.
12809 * sched-rgn.c (update_live_1): Likewise.
12811 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12813 * regs.h (END_HARD_REGNO): Delete.
12814 (END_REGNO): Move to...
12816 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
12817 * caller-save.c (mark_set_regs): Likewise.
12818 * combine.c (move_deaths, distribute_notes): Likewise.
12819 * cse.c (invalidate, invalidate_for_call): Likewise.
12820 * df-scan.c (df_ref_record): Likewise.
12821 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
12822 (record_last_reg_set_info): Likewise.
12823 * reg-stack.c (convert_regs_exit): Likewise.
12824 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
12825 * resource.c (update_live_status): Likewise.
12826 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
12828 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12830 * rtl.h (reg_info): Add an nregs field.
12831 (REG_NREGS): Use it.
12832 (SET_REGNO_RAW): Delete.
12833 (set_regno_raw): New function.
12834 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
12835 (END_REGNO): Redefine in terms of REG_NREGS.
12836 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
12838 * emit-rtl.c (set_mode_and_regno): Likewise.
12839 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
12840 instead of SET_REGNO_RAW.
12842 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12844 * rtl.h (PUT_MODE_RAW): New macro.
12845 (PUT_REG_NOTE_KIND): Use it.
12846 (set_mode_and_regno): Declare.
12847 (gen_raw_REG): Change regno to "unsigned int".
12848 (gen_rtx_REG): Change "unsigned" to "unsigned int".
12849 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
12850 use set_mode_and_regno to change the mode of registers.
12851 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
12852 * emit-rtl.c (set_mode_and_regno): New function.
12853 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
12854 * caller-save.c (reg_save_code): Use set_mode_and_regno.
12855 * expr.c (init_expr_target): Likewise.
12856 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12857 * postreload.c (reload_cse_simplify_operands): Likewise.
12859 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12861 * caller-save.c (init_caller_save): Use word_mode and
12862 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
12863 * expr.c (init_expr_target): Likewise.
12864 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12865 * postreload.c (reload_cse_regs_1): Likewise.
12867 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12869 * rtl.def (REG): Change format to "r".
12870 * rtl.h (rtunion): Remove rt_reg.
12871 (reg_info): New structure.
12872 (rtx_def): Add reg field to main union.
12873 (X0REGATTR): Delete.
12874 (REG_CHECK): New macro.
12875 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
12876 * rtl.c (rtx_format): Document "r".
12877 (rtx_code_size): Handle REG specially.
12878 * gengenrtl.c (special_format): Return true for formats
12880 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
12881 Deal with REG_ATTRS after the field loop.
12882 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
12883 * expmed.c (init_expmed): Call gen_raw_REG instead of
12885 * expr.c (init_expr_target): Likewise.
12886 * regcprop.c (maybe_mode_change): Likewise.
12887 * varasm.c (make_decl_rtl): Likewise.
12888 * final.c (leaf_renumber_regs_insn): Return early after
12890 * genemit.c (gen_exp): Handle 'r' fields.
12891 * genpeep.c (match_rtx): Likewise.
12892 * gensupport.c (subst_pattern_match): Likewise.
12893 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
12894 (alter_constraints, subst_dup): Likewise.
12895 * read-rtl.c (read_rtx_code): Likewise.
12896 * print-rtl.c (print_rtx): Likewise.
12897 * genrecog.c (find_operand, find_matching_operand): Likewise.
12898 (validate_pattern, match_pattern_2): Likewise.
12899 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
12900 (rtx_test::regno_field): New function.
12901 (operator ==, safe_to_hoist_p, transition_parameter_type)
12902 (parameter_type_string, print_parameter_value)
12903 (print_nonbool_test, print_test): Handle new enum values.
12904 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
12905 * lra-constraints.c (operands_match_p): Likewise.
12907 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12909 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
12910 Change type of new_regno to unsigned int.
12911 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
12912 new_regno to unsigned int.
12913 (df_ref_change_reg_with_loc): Remove old_regno parameter.
12914 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
12915 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
12916 (SET_REGNO_RAW): Add space after ",".
12918 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12920 * rtl.h (REG_NREGS): New macro
12921 * alias.c (record_set): Use it.
12922 * cfgcleanup.c (mark_effect): Likewise.
12923 * combine.c (likely_spilled_retval_1): Likewise.
12924 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
12925 (move_deaths, distribute_notes): Likewise.
12926 * cselib.c (cselib_record_set): Likewise.
12927 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
12928 * df-scan.c (df_mark_reg): Likewise.
12929 * dse.c (look_for_hardregs): Likewise.
12930 * dwarf2out.c (reg_loc_descriptor): Likewise.
12931 (multiple_reg_loc_descriptor): Likewise.
12932 * expr.c (write_complex_part, read_complex_part): Likewise.
12933 (emit_move_complex): Likewise.
12934 * haifa-sched.c (setup_ref_regs): Likewise.
12935 * ira-lives.c (mark_hard_reg_live): Likewise.
12936 * lra.c (lra_set_insn_recog_data): Likewise.
12937 * mode-switching.c (create_pre_exit): Likewise.
12938 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
12939 (reload_combine_recognize_pattern): Likewise.
12940 (reload_combine_note_use, move2add_record_mode): Likewise.
12941 (reload_cse_move2add): Likewise.
12942 * reg-stack.c (subst_stack_regs_pat): Likewise.
12943 * regcprop.c (kill_value, copy_value): Likewise.
12944 (copyprop_hardreg_forward_1): Likewise.
12945 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
12946 (build_def_use): Likewise.
12947 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
12948 (deps_analyze_insn): Likewise.
12949 * sched-rgn.c (check_live_1, update_live_1): Likewise.
12950 * sel-sched.c (count_occurrences_equiv): Likewise.
12951 * valtrack.c (dead_debug_insert_temp): Likewise.
12953 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12955 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
12956 * dse.c (note_add_store): Likewise.
12957 * ira-lives.c (mark_hard_reg_dead): Likewise.
12958 * loop-invariant.c (mark_reg_store): Likewise.
12959 (mark_reg_death): Likewise.
12960 * postreload.c (reload_combine): Likewise.
12961 (reload_combine_note_store): Likewise.
12962 (reload_combine_note_use): Likewise.
12963 * recog.c (peep2_reg_dead_p): Likewise.
12965 2015-05-19 Alan Modra <amodra@gmail.com>
12967 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
12968 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
12969 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
12971 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
12972 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
12973 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
12974 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
12976 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
12978 * config/mips/mips.md (JOIN_MODE): New mode iterator.
12979 (join2_load_Store<JOIN_MODE:mode>): New pattern.
12980 (join2_loadhi): Likewise.
12981 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
12982 load-load and store-stores.
12983 * config/mips/mips.opt (mload-store-pairs): New option.
12984 (TARGET_LOAD_STORE_PAIRS): New macro.
12985 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
12986 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
12987 * config/mips/mips.c (mips_load_store_bonding_p): New function.
12989 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
12991 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
12993 * dojump.c (do_compare_rtx_and_jump): Likewise.
12994 * expmed.c (emit_store_flag_1): Likewise.
12995 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
12996 * final.c (sprint_ul): Use std::reverse for reversing a string.
12997 * fold-const.c (extract_muldiv_1): Use std::swap.
12998 * genmodes.c (emit_mode_int_n): Likewise.
12999 * ifcvt.c (dead_or_predicable): Likewise.
13000 * ira-build.c (ira_merge_live_ranges): Likewise.
13001 (swap_allocno_copy_ends_if_necessary): Likewise.
13002 * ira.c (ira_setup_alts): Likewise.
13003 * loop-iv.c (iv_analyze_expr): Likewise.
13004 (implies_p): Likewise.
13005 (canon_condition): Likewise.
13006 * lra-constraints.c (swap_operands): Likewise.
13007 * lra-lives.c (lra_merge_live_ranges): Likewise.
13008 * omega.c (swap): Remove.
13010 (omega_unprotect_1): Use std::swap.
13011 (omega_solve_geq): Likewise.
13012 * optabs.c (expand_binop_directly): Likewise.
13013 (expand_binop): Likewise.
13014 (emit_conditional_move): Likewise.
13015 (emit_conditional_add): Likewise.
13016 * postreload.c (reload_cse_simplify_operands): Likewise.
13017 * reg-stack.c (emit_swap_insn): Likewise.
13018 (swap_to_top): Likewise.
13019 (compare_for_stack_reg): Likewise.
13020 (subst_asm_stack_regs): Likewise.
13021 * reload.c (find_reloads): Likewise.
13022 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
13023 * sel-sched.c (invoke_reorder_hooks): Likewise.
13024 (create_block_for_bookkeeping): Likewise.
13025 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
13026 (lambda_matrix_right_hermite): Use std::swap.
13027 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
13028 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13029 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
13030 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
13031 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
13032 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
13033 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
13034 * tree-vrp.c (compare_ranges): Likewise.
13035 * var-tracking.c (add_with_sets): Likewise.
13036 (vt_find_locations): Likewise.
13038 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
13040 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
13042 (FBSD_ENDFILE_SPEC): Likewise.
13043 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
13044 config/freebsd-spec.h.
13045 (ENDFILE_SPEC): Likewise.
13047 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
13048 Richard Henderson <rth@redhat.com>
13051 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
13052 Check for a memory location that is not a reference (using an AND)
13053 to an unaligned location here.
13054 * config/alpha/predicates.md (normal_memory_operand): Remove.
13056 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
13058 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
13059 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
13061 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
13063 * config/mips/mips.c (micromips_globals): New variable.
13064 (mips_set_compression_mode): Save and reinitialize target-dependent
13065 state for microMIPS.
13067 2015-05-18 Martin Liska <mliska@suse.cz>
13069 * dbgcnt.def: Add new counter.
13070 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
13072 2015-05-18 Martin Liska <mliska@suse.cz>
13074 * dbgcnt.def: Sort counters.
13075 * opts.c (common_handle_option): Do not compile if
13076 -fdbg-cnt-list is enabled.
13078 2015-05-18 Tom de Vries <tom@codesourcery.com>
13080 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
13081 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
13082 address operator to va_list operand.
13083 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
13085 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
13087 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
13088 * config/s390/s390.c (s390_gimplify_va_arg): Same.
13089 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
13091 2015-05-18 Tom de Vries <tom@codesourcery.com>
13093 * tree-ssa-tail-merge.c: Fix whitespace.
13095 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
13097 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
13098 cortex-a17, and cortex-a17.cortex-a7.
13100 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
13103 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
13105 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
13108 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
13109 QImode inner modes for TARGET_AVX512BW. Force mask operand
13110 to a register for AVX512F modes.
13112 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13114 * toplev.c (emit_debug_global_declarations): Do not output debug info
13115 when doing slim LTO objects.
13117 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13119 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
13120 odr_types_equivalent_p): Declare.
13121 (odr_type_p): Use gcc_checking_assert.
13122 (type_in_anonymous_namespace_p) Declare.
13123 (type_with_linkage_p): Declare.
13124 * common.opt (Wlto-type-mismatch): New warning.
13125 * ipa-devirt.c (compound_type_base): New function.
13126 (odr_or_derived_type_p): New function.
13127 (odr_types_equivalent_p): New function.
13128 (add_type_duplicate): Simplify.
13129 (type_with_linkage_p): Add hack to prevent false positives on C types
13130 (type_in_anonymous_namespace_p): Likewise.
13131 * tree.c (need_assembler_name_p): Use type_with_linkage.
13132 * tree.h (type_in_anonymous_namespace_p): Remove.
13133 * doc/invoke.texi (-Wlto-type-mismatch): Document
13135 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13137 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
13138 (verify_type): Verify STRING_FLAG.
13140 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
13143 * tree-pretty-print.c (percent_K_format): Replace locus pointer
13144 with accessor function.
13145 * tree-diagnostic.c (diagnostic_report_current_function): Use
13146 diagnostic_location function.
13147 (maybe_unwind_expanded_macro_loc): Likewise.
13148 (virt_loc_aware_diagnostic_finalizer): Likewise.
13149 (default_tree_printer): Replace locus pointer with accessor function.
13150 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
13151 (diagnostic_set_info_translated): Initialize second location.
13152 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
13153 (diagnostic_show_locus): Handle two locations. Call
13154 diagnostic_print_caret_line.
13155 (diagnostic_print_caret_line): New.
13156 (default_diagnostic_starter): Use diagnostic_location function.
13157 (diagnostic_report_diagnostic): Use diagnostic_location function.
13158 (verbatim): Do not set text.locus.
13159 * diagnostic.h (struct diagnostic_info): Remove location field.
13160 (struct diagnostic_context): Make caret_chars an array of two.
13161 (diagnostic_location): New inline.
13162 (diagnostic_expand_location): Handle two locations.
13163 (diagnostic_same_line): New inline.
13164 (diagnostic_print_caret_line): Declare.
13165 (CARET_LINE_MARGIN): New constant.
13166 * pretty-print.c (pp_printf): Do not set text.locus.
13167 (pp_verbatim): Do not set text.locus.
13168 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
13169 (struct text_info): Replace locus pointer with locations
13170 array. Add accessor functions.
13172 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
13173 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13176 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
13177 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
13178 large constants in register instead of splitting them.
13180 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
13183 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
13184 replacements in memory addresses.
13185 (get_unaligned_address): Ditto.
13187 2015-05-16 James Bowman <james.bowman@ftdichip.com>
13189 * config/ft32/*: New files for FT32 port.
13190 * doc/install.texi: Add FT32 information.
13191 * doc/invoke.texi: Add FT32 information.
13192 * doc/md.texi: Add FT32 information.
13193 * doc/contrib.texi: Self added.
13195 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
13197 PR tree-optimization/64454
13198 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
13199 (-1 - A -> ~A): Remove unnecessary condition.
13201 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
13203 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
13204 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
13205 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
13207 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
13209 * ipa-chkp.h (chkp_wrap_function): New.
13210 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
13211 (chkp_wrap_function_name): New.
13212 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
13213 to get wrapper name.
13214 * lto-cgraph.c: Include ipa-chkp.h.
13215 (input_cgraph_1): Avoid alias chain for wrappers.
13217 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
13219 PR middle-end/66134
13220 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
13221 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
13223 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13225 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
13226 (AARCH64_FL_SLOWMUL): Delete.
13227 (AARCH64_FL_CRC): Redefine to 1<<3.
13228 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
13230 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13232 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
13235 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
13237 * config/alpha/alpha.md (extendqidi2): Use general_operand
13238 instead of some_operand for operand[1] predicate.
13239 (extendhidi2): Ditto.
13240 (cbranchdi4): Use general_operand instead of some_operand
13241 for operand[1] and operands[2] predicates.
13242 (cstoredi4): Ditto.
13243 * config/alpha/predicates.md (some_operand): Remove unused predicate.
13244 (some_ni_operand): Ditto.
13246 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
13248 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
13249 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
13250 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
13251 low part of the constant using alpha_emit_set_const_1.
13252 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
13254 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
13256 * varasm.c (output_constant_pool_1): Pass down alignment from
13257 constant pool entry's descriptor to output_constant_pool_2.
13258 (output_object_block): Add comment prior to call to
13259 output_constant_pool_1.
13261 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
13263 PR rtl-optimization/65862
13264 * target.def (ira_change_pseudo_allocno_class): New hook.
13265 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
13267 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
13268 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
13270 * ira-costs.c (find_costs_and_classes): Call the hook and change
13271 classes when it is necessary.
13272 * doc/tm.texi: Update.
13274 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
13276 * config/i386/i386.md (sibcall_memory): Check that register with
13277 callee address is not also used as one of the arguments, instead
13278 of checking that it is not live after the sibcall.
13279 (sibcall_pop_memory): Ditto.
13280 (sibcall_value_memory): Ditto.
13281 (sibcall_value_pop_memory): Ditto.
13283 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
13285 * generic-match-head.c (types_match): Handle non-types.
13286 * gimple-match-head.c (types_match): Likewise.
13287 * match.pd: Remove unnecessary TREE_TYPE for types_match.
13289 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
13291 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
13292 (csneg3<mode>_insn): Enable expansion of pattern.
13294 2015-05-14 Nick Clifton <nickc@redhat.com>
13296 * config/rl78/rl78.c (rl78_select_section): Select the correct
13297 default section based upon the category of the decl.
13299 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
13301 PR rtl-optimization/30967
13302 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
13303 destination mode for the cost of scc patterns.
13305 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
13307 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
13308 using SWIM248 mode iterator.
13309 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
13310 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
13311 for operand[2] constraint.
13312 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
13314 2015-05-13 Jakub Jelinek <jakub@redhat.com>
13316 PR middle-end/66133
13317 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
13318 make sure it is never noreturn, even when the task body does not
13320 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
13321 right before GIMPLE_OMP_RETURN.
13322 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
13323 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
13324 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
13326 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13328 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
13329 * tree-ssa-math-opts.c: Include params.h
13330 (pow_synth_sqrt_info): New struct.
13331 (representable_as_half_series_p): New function.
13332 (get_fn_chain): Likewise.
13333 (print_nested_fn): Likewise.
13334 (dump_fractional_sqrt_sequence): Likewise.
13335 (dump_integer_part): Likewise.
13336 (expand_pow_as_sqrts): Likewise.
13337 (gimple_expand_builtin_pow): Use above to attempt to expand
13338 pow as series of square roots. Removed now unused variables.
13340 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
13342 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
13343 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
13344 Remove *p0 and *p1 arguments. Rewrite function.
13345 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
13346 (alpha_split_const_mov): Update calls to alpha_extract_integer and
13347 alpha_emit_set_long_const.
13348 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
13349 (alpha_output_mi_thunk_osf): Ditto.
13350 * config/alpha/alpha.md (movti): Do not check operands[1]
13353 2015-05-13 Richard Biener <rguenther@suse.de>
13355 PR tree-optimization/66129
13356 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
13358 (vect_schedule_slp_instance): Fix typo.
13360 2015-05-13 David Malcolm <dmalcolm@redhat.com>
13362 * common.opt (fdump-internal-locations): New option.
13363 * input.c: Include diagnostic-core.h.
13364 (get_end_location): New function.
13365 (write_digit): New function.
13366 (write_digit_row): New function.
13367 (dump_location_range): New function.
13368 (dump_labelled_location_range): New function.
13369 (dump_location_info): New function.
13370 * input.h (dump_location_info): New prototype.
13371 * toplev.c (compile_file): Handle flag_dump_locations.
13373 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
13375 * gimple-expr.h (is_gimple_constant): Reorder.
13376 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
13378 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
13380 * combine.c (simplify_set): When generating a CC set, if the
13381 source already is in the correct mode, do not wrap it in a
13382 compare. Simplify the rest of that code.
13384 2015-05-13 Richard Biener <rguenther@suse.de>
13386 PR tree-optimization/66123
13387 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
13390 2015-05-13 Richard Biener <rguenther@suse.de>
13392 PR middle-end/66110
13393 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
13395 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
13397 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
13399 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
13400 * aclocal.m4: Regenerated with automake-1.11.6.
13402 2015-05-13 Tom de Vries <tom@codesourcery.com>
13404 PR tree-optimization/66010
13405 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
13406 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
13407 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
13408 and rval based on do_deref.
13410 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
13413 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
13414 link time constants into adress expressions and therefore set
13417 2015-05-13 Jakub Jelinek <jakub@redhat.com>
13420 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
13421 Use SWI248 iterator instead of SWI.
13422 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
13423 Use eq_attr "alternative" "0" instead of match_test in
13424 length_immediate attribute computation.
13425 (*mulvhi4, *mulvhi4_1): New define_insns.
13428 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
13429 SIGNED to get precision of non-negative value.
13431 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
13434 * function.c (diddle_return_value_1): Process bounds first.
13435 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
13438 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
13440 PR rtl-optimization/64616
13441 * loop-invariant.c (can_move_invariant_reg): New.
13442 (move_invariant_reg): Call above new function to decide whether
13443 instruction can just be moved, skipping creation of temporary
13446 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
13448 PR target/pr66047.c
13449 * i386.c (ix86_function_sseregparm): Only return -1 if local function
13450 with implied regparm is called from -mno-sse function.
13451 (init_cumulative_args): Output error if ix86_function_sseregparm
13452 return -1 and SSE register would be needed.
13453 (function_arg_advance_32): Likewise.
13454 (function_arg_32): Likewise.
13455 * i386.h (ix86_args): Add decl field.
13457 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
13460 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
13461 inlines across optimization boundary.
13463 2015-05-12 Jason Merrill <jason@redhat.com>
13465 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
13466 string literal and macro name.
13468 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
13470 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
13471 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
13472 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
13474 2015-05-12 David Malcolm <dmalcolm@redhat.com>
13476 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
13477 (-Wmisleading-indentation): New option.
13478 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
13480 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
13482 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
13483 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
13484 (alpha_extract_integer): Ditto.
13485 (alpha_legitimate_constant_p): Ditto.
13486 (alpha_split_tmode_pair): Ditto.
13487 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
13488 (alpha_expand_mov): Ditto.
13489 (print_operand): Remove handling of 'H' modifier.
13490 <case 'm'>: Remove CONST_DOUBLE handling.
13491 (summarize_insn): Handle CONST_WIDE_INT.
13492 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
13494 (movti): Handle CONST_WIDE_INT.
13495 * config/alpha/constraints.md ('H'): Remove constraint definition.
13496 ('G'): Do not match MODE_FLOAT class.
13497 * config/alpha/predicates.md (const0_operand): Also match
13499 (non_add_const_operand): Ditto.
13500 (non_zero_const_operand): Ditto.
13501 (some_operand): Ditto.
13502 (input_operand): Ditto. Handle CONST_WIDE_INT.
13503 (and_operand): Do not match const_double.
13504 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
13506 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
13509 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
13510 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
13511 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
13512 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
13513 is_mm_seq_cst, is_mm_sync): New accessor functions.
13514 * builtins.c (expand_builtin_sync_operation,
13515 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
13516 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
13517 (get_memmodel, expand_builtin_atomic_compare_exchange,
13518 expand_builtin_atomic_load, expand_builtin_atomic_store,
13519 expand_builtin_atomic_clear): Use new accessor routines.
13520 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
13521 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
13522 (maybe_emit_sync_lock_test_and_set): Use new accessors and
13523 MEMMODEL_SYNC_ACQUIRE.
13524 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
13525 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
13526 expand_atomic_store): Use new accessors.
13527 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
13528 * tsan.c (instrument_builtin_call): Update check for memory model beyond
13529 final enum to use MEMMODEL_LAST.
13530 * c-family/c-common.c: Use new accessor for memmodel_base.
13531 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
13533 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
13534 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
13535 mem_thread_fence, *dmb): Likewise.
13536 * config/alpha/alpha.c (alpha_split_compare_and_swap,
13537 alpha_split_compare_and_swap_12): Likewise.
13538 * config/arm/arm.c (arm_expand_compare_and_swap,
13539 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
13540 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
13541 atomic_loaddi): Likewise.
13542 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
13544 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
13545 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
13547 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
13548 atomic_store<mode>, atomic_compare_and_swap<mode>,
13549 atomic_exchange<mode>): Use new accessors.
13550 * config/mips/mips.c (mips_process_sync_loop): Likewise.
13551 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
13552 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
13553 rs6000_post_atomic_barrier): Add new cases.
13554 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
13555 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
13556 (atomic_load<mode>): Add new cases and use new accessors.
13557 (store_quadpti): Add new cases.
13558 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
13560 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
13561 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
13564 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
13566 * ipa-devirt.c (type_with_linkage_p): New function.
13567 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
13569 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
13570 (can_be_name_hashed_p): Simplify.
13571 (hash_odr_name): Check that type has linkage before checking if it is
13573 (types_same_for_odr): Likewise.
13574 (odr_name_hasher::equal): Likewise.
13575 (odr_subtypes_equivalent_p): Likewise.
13576 (warn_types_mismatch): Likewise.
13577 (get_odr_type): Likewise.
13578 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
13579 * ipa-utils.h (odr_type_p): Move offline.
13580 * tree.c (need_assembler_name_p): Fix handling of types
13582 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
13584 2015-05-12 David Malcolm <dmalcolm@redhat.com>
13586 * timevar.c (timevar_enable): Delete in favor of...
13587 (g_timer): New global.
13588 (struct timevar_def): Move to timevar.h inside class timer.
13589 (struct timevar_stack_def): Likewise.
13590 (timevars): Delete global in favor of field "m_timevars" within
13591 class timer in timevar.h
13592 (stack): Likewise, in favor of field "m_stack".
13593 (unused_stack_instances): Likewise, in favor of field
13594 "m_unused_stack_instances".
13595 (start_time): Likewise, in favor of field "m_start_time".
13596 (get_time): Eliminate check for timevar_enable.
13597 (timer::timer): New function, built from part of timevar_init.
13598 (timevar_init): Rewrite idempotency test from using
13599 "timevar_enable" bool to using dynamic allocation of "g_timer".
13600 Move rest of implementation into timer's constructor.
13601 (timevar_push_1): Rename to...
13602 (timer::push): ...this, adding "m_" prefixes to variables that
13603 are now fields of timer.
13604 (timevar_pop_1): Likewise, rename to...
13605 (timer::pop): ...this, and add "m_" prefixes.
13606 (timevar_start): Replace test for "timevar_enable" with one for
13607 "g_timer", and move bulk of implementation to...
13608 (timer::start): ...here, adding "m_" prefixes.
13609 (timevar_stop): Likewise, from here...
13610 (timer::stop): ...to here.
13611 (timevar_cond_start): Likewise, from here...
13612 (timer::cond_start): ...to here.
13613 (timevar_cond_stop): Likewise, from here...
13614 (timer::cond_stop): ...to here.
13615 (validate_phases): Rename to...
13616 (timer::validate_phases): ...this, and add "m_" prefixes. Make
13617 locals "total" and "tv" const.
13618 (timevar_print): Rename to...
13619 (timer::print): ...this, and add "m_" prefixes. Make locals
13620 "total" and "tv" const. Eliminate test for timevar_enable.
13621 * timevar.h (timevar_enable): Eliminate.
13622 (g_timer): New declaration.
13623 (timevar_push_1): Eliminate.
13624 (timevar_pop_1): Eliminate.
13625 (timevar_print): Eliminate.
13626 (class timer): New class.
13627 (timevar_push): Rewrite to use g_timer.
13628 (timevar_pop): Likewise.
13629 * toplev.c (toplev::~toplev): Likewise.
13631 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
13633 * arm-protos.h (arm_sched_autopref): Delete.
13634 (tune_params): Re-organize, use enums for flag values.
13635 (FUSE_OPS): New macro.
13636 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
13637 (ARM_PREFETCH_BENEFICIAL): Likewise.
13638 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
13639 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
13640 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
13641 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
13642 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
13643 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
13644 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
13645 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
13647 (arm_option_override, thumb2_reorg, arm_print_tune_info)
13648 (aarch_macro_fusion_pair_p): Update uses of current_tune.
13649 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
13651 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
13653 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
13656 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
13657 Sandra Loosemore <sandra@codesourcery.com>
13659 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
13661 (REG_CLASS_NAMES): Add "IJMP_REGS".
13662 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
13663 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
13664 use new "c" register constraint.
13665 * config/nios2/constraint.md (c): New register constraint
13666 corresponding to IJMP_REGS.
13668 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13670 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
13671 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
13672 define_splits): Delete, revamp, transmogrify into ...
13673 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
13674 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
13675 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
13678 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13680 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
13681 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
13683 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13685 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
13686 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
13687 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
13688 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
13689 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
13690 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
13691 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
13692 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
13693 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
13694 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
13695 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
13696 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
13697 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
13698 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
13699 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
13700 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
13701 and 30 corresponding splitters): Delete.
13703 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13705 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
13708 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13710 * combine.c (recog_for_combine_1): New function, factored out
13711 from recog_for_combine.
13712 (change_zero_ext): New function.
13713 (recog_for_combine): If recog fails, try again with the pattern
13714 modified by change_zero_ext; if that still fails, restore the
13717 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13719 * combine.c (get_undo_marker): New function.
13720 (undo_to_marker): New function, largely factored out from ...
13721 (undo_all): ... this. Adjust.
13723 2015-05-12 Richard Biener <rguenther@suse.de>
13725 PR tree-optimization/66101
13726 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
13727 fixup if we turn a loop exit edge to a fallthru edge.
13729 2015-05-12 Richard Biener <rguenther@suse.de>
13731 PR tree-optimization/37021
13732 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
13733 (SLP_TREE_TWO_OPERATORS): New define.
13734 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
13735 SLP_TREE_TWO_OPERATORS.
13736 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
13738 (vect_build_slp_tree): Adjust.
13739 (vect_analyze_slp_cost_1): Likewise.
13740 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
13741 emitting two vector stmts and mixing the results.
13743 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
13745 * call.c (print_z_candidates): Remove dead code.
13747 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13749 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
13750 and zEC12_simple_fp.
13751 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
13754 2015-05-12 Tom de Vries <tom@codesourcery.com>
13756 PR tree-optimization/66010
13757 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
13759 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
13760 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
13761 va_lists are passed, and remove corresponding handling.
13762 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
13763 do_deref argument to ifn_va_arg.
13764 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
13767 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13770 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
13771 REG before taking its REGNO.
13773 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
13775 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
13776 rsp->sign_bit_copies and rsp->nonzero_bits into ...
13777 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
13778 present to get more accurate information about the number of sign bit
13779 copies and non zero bits.
13781 2015-05-12 Richard Biener <rguenther@suse.de>
13783 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
13784 do not allow unrolling.
13786 2015-05-11 Richard Henderson <rth@redhat.com>
13788 * config/i386/i386-modes.def (CCP): New.
13789 * config/i386/i386.c (put_condition_code): Handle it.
13790 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
13792 2015-05-11 Richard Henderson <rth@redhat.com>
13794 * target.def (md_asm_clobbers): Replace with...
13795 (md_asm_adjust): this.
13796 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
13797 (TARGET_MD_ASM_ADJUST): New.
13798 * tm.texi: Rebuild.
13799 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
13800 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
13801 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
13803 * cfgexpand.c (check_operand_nalternatives): Accept vector of
13804 constraints instead of lists of outputs and inputs.
13805 (expand_asm_stmt): Save and restore input_location around the
13806 body of the function. Move asm data into vectors instead of
13807 building tree lists. Generate cleanup sequences as needed,
13808 rather than waiting til the end. Use new md_asm_adjust hook.
13810 * config/vxworks.c: Include vec.h before target.h.
13811 * gimple.c: Likewise.
13812 * incpath.c: Likewise.
13813 * mode-switching.c: Likewise.
13815 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
13816 (cris_md_asm_adjust): this.
13817 (TARGET_MD_ASM_CLOBBERS): Remove.
13818 (TARGET_MD_ASM_ADJUST): New.
13819 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
13820 (ix86_md_asm_adjust): this.
13821 (TARGET_MD_ASM_CLOBBERS): Remove.
13822 (TARGET_MD_ASM_ADJUST): New.
13823 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
13824 (mn10300_md_asm_adjust): this.
13825 (TARGET_MD_ASM_CLOBBERS): Remove.
13826 (TARGET_MD_ASM_ADJUST): New.
13827 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
13828 (rs6000_md_asm_adjust): this.
13829 (TARGET_MD_ASM_CLOBBERS): Remove.
13830 (TARGET_MD_ASM_ADJUST): New.
13831 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
13832 (visium_md_asm_adjust): this.
13833 (TARGET_MD_ASM_CLOBBERS): Remove.
13834 (TARGET_MD_ASM_ADJUST): New.
13836 2015-05-11 Richard Henderson <rth@redhat.com>
13838 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
13839 if noutputs is zero.
13840 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
13842 * cfgexpand.c (expand_asm_operands): Merge into...
13843 (expand_asm_stmt): ... here.
13845 * cfgexpand.c (expand_asm_operands): Don't call
13846 resolve_asm_operand_names.
13847 * stmt.c (resolve_asm_operand_names): Clarify block comment.
13849 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
13851 * dwarf2out.c (gen_member_die): Sanity check that we access
13852 TYPE_MAIN_VARIANT for TYPE_METHODS.
13853 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
13854 checking TYPE_METHODS.
13855 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
13857 (build_distinct_type_copy): Clear TYPE_METHODS.
13858 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
13859 (verify_type): Allow TYPE_METHODS to be error_mark_node.
13860 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
13862 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
13864 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
13865 (emit_pattern_before_setloc): Likewise.
13867 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
13869 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
13870 for define_peephole2s.
13871 (get_peephole2_pattern): New function.
13872 (main): Use it. Call validate_pattern.
13874 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13876 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
13877 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
13878 (Last callee saved reg is different for AVR_TINY architecture)
13880 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
13882 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
13883 when looking for memory references.
13885 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
13888 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
13889 via function pointers.
13891 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
13893 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
13894 indirect call by forcing address into a pseudo with -fno-plt.
13895 * common.opt (flag_plt): New option.
13896 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
13897 ([-fno-plt]): Document.
13899 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
13902 * config/rs6000/option-defaults.h: Add space between string literal
13905 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
13907 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
13908 accross ARM targets.
13910 2015-05-11 Christian Bruel <christian.bruel@st.com>
13912 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
13913 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
13915 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
13917 PR rtl-optimization/66076
13918 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
13919 Don't grow the heap array if it is already big enough from a
13920 previous iteration.
13922 2015-05-11 Christian Bruel <christian.bruel@st.com>
13924 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
13925 (is_called_in_ARM_mode): Remove.
13926 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
13927 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
13928 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
13929 arm_declare_function_name.
13931 2015-05-11 Christian Bruel <christian.bruel@st.com>
13933 * config/arm/arm.c (arm_option_override): Reoganized and split into :
13934 (arm_option_params_internal); New function.
13935 (arm_option_check_internal): New function.
13936 (arm_option_override_internal): New function.
13937 (thumb_code, thumb1_code): Remove.
13938 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
13939 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
13940 (thumb_code, thumb1_code): Remove.
13941 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
13943 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
13945 * config/alpha/alpha.c (alpha_emit_set_const_1)
13946 (alpha_emit_set_long_const, alpha_extract_integer)
13947 (alpha_legitimate_constant_p, alpha_split_const_mov)
13948 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
13949 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
13950 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
13952 * config/alpha/predicates.md (mode_mask_operand): Do not match
13954 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
13955 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
13956 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
13957 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
13958 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
13960 2015-05-11 Jakub Jelinek <jakub@redhat.com>
13963 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
13964 default_binds_local_p_2.
13965 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
13966 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
13968 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
13970 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
13972 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
13974 Patch by Richard Biener
13975 * coverage.c (coverage_obj_init): Delay building of type variant
13976 until the type is finished.
13978 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
13980 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
13981 mismatch between C and C++ type; compoare correctly ARG_TYPES
13982 for non-prototypes and output correctly parameter index for METHOD_TYPE.
13983 (odr_types_equivalent_p): Fix wording of warning about attributes;
13984 it is OK to match prototype and non-prototype.
13986 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
13988 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
13989 TYPE_ARG_TYPES list.
13990 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
13991 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
13993 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
13995 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
13996 * tree.h (is_lang_specific): Constify.
13998 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
14000 PR tree-optimization/64454
14001 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
14004 2015-05-08 Jason Merrill <jason@redhat.com>
14006 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
14007 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
14008 config/darwin.h, config/darwin9.h, config/elfos.h,
14009 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
14010 config/microblaze/microblaze.h, config/mips/mips.h,
14011 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
14012 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
14013 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
14014 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
14015 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
14016 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
14017 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
14018 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
14019 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
14020 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
14021 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
14022 between string literal and macro name.
14024 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14026 * jump.c: Change argument types to rtx_insn *.
14029 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14031 * lra-constraints.c: Change argument type to rtx_insn *.
14033 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14035 * df-problems.c: Change argument type to rtx_insn *.
14037 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14039 * combine.c: Change argument type to rtx_insn *.
14041 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14044 * rtlanal.c: Change argument type to rtx_insn *.
14046 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14048 * sched-deps.c: Change argument types to rtx_insn *.
14049 * sched-int.h: Adjust.
14051 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14053 * dwarf2cfi.c: Change argument type to rtx_insn *.
14055 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14057 * ira.c (decrease_live_ranges_number): Changetype of local
14058 variable to rtx_insn *.
14059 * recog.c: Change argument types to rtx_insn *.
14062 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14064 * reorg.c: Change argument types to rtx_insn *.
14066 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14068 * ira-color.c: Change argument types to rtx_insn *.
14069 * lra-eliminations.c: Likewise.
14072 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14074 * gcse.c: Change argument types to rtx_insn *.
14076 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14078 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
14080 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14082 * emit-rtl.c (emit_debug_insn_before): Change argument type to
14086 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14088 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
14091 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14093 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
14096 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14098 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
14101 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14103 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
14106 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14108 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
14112 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14114 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
14118 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14120 * except.c (can_nonlocal_goto): Change type of argument to
14124 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14126 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
14129 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14131 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
14132 * cfgrtl.c (can_delete_label_p): Adjust.
14135 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14137 * reorg.c (stop_search_p): Change argument to rtx_insn *.
14139 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14141 * except.c (make_reg_eh_region_note): Change argument to
14143 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
14144 * except.h: Adjust.
14146 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14148 * mode-switching.c (commit_mode_sets): Change type of local
14149 variable from rtx to rtx_insn *.
14151 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
14153 * doc/install.texi (--enable-languages): Add missing jit and lto info.
14154 Add ^ to grep command.
14155 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
14156 arg to last gimple_simplify declaration. Add missing gimple_build
14157 declaration for built-in function case with four tree args.
14159 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
14160 Szabolcs Nagy <szabolcs.nagy@arm.com>
14162 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
14163 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
14164 (GNU_USER_DYNAMIC_LINKERN32): Update.
14166 2015-05-08 Richard Biener <rguenther@suse.de>
14168 PR tree-optimization/66036
14169 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14170 Handle strided group loads.
14171 (vect_verify_datarefs_alignment): Likewise.
14172 (vect_enhance_data_refs_alignment): Likewise.
14173 (vect_analyze_group_access): Likewise.
14174 (vect_analyze_data_ref_access): Likewise.
14175 (vect_analyze_data_ref_accesses): Likewise.
14176 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
14177 (vectorizable_load): Likewise.
14179 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
14181 * config/rs6000/rs6000.md: Require operand inequality in one
14184 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
14185 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14187 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
14189 * config/rx/rx.md (movdi, movdf): Likewise.
14190 Likewise for define_peephole2s.
14192 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14194 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
14195 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
14196 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
14197 vtst_u64): Rewrite using gcc vector extensions.
14199 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14201 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
14202 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
14204 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14206 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
14208 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
14210 * config/glibc-stdint.h (OPTION_MUSL): Define.
14211 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
14212 Change the definition based on OPTION_MUSL for 64 bit targets.
14213 * config/linux.h (OPTION_MUSL): Redefine.
14214 * config/alpha/linux.h (OPTION_MUSL): Redefine.
14215 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
14216 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
14218 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
14219 Szabolcs Nagy <szabolcs.nagy@arm.com>
14221 * config.gcc (LIBC_MUSL): New tm_defines macro.
14222 * config/linux.h (OPTION_MUSL): Define.
14223 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
14224 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
14225 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
14226 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
14227 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
14228 * config/linux.opt (mmusl): New option.
14229 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
14230 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
14231 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
14232 * configure: Regenerate.
14234 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
14235 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14238 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
14239 * config/i386/knetbsd-gnu64.h: New file.
14241 2015-05-08 Marek Polacek <polacek@redhat.com>
14244 * doc/invoke.texi: Document -Woverride-init-side-effects.
14246 2015-05-07 Marek Polacek <polacek@redhat.com>
14249 * doc/invoke.texi: Document -Wshift-negative-value.
14251 2015-05-06 Aditya Kumar <hiraditya@msn.com>
14253 * gcov-tool.c (do_merge): Refactore to remove int ret.
14254 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
14255 !type == FUNC to type != FUNC.
14256 * reload.h (struct target_reload): Changee to type of
14257 x_spill_indirect_levels from bool to unsigned char.
14259 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
14261 * rtl.h (always_void_p): New function.
14262 * gengenrtl.c (always_void_p): Likewise.
14263 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
14264 with code foo are always VOIDmode.
14265 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
14266 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
14267 compare-elim.c, config/aarch64/aarch64.c,
14268 config/aarch64/aarch64.md, config/alpha/alpha.c,
14269 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
14270 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
14271 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
14272 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
14273 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
14274 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
14275 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
14276 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
14277 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
14278 config/ia64/vect.md, config/iq2000/iq2000.c,
14279 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
14280 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
14281 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
14282 config/mep/mep.c, config/microblaze/microblaze.c,
14283 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
14284 config/mn10300/mn10300.c, config/msp430/msp430.c,
14285 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
14286 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
14287 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
14288 config/rs6000/altivec.md, config/rs6000/rs6000.c,
14289 config/rs6000/rs6000.md, config/rs6000/vector.md,
14290 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
14291 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
14292 config/sh/sh.md, config/sh/sh_treg_combine.cc,
14293 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
14294 config/spu/spu.md, config/stormy16/stormy16.c,
14295 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
14296 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
14297 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
14298 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
14299 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
14300 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
14301 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
14302 var-tracking.c: Update calls accordingly.
14304 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
14307 PR middle-end/54303
14308 * varasm.c (function_mergeable_rodata_prefix): New function.
14309 (mergeable_string_section): Use it.
14310 (mergeable_constant_section): Use it.
14312 2015-05-07 Jeff Law <law@redhat.com>
14315 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14316 simplifier to narrow arithmetic.
14317 * generic-match-head.c: (types_match, single_use): New functions.
14318 * gimple-match-head.c: (types_match, single_use): New functions.
14320 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14322 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
14325 2015-05-07 Richard Biener <rguenther@suse.de>
14327 PR tree-optimization/66002
14328 * passes.def: Schedule another pass_merge_phi after ifcombine, right
14331 2015-05-07 Marek Polacek <polacek@redhat.com>
14332 Martin Uecker <uecker@eecs.berkeley.edu>
14334 * doc/invoke.texi: Document -fsanitize=bounds-strict.
14335 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
14336 into SANITIZE_NONDEFAULT.
14337 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
14339 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
14342 * config/alpha/alpha.c (alpha_override_options_after_change): New.
14343 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
14344 (alpha_override_options): Move align_loops, align_jumps and
14345 align_functions handling into alpha_override_options_after_change.
14347 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
14348 Chris Jones <chrisj@nvidia.com>
14349 Joshua Conner <jconner@nvidia.com>
14351 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
14352 linking of crtfastmath.o.
14353 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
14355 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
14357 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
14358 (cstore<mode>4_unsigned_imm): New expander.
14359 (cstore<mode>4): Remove empty constraint strings. Use the new
14362 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
14365 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
14368 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
14370 * config/aarch64/geniterators.sh: Use standard BRE in sed.
14372 2015-05-06 Alan Modra <amodra@gmail.com>
14375 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
14376 (UNSPEC_NOP): Define.
14377 (reload_vsx_from_gpr<mode>): Add missing DONE.
14378 (reload_gpr_from_vsx<mode>): Likewise.
14379 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
14380 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
14382 2015-05-06 Christian Bruel <christian.bruel@st.com>
14385 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
14386 align_jumps, align_functions into aarch64_override_options_after_change.
14388 2015-05-06 Richard Biener <rguenther@suse.de>
14390 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
14391 vect_transform_slp_perm_load to check if we support a permutation
14392 for basic-block vectorization.
14394 2015-05-06 Nick Clifton <nickc@redhat.com>
14396 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
14397 used, even if it is not being used as a frame pointer.
14399 2015-05-05 Jason Merrill <jason@redhat.com>
14401 * dwarf2out.c (gen_member_die): Don't emit anything for an
14402 anonymous class constructor.
14404 2015-05-05 David Malcolm <dmalcolm@redhat.com>
14406 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
14407 that it reflects the block structure.
14408 (afdo_propagate_edge): Likewise.
14409 (afdo_calculate_branch_prob): Likewise.
14410 (afdo_annotate_cfg): Likewise.
14411 * cfgcleanup.c (equal_different_set_p): Likewise.
14412 (try_crossjump_to_edge): Likewise.
14413 * cgraph.c (cgraph_node::verify_node): Likewise.
14414 * cgraphunit.c (expand_all_functions): Likewise.
14415 * config/i386/i386.c (ix86_expand_copysign): Likewise.
14416 (exact_dependency_1): Likewise.
14417 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
14418 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
14419 * gensupport.c (process_define_subst): Likewise.
14420 * lto-wrapper.c (merge_and_complain): Likewise.
14421 * tree-if-conv.c (if_convertible_bb_p): Likewise.
14422 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
14423 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
14424 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
14425 * tree-vect-loop.c (vectorizable_reduction): Likewise.
14426 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
14427 * tree-vect-stmts.c (vectorizable_shift): Likewise.
14428 * tree-vrp.c (vrp_finalize): Likewise.
14429 * tree.c (variably_modified_type_p): Likewise.
14431 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
14433 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
14434 on darwin12 and later.
14435 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
14436 file to pass -rdynamic on darwin12 and later.
14437 * config/darwin.opt (rdynamic): Add.
14439 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14441 * doc/extend.texi (C Extensions): Update menu for moved Variable
14442 Attributes and Type Attributes sections.
14444 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14447 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
14448 if rep_8byte stringop strategy was specified for 32-bit target.
14450 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
14453 * config/i386/i386.md (vector convert to float spltiter): Check for
14454 xmm16+, when splitting scalar float conversion.
14455 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
14457 2015-05-05 Nick Clifton <nickc@redhat.com>
14459 * config/msp430/msp430-opts.h (enum msp430_regions): New.
14460 * config/msp430/msp430.c (msp430_override_options): Complain if
14461 -mcode-region or -mdata-region is used on a non MSP430X.
14462 (msp430_section_attr): New function. Checks lower, upper and
14464 (msp430_attribute_table): Add lower, upper and either.
14465 (gen_prefix): New function. Generates a prefix for a section
14467 (msp430_select_section): New function - handles the choice of
14468 section for an object. Takes into account memory region
14469 attributes and options.
14470 (msp430_function_section): Use gen_prefix.
14471 (TARGET_SECTION_TYPE_FLAGS): Define.
14472 (msp430_section_type_flags): New function.
14473 (TARGET_ASM_UNIQUE_SECTION): Define.
14474 (msp430_unique_section): New function.
14475 (msp430_output_aligned_decl_common): New function.
14476 (msp430_do_not_relax_short_jumps): New function.
14477 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
14479 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
14480 * config/msp430/msp430-protos.h
14481 (msp430_do_not_relax_short_jumps): New prototype.
14482 (msp430_output_aligned_decl_common): New prototype.
14483 * config/msp430/msp430.md (length): New attribute.
14484 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
14485 then use a long code sequence for short jumps.
14486 * config/msp430/msp430.opt (mcode-region): New.
14487 (mdata-region): New.
14488 * doc/invoke.texi: Document new options.
14489 * doc/extend.texi: Document new attributes.
14491 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
14493 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
14494 (tune_params): Add field branch_costs.
14495 (aarch64_branch_cost): Declare.
14496 * gcc/config/aarch64.c (generic_branch_cost): New.
14497 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
14498 (cortexa53_tunings): Likewise.
14499 (cortexa57_tunings): Likewise.
14500 (thunderx_tunings): Likewise.
14501 (xgene1_tunings): Likewise.
14502 (aarch64_branch_cost): Define.
14503 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
14505 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14507 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
14508 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
14509 * config/i386/i386.md: Ditto.
14510 * config/i386/winnt.c: Ditto.
14512 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
14514 * doc/extend.texi (__atomic Builtins): Move implementation details
14515 to the end of the description, rewrite opening paragraphs, state
14516 difference with __sync builtins, state C11/C++11 assumptions,
14517 weaken itemized descriptions, add explanation of memory model
14518 behaviour, expand description of compare-exchange, simplify text.
14520 2015-05-05 Renlin Li <renlin.li@arm.com>
14522 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
14524 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
14526 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
14527 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14528 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
14529 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14530 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
14531 * configure: Regenerate.
14532 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
14533 * doc/install.texi (aarch64*-*-*): Document new
14534 --enable-fix-cortex-a53-843419 option.
14535 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
14536 and -mno-fix-cortex-a53-843419 options.
14538 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14541 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
14543 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
14545 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
14546 fix overactive TYPE_MIN_VALUE check and add FIXME for type
14547 compatibility problems.
14549 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
14551 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
14553 (cbranchsi4_reg): New.
14554 * config/microblaze/microblaze.c
14555 (microblaze_expand_conditional_branch_reg): New.
14556 * config/microblaze/microblaze-protos.h
14557 (microblaze_expand_conditional_branch_reg): New prototype.
14559 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
14561 * config/microblaze/microblaze.md (peephole2): New.
14563 2015-05-04 Jeff Law <law@redhat.com>
14566 2015-05-04 Jeff Law <law@redhat.com>
14568 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14569 simplifier to narrow arithmetic.
14570 * generic-match-head.c: (types_match, single_use): New functions.
14571 * gimple-match-head.c: (types_match, single_use): New functions.
14573 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
14576 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
14577 (split_branches): Likewise.
14579 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
14581 * common.opt (fdelete-null-pointer-checks): Init to -1.
14582 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
14583 override flag_delete_null_pointer_checks default.
14584 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
14585 behavior re address zero. Better document target-specific behavior.
14586 (-fisolate-errneous-paths-dereference): Mention relationship to
14587 -fdelete-null-pointer-checks.
14589 2015-05-04 Jakub Jelinek <jakub@redhat.com>
14591 PR tree-optimization/65984
14592 * ubsan.c: Include tree-cfg.h.
14593 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
14594 stmt_could_throw_p test, rename can_throw variable to ends_bb.
14596 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
14598 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
14599 to CONST_DOUBLE_P predicate.
14600 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
14601 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
14602 allow only operands that satisfy standard_sse_constant_p predicate.
14603 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
14604 to CONST_DOUBLE_P predicate.
14606 2015-05-04 Jeff Law <law@redhat.com>
14608 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14609 simplifier to narrow arithmetic.
14610 * generic-match-head.c: (types_match, single_use): New functions.
14611 * gimple-match-head.c: (types_match, single_use): New functions.
14613 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
14615 * config/arm/arm.c: Restore bootstrap.
14617 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
14619 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
14620 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
14621 as CONST_WIDE_INT, not CONST_DOUBLE.
14622 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
14623 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
14624 (ix86_find_base_term): Do not check for CONST_DOUBLE.
14625 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
14626 (ix86_build_signbit_mask): Rewrite using wide ints.
14627 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
14628 (ix86_rtx_costs): Handle CONST_WIDE_INT.
14629 (find_constant): Ditto.
14630 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
14631 using gen_int_mode.
14632 * config/i386/predicates.md (x86_64_immediate_operand)
14633 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
14634 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
14635 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
14636 (const0_operand): Also match const_wide_int.
14637 (constm1_operand): Ditto.
14638 (const1_operand): Ditto.
14640 2015-05-04 Richard Biener <rguenther@suse.de>
14642 PR tree-optimization/65965
14643 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
14644 store groups at gaps.
14646 2015-05-04 Richard Biener <rguenther@suse.de>
14648 PR tree-optimization/65935
14649 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
14650 then make sure to apply that swapping to the IL.
14652 2015-05-04 Jakub Jelinek <jakub@redhat.com>
14654 * Makefile.in (PATCHLEVEL_c): New variable.
14655 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
14656 expand the same way as if DEVPHASE_c was non-empty.
14658 2015-05-04 Kai Tietz <ktietz@redhat.com>
14661 * lto-wrapper.c (run_gcc): Open filename
14664 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
14666 * doc/extend.texi (Variable Attributes, Type Attributes): Move
14667 sections up in file, to immediately after the Function Attributes
14670 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
14672 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
14674 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14676 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
14677 (insert_partition_copy_on_edge): Adjust.
14678 (insert_rtx_to_part_on_edge): Likewise.
14679 (insert_part_to_rtx_on_edge): Likewise.
14681 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14683 * function.c (set_return_jump_label): Change type of argument to
14685 * function.h (set_return_jump_label): Adjust.
14687 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14689 * reload.h (struct reg_equivs_t): Change type of init to
14691 * ira.c (fix_reg_equiv_init): Adjust.
14692 * reload1.c (eliminate_regs_1): Likewise.
14693 (init_eliminable_invariants): Likewise.
14695 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14697 * cselib.c (fp_setter_insn): Take a rtx_insn *.
14698 * cselib.h (fp_setter_insn): Adjust.
14700 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14702 * recog.c (struct validate_replace_src_data): Change type of
14703 insn field to rtx_insn *.
14704 (validate_replace_src_group): Change type of argument to rtx_insn *.
14705 * recog.h (validate_replace_src_group): Adjust.
14707 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14709 * haifa-sched.c: Change the type of some variables to rtx_insn *.
14710 * sched-deps.c: Likewise.
14711 * sched-int.h: Likewise.
14712 * sched-rgn.c: Likewise.
14713 * sel-sched.c: Likewise.
14715 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14718 * config/i386/i386.c: Change the type of some arguments to
14720 * config/arm/arm.c: Likewise.
14722 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14724 * lra-constraints.c: Change type of some arguments to rtx_insn *.
14726 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14728 * regcprop.c (kill_autoinc_value): Change type of argument to
14731 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14733 * genrecog.c (print_subroutine): Adjust.
14734 * recog.c (get_bool_attr_mask_uncached): Likewise.
14735 * recog.h (struct recog_data_d): Change the type of insn to
14738 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14740 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
14742 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14744 * df-problems.c (df_set_note): Change type of argument to
14747 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14749 * builtins.c (expand_builtin_trap): Change type of local
14750 variable to rtx_insn *.
14751 (add_sched_insns_for_speculation): Likewise.
14752 (ix86_emit_save_regs): Likewise.
14753 (get_scratch_register_on_entry): Likewise.
14754 (ix86_emit_restore_reg_using_pop): Likewise.
14755 (ix86_emit_leave): Likewise.
14756 (ix86_emit_restore_regs_using_mov): Likewise.
14757 (ix86_expand_epilogue): Likewise.
14759 (rl78_alloc_physical_registers_umul): Likewise.
14760 * cselib.c (discard_useless_locs): Likewise.
14761 (cselib_invalidate_regno): Likewise.
14762 (cselib_invalidate_mem): Likewise.
14763 * function.c (expand_function_start): Likewise.
14764 (emit_use_return_register_into_block): Likewise.
14765 * gcse.c: Likewise.
14766 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
14767 * ifcvt.c (noce_get_alt_condition): Likewise.
14768 * loop-doloop.c (doloop_condition_get): Likewise.
14769 * lra-constraints.c (inherit_in_ebb): Likewise.
14770 * modulo-sched.c (sms_schedule_by_order): Likewise.
14771 * recog.c (next_insn_tests_no_inequality): Likewise.
14772 * reorg.c (emit_delay_sequence): Likewise.
14773 (update_reg_dead_notes): Likewise.
14774 (fix_reg_dead_note): Likewise.
14775 (fill_slots_from_thread): Likewise.
14776 (delete_computation): Likewise.
14778 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
14780 * doc/extend.texi (Variable Attributes): Add menu and proper
14781 @nodes to subsections. Move Microsoft Windows attributes to
14782 their own subsection.
14783 (Type Attributes): Reorganize introduction to remove duplicate
14784 list of attributes. Add menu and proper @nodes to subsections.
14785 Alphabetize the main table of common attributes.
14787 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
14789 * match.pd: New simplification patterns.
14790 (x + (x & 1)) -> ((x + 1) & ~1)
14791 (x & ~(x & y)) -> ((x & ~y))
14792 (x | ~(x | y)) -> ((x | ~y))
14794 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14796 * target.def (attribute_table): Mention that struct attribute_spec
14797 is defined in tree-core.h rather than tree.h
14798 * doc/tm.texi: Regenerate.
14800 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
14802 * genrecog.c (test): Rename to rtx_test. Update rest of file
14805 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
14807 PR translation/65959
14808 * params.h (DEFPARAM): Rename msgid to nocmsgid.
14810 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
14812 * gcc/config/aarch64/aarch64-protos.h (tune_params):
14813 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
14814 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
14815 Return value depending on target.
14816 (generic_tunings): Initialize new target settings.
14817 (cortexa53_tunings): Likewise.
14818 (cortexa57_tunings): Likewise.
14819 (thunderx_tunings): Likewise.
14820 (xgene1_tunings): Likewise.
14822 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
14824 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
14825 Make Cortex-A53 shift costs more accurate.
14827 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14829 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
14832 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
14834 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
14835 Calculate cost of op0 and op1 in PLUS and MINUS cases.
14837 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14839 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
14840 Add cost of op0 in the compare-with-fpzero case.
14842 2015-04-30 David Malcolm <dmalcolm@redhat.com>
14844 * builtins.c (fold_builtin_1): Remove spurious second
14846 * cgraph.h (symtab_node::get_availability): Likewise.
14847 * opts.c (common_handle_option): Remove spurious second semicolon.
14848 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
14849 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
14851 2015-04-30 Caroline Tice <cmtice@google.com>
14853 PR gcov-profile/65929
14854 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
14855 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
14856 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
14857 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
14858 * doc/tm.texi: Regenerate.
14859 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
14860 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
14861 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
14862 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
14864 2015-04-30 Marek Polacek <polacek@redhat.com>
14866 * varasm.c (handle_cache_entry): Fix logic.
14868 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14870 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
14871 (*extrsi5_insn_uxtw_alt): Likewise.
14872 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
14873 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
14876 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14878 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
14881 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14883 * config/aarch64/aarch64.md
14884 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
14885 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
14886 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
14887 appropriately. Handle alternative EON form.
14889 2015-04-30 Renlin Li <renlin.li@arm.com>
14891 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
14892 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
14894 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
14897 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
14898 -fstrict-aliasing boundaries.
14900 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14902 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
14903 and [SU]MNEGL patterns.
14905 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14907 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
14908 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
14909 combined arithmetic-shift ops. Properly handle all shift and extend
14910 operations that can occur in combination with PLUS/MINUS.
14911 Rename maybe_fma to compound_p.
14912 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
14913 arithmetic and shift operations.
14915 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14917 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
14918 rather than arith_shift cost when costing ADD/MINUS of an
14921 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
14924 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
14927 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
14929 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
14930 are for the same position.
14932 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
14934 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
14936 (vectorize_loops): Use it.
14938 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
14940 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
14941 for aggregate types.
14942 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
14943 type to be non_ODR.
14944 * tree.c (need_assembler_name_p): Compute mangled name for
14945 non-fundamental types and integer types.
14947 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
14949 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
14951 * expr.c (expand_expr_real_2): Likewise.
14953 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
14955 * tree.c (build_common_builtin_nodes): Do not build
14956 __builtin_alloca_with_align as equivalent of library alloca.
14958 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
14960 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
14961 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
14963 * tree.c: Include print-tree.h and ipa-utils.h
14964 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
14965 (free_lang_data_in_cgraph): Call verify_type.
14966 (verify_type_variant): New function.
14967 (verify_type): New function.
14968 * tree.h (verify_type): Declare.
14970 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
14972 * config/mips/mips-cpus.def: (mips4): Change default processor
14973 from PROCESSOR_R8000 to PROCESSOR_R10000.
14975 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
14977 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
14978 la/jalr instead of jal.
14980 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
14983 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
14984 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
14985 (setcc+movzbl peephole2): Check also clobbered reg.
14986 (setcc+andl peephole2): Ditto.
14988 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
14991 * config/nvptx/mkoffload.c (target_ilp32): New variable.
14992 (main): Set it depending on "-foffload-abi=[...]".
14993 (compile_native, main): Use it to pass "-m32" or "-m64" to the
14996 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
14999 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
15000 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
15001 Flip lane index back at assembly time for bigendian.
15003 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
15005 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
15006 * gimplify.c (gimplify_omp_workshare): Use it.
15008 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15010 * Makefile.in (build/genrecog.o): Depend on inchash.h.
15011 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
15013 * genrecog.c: Rewrite most of the code except for the third page.
15015 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15017 * inchash.h, inchash.c: Include bconfig.h for build objects.
15018 * Makefile.in (build/inchash.o): New rule.
15020 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
15023 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
15024 number in type attribute expression.
15026 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15028 * loop-iv.c (canon_condition): Generalize to all types of integer
15031 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
15033 * gimple-walk.c: Prune duplicate or unneeded includes.
15034 (walk_gimple_asm): Only call parse_input_constraint or
15035 parse_output_constraint if their findings are used.
15036 Honour parse_input_constraint and parse_output_constraint
15039 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
15041 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
15043 2015-04-29 Tom de Vries <tom@codesourcery.com>
15045 PR tree-optimization/65893
15046 * passes.def (pass_all_optimizations): Move pass_stdarg to after
15049 2015-04-29 Richard Biener <rguenther@suse.de>
15051 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
15052 compute GROUP_SIZE for basic-block SLP.
15053 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
15054 take into account gaps.
15055 (vect_get_mask_element): Properly reject references to previous
15057 (vect_transform_slp_perm_load): Likewise.
15059 2015-04-29 Christian Bruel <christian.bruel@st.com>
15062 * config/i386/i386.c (ix86_default_align): New function.
15063 (ix86_override_options_after_change): Call ix86_default_align.
15064 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
15065 (ix86_override_options_after_change): New function.
15067 2015-04-28 Jeff Law <law@redhat.com>
15069 * tree-ssa-dom.c (record_equality); Fix comment typos.
15071 2015-04-28 Tom de Vries <tom@codesourcery.com>
15073 PR tree-optimization/65887
15074 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
15076 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
15078 * doc/extend.texi (Declaring Attributes of Functions): Split into
15079 subsections by target. Alphabetize the table of common attributes.
15080 Rewrite some of the introductory text to reflect the new structure.
15081 Update some cross-references to point to the new subsections.
15082 (Attribute Syntax): Put paragraph about "__" naming here. Remove
15083 duplicate copies in the discussion of function, label, and type
15086 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
15089 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
15091 2015-04-28 Jason Merrill <jason@redhat.com>
15094 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
15095 (finalize_type_size): Respect TYPE_USER_ALIGN.
15096 (layout_type) [ARRAY_TYPE]: Likewise.
15098 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
15100 * config/arm/arm.md (*arm_movt): Fix type attribute.
15101 (*cmpsi_shiftsi): Likewise.
15102 (*cmpsi_shiftsi_swp): Likewise.
15103 (*movsicc_insn): Likewise.
15104 (*cond_move): Likewise.
15105 (*if_plus_move): Likewise.
15106 (*if_move_plus): Likewise.
15107 (*if_arith_move): Likewise.
15108 (*if_move_arith): Likewise.
15109 (*if_shift_move): Likewise.
15110 (*if_move_shift): Likewise.
15111 (*arm_movtas_ze): Likewise.
15112 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
15113 redundancy and type attribute.
15114 (*thumb2_movsi_insn): Fix type attribute.
15115 (*thumb2_addsi_short): Likewise.
15116 (thumb2_addsi3_compare0): Likewise.
15117 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
15118 attributes accordingly.
15120 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
15123 * function.c (pad_to_arg_alignment): Add parentheses.
15125 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
15127 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
15128 libgcc/config/frv/elf-lib.h.
15130 2015-04-28 Tom de Vries <tom@codesourcery.com>
15132 * tree-call-cdce.c: Fix example in header comment.
15134 2015-04-28 Richard Biener <rguenther@suse.de>
15136 PR tree-optimization/62283
15137 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
15138 fails fatally and we are vectorizing a basic-block simply
15139 cause the child to be constructed piecewise.
15140 (vect_analyze_slp_cost_1): Adjust.
15141 (vect_detect_hybrid_slp_stmts): Likewise.
15142 (vect_bb_slp_scalar_cost): Likewise.
15143 (vect_get_constant_vectors): For piecewise constructed
15144 constants place them after the last def.
15145 (vect_get_slp_defs): Adjust.
15146 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
15147 externals for basic-block vectorization.
15149 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15152 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
15154 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
15155 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
15156 (AARCH64_TUNE_FMA_STEERING): Likewise.
15157 * config/aarch64/aarch64-cores.def: Set
15158 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
15159 FMUL/FMADD instructions.
15160 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
15161 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
15162 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
15163 * config/aarch64/cortex-a57-fma-steering.h: New file.
15164 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15166 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
15168 * gensupport.c (std_preds): Add missing codes to address_operand entry.
15170 2015-04-28 Richard Biener <rguenther@suse.de>
15172 PR tree-optimization/65851
15173 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
15174 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
15175 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
15176 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
15177 (ccp_visit_phi_node): Adjust.
15178 (evaluate_stmt): For simplifications to SSA names return its
15179 lattice value if that isn't VARYING. Return immediately when
15180 simplified to a constant.
15181 (visit_assignment): Adjust.
15182 (ccp_visit_stmt): Likewise.
15184 2015-04-28 Tom de Vries <tom@codesourcery.com>
15186 PR tree-optimization/65818
15187 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
15190 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15192 * calls.c (save_fixed_argument_area): Don't check
15193 ARGS_GROW_DOWNWARD with the preprocessor.
15194 (restore_fixed_argument_area): Likewise.
15195 (mem_overlaps_already_clobbered_arg_p): Likewise.
15196 (check_sibcall_argument_overlap): Likewise.
15197 (expand_call): Likewise.
15198 (emit_library_call_value_1): Likewise.
15199 (store_one_arg): Likewise.
15200 * function.c (assign_parms): Likewise.
15201 (locate_and_pad_parm): Likewise.
15202 (pad_to_arg_alignment): Likewise.
15203 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15205 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15207 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
15208 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
15209 * calls.c (save_fixed_argument_area): Don't chekc if
15210 ARGS_GROW_DOWNWARD is defined.
15211 (restore_fixed_argument_area): Likewise.
15212 (mem_overlaps_already_clobbered_arg_p): Likewise.
15213 (check_sibcall_argument_overlap): Likewise.
15214 (expand_call): Likewise.
15215 (emit_library_call_value_1): Likewise.
15216 (store_one_arg): Likewise.
15217 * function.c (assign_parms): Likewise.
15218 (locate_and_pad_parm): Likewise.
15219 (pad_to_arg_alignment): Likewise.
15220 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15222 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15224 * defaults.h (gen_epilogue): New function.
15225 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
15227 * cfgrtl.c (cfg_layout_finalize): Likewise.
15228 * df-scan.c: Likewise.
15229 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15230 (reposition_prologue_and_epilogue_notes): Likewise.
15231 * reorg.c (find_end_label): Likewise.
15232 * toplev.c: Likewise.
15234 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15236 * bb-reorder.c (HAVE_return): Don't check if its undefined.
15237 * defaults.h (gen_simple_return): New function.
15238 (gen_simple_return): Likewise.
15239 (HAVE_return): Add default definition to false.
15240 (HAVE_simple_return): Likewise.
15241 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
15242 HAVE_return and HAVE_simple_return are defined.
15243 * function.c (gen_return_pattern): Likewise.
15244 (convert_jumps_to_returns): Likewise.
15245 (thread_prologue_and_epilogue_insns): Likewise.
15246 * reorg.c (find_end_label): Likewise.
15247 (dbr_schedule): Likewise.
15248 * shrink-wrap.c: Likewise.
15249 * shrink-wrap.h: Likewise.
15251 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15253 * defaults.h (EPILOGUE_USES): Add default definition of false.
15254 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
15255 * resource.c (init_resource_info): Likewise.
15257 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15259 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
15261 * dwarf2out.c (field_byte_offset): REmove check if
15262 PCC_BITFIELD_TYPE_MATTERS is defined.
15263 * stor-layout.c (layout_decl): Likewise.
15264 (update_alignment_for_field): Likewise.
15265 (place_field): Likewise.
15267 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15269 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
15271 * regrename.c (check_new_reg_p): Remove check if
15272 HARD_REGNO_RENAME_OK is defined.
15273 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
15275 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15277 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
15278 * cse.c (fold_rtx): Likewise.
15279 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
15280 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
15281 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
15282 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
15283 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
15284 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
15285 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
15286 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
15287 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
15288 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
15290 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
15291 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
15292 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
15293 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
15294 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
15295 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
15296 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
15297 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
15298 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
15299 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
15300 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
15301 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
15302 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
15303 * doc/tm.texi: Regenerate.
15304 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
15305 either true or false.
15307 2015-04-27 Jeff Law <law@redhat.com>
15309 PR tree-optimization/65217
15310 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
15311 of them has a single use, make sure it is the LHS of the implied
15314 2015-04-28 Alan Modra <amodra@gmail.com>
15317 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
15318 (offsettable_ok_by_alignment): Use minimum of decl and toc
15319 pointer alignment. Replace dead code with assertion.
15320 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
15321 case if size exceeds toc pointer alignment.
15322 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
15323 (rs6000_emit_move): Likewise.
15324 * configure.ac: Add linker toc pointer alignment check.
15325 * configure: Regenerate.
15326 * config.in: Regenerate.
15328 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
15330 * config.gcc: Add h8300-*-linux.
15331 * config/h8300/linux.h: New.
15332 * config/h8300/t-linux: New.
15333 * config/h8300/h8300.c (h8300_option_override): Normal mode
15334 is not supported for h8300-*-linux.
15335 (h8300_file_start): Target priority change.
15336 (get_shift_alg): Likewise.
15337 (h8300_shift_need_scratch_p): Likewise.
15338 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
15339 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
15341 2015-04-27 Caroline Tice <cmtice@google.com>
15343 * final.c (final_scan_insn): Output cold_function_name as function
15345 * varasm.c (cold_function_name): Make global.
15346 (assemble_start_function): Re-set cold_function_name.
15347 (assemble_end_function): Output cold partition size.
15348 * varasm.h (cold_function_name): Declare global.
15350 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
15352 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
15353 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
15355 (*movxi_internal_avx512f): Ditto.
15356 (define_split): Check for xmm16+, when splitting scalar float_extend.
15357 (*extendsfdf2_mixed): Use "v" constraint.
15358 (define_split): Check for xmm16+, when splitting scalar float_truncate.
15359 (*truncdfsf_fast_sse): Use "v" constraint.
15360 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
15361 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
15362 (define_peephole2): Check for xmm16+, when converting scalar
15364 (define_peephole2): Check for xmm16+, when converting scalar
15366 (*fop_<mode>_comm_mixed): Use "v" constraint.
15367 (*fop_<mode>_comm_sse): Ditto.
15368 (*fop_<mode>_1_mixed): Ditto.
15369 (*sqrt<mode>2_sse): Ditto.
15370 (*ieee_s<ieee_maxmin><mode>3): Ditto.
15372 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15374 * combine.c (simplify_if_then_else): Use std::swap instead
15375 of manually swapping.
15376 (known_cond): Likewise.
15377 (simplify_comparison): Likewise.
15379 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
15382 * config/rs6000/htm.md: Remove all define_expands.
15383 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
15384 UNSPECV_HTM_TABORTWCI): Remove.
15385 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
15386 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
15387 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
15388 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
15389 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
15390 tabortwci_internal): Remove define_insns.
15391 (tabort<wd>c, tabort<wd>ci): New define_insns.
15392 (tabort): Use gpc_reg_operand.
15393 (tcheck): Remove operand.
15394 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
15395 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
15397 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
15398 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
15399 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
15400 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
15401 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
15402 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
15403 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
15404 (tcheck): Remove builtin argument.
15405 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
15407 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
15408 tabortdc and tabortdci builtins when not in 64-bit mode.
15409 Modify code to handle the loss of the HTM define_expands.
15410 Emit code to copy the CR register to TARGET.
15411 (htm_init_builtins): Modify code to handle the loss of the HTM
15413 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
15414 (RS6000_BTC_64BIT): Likewise.
15415 (RS6000_BTC_CR): New macro.
15416 * doc/extend.texi: Update documentation for htm builtins.
15418 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15420 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
15421 of manually swapping.
15422 (simplify_associative_operation): Likewise.
15423 (simplify_binary_operation): Likewise.
15424 (simplify_plus_minus): Likewise.
15425 (simplify_relational_operation): Likewise.
15426 (simplify_ternary_operation): Likewise.
15428 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
15430 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
15431 (xs_hi_nonmemory_operand): Remove error.
15432 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
15433 general_operand rather than xs_hi_general_operand.
15435 2015-04-27 Richard Biener <rguenther@suse.de>
15437 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
15438 (record_equivalences_from_stmt): Valueize rhs.
15439 (record_equality): Canonicalize x and y order via
15440 tree_swap_operands_p. Do not swap operands for same loop depth.
15442 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
15446 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
15447 Add hint how to use own spec file.
15449 2015-04-27 Jakub Jelinek <jakub@redhat.com>
15451 PR tree-optimization/65875
15452 * tree-vrp.c (update_value_range): If in is_new case setting
15453 old_vr to VR_VARYING, also set new_vr to it. Remove
15454 old_vr->type == VR_VARYING test.
15455 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
15456 SSA_PROP_INTERESTING if update_value_range returned true,
15457 but new range is VR_VARYING.
15459 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
15461 * combine.c (sign_extend_short_imm): New.
15462 (set_nonzero_bits_and_sign_copies): Use above new function for sign
15463 extension of src short immediate.
15464 (reg_nonzero_bits_for_combine): Likewise for tem.
15466 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
15468 * stor-layout.c (self_referential_component_ref_p): New predicate.
15469 (copy_self_referential_tree_r): Use it.
15470 (self_referential_size): Punt for simple operations directly involving
15471 self-referential component references.
15472 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
15474 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
15476 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
15478 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
15480 * vec.h (vec): Make splice arguments const. Update definitions
15483 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
15485 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
15488 2015-04-26 Tom de Vries <tom@codesourcery.com>
15490 PR tree-optimization/65826
15491 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
15493 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
15495 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
15496 (*madd3<mode>): Ditto.
15497 (*msub4<mode>): Ditto.
15498 (*msub3<mode>): Ditto.
15499 (*nmadd4<mode>): Ditto.
15500 (*nmadd3<mode>): Ditto.
15501 (*nmadd4<mode>_fastmath): Ditto.
15502 (*nmadd3<mode>_fastmath): Ditto.
15503 (*nmsub4<mode>): Ditto.
15504 (*nmsub3<mode>): Ditto.
15505 (*nmsub4<mode>_fastmath): Ditto.
15506 (*nmsub3<mode>_fastmath): Ditto.
15508 2015-04-24 Jason Merrill <jason@redhat.com>
15511 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
15512 down when building TYPE_CANONICAL.
15513 (build_pointer_type_for_mode): Likewise.
15515 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
15517 * genrecog.c (validate_pattern): Check matching constraint refers
15518 to a lower numbered operand.
15520 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15523 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
15524 save to independent variables use the Save attribute. This will
15525 allow these options to be modified with the #pragma/attribute
15527 (-mallow-movmisalign): Likewise.
15528 (-mallow-df-permute): Likewise.
15529 (-msched-groups): Likewise.
15530 (-malways-hint): Likewise.
15531 (-malign-branch-targets): Likewise.
15532 (-mvectorize-builtins): Likewise.
15533 (-msave-toc-indirect): Likewise.
15535 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
15536 can be set via the #pragma/attribute target support.
15537 (rs6000_opt_vars): Likewise.
15538 (rs6000_inner_target_options): If VSX was set, also set
15539 -mno-avoid-indexed-addresses.
15541 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15543 * config/arm/iterators.md (shiftable_ops): Rename to...
15544 (SHIFTABLE_OPS): ... This. Update use in comments.
15545 (ior_xor): Rename to...
15546 (IOR_XOR): ... This.
15547 (vqh_ops): Rename to...
15548 (VQH_OPS): ... This.
15549 (vqhs_ops): Rename to...
15550 (VQHS_OPS): ... This.
15551 (rshifts): Rename to...
15552 (RSHIFTS): ... This.
15553 (returns): Rename to...
15554 (RETURNS): ... This.
15555 * config/arm/arm.md: Update uses of the above.
15556 * config/arm/neon.md: Likewise.
15558 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15560 * config.host (case ${host}): Add aarch64*-*-linux case.
15561 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
15562 fields to all the cores.
15563 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
15564 Add MCPU_MTUNE_NATIVE_SPECS.
15565 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
15566 field to all extensions.
15567 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
15568 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
15569 Adjust definition of AARCH64_OPT_EXTENSION.
15570 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
15571 (MCPU_MTUNE_NATIVE_SPECS): Define.
15572 * config/aarch64/driver-aarch64.c: New file.
15573 * config/aarch64/x-arch64: New file.
15574 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
15577 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
15578 Wei Mi <wmi@google.com>
15580 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
15581 * config/i386/i386.c (extract_base_offset_in_addr): New function.
15582 (ix86_operands_ok_for_move_multiple): Ditto.
15583 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
15584 (movlpd/movhpd to movupd peephole2): Ditto.
15586 2015-04-24 Marek Polacek <polacek@redhat.com>
15589 * input.h (from_macro_expansion_at): Define.
15592 * doc/invoke.texi: Update description of -Wlogical-op.
15594 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
15596 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
15597 ternary operator in fprintf and harmonize spacing.
15599 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
15601 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
15602 Mark operand1 commutative.
15604 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
15606 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
15607 input operands in memory.
15608 (*vec_concatv2si_sse4_1): Ditto.
15609 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
15610 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
15612 (vec_extract_hi_v32hi): Ditto.
15613 (vec_extract_hi_v64hi): Ditto.
15614 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
15616 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
15617 Steven Bosscher <steven@gcc.gnu.org>
15619 PR rtl-optimization/34503
15620 * cprop.c (cprop_reg_p): New.
15621 (hash_scan_set): Use above function to check if register can be
15623 (find_avail_set): Return up to two sets, one whose source is a
15624 register and one whose source is a constant. Sets are returned in an
15625 array passed as parameter rather than as a return value.
15626 (cprop_insn): Use a do while loop rather than a goto. Try each of the
15627 sets returned by find_avail_set, starting with the one whose source is
15628 a constant. Use cprop_reg_p to check if register can be propagated.
15629 (do_local_cprop): Use cprop_reg_p to check if register can be
15631 (implicit_set_cond_p): Likewise.
15633 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15635 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
15636 (sem_function::equals): IGNORED_NODES parameter is now unused;
15637 update call of equals_private.
15638 (sem_function::equals_private): Do not call equals_wpa; skip
15639 gimple body matching if there is no body.
15640 (sem_function::init): Add logic to hash tthunk info.
15641 (sem_function::parse): Also parse thunks.
15642 * ipa-icf.h (equals_private): Update declaration.
15644 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15646 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
15647 asterisk from name so this can be generated directly.
15648 (*altivec_stvx_<mode>_internal): Likewise.
15649 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
15650 that this is never called during or after reload/lra.
15651 (rs6000_frame_related): Remove split_reg
15652 argument and logic that references it.
15653 (emit_frame_save): Remove last parameter from call to
15654 rs6000_frame_related.
15655 (rs6000_emit_prologue): Remove last parameter from eight calls to
15656 rs6000_frame_related. Force generation of stvx instruction for
15657 Altivec register saves. Remove split_reg handling, which is no
15659 (rs6000_emit_epilogue): Force generation of lvx instruction for
15660 Altivec register restores.
15662 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15664 * config/rs6000/rs6000.opt (mcrypto): Change option description to
15665 match category changes in ISA 2.07B.
15667 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15669 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
15671 (cmp_op, cmp_type): New code attributes.
15672 (NEON_VCMP, NEON_VACMP): New int iterators.
15673 (cmp_op_unsp): New int attribute.
15674 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
15675 (neon_vceq<mode>): Delete.
15676 (neon_vc<cmp_op><mode>_insn): New pattern.
15677 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
15678 (neon_vcgeu<mode>): Delete.
15679 (neon_vcle<mode>): Likewise.
15680 (neon_vclt<mode>: Likewise.
15681 (neon_vcage<mode>): Likewise.
15682 (neon_vcagt<mode>): Likewise.
15683 (neon_vca<cmp_op><mode>): New define_expand.
15684 (neon_vca<cmp_op><mode>_insn): New pattern.
15685 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
15687 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15689 * tree.h (attribute_value_equal): Declare.
15690 * tree.c (attribute_value_equal): Export.
15692 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15694 * ipa-icf.c (sem_item::compare_attributes): New function.
15695 (sem_item::compare_referenced_symbol_properties): Compare variable
15697 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
15698 (sem_function::param_used_p): New function.
15699 (sem_function::equals_wpa): Fix attribute comparsion; match
15700 parameter type codes; do not compare paremter flags when
15701 they are not used; compare edge flags; compare indirect calls.
15702 (sem_item::update_hash_by_addr_refs): Hash reference type.
15703 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
15704 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
15705 reference use type.
15706 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
15707 * ipa-icf.h (compare_attributes, param_used_p): Declare.
15709 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15711 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
15713 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
15714 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
15715 (sem_item::compare_referenced_symbol_properties): New.
15716 (sem_item::hash_referenced_symbol_properties): New.
15717 (sem_item::compare_cgraph_references): Rename to ...
15718 (sem_item::compare_symbol_references): ... this one; use
15719 compare_referenced_symbol_properties.
15720 (sem_function::equals_wpa): Do not compare
15721 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
15722 DECL_IS_OPERATOR_NEW; compare pointer sizes.
15723 (sem_item::update_hash_by_addr_refs): Call
15724 hash_referenced_symbol_properties.
15725 (sem_item::update_hash_by_local_refs): Cleanup.
15726 (sem_function::merge): Do not mix up symbol properties.
15727 (sem_variable::equals_wpa): Use compare_symbol_references.
15728 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
15729 (sem_item::hash_referenced_symbol_properties): New.
15730 (sem_item::compare_symbol_references): New.
15731 (sem_item::compare_cgraph_references): Remove.
15733 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
15736 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
15737 Emit size of local.
15739 2015-04-23 Nick Clifton <nickc@redhat.com>
15741 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
15742 ATTRIBUTE_UNUSED to x parameter.
15743 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
15745 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15747 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
15748 TARGET_CRYPTO to TARGET_P8_VECTOR>
15749 (crypto_vpermxor_<mode>): Likewise.
15750 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
15751 (BU_CRYPTO_3A): Likewise.
15752 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
15753 (BU_CRYPTO_OVERLOAD_3A): New #define.
15754 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
15755 (VPMSUMH): Likewise.
15756 (VPMSUMW): Likewise.
15757 (VPMSUMD): Likewise.
15758 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
15759 (VPERMXOR_V4SI): Likewise.
15760 (VPERMXOR_V8HI): Likewise.
15761 (VPERMXOR_V16QI): Likewise.
15762 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
15763 BU_CRYPTO_OVERLOAD_2A.
15764 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
15765 BU_CRYPTO_OVERLOAD_3A.
15766 * config/rs6000/rs6000.opt (mcrypto): Change description of
15769 2015-04-23 Richard Biener <rguenther@suse.de>
15771 * passes.def: Remove copy propagation passes run directly after CCP.
15772 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
15774 (ccp_visit_phi_node): Rework to handle first executable edge
15777 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
15779 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
15780 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
15781 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
15782 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
15783 (thumb_legimitimize_reload_address): Remove.
15784 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
15786 (thumb_legimitimize_reload_address): Remove.
15788 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15790 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
15792 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15794 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
15796 (store_multiple): Likewise.
15798 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15800 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
15801 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
15802 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
15803 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
15804 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
15805 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
15806 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
15807 Specify issue_rate value.
15808 (arm_issue_rate): Look up issue rate from tuning structs. Remove
15809 large switch statement.
15810 (arm_marvell_pj4_tune): New struct.
15811 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
15814 2015-04-23 Richard Biener <rguenther@suse.de>
15816 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
15817 (vect_find_last_store_in_slp_instance): Rename to ...
15818 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
15819 (vect_analyze_slp_cost_1): Use vector_load for constant defs
15820 and vec_construct for external defs when estimating prologue cost.
15821 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
15822 Compute costs here only when vectorizing loops.
15823 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
15824 have been determined.
15825 (vect_schedule_slp_instance): Simplify vectorized code placement
15826 and prepare for in-BB external defs.
15827 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
15828 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
15829 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
15831 (vect_model_load_cost): Likewise.
15832 (vectorizable_store): Instead add it here.
15833 (vectorizable_load): Likewise.
15834 (vect_is_simple_use): Dump def type textually.
15836 2015-04-23 Richard Biener <rguenther@suse.de>
15838 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
15839 * cfgloop.c (verify_loop_structure): Verify the root loop node.
15840 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
15841 instead of get_eh_region_from_lp_number.
15842 * loop-init.c (fix_loop_structure): If we removed a loop, reset
15845 2015-04-23 Anton Blanchard <anton@samba.org>
15847 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
15848 need for -mprofile-kernel to save LR to stack.
15850 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15852 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
15854 (insn_is_swappable_p): Return 1 for a convert from double to
15855 single precision when all of its uses are splats of BE element
15858 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15860 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
15862 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15865 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
15866 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
15867 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
15869 (rs6000_builtin_mask_for_load): Return 0 for targets with
15870 efficient unaligned VSX accesses so that the vectorizer will use
15871 direct unaligned loads.
15872 (rs6000_builtin_support_vector_misalignment): Always return true
15873 for targets with efficient unaligned VSX accesses.
15874 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
15875 stores on targets with efficient unaligned VSX accesses is almost
15876 always the same as the cost of an aligned load or store, so model
15878 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
15879 unaligned vectors if we have efficient unaligned VSX accesses.
15880 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
15881 undocumented option.
15883 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15886 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
15888 * config.gcc (LIBC_MUSL): New tm_defines macro.
15889 * config/linux.h (OPTION_MUSL): Define.
15890 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
15891 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
15892 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
15894 * config/linux.opt (mmusl): New option.
15895 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
15896 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
15898 * configure: Regenerate.
15900 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
15902 * config.gcc (LIBC_MUSL): New tm_defines macro.
15903 * config/linux.h (OPTION_MUSL): Define.
15904 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
15905 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
15906 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
15908 * config/linux.opt (mmusl): New option.
15909 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
15910 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
15912 * configure: Regenerate.
15914 2015-04-22 Yury Gribov <y.gribov@samsung.com>
15916 * doc/invoke.texi (-fsanitize-sections): Update description.
15917 * asan.c (set_sanitized_sections): Parse incoming arg.
15918 (section_sanitized_p): Support wildcards.
15920 2015-04-22 Tom de Vries <tom@codesourcery.com>
15922 PR tree-optimization/65823
15923 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
15924 equality between ap_copy and ap.
15926 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15929 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
15931 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15934 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
15936 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15939 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
15940 remove already contained t-files.
15942 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15944 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
15945 Remove unneeded forward declarations.
15946 (suitable_for_tail_call_opt_p): Commentary typo fix.
15948 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15950 * varasm.c (emit_bss): Remove redundant guard.
15952 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15954 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
15956 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15958 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
15960 2015-04-22 Hale Wang <hale.wang@arm.com>
15961 Terry Guo <terry.guo@arm.com>
15963 PR rtl-optimization/64818
15964 * combine.c (can_combine_p): Don't combine user-specified
15965 register if it is in an asm input.
15967 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
15970 * passes.def (early_optimizations): Add pass_dse.
15972 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15974 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
15975 * reorg.c (redundant_insn): Remove ifdef
15976 INSN_REFERENCES_ARE_DELAYED.
15977 * resource.c (mark_referenced_resources): Likewise.
15979 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15981 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
15982 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
15983 * resource.c (mark_set_resources): Likewise.
15985 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15987 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
15988 * cfgcleanup.c (flow_find_cross_jump): Likewise.
15989 (flow_find_head_matching_sequence): Likewise.
15990 (try_head_merge_bb): Likewise.
15991 * combine.c (can_combine_p): Likewise.
15992 (try_combine): Likewise.
15993 (distribute_notes): Likewise.
15994 * df-problems.c (can_move_insns_across): Likewise.
15995 * final.c (final): Likewise.
15996 * gcse.c (insert_insn_end_basic_block): Likewise.
15997 * ira.c (find_moveable_pseudos): Likewise.
15998 * reorg.c (try_merge_delay_insns): Likewise.
15999 (fill_simple_delay_slots): Likewise.
16000 (fill_slots_from_thread): Likewise.
16001 * sched-deps.c (sched_analyze_2): Likewise.
16003 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16005 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
16006 PIC_OFFSET_TABLE_REGNUM.
16008 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16010 * alias.c (init_alias_target): Remove ifdef
16011 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
16012 * df-scan.c (df_insn_refs_collect): Likewise.
16013 (df_get_regular_block_artificial_uses): Likewise.
16014 (df_get_eh_block_artificial_uses): Likewise.
16015 (df_get_entry_block_def_set): Likewise.
16016 (df_get_exit_block_use_set): Likewise.
16017 * emit-rtl.c (gen_rtx_REG): Likewise.
16018 * ira.c (ira_setup_eliminable_regset): Likewise.
16019 * reginfo.c (init_reg_sets_1): Likewise.
16020 * regrename.c (rename_chains): Likewise.
16021 * reload1.c (reload): Likewise.
16022 (eliminate_regs_in_insn): Likewise.
16023 * resource.c (mark_referenced_resources): Likewise.
16024 (init_resource_info): Likewise.
16026 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16028 * defaults.h (MASK_RETURN_ADDR): New definition.
16029 * except.c (expand_builtin_extract_return_addr): Remove ifdef
16032 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16034 * defaults.h (RETURN_ADDR_OFFSET): New definition.
16035 * except.c (expand_builtin_extract_return_addr): Remove ifdef
16036 RETURN_ADDR_OFFSET.
16037 (expand_builtin_frob_return_addr): Likewise.
16039 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16041 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
16042 (try_redirect_by_replacing_jump): Likewise.
16043 (rtl_tidy_fallthru_edge): Likewise.
16044 * combine.c (insn_a_feeds_b): Likewise.
16045 (find_split_point): Likewise.
16046 (simplify_set): Likewise.
16047 * cprop.c (cprop_jump): Likewise.
16048 * cse.c (cse_extended_basic_block): Likewise.
16049 * df-problems.c (can_move_insns_across): Likewise.
16050 * function.c (emit_use_return_register_into_block): Likewise.
16051 * haifa-sched.c (sched_init): Likewise.
16052 * ira.c (find_moveable_pseudos): Likewise.
16053 * loop-invariant.c (find_invariant_insn): Likewise.
16054 * lra-constraints.c (curr_insn_transform): Likewise.
16055 * postreload.c (reload_combine_recognize_const_pattern):
16057 * reload.c (find_reloads): Likewise.
16058 * reorg.c (delete_scheduled_jump): Likewise.
16059 (steal_delay_list_from_target): Likewise.
16060 (steal_delay_list_from_fallthrough): Likewise.
16061 (redundant_insn): Likewise.
16062 (fill_simple_delay_slots): Likewise.
16063 (fill_slots_from_thread): Likewise.
16064 (delete_computation): Likewise.
16065 * sched-rgn.c (add_branch_dependences): Likewise.
16067 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16069 * genconfig.c (main): Always define HAVE_cc0.
16070 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
16072 * cfgcleanup.c (flow_find_cross_jump): Likewise.
16073 (flow_find_head_matching_sequence): Likewise.
16074 (try_head_merge_bb): Likewise.
16075 * cfgrtl.c (rtl_merge_blocks): Likewise.
16076 (try_redirect_by_replacing_jump): Likewise.
16077 (rtl_tidy_fallthru_edge): Likewise.
16078 * combine.c (do_SUBST_MODE): Likewise.
16079 (insn_a_feeds_b): Likewise.
16080 (combine_instructions): Likewise.
16081 (can_combine_p): Likewise.
16082 (try_combine): Likewise.
16083 (find_split_point): Likewise.
16085 (simplify_set): Likewise.
16086 (distribute_notes): Likewise.
16087 * cprop.c (cprop_jump): Likewise.
16088 * cse.c (cse_extended_basic_block): Likewise.
16089 * df-problems.c (can_move_insns_across): Likewise.
16090 * final.c (final): Likewise.
16091 (final_scan_insn): Likewise.
16092 * function.c (emit_use_return_register_into_block): Likewise.
16093 * gcse.c (insert_insn_end_basic_block): Likewise.
16094 * haifa-sched.c (sched_init): Likewise.
16095 * ira.c (find_moveable_pseudos): Likewise.
16096 * loop-invariant.c (find_invariant_insn): Likewise.
16097 * lra-constraints.c (curr_insn_transform): Likewise.
16098 * optabs.c (prepare_cmp_insn): Likewise.
16099 * postreload.c (reload_combine_recognize_const_pattern):
16101 * reload.c (find_reloads): Likewise.
16102 (find_reloads_address_1): Likewise.
16103 * reorg.c (delete_scheduled_jump): Likewise.
16104 (steal_delay_list_from_target): Likewise.
16105 (steal_delay_list_from_fallthrough): Likewise.
16106 (try_merge_delay_insns): Likewise.
16107 (redundant_insn): Likewise.
16108 (fill_simple_delay_slots): Likewise.
16109 (fill_slots_from_thread): Likewise.
16110 (delete_computation): Likewise.
16111 (relax_delay_slots): Likewise.
16112 * sched-deps.c (sched_analyze_2): Likewise.
16113 * sched-rgn.c (add_branch_dependences): Likewise.
16115 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16117 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
16118 that is trivially ded on non cc0 targets.
16119 (simplify_set): Likewise.
16120 (mark_used_regs_combine): Likewise.
16121 * cse.c (new_basic_block): Likewise.
16122 (fold_rtx): Likewise.
16123 (cse_insn): Likewise.
16124 (cse_extended_basic_block): Likewise.
16125 (set_live_p): Likewise.
16126 * rtlanal.c (canonicalize_condition): Likewise.
16127 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
16129 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16131 * conditions.h: Define macros even if HAVE_cc0 is undefined.
16132 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
16133 * final.c: Likewise.
16134 * jump.c: Likewise.
16135 * recog.c: Likewise.
16136 * recog.h: Declare functions even when HAVE_cc0 is undefined.
16137 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
16139 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16141 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
16142 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
16143 * builtins.c (expand_builtin): Remove check if
16144 EH_RETURN_DATA_REGNO is defined.
16145 * df-scan.c (df_bb_refs_collect): Likewise.
16146 (df_get_exit_block_use_set): Likewise.
16147 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
16148 * ira-lives.c (process_bb_node_lives): Likewise.
16149 * lra-lives.c (process_bb_lives): Likewise.
16151 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
16153 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
16154 FIRST_PSEUDO_REG): New.
16155 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
16156 (ARG_POINTER_REGNUM): Define to ARGP_REG.
16157 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
16158 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
16159 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
16160 (FIRST_INT_REG): New.
16161 (LAST_INT_REG): New.
16162 (FIRST_*_REG): Define using *_REG.
16163 (LAST_*_REG): Ditto.
16164 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
16165 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
16166 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
16168 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16170 * expmed.c: (synth_mult): Only assume overlapping
16171 shift with previous steps in alg_sub_t_m2 case.
16173 2015-04-21 Richard Biener <rguenther@suse.de>
16175 PR tree-optimization/65650
16176 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
16177 transitions involving copies.
16178 (set_lattice_value): Adjust for copy lattice state.
16179 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
16180 if that doesn't dominate the merge point.
16181 (bit_value_unop): Adjust what we treat as varying mask.
16182 (bit_value_binop): Likewise.
16183 (bit_value_assume_aligned): Likewise.
16184 (evaluate_stmt): When we simplified to a SSA name record a copy
16185 instead of dropping to varying.
16186 (visit_assignment): Simplify.
16188 * gimple-match.h (gimple_simplify): Add another callback.
16189 * gimple-fold.c (fold_stmt_1): Adjust caller.
16190 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
16191 for the 2nd callback.
16192 * gimple-match-head.c (gimple_simplify): Add a callback that is
16193 used to valueize the stmt operands and use it that way.
16195 2015-04-21 Richard Biener <rguenther@suse.de>
16197 PR tree-optimization/65788
16198 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
16200 2015-04-21 Richard Biener <rguenther@suse.de>
16202 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
16203 vec_construct cost by vec_stmt_cost.
16205 2015-04-21 Richard Biener <rguenther@suse.de>
16207 * cfghooks.h (create_basic_block): Replace with two overloads
16208 for RTL and GIMPLE.
16209 (split_block): Likewise.
16210 * cfghooks.c (split_block): Rename to ...
16211 (split_block_1): ... this.
16212 (split_block): Add two type-safe overloads for RTL and GIMPLE.
16213 (split_block_after_labels): Call split_block_1.
16214 (create_basic_block): Rename to ...
16215 (create_basic_block_1): ... this.
16216 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
16217 (create_empty_bb): Call create_basic_block_1.
16218 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
16219 split_block_after_labels.
16220 * omp-low.c (expand_parallel_call): Likewise.
16221 (expand_omp_target): Likewise.
16222 (simd_clone_adjust): Likewise.
16223 * tree-chkp.c (chkp_get_entry_block): Likewise.
16224 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
16225 create_basic_block overload.
16226 (cgraph_node::expand_thunk): Likewise.
16227 * tree-cfg.c (make_blocks): Likewise.
16228 (handle_abnormal_edges): Likewise.
16229 * tree-inline.c (copy_bb): Likewise.
16231 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16233 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
16235 (*xor_one_cmplsidi3_ze): Likewise.
16237 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
16239 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
16240 use df_remove_problem rather than manually removing problems, leaving
16241 holes in df->problems_in_order[].
16243 2015-04-21 Tom de Vries <tom@codesourcery.com>
16245 PR tree-optimization/65802
16246 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
16248 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16250 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
16252 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
16253 at '.'. Assert that there's enough space for everything.
16255 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
16257 PR tree-optimization/64950
16259 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
16262 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
16265 2015-04-20 Shiva Chen <shiva0217@gmail.com>
16267 PR rtl-optimization/64916
16268 * cfgcleanup.c (values_equal_p): New function.
16269 (can_replace_by): Use it.
16271 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
16274 * doc/invoke.texi ([-Wnarrowing]): Update.
16276 2015-04-20 Jeff Law <law@redhat.com>
16278 PR tree-optimization/65658
16279 * tree-ssa-threadupdate.c (redirection_block_p): Remove
16280 redundant test for GIMPLE_ASSIGN in last change.
16282 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
16284 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
16285 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
16286 (legitimize_tls_address): Ditto.
16287 (ix86_expand_move): Ditto.
16288 (ix86_expand_binary_operator): Remove reload_in_progress checks.
16289 (ix86_expand_unary_operator): Ditto.
16290 * config/i386/predicates.md (index_register_operand): Ditto.
16292 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
16294 * reorg.c (try_merge_delay_insns): Improve correctness checking
16295 for targets with multiple delay slots.
16297 2015-04-20 Jeff Law <law@redhat.com>
16299 PR tree-optimization/65658
16300 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
16303 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
16305 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
16306 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
16309 2015-04-20 Jakub Jelinek <jakub@redhat.com>
16312 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
16314 2015-04-20 Richard Biener <rguenther@suse.de>
16316 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
16317 * gimple-fold.c (gimple_build_valueize): New function.
16318 (gimple_build): Always use gimple_build_valueize as valueize hook.
16320 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
16323 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
16324 and overwrite variable parts if <= 1/2 the elements are variable.
16326 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
16328 PR rtl-optimization/65805
16329 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
16330 Don't use difference of offset and previous offset if
16331 update_sp_offset is non-zero.
16332 (eliminate_regs_in_insn): Ditto.
16333 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
16334 lra_eliminate_regs_1 call.
16335 * lra-constraints.c (get_equiv_with_elimination): Ditto.
16337 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
16339 * hash-table.h: Remove version of hash_table that stored value_type *.
16340 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
16341 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
16342 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
16343 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
16344 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
16345 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
16346 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
16347 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
16348 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
16349 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
16350 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
16351 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
16352 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
16353 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
16354 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
16355 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
16357 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16358 Jakub Jelinek <jakub@redhat.com>
16361 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
16362 subsequent SH_NONE operand does not overwrite an existing *special
16364 (adjust_extract): Handle case where a vec_extract operation is
16365 wrapped in a PARALLEL.
16367 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
16370 * config/i386/i386.c (ix86_binds_local_p): Define only if
16371 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
16373 2015-04-17 Jeff Law <law@redhat.com>
16375 PR tree-optimization/47679
16376 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
16377 * tree-ssa-scopedtables.c: New file.
16378 * tree-ssa-scopedtables.h: New file.
16379 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
16380 (const_and_copies): Change name/type.
16381 (record_const_or_copy): Move into tree-ssa-scopedtables.c
16382 (record_const_or_copy_1): Similarly.
16383 (restore_vars_to_original_value): Similarly.
16384 (pass_dominator::execute): Create and destroy const_and_copies table.
16385 (thread_across_edge): Update passing of const_and_copies.
16386 (record_temporary_equivalence): Use method calls rather than
16387 manipulating const_and_copies directly.
16388 (record_equality, cprop_into_successor_phis): Similarly.
16389 (dom_opt_dom_walker::before_dom_children): Similarly.
16390 (dom_opt_dom_walker::after_dom_children): Similarly.
16391 (eliminate_redundant_computations): Similarly.
16392 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
16393 (record_temporary_equivalence): Likewise.
16394 (invalidate_equivalences): Likewise.
16395 (record_temporary_equivalences_from_phis): Update due to type
16396 change of const_and_copies. Use method calls rather than
16397 manipulating the stack directly.
16398 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
16399 (thread_through_normal_block, thread_across_edge): Likewise.
16400 (thread_across_edge): Likewise.
16401 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
16402 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
16404 (identify_jump_threads): Update due to type change of equiv_stack.
16405 (finalize_jump_threads): Delete the equiv_stack when complete.
16407 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
16409 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
16410 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
16411 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
16413 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
16416 * config.gcc: Exit with a comment when we do not have a major version
16417 number for the FreeBSD target.
16419 2015-04-17 Jakub Jelinek <jakub@redhat.com>
16422 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
16423 maybe_allows_mem bitfields.
16424 (maybe_allows_none_start, maybe_allows_none_end,
16425 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
16426 maybe_allows_mem_end): New variables.
16427 (compute_maybe_allows): New function.
16428 (add_constraint): Use it to initialize maybe_allows_reg and
16429 maybe_allows_mem fields.
16430 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
16431 is_address constraints such that those that allow neither mem nor
16432 reg come first, then those that only allow reg but not mem, then
16433 those that only allow mem but not reg, then the rest.
16434 (write_allows_reg_mem_function): New function.
16435 (write_tm_preds_h): Call it.
16436 * stmt.c (parse_output_constraint, parse_input_constraint): Use
16437 the generated insn_extra_constraint_allows_reg_mem function
16438 instead of always setting *allows_reg = true; *allows_mem = true;
16439 for unknown extra constraints.
16441 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
16444 * output.h (default_binds_local_p_3): New.
16445 * varasm.c (default_binds_local_p_3): Make it public. Take an
16446 argument to indicate if common symbol may be local. If common
16447 symbol may be local, treat non-external variable as defined
16449 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
16450 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
16451 * config/i386/i386.c (ix86_binds_local_p): New.
16452 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
16453 ix86_binds_local_p.
16455 2015-04-17 Jakub Jelinek <jakub@redhat.com>
16458 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
16459 trying mem_loc_descriptor on XEXP (rtl, 0).
16461 2015-04-17 Martin Liska <mliska@suse.cz>
16463 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
16464 Release symbol_compare_collection.
16465 * ipa-reference.c: Add TODO that a vector should be released.
16467 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
16470 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
16471 to new AVR-LibC file layout (bug #44574).
16472 (*avrlibc_devicelib): Same.
16473 * config/avr/avr-mcus.def: Adjust comments.
16474 * config/avr/avr.opt (nodevicelib): Adjust help.
16476 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
16478 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
16480 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
16483 * gimplify.c (gimplify_init_constructor): Always emit a
16484 side-effecting constructor.
16486 2015-04-17 Tom de Vries <tom@codesourcery.com>
16488 PR tree-optimization/64950
16489 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
16490 in cfun->curr_properties.
16491 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
16492 if we generate an IFN_VA_ARG.
16493 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
16494 function if PROP_gimple_lva is not set in src function.
16496 2015-04-17 Tom de Vries <tom@codesourcery.com>
16497 Michael Matz <matz@suse.de>
16499 PR tree-optimization/64950
16500 * gimple-iterator.c (update_modified_stmts): Remove static.
16501 * gimple-iterator.h (update_modified_stmts): Declare.
16502 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
16503 (gimplify_va_arg_internal): New function.
16504 (gimplify_va_arg_expr): Use IFN_VA_ARG.
16505 * gimplify.h (gimplify_va_arg_internal): Declare.
16506 * internal-fn.c (expand_VA_ARG): New unreachable function.
16507 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
16508 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
16509 (expand_ifn_va_arg): New function.
16510 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
16511 (pass_stdarg::execute): Call expand_ifn_va_arg.
16512 (pass_data_lower_vaarg): New pass_data.
16513 (pass_lower_vaarg): New gimple_opt_pass.
16514 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
16515 (make_pass_lower_vaarg): New function.
16516 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
16517 properties_required field.
16518 * passes.def (all_passes): Add pass_lower_vaarg.
16519 * tree-pass.h (PROP_gimple_lva): Add define.
16520 (make_pass_lower_vaarg): Declare.
16522 2015-04-17 Tom de Vries <tom@codesourcery.com>
16524 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
16525 * calls.c (call_expr_flags): Same.
16527 2015-04-17 Tom de Vries <tom@codesourcery.com>
16529 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
16530 (pass_stdarg::execute): ... here.
16532 2015-04-17 Tom de Vries <tom@codesourcery.com>
16533 Michael Matz <matz@suse.de>
16535 * tree-cfg.c (make_blocks_1): Factor out of ...
16536 (make_blocks): ... here.
16537 (make_edges_bb): Factor out of ...
16538 (make_edges): ... here.
16539 (gimple_find_sub_bbs): New function.
16540 * tree-cfg.h (gimple_find_sub_bbs): Declare.
16542 2015-04-17 Tom de Vries <tom@codesourcery.com>
16544 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
16546 2015-04-17 Yury Gribov <y.gribov@samsung.com>
16548 * asan.c (set_sanitized_sections): New function.
16549 (section_sanitized_p): Ditto.
16550 (asan_protect_global): Optionally sanitize user-defined
16552 * asan.h (set_sanitized_sections): Declare new function.
16553 * common.opt (fsanitize-sections): New option.
16554 * doc/invoke.texi (-fsanitize-sections): Document new option.
16555 * opts-global.c (handle_common_deferred_options): Handle new
16558 2015-04-17 Jakub Jelinek <jakub@redhat.com>
16561 * dwarf2out.c (loc_list_from_tree): Return NULL
16562 for DEBUG_EXPR_DECL.
16564 2015-04-17 Christian Bruel <christian.bruel@st.com>
16566 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
16569 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16571 * ira-color.c (setup_left_conflict_sizes_p): Do not process
16572 node itself when computing left conflict subnode size.
16574 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
16576 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
16577 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
16578 *fop_<mode>_1_sse using enabled attribute. Use
16579 register_mixssei387nonimm_operand operand 1 predicate. Change
16580 alternative 3 constraints from "x" to "v".
16582 2015-04-16 Richard Biener <rguenther@suse.de>
16584 PR tree-optimization/65774
16585 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
16586 bit-value tracking on.
16588 2015-04-16 Richard Biener <rguenther@suse.de>
16590 PR tree-optimization/64277
16591 * tree-vrp.c (check_array_ref): Fix anti-range handling,
16592 simplify upper bound handling.
16593 (search_for_addr_array): Simplify.
16594 (check_array_bounds): Handle ADDR_EXPRs here.
16595 (check_all_array_refs): Simplify.
16597 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
16599 * config/i386/i386.c (print_reg): Rewrite function.
16601 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16603 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
16604 Invert the condition.
16606 2015-04-16 Renlin Li <renlin.li@arm.com>
16608 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
16609 simplifications for UNSIGNED_FLOAT.
16611 2015-04-16 Nick Clifton <nickc@redhat.com>
16613 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
16615 (enum rl78_cpu_type): New.
16616 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
16617 (umulhi3_shift_virt): Remove m constraint from operand 1.
16618 (umulqihi3_virt): Likewise.
16619 * config/rl78/rl78.c (rl78_option_override): Add code to process
16620 -mcpu and -mmul options.
16621 (rl78_alloc_physical_registers): Add code to handle divhi and
16622 divsi valloc attributes.
16623 (set_origin): Likewise.
16624 * config/rl78/rl78.h (RL78_MUL_G14): Define.
16625 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
16626 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
16628 (ASM_SPEC): Pass -mcpu on to assembler.
16629 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
16630 (mulqi3_rl78): Likewise.
16631 (mulhi3_g13): Likewise.
16632 (mulhi3): Generate the G13 or G14 versions of the insn directly.
16633 (mulsi3): Likewise.
16634 (mulhi3_g14): Add clobbers of AX and BC.
16635 (mulsi3_g14): Likewise.
16636 (mulsi3_g13): Likewise.
16637 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
16638 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
16639 * config/rl78/rl78.opt (mmul): Initialise value to
16641 (mcpu): New option.
16642 (m13, m14, mrl78): New option aliases.
16643 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
16644 (MULTILIB_DIRNAMES): Add g13 and g14.
16645 * doc/invoke.texi: Document -mcpu and -mmul options.
16647 2015-04-16 Richard Biener <rguenther@suse.de>
16649 * tree-ssa-ccp.c (likely_value): See if we have operands that
16650 are marked as never simulate again and return CONSTANT in this
16652 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
16653 not have any operands that will be simulated again as
16654 not being simulated again.
16656 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
16658 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
16659 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
16660 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
16662 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
16664 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
16665 *float<SWI48:mode><MODEF:mode>2_sse.
16666 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
16668 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
16671 2015-04-15 Tom de Vries <tom@codesourcery.com>
16674 * function.c (push_dummy_function): New function.
16675 (init_dummy_function_start): Use push_dummy_function.
16676 (pop_dummy_function): New function. Factored out of ...
16677 (expand_dummy_function_end): ... here.
16678 * function.h (push_dummy_function, pop_dummy_function): Declare.
16679 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
16680 pop_dummy_function.
16681 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
16683 2015-04-15 Jeff Law <law@redhat.com>
16685 PR tree-optimization/47679
16686 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
16687 need for forward declaration in upcoming changes.
16688 (record_conditions, record_edge_info): Likewise.
16690 PR rtl-optimization/42522
16691 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
16692 SIGN_EXTRACT as a whole object rather than simplifying
16695 2015-04-15 Jakub Jelinek <jakub@redhat.com>
16698 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
16699 and GIMPLE_PREDICT use break instead of return true. For
16700 GIMPLE_EH_DISPATCH, compare dispatch region.
16702 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
16704 * doc/extend.texi (__sync Builtins): Simplify some text. Update
16705 details about the implementation. Make clear preference for
16706 __atomic builtins. Reduce possibility of future change.
16708 2015-04-15 Nick Clifton <nickc@redhat.com>
16710 * config/rx/rx.opt (mallow-string-insns): New option.
16711 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
16712 builtin if string instructions are denied.
16713 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
16714 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
16716 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
16717 * config/rx/rx.md (movstr): Enable pattern only if string
16718 instructions are allowed.
16719 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
16720 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
16721 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
16722 (MULTILIB_DIRNAMES): Add no-strings.
16723 * doc/invoke.texi: Document -mno-allow-string-insns.
16725 2015-04-15 Alan Modra <amodra@gmail.com>
16729 PR middle-end/36043
16730 * calls.c (load_register_parameters): Don't load past end of
16731 mem unless suitably aligned.
16733 2015-04-15 Nick Clifton <nickc@redhat.com>
16735 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
16736 decrement instruction as being frame related.
16737 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
16739 If zero extending a function address enclose the operation in
16741 (rl78_preferred_reload_class): New function.
16742 (TARGET_PREFERRED_RELOAD_CLASS): Define.
16743 * config/rl78/rl78.md: Remove useless constraints in expanders.
16744 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
16745 (mulhi3_rl78): Likewise.
16746 (mulhi3_g13): Likewise.
16747 (mulsi3_rl78): Likewise.
16748 (es_addr): Move to before the multiply patterns.
16750 2015-04-15 Alan Modra <amodra@gmail.com>
16752 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
16753 and sequence_stack. Add seq.
16754 (seq_stack): Delete.
16755 * function.c (prepare_function_start): Don't access x_last_insn.
16756 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
16757 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
16758 * emit_rtl.c (start_sequence, push_topmost_sequence,
16759 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
16760 sequence accessors.
16761 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
16762 remove_insn): Likewise. Simplify.
16763 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
16764 and pop_topmost_sequence.
16765 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
16767 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
16769 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
16772 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
16775 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
16777 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
16778 (LEGACY_INT_REGNO_P): Ditto.
16779 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
16780 (ANY_MASK_REG_P): Remove.
16781 (BND_REG_P): Rename from ANY_BND_REG_P.
16782 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
16783 legacy integer registers. Do not handle MMX_REG_P in a special way.
16784 Merge 64byte and 32byte SSE handling.
16786 2015-04-14 Nick Clifton <nickc@redhat.com>
16788 * expr.c (expand_assignment): Force an address offset computation
16789 into a register before changing its mode.
16790 (expand_expr_real_1): Likewise.
16792 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
16794 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
16795 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
16796 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
16797 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
16798 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
16799 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
16800 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
16801 and __aarch64_vget_lane_any.
16803 2015-04-14 Jakub Jelinek <jakub@redhat.com>
16805 PR rtl-optimization/65761
16806 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
16807 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
16809 2015-04-14 Richard Biener <rguenther@suse.de>
16811 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
16812 (graphite_can_represent_scev): Use POINTER_TYPE_P.
16814 2015-04-14 Richard Biener <rguenther@suse.de>
16816 PR tree-optimization/65758
16817 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
16819 (ccp_lattice_meet): Likewise.
16820 (bit_value_unop): Likewise.
16821 (bit_value_binop): Likewise.
16822 (bit_value_assume_aligned): Likewise.
16824 2015-04-14 Christian Bruel <christian.bruel@st.com>
16826 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
16829 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
16831 PR tree-optimization/63387
16832 * match.pd ((x unord x) | (y unord y) -> (x unord y),
16833 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
16835 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
16837 * config/i386/predicates.md (any_QIreg_operand): Rename from
16838 q_regs_operand. Do not process subregs.
16839 (QIreg_operand): Use QI_REGNO_P predicate.
16840 (ext_QIreg_operand): Ditto.
16841 (ext_register_operand): Ditto.
16842 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
16843 (AND splitters): Ditto.
16844 (AND with -65536 splitter): Add SWI48 mode for operand 0.
16845 (AND with -256 splitter): Use any_QIreg_operand predicate and
16846 SWI248 mode for operand 0.
16847 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
16848 mode for operand 0.
16849 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
16851 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
16853 * doc/plugins.texi: Rewrite first introductory paragraph.
16855 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16857 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
16858 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
16860 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16862 * ipa-profie.c (ipa_profile): Check number of parameters
16863 and possible polymorphic call targets before
16866 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
16868 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
16869 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
16871 2015-04-13 Richard Biener <rguenther@suse.de>
16873 PR tree-optimization/65204
16874 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
16875 takens for bit-CCP.
16877 2015-04-13 Richard Biener <rguenther@suse.de>
16880 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
16881 and cond_not_taken_branch_cost to 4 and 2.
16882 (bdver2_cost): Likewise.
16883 (bdver3_cost): Likewise.
16884 (bdver4_cost): Likewise.
16886 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16888 * hash-table.h (hash_table constructor): Add mem stats.
16889 (alloc_entries): Likewise.
16891 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16893 * ipa-cp.c (ipcp_driver): Relase prev_edge.
16894 * passes.c (execute_one_pass): Only add transform if pass has one.
16896 2015-04-12 Joseph Myers <joseph@codesourcery.com>
16898 * config/i386/i386.c (ix86_option_override_internal): Don't set
16899 -fprefetch-loop-arrays if optimizing for size.
16901 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16902 Gerald Pfeifer <gerald@pfeifer.com>
16904 * doc/contrib.texi (Contributors): Add Martin Jambor and
16907 2015-04-12 Jakub Jelinek <jakub@redhat.com>
16909 * BASE-VER: Set to 6.0.0.
16911 PR tree-optimization/65747
16912 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
16913 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
16915 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
16917 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
16918 sentence. Improve grammar.
16920 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
16922 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
16924 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
16927 * ipa-inline-transform.c (speculation_removed): Remove static var.
16928 (check_speculations): New function.
16929 (clone_inlined_nodes): Do not check spculations.
16930 (inline_call): Call check_speculations.
16931 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
16932 consider non-invariants.
16934 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
16935 Martin Liska <mliska@suse.cz>
16938 * ipa-icf.c (sem_item::compare_cgraph_references): function and
16939 variable can not match.
16940 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
16941 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
16943 2015-04-11 Jakub Jelinek <jakub@redhat.com>
16945 PR tree-optimization/65735
16946 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
16947 Remove visited_phis argument, add visited_bbs, avoid recursing into the
16948 same bb rather than just into the same phi node.
16949 (thread_through_normal_block): Adjust caller.
16951 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
16953 * doc/contrib.texi (Contributors): Add Ira Rosen.
16955 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
16957 * gcov.c (find_source): Fix miswording in error message.
16958 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
16959 (ix86_expand_sse_comi_round): Fix typo in error message.
16961 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
16963 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
16965 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
16967 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
16969 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
16972 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
16973 Print bad_spills_num and insn_pseudos_num.
16975 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16978 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
16979 when creating +1 values for SImode.
16981 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
16984 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
16987 2015-04-10 Jakub Jelinek <jakub@redhat.com>
16988 Iain Sandoe <iain@codesourcery.com>
16991 * configure: Regenerate.
16993 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
16996 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
16998 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
17000 * doc/contrib.texi (Contributors): Add John Marino.
17002 2015-04-09 Jakub Jelinek <jakub@redhat.com>
17004 PR tree-optimization/65709
17005 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
17006 TREE_TYPE (TREE_TYPE (t)).
17008 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
17011 * lra-int.h (lra_bad_spill_regno_start): New.
17012 * lra.c (lra_bad_spill_regno_start): New.
17013 (lra): Set up lra_bad_spill_regno_start. Set up
17014 lra_constraint_new_regno_start unconditionally.
17015 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
17018 2015-04-09 Marek Polacek <polacek@redhat.com>
17019 Jakub Jelinek <jakub@redhat.com>
17021 PR middle-end/65554
17022 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
17023 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
17026 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
17028 PR rtl-optimization/65693
17029 * combine.c (is_parallel_of_n_reg_sets): Move outside of
17032 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
17035 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
17036 device specs file if "device-specs%s" didn't resolve to a path.
17038 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
17041 * config/i386/i386.c (fixup_modeless_constant): New.
17042 (ix86_expand_args_builtin): Fixup modeless constant operand.
17043 (ix86_expand_round_builtin): Ditto.
17044 (ix86_expand_special_args_builtin): Ditto.
17045 (ix86_expand_builtin): Ditto.
17047 2015-04-09 Jakub Jelinek <jakub@redhat.com>
17050 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
17051 any pow2 integer in between 2 and 0x80000000U inclusive.
17053 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
17055 PR rtl-optimization/65693
17056 * combine.c (is_parallel_of_n_reg_sets): Change first argument
17057 from an rtx_insn * to an rtx.
17058 (try_combine): Adjust both callers. Use it once more.
17060 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17062 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
17063 (chkp_make_static_const_bounds): Search existing
17064 symbol by assembler name. Use make_decl_one_only.
17065 (chkp_get_zero_bounds_var): Remove node search which
17066 is now performed in chkp_make_static_const_bounds.
17067 (chkp_get_none_bounds_var): Likewise.
17069 2015-04-08 Michael Witten <mfwitten@gmail.com>
17071 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
17074 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17076 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
17078 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
17080 * doc/extend.texi (__sync Builtins): Fix grammar.
17082 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17084 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
17086 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17088 * varasm.c (emit_local): Move definition of align.
17090 2015-04-08 Julian Brown <julian@codesourcery.com>
17092 * config/nvptx/mkoffload.c (process): Support variable mapping.
17094 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
17096 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
17098 (alpha_write_one_linkage): Correct typo.
17100 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17102 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
17104 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
17106 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
17108 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17110 * tree-chkp.h (chkp_insert_retbnd_call): New.
17111 * tree-chkp.c (chkp_insert_retbnd_call): New.
17112 * ipa-split.c (insert_bndret_call_after): Remove.
17113 (split_function): Use chkp_insert_retbnd_call.
17114 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
17115 bounds for instrumented functions.
17117 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
17120 * calls.c (initialize_argument_information): When producing tail
17121 call also turn SSA_NAMES passed by references to original PARM_DECLs
17123 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
17126 * lra-remat.c (do_remat): Process input and non-input insn
17127 registers separately.
17129 2015-04-07 Jakub Jelinek <jakub@redhat.com>
17132 * valtrack.c (debug_lowpart_subreg): New function.
17133 (dead_debug_insert_temp): Use it.
17135 PR middle-end/65680
17136 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
17137 into signed HOST_WIDE_INT the same as negative bit_offset.
17139 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
17141 * ipa-comdats.c (ipa_comdats): Visit all thunks
17142 to set proper comdat group.
17144 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17147 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
17148 on constants for NEON VSTRUCT modes.
17150 2015-04-07 Jakub Jelinek <jakub@redhat.com>
17151 Iain Sandoe <iain@codesourcery.com>
17154 * configure: Regenerate.
17156 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
17159 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
17160 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
17161 that LFD is used to load double constants instead of LFS. Add
17162 defaults for all costs structures. Add comments for missing
17163 initialization fields.
17164 (size32_cost): Likewise.
17165 (size64_cost): Likewise.
17166 (rs64a_cost): Likewise.
17167 (mpccore_cost): Likewise.
17168 (ppc403_cost): Likewise.
17169 (ppc405_cost): Likewise.
17170 (ppc440_cost): Likewise.
17171 (ppc476_cost): Likewise.
17172 (ppc601_cost): Likewise.
17173 (ppc603_cost): Likewise.
17174 (ppc604_cost): Likewise.
17175 (ppc604e_cost): Likewise.
17176 (ppc620_cost): Likewise.
17177 (ppc630_cost): Likewise.
17178 (ppccell_cost): Likewise.
17179 (ppc750_cost): Likewise.
17180 (ppc7450_cost): Likewise.
17181 (ppc8540_cost): Likewise.
17182 (ppce300c2c3_cost): Likewise.
17183 (ppce500mc_cost): Likewise.
17184 (ppce500mc64_cost): Likewise.
17185 (ppce5500_cost): Likewise.
17186 (ppce6500_cost): Likewise.
17187 (titan_cost): Likewise.
17188 (power4_cost): Likewise.
17189 (power6_cost): Likewise.
17190 (power7_cost): Likewise.
17191 (power8_cost): Likewise.
17192 (ppca2_cost): Likewise.
17193 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
17195 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
17196 instead of XXLOR to copy SFmode to clear out dirty bits created
17197 when SFmode denormals are generated.
17198 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
17199 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
17201 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
17203 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
17204 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
17205 * config/aarch64/aarch64-tune.md: Regenerate.
17207 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
17209 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
17210 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
17211 * config/arm/arm-cores.def (exynos-m1): New core.
17212 * config/arm/arm-tune.md: Regenerate.
17213 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
17214 * config/arm/bpabi.h: Likewise.
17216 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
17218 * ipa-cp (set_single_call_flag): Remove too
17219 restrictive assert.
17221 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
17223 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
17224 GOMP_offload_unregister from the destructor.
17226 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
17228 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
17229 flags for instrumentation thunk.
17230 (chkp_produce_thunks): Likewise.
17232 2015-04-05 Martin Liska <mliska@suse.cz>
17235 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
17236 has computed data structure.
17237 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
17239 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
17241 * invoke.texi (inline-unit-growth): Increase growth to 20%
17242 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
17244 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
17247 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
17249 (lra_rematerialization_iter): New.
17250 * lra.c (lra): Initialize lra_rematerialization_iter.
17251 Stop updating lra_constraint_new_regno_start after switching of
17252 inheritance and rematerialization.
17253 * lra-remat.c (lra_rematerialization_iter): New.
17254 (lra_remat): Add printing pass iteration. Do rematerialization
17255 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
17257 2015-04-04 Richard Biener <rguenther@suse.de>
17259 PR tree-optimization/64909
17260 PR tree-optimization/65660
17261 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
17262 to take a cost vector for scalar iteration cost.
17263 (vect_get_single_scalar_iteration_cost): Likewise.
17264 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
17265 Compute the scalar iteration cost into a cost vector.
17266 (vect_get_known_peeling_cost): Use the scalar cost vector to
17267 account for the cost of the peeled iterations.
17268 (vect_estimate_min_profitable_iters): Likewise.
17269 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
17272 2015-04-04 Alan Modra <amodra@gmail.com>
17276 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
17277 0.0 constant unless TARGET_VSX.
17278 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
17281 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17284 * ipa-inline-transform.c (inline_call): Skip sanity check to work
17287 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17290 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
17291 speculative indirect edges to avoid ordering issue.
17293 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17296 * ipa-inline.c (edge_badness): Add combined size to the denominator.
17298 2015-04-03 Jakub Jelinek <jakub@redhat.com>
17300 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
17301 TYPE_ARTIFICIAL on the .omp_data* types.
17303 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17305 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
17306 instrumentation thunks.
17308 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17310 * config/i386/i386.c (ix86_expand_call): Avoid nested
17311 PARALLEL in returned call value.
17313 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17315 * lto-cgraph.c (input_cgraph_1): Always link instrumented
17316 assembler name with original one.
17318 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17320 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
17322 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17324 Revert parts of r216820.
17325 * config/i386/i386.md (movqi_internal): Correct type calculation
17326 for alternatives 3 and 5.
17328 2015-04-02 Jakub Jelinek <jakub@redhat.com>
17330 PR preprocessor/61977
17331 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
17332 predefine __vector/__bool/__pixel macros nor context sensitive
17333 macros for CLK_ASM.
17334 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
17336 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
17338 * config/pa/pa.c (pa_output_move_double): Directly handle register
17339 indexed memory operand. Simplify handling of scaled register indexed
17342 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17345 * config/i386/linux-common.h (MPX_SPEC): New.
17346 (CHKP_SPEC): Add MPX_SPEC.
17347 * doc/invoke.texi (-fcheck-pointer-boudns): Document
17348 possible issues with '-z bndplt' support in linker.
17350 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17352 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
17353 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
17354 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
17355 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
17356 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
17358 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
17360 * config/i386/sync.md (UNSPEC_MOVA): Remove.
17361 (atomic_load<mode>): Change operand 0 predicate to
17362 nonimmediate_operand and fix up the destination when needed.
17364 (atomic_loaddi_fpu): Use UNSPEC_LDA.
17365 (atomic_store<mode>): Change operand 1 predicate to
17366 nonimmendate_operand and move the source to register when needed.
17368 (atomic_store<mode>_1): Use UNSPEC_STA.
17369 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
17370 Fix moves from memory operand. Use UNSPEC_STA.
17372 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
17374 * expmed.c (strict_volatile_bitfield_p): Check that the access will
17375 not cross a MODESIZE boundary.
17376 (store_bit_field, extract_bit_field): Added assertions in the
17377 strict volatile bitfields code path.
17379 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
17382 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
17383 Increase args array size by one to avoid buffer overflow.
17385 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
17387 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
17389 * ipa-inline.c (edge_badness): Add wrapper penalty.
17390 (sum_callers): Move up.
17391 (inline_small_functions): Set single_caller.
17392 * ipa-inline.h (inline_summary): Add single_caller.
17393 * ipa-split.c (split_function): Set split_part.
17394 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
17395 * cgraph.h (cgraph_node): Add split_part.
17397 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
17400 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
17401 Do not split operands 0 and operands 2 to halfmode.
17402 (atomic_compare_and_swap<mode>): Update for
17403 atomic_compare_and_swap<dwi>_doubleword changes.
17405 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
17407 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
17408 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
17409 no caching is done.
17411 2015-03-31 Martin Liska <mliska@suse.cz>
17414 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
17415 has already filled up function summary.
17416 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
17418 2015-03-31 Richard Biener <rguenther@suse.de>
17420 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
17423 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
17425 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
17427 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
17428 (s390_asm_output_function_label): Adapt to new signature of
17429 s390_function_num_hotpatch_hw
17430 Optimise the code generating assembler output.
17431 Add comments to assembler file.
17433 2015-03-31 Richard Biener <rguenther@suse.de>
17435 PR middle-end/65626
17436 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
17437 of the noreturn call so it is last and cleanup_control_flow_bb
17438 can do the CFG part.
17440 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
17443 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
17444 same_comdat_group for external symbols.
17445 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
17446 infinite same_comdat_group traversal loop.
17448 2015-03-31 Jakub Jelinek <jakub@redhat.com>
17451 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
17452 automatically to $headers.
17454 2015-03-30 Jakub Jelinek <jakub@redhat.com>
17457 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
17458 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
17460 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
17462 * ipa-prop.c (param_type_may_change_p): Likewise.
17463 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
17464 (remove_unused_scope_block_p): Add in_ctor_dtor_block
17465 argument. Before inlining, preserve
17466 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
17467 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
17469 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
17471 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17474 * ipa-inline.c (edge_badness): Base denominator on callee's
17477 2015-03-27 Martin Jambor <mjambor@suse.cz>
17480 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
17481 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
17482 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
17483 node_calling_single_call.
17484 * ipa-cp.c (count_callers): New function.
17485 (set_single_call_flag): Likewise.
17486 (initialize_node_lattices): Count callers and set single_flag_call if
17488 (incorporate_penalties): New function.
17489 (good_cloning_opportunity_p): Use it, dump new flags.
17490 (propagate_constants_topo): Set node_within_scc flag if appropriate.
17491 * doc/invoke.texi (ipa-cp-recursion-penalty,
17492 ipa-cp-single-call-pentalty): Document.
17494 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17497 * symtab.c (symtab_node::get_partitioning_class): Register vars
17499 * varpool.c (symbol_table::output_variables) Do not assemble unefined
17500 decls for non-symbols.
17502 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
17505 * output.h (default_binds_local_p_2): New.
17506 * varasm.c (default_binds_local_p_2): Renamed to ...
17507 (default_binds_local_p_3): This. Don't return true on protected
17508 data symbol if protected data may be external.
17509 (default_binds_local_p): Use default_binds_local_p_3.
17510 (default_binds_local_p_1): Likewise.
17511 (default_binds_local_p_2): New.
17512 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
17513 default_binds_local_p_2 if TARGET_MACHO is undefined.
17515 2015-03-27 Jakub Jelinek <jakub@redhat.com>
17518 * config/i386/i386.c (legitimize_pic_address): If base
17519 is SYMBOL_REF or LABEL_REF using %rip addressing, force
17520 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
17522 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17525 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
17528 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17531 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
17532 of optimized out indirect call.
17533 (redirect_to_unreachable): Always build symbol table node for
17534 BUILT_IN_UNREACHABLE
17536 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
17539 * ira-costs.c (record_reg_classes): Process all constraint string
17542 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
17544 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
17548 * config/c6x/constraints.md (S3): New constraint.
17549 * config/c6x/c6x.md (real_jump): Use it.
17551 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17553 PR middle-end/65595
17554 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
17555 do redirection if the call is not optimized out.
17557 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
17560 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
17561 (fchkp-check-incomplete-type): Add LTO.
17562 (fchkp-zero-input-bounds-for-main): Likewise.
17563 (fchkp-first-field-has-own-bounds): Likewise.
17564 (fchkp-narrow-bounds): Likewise.
17565 (fchkp-narrow-to-innermost-array): Likewise.
17566 (fchkp-use-static-bounds): Likewise.
17567 (fchkp-use-static-const-bounds): Likewise.
17568 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
17570 2015-03-27 Marek Polacek <polacek@redhat.com>
17572 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
17574 2015-03-27 Marek Polacek <polacek@redhat.com>
17577 * ubsan.c (ubsan_create_edge): New function.
17578 (instrument_bool_enum_load): Call it.
17579 (instrument_nonnull_arg): Likewise.
17580 (instrument_nonnull_return): Likewise.
17581 (instrument_object_size): Likewise.
17583 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17585 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
17588 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17591 * lto-streamer.h (class lto_location_cache): New.
17592 (struct data_in): Add location_cache.
17593 (lto_input_location): Update prototype.
17594 (stream_input_location_now): New.
17595 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
17596 pointer to location.
17597 (stream_input_location): Update.
17598 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
17599 (warn_odr): Apply location cache before warning.
17600 (lto_input_location): Update prototype.
17601 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
17602 Use stream_input_location_now.
17603 * lto-streamer-in.c (lto_location_cache::current_cache): New static
17605 (lto_location_cache::cmp_loc): New function.
17606 (lto_location_cache::apply_location_cache): New function.
17607 (lto_location_cache::accept_location_cache): New function.
17608 (lto_location_cache::revert_location_cache): New function.
17609 (lto_location_cache::input_location): New function.
17610 (lto_input_location): Do location caching.
17611 (stream_input_location_now): New function.
17612 (input_eh_region, input_struct_function_base): Use
17613 stream_input_location_now.
17614 (lto_data_in_create): use new.
17615 (lto_data_in_delete): Use delete.
17616 * tree-streamer-in.c (unpack_ts_block_value_fields,
17617 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
17618 lto_input_ts_exp_tree_pointers): Update for cached location api.
17620 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17623 * passes.def: Add pass_nothrow.
17624 * ipa-pure-const.c: (pass_data_nothrow): New.
17625 (pass_nothrow): New.
17626 (pass_nothrow::execute): New.
17627 (make_pass_nothrow): New.
17628 * tree-pass.h (make_pass_nothrow): Declare.
17630 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17632 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
17633 edge to change by speculation resolution or redirection.
17634 (edge_set_predicate): Likewise.
17635 (inline_summary_t::duplicate): Likewise.
17636 (remap_edge_summaries): Likewise.
17638 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17640 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
17642 (can_inline_edge_p): Relax option matching for always inline functions.
17644 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
17647 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
17648 Check operand 4 and operand 0 for equality.
17649 (avx512f_vextract<shuffletype>32x4_1_maskm):
17650 Check operand 6 and operand 0 for equality.
17651 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
17653 (vec_extract_hi_<mode>_maskm): Ditto.
17655 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17657 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
17658 dead calls back to live.
17659 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
17661 (cgraph_node::verify_node): ... here; verify only callee edges,
17663 * cif-code.def (CILK_SPAWN): New code.
17665 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17667 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
17668 (edge_set_predicate): Use it to mark unreachable edges.
17669 (inline_summary_t::duplicate): Remove unnecesary code.
17670 (remap_edge_summaries): Likewise.
17671 (dump_inline_summary): Report contains_cilk_spawn.
17672 (compute_inline_parameters): Compute contains_cilk_spawn.
17673 (inline_read_section, inline_write_summary): Stream
17674 contains_cilk_spawn.
17675 * ipa-inline.c (can_inline_edge_p): Do not touch
17676 DECL_STRUCT_FUNCTION that may not be available;
17677 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
17678 remove check for callee_fun->can_throw_non_call_exceptions and
17679 replace it by optimization attribute check; check for flag_exceptions.
17680 * ipa-inline-transform.c (inline_call): Maintain
17681 DECL_FUNCTION_PERSONALITY
17682 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
17684 2015-03-26 Jakub Jelinek <jakub@redhat.com>
17686 PR tree-optimization/65551
17687 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
17688 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
17690 2015-03-26 Richard Biener <rguenther@suse.de>
17692 PR middle-end/65555
17693 * tree-cfg.c (verify_gimple_call): Do not require a call to
17694 have no LHS if it wasn't recognized as control altering yet.
17696 2015-03-26 Jakub Jelinek <jakub@redhat.com>
17698 PR tree-optimization/64715
17699 * passes.def: Add another instance of pass_object_sizes before ccp1.
17700 * tree-object-size.c (pass_object_sizes::execute): In
17701 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
17702 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
17703 __bos result and the computed constant. Remove redundant
17704 checks, obsoleted by gimple_call_builtin_p test.
17706 * var-tracking.c (variable_tracking_main_1): Don't track
17707 variables for targetm.no_register_allocation targets.
17709 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
17711 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
17712 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
17714 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
17717 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
17718 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
17719 0.0 is correctly setup.
17720 (extenddftf2_internal): Likewise.
17722 2015-03-25 Sebastian Pop <s.pop@samsung.com>
17724 PR tree-optimization/65177
17725 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
17727 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
17728 edges not adjacent on the path to the original code.
17730 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
17733 * doc/install.texi (Building a native compiler): Document new
17734 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
17735 configuration assumes that the host supports the linker plugin.
17737 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
17740 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
17741 chain for generated call.
17743 2015-03-25 Richard Biener <rguenther@suse.de>
17745 * passes.c (pass_manager::execute_early_local_passes): Guard
17746 execution of pass_chkp_instrumentation_passes with
17747 flag_check_pointer_bounds.
17748 (pass_chkp_instrumentation_passes::gate): Likewise.
17750 2015-03-25 Martin Liska <mliska@suse.cz>
17752 PR tree-optimization/65538
17753 * symbol-summary.h (function_summary::~function_summary):
17754 Relese memory for allocated summaries.
17755 (function_summary::release): New function.
17757 2015-03-25 Jakub Jelinek <jakub@redhat.com>
17760 * lto-streamer-out.c (DFS::worklist): New struct.
17761 (DFS::worklist_vec): New data member.
17762 (DFS::next_dfs_num): Remove.
17763 (DFS::DFS): Rewritten using worklist instead of recursion,
17764 using most of code from DFS::DFS_write_tree.
17765 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
17766 pass it to DFS_write_tree calls.
17767 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
17768 quick initial checks push it into worklist_vec and return.
17770 2015-03-25 Richard Biener <rguenther@suse.de>
17772 PR middle-end/65519
17773 * genmatch.c (expr::gen_transform): Re-write to avoid
17774 using gimple_build.
17776 2015-03-25 Bin Cheng <bin.cheng@arm.com>
17778 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
17780 2015-03-25 Bin Cheng <bin.cheng@arm.com>
17782 * config/arm/arm.opt (print_tune_info): New option.
17783 * config/arm/arm.c (arm_print_tune_info): New function.
17784 (arm_file_start): Call arm_print_tune_info.
17785 * config/arm/arm-protos.h (struct tune_params): Add comment.
17786 * doc/invoke.texi (@item -mprint-tune-info): New item.
17787 (-mtune): mention it in ARM Option Summary.
17789 2015-03-25 DJ Delorie <dj@redhat.com>
17791 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
17794 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
17795 Martin Liska <mliska@suse.cz>
17797 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
17798 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
17799 (sem_item::add_type): New function.
17800 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
17801 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
17802 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
17803 (sem_function::equals_wpa): Fix typo.
17804 * ipa-icf.h (sem_item::add_type): New function.
17805 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
17808 2015-03-24 Jakub Jelinek <jakub@redhat.com>
17810 PR tree-optimization/65533
17811 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
17812 with swapped operands, call vect_free_slp_tree on
17813 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
17816 2015-03-24 Richard Biener <rguenther@suse.de>
17818 PR middle-end/65517
17819 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
17820 for fixup if necessary.
17822 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
17824 * doc/extend.texi (Function Attributes): Add @cindex entries
17825 for all attributes and regularize their format. Delete text
17826 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
17827 information about "eightbit_data", "tiny_data", and "model"
17828 variable attributes to the Variable Attributes section. Fix
17829 some obvious typos and copy-editing issues.
17830 (Variable Attributes, Type Attributes): Likewise add/fix
17831 @cindex entries for all attributes.
17833 2015-03-23 Jakub Jelinek <jakub@redhat.com>
17836 * tree-chkp.c (chkp_build_returned_bound): Ignore
17837 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
17839 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
17842 * config/sh/predicates.md (simple_mem_operand,
17843 displacement_mem_operand): Add test for reg.
17844 (short_displacement_mem_operand): Test for displacement_mem_operand
17845 before invoking sh_disp_addr_displacement.
17846 * config/sh/constraints.md (Sdd, Sra): Simplify.
17847 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
17848 Remove redundant displacement_mem_operand tests.
17850 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
17853 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
17854 the same -mmcu=MCU more than once.
17856 2015-03-23 Jakub Jelinek <jakub@redhat.com>
17859 * ipa-devirt.c: Remove duplicate demangle.h include.
17862 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
17864 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
17865 REG_POINTER on *destptr after adjusting it for prologue size.
17868 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
17869 ultimate_alias_target ()->order ints instead of
17870 ultimate_alias_target () pointers.
17872 2015-03-23 Richard Biener <rguenther@suse.de>
17874 PR tree-optimization/65518
17875 * tree-vect-stmts.c (vectorizable_load): Reject single-element
17876 interleaving cases we generate absymal code for.
17878 2015-03-23 Richard Biener <rguenther@suse.de>
17880 PR tree-optimization/65494
17881 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
17883 (vect_analyze_slp_instance): But do that here, always and once.
17885 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17887 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
17888 adding T or multiplying by T+1 and subracting T.
17890 2015-03-22 Jeff Law <law@redhat.com>
17892 PR rtl-optimization/64317
17893 * Makefile.in (OBJS): Add gcse-common.c
17894 * gcse.c: Include gcse-common.h
17895 (struct modify_pair_s): Move structure definition to gcse-common.h
17896 (compute_transp): Move function to gcse-common.c.
17897 (canon_list_insert): Similarly.
17898 (record_last_mem_set_info): Break out some code and put it into
17899 gcse-common.c. Call into the new common code.
17900 (compute_local_properties): Pass additional arguments to compute_transp.
17901 * postreload-gcse.c: Include gcse-common.h and df.h
17902 (modify_mem_list_set, blocks_with_calls): New variables.
17903 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
17904 (get_bb_avail_insn): Pass in the expression index too.
17905 (alloc_mem): Allocate memory for the new bitmaps and lists.
17906 (free_mem): Free memory for the new bitmaps and lists.
17907 (insert_expr_in_table): Record a bitmap index for each entry we
17909 (record_last_mem_set_info): Call into common code in gcse-common.c.
17910 (get_bb_avail_insn): If no available insn was found in the requested
17911 BB. If BB has a single predecessor, see if the expression is
17912 transparent in BB and available in that single predecessor.
17913 (compute_expr_transp): New wrapper for compute_transp.
17914 (eliminate_partially_redundant_load): Pass expression's bitmap_index
17915 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
17916 (gcse_after_reload_main): If there are elements in the hash table,
17917 then compute transparency for all the elements in the hash table.
17918 * gcse-common.h: New file.
17919 * gcse-common.c: New file.
17921 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
17923 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
17925 (System Headers): Likewise.
17927 (Traditional macros): Likewise.
17928 (Invocation): Likewise.
17929 (Option Index): Likewise.
17930 * doc/cppopts.texi (-M): Likewise.
17931 (-finput-charset): Likewise.
17932 (--help): Likewise.
17933 * doc.invoke.texi (AVR Options): Likewise.
17934 (V850 Options): Likewise.
17936 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
17939 * ipa-devirt.c: Include demangle.h
17940 (odr_type_d): Add field rtti_broken.
17941 (odr_subtypes_equivalent_p): Do not require name to match.
17942 (compare_virtual_tables): Fix typo; if type already has ODR violation,
17943 bypass the tests; be ready for function referneces in vtables that are
17944 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
17945 (warn_odr): Give up for nameless types.
17946 (warn_types_mismatch): Report mismatch in mangled names;
17947 report mismatch in anonymous namespaces; look into component types to
17948 give useful error; report when mismatch is dragged in from other ODR
17950 (odr_types_equivalent_p): Match types for being polymorphic; avoid
17951 duplicated diagnostics.
17952 (add_type_duplicate): Reorder checks so more informative ones come
17953 first; fix typo; do not output "the extra base is defined here" when
17955 (BINFO_N_BASE_BINFOS): Relax sanity check.
17957 2015-03-22 Martin Liska <mliska@suse.cz>
17958 Jakub Jelinek <jakub@redhat.com>
17960 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
17961 masks that can potentially include a builtin.
17962 (ix86_add_new_builtins): Introduce fast filter for isa values
17963 that cannot trigger builtin inclusion.
17965 2015-03-22 Martin Liska <mliska@suse.cz>
17967 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
17968 (sem_item::update_hash_by_local_refs): Likewise.
17969 (sem_variable::get_hash): Empty line is fixed.
17970 (sem_item_optimizer::execute): Include adding of hash references.
17971 (sem_item_optimizer::update_hash_by_addr_refs): New function.
17972 (sem_item_optimizer::build_hash_based_classes): Use local hash.
17973 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
17974 (sem_item::update_hash_by_local_refs): Likewise.
17976 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
17979 * ipa-comdats.c (enqueue_references): Walk through thunks.
17980 (ipa_comdats): Likewise.
17981 (set_comdat_group_1): New function.
17983 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
17986 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
17989 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
17990 Gerald Pfeifer <gerald@pfeifer.com>
17992 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
17994 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
17995 Sandra Loosemore <sandra@codesourcery.com>
17997 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
17998 function parameter declaration.
17999 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
18000 Update arguments to nios2_adjust_call_address().
18001 (sibcall_internal): Rename from *sibcall.
18002 (sibcall_value_internal): Rename from *sibcall_value.
18003 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
18004 (nios2_large_got_address): Add target temp reg parameter.
18005 (nios2_got_address): Adjust call to nios2_large_got_address, add
18006 force_reg around it.
18007 (nios2_load_pic_address): Add target temp reg parameter, replace call
18008 to nios2_got_address with corresponding code.
18009 (nios2_legitimize_constant_address): Update call to
18010 nios2_load_pic_address.
18011 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
18012 to use temp reg for PIC loading purposes.
18013 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
18014 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
18015 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
18017 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18019 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
18020 usage of "the @option{...}".
18021 (-Wopenmp-simd): Likewise.
18022 (-fsanitize-recover): Likewise.
18023 (-fsanitize-undefined-trap-on-error): Likewise.
18025 (tracer-dynamic-coverage-feedback): Likewise.
18026 (reorder-block-duplicate-feedback): Likewise.
18027 (loop-unroll-jam-size): Likewise.
18030 (-mabs=legacy): Likewise.
18031 (-mupper-regs-df): Likewise.
18032 (-mupper-regs-sf): Likewise.
18033 (-mpointers-to-nested-functions): Likewise.
18035 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18037 * doc/extend.texi (Cilk Plus Builtins): Add markup.
18039 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18041 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
18042 additional index entries and cross-references.
18043 (-fchkp-check-incomplete-type): Likewise.
18044 (-fchkp-first-field-has-own-bounds): Likewise.
18045 (-fchkp-narrow-to-innermost-array): Likewise.
18046 (-fchkp-use-fast-string-functions): Likewise.
18047 (-fchkp-use-nochk-string-functions): Likewise.
18048 (-fchkp-use-static-const-bounds): Likewise.
18049 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
18050 (-fchkp-instrument-marked-only): Likewise.
18051 (-fchkp-use-wrappers): Likewise.
18052 (-static-libmpx): Likewise.
18053 (-static-libmpxwrappers): Likewise.
18054 * doc/extend.texi (bnd_legacy): Likewise.
18055 (bnd_instrument): Likewise.
18056 (bnd_variable_size): Likewise.
18057 (Pointer Bounds Checker builtins): Likewise.
18059 2015-03-21 Tom de Vries <tom@codesourcery.com>
18061 PR tree-optimization/65458
18062 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
18063 * cgraph.h (cgraph_node): Add parallelized_function field.
18064 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
18065 (input_overwrite_node): Read parallelized_function field.
18066 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
18067 parallelized_function on cgraph_node for child_fn.
18068 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
18069 Remove include of gt-tree-parloops.h.
18070 (parallelized_functions): Remove static variable.
18071 (parallelized_function_p): Rewrite using parallelized_function field of
18073 (create_loop_fn): Remove adding to parallelized_functions.
18074 * Makefile.in (GTFILES): Remove tree-parloops.c
18076 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
18078 PR rtl-optimization/64366
18079 * lra.c (lra_update_insn_regno_info): Consider regs in
18080 CALL_INSN_FUNCTION_USAGE memory.
18082 2015-03-20 Richard Biener <rguenther@suse.de>
18084 PR middle-end/64715
18085 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
18086 for type comparison and gcc_checking_assert.
18087 (chrec_fold_plus_poly_poly): Likewise.
18088 (chrec_fold_multiply_poly_poly): Likewise.
18089 (chrec_convert_1): Likewise.
18090 * gimplify.c (gimplify_expr): Remove premature folding of
18091 &X + CST to &MEM[&X, CST].
18093 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18095 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
18097 (ipa_inline): Recompute inline_failed codes.
18098 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
18099 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
18102 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
18104 PR rtl-optimization/60851
18105 * recog.c (constrain_operands): Accept a pseudo register before reload
18106 for LRA enabled targets.
18108 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
18111 * config/rs6000/predicates.md (easy_fp_constant): Remove special
18112 -ffast-math handling that kept non-0 constants live in the RTL
18113 until reload. Remove logic testing the number of instructions it
18114 took to create a constant in a GPR that was never used, due to a
18115 test for soft-float earlier.
18116 (memory_fp_constant): Delete, no longer used.
18118 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
18119 alternatives for loading non-0 constants into GPRs for hard
18120 floating point that is no longer needed due to changes in
18121 easy_fp_constant. Add support for loading 0.0 into GPRs.
18122 (mov<mode>_hardfloat32): Likewise.
18123 (mov<mode>_hardfloat64): Likewise.
18124 (mov<mode>_64bit_dm): Likewise.
18125 (movtd_64bit_nodm): Likewise.
18126 (pre-reload move FP constant define_split): Delete define_split,
18127 since it is no longer used.
18128 (extenddftf2_internal): Remove GHF constraints that are not valid
18131 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
18133 PR rtl-optimization/63491
18134 * lra-constraints.c (check_and_process_move): Use src instead of
18135 sreg. Remove some dead code.
18137 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
18140 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
18141 (sem_variable::merge): Likewise.
18143 2015-03-19 Martin Liska <mliska@suse.cz>
18146 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
18147 all fields of cgraph_thunk_info.
18149 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
18151 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
18152 clone instrumented thunks.
18154 2015-03-19 Richard Biener <rguenther@suse.de>
18157 2015-03-10 Richard Biener <rguenther@suse.de>
18159 PR middle-end/63155
18160 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
18161 * tree-ssa-coalesce.c: Include timevar.h.
18162 (attempt_coalesce): Handle graph being NULL.
18163 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
18164 Split out abnormal coalescing to ...
18165 (perform_abnormal_coalescing): ... this function.
18166 (coalesce_ssa_name): Perform abnormal coalescing without computing
18168 (verify_ssa_coalescing_worker): New function.
18169 (verify_ssa_coalescing): Likewise.
18171 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18172 Jakub Jelinek <jakub@redhat.com>
18175 * tsan.c (instrument_gimple): Clear tail call flag on
18178 2015-03-19 Jakub Jelinek <jakub@redhat.com>
18181 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
18182 call in the return bb.
18183 (find_split_points): Add RETURN_BB argument, don't call
18185 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
18186 if true append TSAN_FUNC_EXIT internal call after the call to
18187 the split off function.
18188 (execute_split_functions): Call find_return_bb here.
18189 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
18190 Adjust find_split_points and split_function calls.
18192 2015-03-18 DJ Delorie <dj@redhat.com>
18194 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
18195 (iorqi3_virt): Likewise.
18197 2015-03-18 Tom de Vries <tom@codesourcery.com>
18199 * tree-parloops.c (parallelize_loops): Make static.
18200 * tree-parloops.h (parallelize_loops): Remove extern declaration.
18202 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
18204 PR middle-end/64491
18206 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
18208 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
18209 condition would be removed due to undefined behaviour.
18211 2015-03-18 Martin Liska <mliska@suse.cz>
18214 * cgraph.c (cgraph_node::get_create): Remove unnecessary
18215 xstrdup_for_dump wrapper.
18216 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
18218 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
18219 with xstrdup_for_dump.
18220 (sem_variable::equals): Likewise.
18221 (sem_item_optimizer::read_section): Use symtab_node::name instead of
18223 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
18224 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
18225 symtab_node::asm_name with xstrdup_for_dump.
18226 (congruence_class::dump): Use symtab_node::name instead of
18228 * ipa-icf.h (symtab_node::name): Remove.
18229 (symtab_node::asm_name): Likewise.
18231 2015-03-18 Jakub Jelinek <jakub@redhat.com>
18233 PR tree-optimization/65450
18234 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
18236 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
18237 it instead of duplicate_ssa_name_ptr_info.
18240 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
18242 2015-03-18 Richard Biener <rguenther@suse.de>
18244 * tree-data-ref.h (struct access_matrix): Remove.
18245 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
18246 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
18247 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
18248 (am_vector_index_for_loop): Likewise.
18249 (struct data_reference): Remove access_matrix member.
18250 (DR_ACCESS_MATRIX): Remove.
18251 (lambda_vector_new): Add comment.
18252 (lambda_matrix_new): Use XOBNEWVEC.
18254 2015-03-18 Richard Biener <rguenther@suse.de>
18256 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
18257 (pass_ch::execute): Cleanup the CFG only if we did sth.
18258 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
18260 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18262 * expmed.c (synth_mult): Use std::swap instead of manually
18263 swapping algorithms.
18265 2015-03-18 Jakub Jelinek <jakub@redhat.com>
18268 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
18270 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
18273 * config/avr/avr.opt (-nodevicelib): New option.
18274 * doc/invoke.texi (AVR Options): Document it.
18275 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
18276 libgcc.a, libc.a, libm.a.
18277 * config/avr/specs.h: Same.
18278 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
18279 which don't (directly) depend on the device. Print more help.
18280 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
18281 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
18282 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
18284 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
18285 for specs file name.
18286 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
18287 * config/avr/avr-mcus.def: Adjust initializers and comments.
18289 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
18291 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
18292 DECL_ONE_ONLY to check if decl is one only.
18293 * ipa-split.c (consider_split): Limit splitt of one only functions.
18295 2015-03-16 Jakub Jelinek <jakub@redhat.com>
18297 PR tree-optimization/65427
18298 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
18300 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
18302 2015-03-16 Marek Polacek <polacek@redhat.com>
18304 * cgraph.h (add_new_static_var): Remove declaration.
18305 * varpool.c (add_new_static_var): Remove function.
18307 2015-03-16 Jakub Jelinek <jakub@redhat.com>
18309 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
18310 instead of vec<tree> * with vec_alloc and release for args.
18313 PR middle-end/65431
18314 * omp-low.c (delete_omp_context): Only splay_tree_delete
18315 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
18316 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
18318 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
18321 * cfgexpand.c (align_base): New function.
18322 (alloc_stack_frame_space): Call it.
18323 (expand_stack_vars): Align prev_frame to be sure
18324 data->asan_vec elements aligned properly.
18326 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
18328 PR middle-end/65409
18329 * expr.c (store_field): Do not do a direct block copy if the source is
18330 a PARALLEL with BLKmode.
18332 2015-03-16 Tom de Vries <tom@codesourcery.com>
18334 PR middle-end/65414
18336 2015-03-12 Tom de Vries <tom@codesourcery.com>
18338 PR rtl-optimization/64895
18339 * lra-lives.c (check_pseudos_live_through_calls): Use
18340 actual_call_used_reg_set instead of call_used_reg_set, if available.
18342 2015-03-16 Alan Modra <amodra@gmail.com>
18345 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
18346 Modify Z->r bswapdi splitter to use dest in place of scratch.
18347 In r->Z and Z->r bswapdi splitter rename word_high, word_low
18348 to word1, word2 and rearrange logic to suit.
18349 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
18350 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
18351 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
18352 Add one '?' on r->r. Modify Z->r splitter to avoid need for
18355 2015-03-14 Jakub Jelinek <jakub@redhat.com>
18357 PR tree-optimization/65369
18358 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
18359 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
18360 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
18362 PR tree-optimization/65418
18363 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
18364 are casts in the first PLUS_EXPR operand, ensure tbias and
18365 *totallowp are in the inner type.
18367 PR rtl-optimization/65401
18368 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
18369 argument. If true, adjust_address_nv of x with big-endian
18370 correction for the mode widening to GET_MODE (y).
18371 (make_field_assignment): Don't do MEM mode widening here.
18372 Use MEM_P instead of GET_CODE == MEM.
18374 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
18376 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
18377 the external decls.
18379 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18382 * config/arm/arm.c (arm_gen_constant, AND case): Use
18383 ARM_SIGN_EXTEND when constructing AND mask.
18385 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18387 * graph.c (print_graph_cfg): Make function names visible and append
18388 parenthesis to it. Also make groups of basic blocks belonging to the
18389 same function visible.
18391 2015-03-12 Richard Biener <rguenther@suse.de>
18393 PR middle-end/44563
18394 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
18395 to avoid quadratic behavior with inline expansion splitting blocks.
18396 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
18397 with the successor if the predecessor will be merged with it.
18398 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
18399 entry block with its successor.
18401 2015-03-13 Richard Biener <rguenther@suse.de>
18403 PR middle-end/44563
18404 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
18405 (cleanup_tree_cfg_1): Do not call it.
18406 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
18407 (fixup_noreturn_call): Mark the stmt as control altering.
18408 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
18410 (pass_data_fixup_cfg): Produce a dump file.
18411 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
18412 (need_noreturn_fixup): New global.
18413 (pass_dominator::execute): Fixup queued noreturn calls.
18414 (optimize_stmt): Queue calls that became noreturn for fixup.
18415 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
18416 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
18417 (el_to_fixup): New global.
18418 (eliminate_dom_walker::before_dom_childre): Queue calls that
18419 became noreturn for fixup.
18420 (eliminate): Fixup queued noreturn calls.
18421 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
18422 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
18423 (substitute_and_fold_dom_walker::before_dom_children): Queue
18424 alls that became noreturn for fixup.
18425 (substitute_and_fold): Fixup queued noreturn calls.
18427 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
18429 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
18430 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
18431 are building; for methods check ODR type of class they belong to if
18432 they may lead to a polymorphic call.
18433 (sem_function::compare_polymorphic_p): Be bit smarter about testing
18434 when function may lead to a polymorphic call.
18435 (sem_function::compare_type_list): Remove.
18436 (sem_variable::equals): Update use of compatible_types_p.
18437 (sem_variable::parse_tree_refs): Remove.
18438 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
18440 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
18442 (func_checker::compatible_polymorphic_types_p): Break out from ...
18443 (unc_checker::compatible_types_p): ... here.
18444 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
18446 (unc_checker::compatible_types_p): Update.
18447 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
18450 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18452 PR rtl-optimization/65235
18453 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
18454 When first element of vec_concat is const_int, calculate its size
18455 using second element.
18457 2015-03-12 Richard Biener <rguenther@suse.de>
18459 PR middle-end/65270
18460 * fold-const.c (operand_equal_p): Fix ordering of resetting
18461 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
18463 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
18465 * config/s390/s390.c (s390_reorg): Move code to output nops after label
18467 (s390_asm_output_function_label): Likewise.
18468 * config/s390/s390.c (s390_asm_output_function_label):
18469 Fix function label alignment with -mhtopatch.
18470 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
18471 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
18472 ("nop_2_byte"): New define_insn.
18473 ("nop_4_byte"): Likewise.
18474 ("nop_6_byte"): Likewise.
18475 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
18476 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
18478 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
18481 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
18484 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
18487 * toplev.c (process_options): Restrict Pointer Bounds Checker
18488 usage with Address Sanitizer.
18490 2015-03-12 Richard Biener <rguenther@suse.de>
18492 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
18494 * omp-low.c (expand_omp_taskreg): Split block before removing
18496 (expand_omp_target): Likewise.
18497 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
18498 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
18499 stmt to split_block.
18501 2015-03-12 Tom de Vries <tom@codesourcery.com>
18503 PR rtl-optimization/64895
18504 * lra-lives.c (check_pseudos_live_through_calls): Use
18505 actual_call_used_reg_set instead of call_used_reg_set, if available.
18507 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
18509 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
18510 (cgraph_node::remove): Likewise.
18511 (cgraph_node::get_untransformed_body): Likewise.
18512 * varpool.c (varpool_node::remove): Likewise.
18513 (varpool_node::get_constructor): Add sanity check.
18515 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
18517 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
18519 (-fabi-compat-version): Likewise.
18520 (-ffriend-injection): Likewise.
18521 (-Wdeclaration-after-statement): Likewise.
18522 (-fomit-frame-pointer): Likewise.
18523 (-ftree-coalesce-inlined-vars): Likewise.
18524 (-fvisibility=): Likewise.
18525 * doc/extend.texi (Typeof): Likewise.
18526 (Zero Length): Likewise.
18527 (Escaped Newlines): Likewise.
18528 (Compound Literals): Likewise.
18529 (Function Attributes): Likewise.
18530 (Label Attributes): Likewise.
18531 (Type Attributes): Likewise.
18532 (Function Names): Likewise.
18533 (Other Builtins): Likewise.
18534 (Function Specific Option Pragmas): Likewise.
18535 (C++ Interface): Likewise.
18537 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
18539 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
18541 2015-03-11 Marek Polacek <polacek@redhat.com>
18543 PR tree-optimization/65388
18544 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
18546 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
18549 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
18550 * configure: Regenerate.
18551 * config.in: Regenerate.
18552 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
18553 [-mn-flash]: Document it.
18554 [__AVR_ARCH__]: Document avrtiny.
18556 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
18557 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
18558 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
18560 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18562 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
18564 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18567 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
18568 allow reloads of PLUS in floating point/VSX registers.
18570 2015-03-11 Junmo Park <junmoz.park@samsung.com>
18572 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
18573 crypto_sha256_fast.
18574 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
18576 2015-03-11 Richard Biener <rguenther@suse.de>
18578 PR tree-optimization/65310
18579 * tree-sra.c (build_ref_for_offset): Also preserve larger
18582 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
18584 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
18586 2015-03-10 Jakub Jelinek <jakub@redhat.com>
18589 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
18591 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
18593 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
18595 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
18596 (sem_function::equals_wpa): ... here.
18598 2015-03-10 Marek Polacek <polacek@redhat.com>
18599 Jakub Jelinek <jakub@redhat.com>
18602 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
18603 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
18606 2015-03-10 Jakub Jelinek <jakub@redhat.com>
18609 * config/rs6000/t-linux: For powerpc64* target set
18610 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
18612 2015-03-10 Richard Biener <rguenther@suse.de>
18614 PR middle-end/44563
18615 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
18616 for redirect_all_calls.
18618 2015-03-10 Marek Polacek <polacek@redhat.com>
18620 * gdbinit.in (pcfun): Define and document.
18622 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
18624 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
18625 of libgomp-plugin.h.
18626 (find_target_compiler): Support a case when the path to gcc is
18627 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
18628 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
18629 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
18631 (main): Use GCC_INSTALL_NAME as target_driver_name.
18632 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
18634 (mkoffload.o): Remove obsolete include path and defines.
18635 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
18637 2015-03-10 Richard Biener <rguenther@suse.de>
18639 PR middle-end/63155
18640 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
18641 * tree-ssa-coalesce.c: Include timevar.h.
18642 (attempt_coalesce): Handle graph being NULL.
18643 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
18644 Split out abnormal coalescing to ...
18645 (perform_abnormal_coalescing): ... this function.
18646 (coalesce_ssa_name): Perform abnormal coalescing without computing
18648 (verify_ssa_coalescing_worker): New function.
18649 (verify_ssa_coalescing): Likewise.
18651 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
18654 * config.gcc (extra_options) [avr]: Remove.
18655 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
18656 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
18657 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
18659 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
18660 (-mmcu=): Add Var and MissingArgError properties.
18662 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
18663 * config/avr/t-multilib: Regenerate.
18664 * config/avr/specs.h: New file.
18665 * config/avr/driver-avr.c: New file.
18666 * config/avr/genopt.sh: Remove file.
18667 * config/avr/avr-tables.opt: Remove file.
18668 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
18669 * config/avr/avr-c.c: Same.
18670 * avr-arch.h: Same.
18671 (avr_current_device): Remove proto.
18672 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
18673 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
18674 (EXTRA_SPEC_FUNCTIONS): Define.
18675 (avr_devicespecs_file): New specs function proto.
18676 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
18677 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
18678 (avr_current_device): Remove definition and usage.
18679 (avr_set_core_architecture): New static function.
18680 (avr_option_override): Use it.
18681 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
18682 (mcu_name): New static array.
18683 (comparator, avr_archs_str, avr_mcus_str): New static functions.
18684 (avr_inform_devices, avr_inform_core_architectures): New functions.
18685 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
18686 (avrlibc.h) [WITH_AVRLIBC]: Include.
18687 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
18688 (print_mcu): Rewrite from scratch.
18689 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
18690 Forward to avr-specific specs defined in device-specs file.
18691 * config/avr/t-avr (driver-avr.o): New rule.
18692 (avr-devices.o): Depend on avr-arch.h.
18693 (avr-mcus): No more depend on avr-tables.opt.
18694 (avr-tables.opt): Remove rule.
18695 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
18697 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18699 * c-family/c.opt (fchkp-use-wrappers): New.
18700 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
18701 (chkp_wrap_function): New.
18702 (chkp_build_instrumented_fndecl): Support wrapped
18704 * doc/invoke.texi (-fcheck-pointer-bounds): New.
18705 (-fchkp-check-incomplete-type): New.
18706 (-fchkp-first-field-has-own-bounds): New.
18707 (-fchkp-narrow-bounds): New.
18708 (-fchkp-narrow-to-innermost-array): New.
18709 (-fchkp-optimize): New.
18710 (-fchkp-use-fast-string-functions): New.
18711 (-fchkp-use-nochk-string-functions): New.
18712 (-fchkp-use-static-bounds): New.
18713 (-fchkp-use-static-const-bounds): New.
18714 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
18715 (-fchkp-check-read): New.
18716 (-fchkp-check-write): New.
18717 (-fchkp-store-bounds): New.
18718 (-fchkp-instrument-calls): New.
18719 (-fchkp-instrument-marked-only): New.
18720 (-fchkp-use-wrappers): New.
18721 (-static-libmpx): New.
18722 (-static-libmpxwrappers): New.
18724 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18726 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
18727 (CHKP_SPEC): Add wrappers library.
18728 * c-family/c.opt (static-libmpxwrappers): New.
18730 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18732 * config/i386/linux-common.h (LIBMPX_LIBS): New.
18733 (LIBMPX_SPEC): New.
18735 * gcc.c (CHKP_SPEC): New.
18736 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
18737 * c-family/c.opt (static-libmpx): New.
18739 2015-03-10 Richard Biener <rguenther@suse.de>
18741 PR middle-end/44563
18742 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
18744 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
18745 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
18746 (cgraph_add_edge_to_call_site_hash): Likewise.
18747 (cgraph_node::get_edge): Likewise.
18748 (cgraph_edge::set_call_stmt): Likewise.
18749 (cgraph_edge::remove_caller): Likewise.
18751 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
18753 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
18754 (callee_saved_gpr_regs_size): ... this.
18755 (callee_saved_regs_first_regno): Rename to ...
18756 (callee_saved_first_gpr_regno): ... this.
18757 (callee_saved_regs_last_regno) Rename to ...
18758 (callee_saved_last_gpr_regno): ... this.
18759 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
18761 (nds32_initial_elimination_offset): Likewise.
18762 (nds32_expand_prologue): Likewise.
18763 (nds32_expand_epilogue): Likewise.
18764 (nds32_expand_prologue_v3push): Likewise.
18765 (nds32_expand_epilogue_v3pop): Likewise.
18766 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
18767 Adjust renamed variables.
18768 (nds32_output_stack_pop): Likewise.
18770 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
18772 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
18775 2015-03-10 Jakub Jelinek <jakub@redhat.com>
18777 PR rtl-optimization/65321
18778 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
18780 * var-tracking.c (use_narrower_mode): Likewise.
18782 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
18784 PR tree-optimization/65355
18785 * varasm.c (notice_global_symbol): Do not produce RTL.
18786 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
18788 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
18789 check for section anchors.
18791 2015-03-10 Alan Modra <amodra@gmail.com>
18794 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
18795 to be single-arch by default. Set cpu_is_64bit for powerpc64
18796 given --with-cpu=native.
18797 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
18798 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
18800 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
18801 rs6000_isa_flags rather than TARGET_64BIT.
18803 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
18804 Kaz Kojima <kkojima@gcc.gnu.org>
18806 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
18808 2015-03-09 Jakub Jelinek <jakub@redhat.com>
18811 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
18812 on a TREE_BINFO, instead use BINFO_TYPE.
18814 2015-03-09 Richard Biener <rguenther@suse.de>
18816 PR middle-end/65270
18817 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
18818 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
18819 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
18820 of that. When comparing dereferences compare alignment.
18821 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
18823 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
18825 * ipa-inline-analysis.c (check_callers): Check
18826 node->can_remove_if_no_direct_calls_and_refs_p.
18827 (growth_likely_positive): Reorganize to call
18828 can_remove_if_no_direct_calls_p later.
18829 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
18830 will_be_removed_from_program_if_no_direct_calls_p): Add
18831 will_inline parameter.
18832 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
18833 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
18834 Handle inliner case correctly.
18836 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
18838 PR tree-optimization/63743
18839 * cfgexpand.c (reorder_operands): Also reorder if only second operand
18840 had its definition forwarded by TER.
18842 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
18845 * ipa-utils.h (types_odr_comparable): Add strict argument.
18846 * ipa-devirt.c: Fix whitespace;
18847 (odr_hasher): Remove.
18848 (odr_name_hasher, odr_vtable_hasher): New hashers.
18849 (can_be_name_hashed_p): New predicate.
18850 (hash_type_name): remove.
18851 (hash_odr_name): New.
18852 (odr_name_hasher::hash): new.
18853 (can_be_vtable_hashed_p): New.
18854 (hash_odr_vtable): New.
18855 (odr_vtable_hasher::hash): New.
18856 (types_same_for_odr): Add strict parameter.
18857 (types_odr_comparable): Likewise.
18858 (odr_name_hasher::equal): New.
18859 (odr_vtable_hasher::equal): New.
18860 (odr_name_hasher::remove): New.
18861 (odr_hash_type): Change to hash_table<odr_name_hasher>.
18862 (odr_vtable_hash_type): New.
18863 (odr_vtable_hash): New.
18864 (odr_subtypes_equivalent_p): Do strict comparsion.
18865 (add_type_duplicate): Merge type names; cleanup; avoid type
18867 (register_odr_type): Initialize vtable hash.
18868 (build_type_inheritance_graph): Likewise
18869 (get_odr_type): Reorg to use two hashes.
18870 (dump_possible_polymorphic_call_targets): Move sanity check after debug
18872 (ipa_devirt): Dump type_inheritance_graph.
18873 (types_same_for_odr): Add strict mode.
18875 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
18878 * cgraph.h (symtab_node): Add definition_alignment,
18879 can_increase_alignment_p and increase_alignment.
18880 * symtab.c (symtab_node::can_increase_alignment_p,
18881 increase_alignment_1, symtab_node::increase_alignment,
18882 symtab_node::definition_alignment): New.
18883 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
18884 can_increase_alignment_p.
18885 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
18886 * tree-vect-stmts.c (ensure_base_align): Likewise.
18887 * varasm.c (function_section_1): Use definition_alignment.
18888 (assemble_start_function): Likewise.
18889 (emit_local): likewise.
18890 (build_constant_desc): Likewsie.
18891 (output_constant_def_contents): Likewise.
18892 (place_block_symbol): Likewise.
18893 (output_object_block): Likewise.
18895 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
18898 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
18899 when outputting debug.
18901 2015-03-07 Marek Polacek <polacek@redhat.com>
18902 Martin Uecker <uecker@eecs.berkeley.edu>
18905 * doc/invoke.texi: Update description of -fsanitize=bounds.
18907 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
18909 * tree-ssa-phiopt.c (neg_replacement): Remove.
18910 (tree_ssa_phiopt_worker): Remove negate optimization.
18912 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
18915 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
18917 2015-03-06 Richard Biener <rguenther@suse.de>
18919 PR middle-end/64928
18920 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
18921 and liveout_obstack members.
18922 (calculate_live_on_exit): Remove.
18923 (calculate_live_ranges): Change declaration.
18924 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
18925 (new_tree_live_info): Adjust.
18926 (calculate_live_ranges): Delete livein when not wanted.
18927 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
18928 Deal with partly deleted live info.
18929 (loe_visit_block): Remove temporary bitmap by using
18930 bitmap_ior_and_compl_into.
18931 (live_worklist): Adjust accordingly.
18932 (calculate_live_on_exit): Make static.
18933 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
18934 we do not need livein.
18936 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
18938 * real.c (real_from_string): Fix typo in assertion.
18940 2015-03-06 Alex Velenko <alex.velenko@arm.com>
18942 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
18945 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
18947 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
18949 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
18952 * lra-assigns.c (find_hard_regno_for): Rename to
18953 find_hard_regno_for_1. Add a new parameter.
18954 (find_hard_regno_for): New function using find_hard_regno_for_1.
18956 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
18958 PR rtl-optimization/65067
18959 * expmed.c (store_bit_field, extract_bit_field): Reworked the
18960 strict volatile bitfield handling.
18962 2015-03-05 Martin Liska <mliska@suse.cz>
18965 * ipa-icf.c (sem_variable::equals): Compare variables types.
18967 2015-03-05 Richard Henderson <rth@redhat.com>
18970 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
18971 correctly check weak symbol binding.
18973 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
18975 PR middle-end/65315
18976 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
18979 2015-03-05 Martin Liska <mliska@suse.cz>
18981 * ipa-inline.c (inline_small_functions): Set default value to
18982 prevent warning during bootstrap.
18983 * tree.h: Add pragma guard that ignores false positives during
18986 2015-03-05 Richard Biener <rguenther@suse.de>
18988 PR tree-optimization/65310
18989 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18990 Properly preserve alignment of the base of the access.
18992 2015-03-05 Richard Biener <rguenther@suse.de>
18995 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
18996 Compare dependence info.
18998 2015-03-05 Richard Biener <rguenther@suse.de>
19000 PR middle-end/65233
19001 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
19003 (walk_ssa_copies): Revert last chage. Instead do not walk
19004 SSA names registered for SSA update.
19006 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19009 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
19010 vtable references for their containing type.
19011 (sem_function::equals_wpa): Compare TYPE_RESTRICT
19012 and type attributes.
19014 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
19016 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
19017 before negating it.
19018 * stor-layout.c (finalize_record_size): Revert latest change.
19020 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
19022 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
19024 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19026 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
19027 for correct comdat handling.
19028 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
19030 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
19031 (used_from_object_file_p_worker): Remove.
19032 (cgraph_node::only_called_directly_or_alised): Add
19033 used_from_object_file_p.
19034 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
19035 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
19036 can_remove_if_no_direct_calls_and_refs_p.
19038 2015-03-04 Nick Clifton <nickc@redhat.com>
19040 * config/rl78/rl78.h (enum reg_class): Remove real registers from
19041 General register class.
19042 * config/rl78/rl78-real.md: Replace general register constraints
19043 with real+virtual register constraints.
19045 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19047 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
19048 from checking for -mhtm option.
19050 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19052 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
19053 (struct ipa_sra_check_caller_data): Add has_thunk field.
19054 (ipa_sra_check_caller): Check for thunk.
19055 (ipa_sra_preliminary_function_checks): Give up on function with
19057 (ipa_early_sra): Use call_for_symbol_and_aliases.
19059 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
19062 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
19063 called for __stack_chk_guard symbol.
19065 2015-03-03 DJ Delorie <dj@redhat.com>
19067 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
19069 (*addhi3_real): Likewise.
19070 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
19071 pattern to match incrementing memory.
19072 * config/rl78/predicates.md (rl78_1_2_operand): New.
19073 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
19074 it's the same and only mem.
19075 (rl78_alloc_physical_registers_op2): If there's effectively only
19076 one MEM, transcode it into HL.
19077 (rl78_far_p): Reject addresses that aren't legitimate.
19079 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
19081 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
19084 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
19086 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
19088 Implement call0 ABI for xtensa
19089 * config/xtensa/constraints.md ("a" constraint): Include stack
19090 pointer in case of call0 ABI.
19091 ("q" constraint): Make empty in case of call0 ABI.
19092 ("D" constraint): Include stack pointer in case of call0 ABI.
19093 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
19094 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
19096 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
19098 (xtensa_regno_to_class): Make it a local variable in the
19099 function xtensa_regno_to_class.
19100 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
19101 macro, function prototype and implementation.
19102 (reg_nonleaf_alloc_order): Make it a local variable in the
19103 function order_regs_for_local_alloc.
19104 (xtensa_conditional_register_usage): New function.
19105 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
19106 (xtensa_valid_move): Allow direct moves to stack pointer
19107 register in call0 ABI.
19108 (xtensa_setup_frame_addresses): Only spill register windows in
19110 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
19111 call0 ABI respectively.
19112 (xtensa_function_arg_1): Only mark a7 register for copying in
19114 (xtensa_call_save_reg): New function.
19115 (compute_frame_size): Add space for callee saved register
19116 storage to the frame size in call0 ABI.
19117 (xtensa_expand_prologue): Generate code to set up stack frame
19118 and save callee-saved registers in call0 ABI.
19119 (xtensa_expand_epilogue): New function.
19120 (xtensa_set_return_address): New function.
19121 (xtensa_return_addr): Calculate return address in call0 ABI.
19122 (xtensa_builtin_saveregs): Only mark a7 register for copying and
19123 emit copying code in windowed ABI.
19124 (order_regs_for_local_alloc): Add preferred register allocation
19125 order for non-leaf function in call0 ABI.
19126 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
19127 (xtensa_asm_trampoline_template): Add trampoline generation for
19129 (xtensa_trampoline_init): Add trampoline initialization for
19131 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
19133 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
19134 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
19135 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
19136 ABI call-used registers.
19137 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
19138 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
19140 (REG_CLASS_CONTENTS): Include all registers into the preferred
19141 reload registers set, adjust the set in the
19142 xtensa_conditional_register_usage.
19143 (xtensa_regno_to_class): Drop variable declaration.
19144 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
19146 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
19148 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
19149 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
19150 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
19151 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
19152 location in call0 ABI.
19153 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
19154 stack adjustment size when handling exception.
19155 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
19156 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
19158 ("return" pattern): Generate ret.n/ret in call0 ABI.
19159 ("epilogue" pattern): Expand epilogue.
19160 ("nonlocal_goto" pattern): Use default in call0 ABI.
19161 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
19162 emit eh_set_a0_* depending on ABI.
19163 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
19164 ("eh_set_a0_call0", "blockage"): New patterns.
19166 2015-03-03 Martin Liska <mliska@suse.cz>
19169 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
19171 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19174 * config/rs6000/rs6000-tables.opt: Regenerate table.
19176 2015-03-03 Renlin Li <renlin.li@arm.com>
19178 * doc/md.texi (@item ^): Change ? into ^.
19180 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
19182 * doc/tm.texi: Regenerated.
19184 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
19186 * builtins.c (expand_builtin_return_addr): Add
19187 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
19188 surrounding #ifdef.
19189 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
19191 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
19193 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
19195 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
19198 2015-03-03 Martin Jambor <mjambor@suse.cz>
19199 Eric Botcazou <ebotcazou@adacore.com>
19201 * tree-sra.c (ipa_sra_check_caller_data): New type.
19202 (has_caller_p): Removed.
19203 (ipa_sra_check_caller): New function.
19204 (ipa_sra_preliminary_function_checks): Use it.
19206 2015-03-03 Martin Liska <mliska@suse.cz>
19208 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
19209 instead of if branch.
19211 2015-03-03 Martin Liska <mliska@suse.cz>
19214 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
19216 2015-03-23 Jeff Law <law@redhat.com>
19218 PR tree-optimization/65241
19219 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
19220 hash table if INSERT is true.
19222 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19225 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
19227 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19230 * config/avr/avr.c (context.h, tree-pass.h): Include them.
19231 (avr_pass_data_recompute_notes): New static variable.
19232 (avr_pass_recompute_notes): New class.
19233 (avr_register_passes): New static function.
19234 (avr_option_override): Call it.
19236 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19238 Fix various problems with specs file generation.
19241 * config.gcc (extra_gcc_objs) [avr]: Remove.
19242 * config/avr/driver-avr.c: Remove file.
19243 * config/avr/t-avr (driver-avr.o): Remove rule.
19244 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
19245 INCLUDES to build. Depend on TM_H.
19246 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
19247 build warnings. Fix non-matching types and non-existing %-codes.
19249 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
19250 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
19251 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
19252 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
19253 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
19254 (LIBGCC_SPEC): Remove definitions.
19256 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
19258 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
19259 to create a register in testing mode.
19261 2015-03-03 Martin Liska <mliska@suse.cz>
19262 Jan Hubicka <hubicka@ucw.cz>
19265 * cgraph.c (cgraph_node::has_thunk_p): New function.
19266 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
19267 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
19268 (sem_function::merge): Assert is changed.
19270 2015-03-03 Martin Liska <mliska@suse.cz>
19271 Martin Jambor <mjambor@suse.cz>
19274 * ipa-icf.c (sem_item_optimizer::execute): Change function
19275 return value to boolean.
19276 (sem_item_optimizer::merge_classes): Likewise.
19277 (ipa_icf_driver): Return TODO_remove_functions in case there's
19278 a merge operation processed.
19279 * ipa-icf.h: Change function return value to boolean.
19281 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19284 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
19285 processor type for 64-bit little endian PowerPC.
19287 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
19288 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
19289 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
19290 printing built-in mask so it does not pass NULL pointers.
19292 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
19295 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
19298 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
19299 !ISA_HAS_FP_CONDMOVE.
19301 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
19303 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
19306 2015-03-02 Ulrich Drepper <drepper@gmail.com>
19308 * doc/invoke.texi (Options for Code Generation Conventions):
19309 Fix URL of DSO paper.
19311 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19314 * ipa-inline.c (check_callers): Looks for recursion.
19315 (inline_to_all_callers): Give up on uninlinable or recursive edges.
19316 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
19317 summary of inline clones.
19318 (do_estimate_growth_1): Fix recursion check.
19320 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19323 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
19326 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19327 Aldy Hernandez <aldyh@redhat.com>
19330 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
19331 when checking TYPE_BINFO.
19333 2015-03-02 Richard Biener <rguenther@suse.de>
19336 * ipa-icf-gimple.c: Include builtins.h.
19337 (func_checker::compare_memory_operand): Compare base alignment.
19339 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
19342 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
19343 are never passed by reference.
19345 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
19348 * tree-chkp.c (chkp_check_lower): Don't check against
19349 zero bounds for already instrumented functions.
19350 (chkp_check_upper): Likewise.
19351 (chkp_fini): Clean pass local data to avoid wrong reusage.
19353 2015-02-28 Martin Liska <mliska@suse.cz>
19354 Jan Hubicka <hubicka@ucw.cz>
19356 * ipa-icf.c (sem_variable::equals): Improve debug output;
19357 get variable constructor.
19358 (sem_variable::parse): Do not filter out too early; give up on
19359 volatile and register vars.
19360 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
19362 * ipa-icf.h (sem_variable::init): Do not set ctor.
19363 (sem_variable::ctor): Remove.
19365 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
19367 PR middle-end/65233
19368 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
19370 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19372 * ipa-icf.c: Include stor-layout.h
19373 (sem_function::compare_cgraph_references): Rename to ...
19374 (sem_item::compare_cgraph_references): ... this one.
19375 (sem_variable::equals_wpa): New function
19376 (sem_variable::equals): Do not check stuff already verified by
19378 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
19379 * ipa-icf.h (sem_item): Add compare_cgraph_references.
19380 (sem_function): Remove compare_cgraph_references.
19381 (sem_variable): Turns equals_wpa into non-inline.
19383 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19385 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
19386 (sem_item::add_expr): New function.
19387 (sem_function::hash_stmt): Handle operands of most statements.
19388 (sem_variable::get_hash): Hash the actual constructor.
19389 * ipa-icf.h (sem_item): Add add_expr.
19390 (sem_function): Update prototype of hash_stmt
19392 2015-02-28 Martin Liska <mliska@suse.cz>
19393 Jan Hubicka <hubicka@ucw.cz>
19396 * ipa-icf-gimple.c (func_checker::compare_function_decl):
19398 (func_checker::compare_variable_decl): Skip symtab vars.
19399 (func_checker::compare_cst_or_decl): Update.
19400 * ipa-icf.c (sem_function::parse): Do not consider aliases.
19401 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
19402 use correct symtab predicates.
19403 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
19404 (sem_variable::parse): Update comment.
19405 (sem_item_optimizer::build_graph): Consider ultimate aliases
19408 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19410 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
19413 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19415 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
19416 (sem_variable::merge) Likewise.
19418 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19420 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
19421 target; also match flag_ipa_devirt.
19423 2015-03-01 Martin Liska <mliska@suse.cz>
19424 Jan Hubicka <hubicka@ucw.cz>
19426 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
19427 Validate variable alignment.
19428 * ipa-icf.c (sem_function::equals_private): Be more precise
19429 about non-common function attributes.
19430 (sem_variable::equals): Likewise.
19432 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19435 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
19436 across COMDAT group boundary.
19438 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19441 * ipa-icf.c (clear_decl_rtl): New function.
19442 (sem_function::merge): Clear RTL before forming alias.
19443 (sem_variable::merge): Clear RTL before forming alias.
19445 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19448 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
19450 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
19452 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
19455 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19457 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
19458 a typo in the description.
19460 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19463 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
19464 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
19465 * lra-constraints.c: Include "params.h".
19466 (EBB_PROBABILITY_CUTOFF): Use
19467 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
19468 (lra_inheritance): Use '<' instead of '<=' for
19469 EBB_PROBABILITY_CUTOFF.
19470 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
19473 2015-02-27 Martin Liska <mliska@suse.cz>
19475 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
19476 vector length condition.
19478 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
19480 * doc/extend.texi (x86 transactional memory intrinsics):
19481 Reorganize discussion of _xbegin. Clarify that the return
19482 value is a bit mask. Expand example and move to end of section.
19484 2015-02-26 Jakub Jelinek <jakub@redhat.com>
19485 Aldy Hernandez <aldyh@redhat.com>
19487 PR rtl-optimization/65220
19488 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
19490 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19493 * lra-remat.c (update_scratch_ops): New.
19494 (do_remat): Call it.
19495 * lra.c (lra_register_new_scratch_op): New. Take code from ...
19496 (remove_scratches): ... here.
19497 * lra-int.h (lra_register_new_scratch_op): New prototype.
19499 2015-02-27 Marek Polacek <polacek@redhat.com>
19502 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
19503 -Wformat-signedness anymore.
19505 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19507 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
19509 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
19511 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19513 * config/s390/s390.c (enum s390_builtin):
19514 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
19515 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
19516 (s390_init_builtins): Generate new builtin functions.
19517 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
19518 (s390_sfpc, s390_efpc): New pattern definitions.
19520 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19522 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
19523 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
19524 (s390_builtin_decls): New array.
19525 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
19526 (s390_builtin_decl): New function.
19527 (TARGET_BUILTIN_DECL): Define macro.
19529 2015-02-27 Richard Biener <rguenther@suse.de>
19531 PR middle-end/63175
19532 * builtins.c (get_object_alignment_2): Make sure to re-apply
19533 the ANDed mask after recursing to its operand gets us a new
19534 misalignment bit position.
19536 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
19537 Martin Liska <mliska@suse.cz>
19540 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
19541 Use address_matters_p.
19542 (redirect_all_callers, set_addressable): New functions.
19543 (sem_function::merge): Reorganize and fix merging issues.
19544 (sem_variable::merge): Likewise.
19545 (sem_variable::compare_sections): Remove.
19546 * common.opt (fmerge-all-constants, fmerge-constants): Remove
19548 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
19550 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
19552 (address_matters_1): New function.
19553 (symtab_node::address_matters_p): New function.
19554 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
19555 check for merged flag.
19556 * cgraph.h (address_matters_p): Declare.
19557 (symtab_node::address_taken_from_non_vtable_p): Remove.
19558 (symtab_node::address_can_be_compared_p): New method.
19559 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
19560 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
19562 (comdat_can_be_unshared_p_1) Use address_matters_p.
19563 (update_vtable_references): Fix formating.
19564 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
19565 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
19566 * cgraphclones.c: Preserve merged and icf_merged flags.
19568 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
19570 * doc/extend.texi (Function Attributes): Fix spelling and typos.
19571 (Label Attributes): Likewise.
19572 (Cilk Plus Builtins): Likewise.
19573 (ARC SIMD Built-in Functions): Likewise.
19574 (ARM C Language Extensions (ACLE)): Likewise.
19575 (PowerPC Built-in Functions): Likewise.
19576 (PowerPC Hardware Transactional Memory Built-in Functions):
19579 2015-02-26 Jakub Jelinek <jakub@redhat.com>
19581 PR tree-optimization/65216
19582 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
19583 new stmt and new SSA_NAME for lhs whenever the arguments have
19584 changed and weren't just swapped. Fix comment typo.
19586 PR tree-optimization/65215
19587 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
19588 for PDP endian targets.
19589 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
19590 Fix up formatting issues.
19591 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
19592 size is smaller than the original, adjust MEM_REF offset by the
19593 difference of sizes. Use is_gimple_mem_ref_addr instead of
19594 is_gimple_min_invariant test to avoid adding address temporaries.
19596 2015-02-26 Martin Liska <mliska@suse.cz>
19597 Jan Hubicka <hubicka@ucw.cz>
19600 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
19601 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
19602 (sem_item_optimizer::process_cong_reduction): Include division by
19603 sensitive references.
19604 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
19605 * ipa-ref.c (ipa_ref::address_matters_p): New function.
19606 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
19608 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
19611 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
19613 * config/avr/avr.c: Same.
19614 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
19615 Refuse any constant address not in 0..0xbf.
19616 * config/avr/avr.md (*mov<mode>, *movsf): Remove
19617 tiny_valid_direct_memory_access_range from insn conditions.
19618 (mov<mode>): Don't special-case expansion of avrtiny addresses.
19620 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
19623 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
19624 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
19625 * config/sh/predicates.md (const_logical_operand): New predicate.
19626 * config/sh/sh.md: Add new peephole2 patterns.
19628 2015-02-26 Marek Polacek <polacek@redhat.com>
19631 * ipa-inline.c (early_inliner): Recompute inline parameters.
19633 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19636 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
19637 instructions with TImode operands are included in the analysis.
19639 2015-02-26 Sebastian Pop <s.pop@samsung.com>
19641 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
19642 of an EDGE_FSM_THREAD.
19644 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19646 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
19648 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
19651 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
19653 2015-02-26 Sebastian Pop <s.pop@samsung.com>
19655 PR tree-optimization/65048
19656 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
19657 (thread_through_all_blocks): Call valid_jump_thread_path.
19658 Remove invalid FSM jump-thread paths.
19660 2015-02-26 Jakub Jelinek <jakub@redhat.com>
19662 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
19663 (ipa_write_optimization_summaries): Likewise.
19664 * tree-streamer.h: Include data-streamer.h.
19665 (streamer_mode_table): Declare extern variable.
19666 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
19667 * lto-streamer-out.c (lto_output_init_mode_table,
19668 lto_write_mode_table): New functions.
19669 (produce_asm_for_decls): Call lto_write_mode_table when streaming
19671 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
19672 (lto_create_simple_input_block): Add mode_table argument to the
19673 lto_input_block constructors.
19674 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
19676 * data-streamer-in.c (string_for_index): Likewise.
19677 * ipa-inline-analysis.c (inline_read_section): Likewise.
19678 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
19679 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
19680 * lto-streamer-in.c (lto_read_body_or_constructor,
19681 lto_input_toplevel_asms): Likewise.
19682 (lto_input_mode_table): New function.
19683 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
19684 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
19685 Use bp_pack_machine_mode.
19686 * real.h (struct real_format): Add name field.
19687 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
19688 (class lto_input_block): Add mode_table member.
19689 (lto_input_block::lto_input_block): Add mode_table_ argument,
19690 initialize mode_table.
19691 (struct lto_file_decl_data): Add mode_table field.
19692 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
19693 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
19694 unpack_ts_decl_common_value_fields,
19695 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
19696 * tree-streamer.c (streamer_mode_table): New variable.
19697 * real.c (ieee_single_format, mips_single_format,
19698 motorola_single_format, spu_single_format, ieee_double_format,
19699 mips_double_format, motorola_double_format,
19700 ieee_extended_motorola_format, ieee_extended_intel_96_format,
19701 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
19702 ibm_extended_format, mips_extended_format, ieee_quad_format,
19703 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
19704 decimal_single_format, decimal_double_format, decimal_quad_format,
19705 ieee_half_format, arm_half_format, real_internal_format): Add name
19707 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
19709 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
19712 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
19713 reordering for selective scheduling.
19715 2015-02-26 Terry Guo <terry.guo@arm.com>
19717 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
19718 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
19719 (arm_arch_no_volatile_ce): Declare new global variable.
19720 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
19721 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
19722 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
19723 (TARGET_NO_VOLATILE_CE): New macro.
19724 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
19725 volatile memory access in IT block
19727 2015-02-25 Kai Tietz <ktietz@redhat.com>
19729 PR tree-optimization/61917
19730 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
19731 that reduc_def_stmt is null.
19733 2015-02-25 Martin Liska <mliska@suse.cz>
19735 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
19736 hard register variables.
19738 2015-02-25 Kai Tietz <ktietz@redhat.com>
19741 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
19742 (symtab::noninterposable_alias): Likewise.
19744 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
19747 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
19749 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
19751 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
19754 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
19755 as split condition; force split via '#' in output pattern.
19757 2015-02-25 Richard Biener <rguenther@suse.de>
19758 Kai Tietz <ktietz@redhat.com>
19760 PR tree-optimization/61917
19761 * tree-vect-loop.c (vectorizable_reduction): Allow
19762 vect_internal_def without reduction to exit graceful.
19764 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
19767 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
19768 only with NONDEBUG_INSN_P.
19770 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
19772 Use variadic macros with avr-log.c.
19774 * config/avr/avr-protos.h (avr_vdump): New prototype.
19775 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
19776 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
19777 * config/avr/avr-log.c: Adjust comments.
19778 (avr_vdump): New function.
19779 (avr_vadump): Pass caller as 2nd argument instead of format string.
19780 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
19781 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
19783 2015-02-25 Jakub Jelinek <jakub@redhat.com>
19786 * target.def (target_option_stream_in): New target hook.
19787 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
19788 targetm.target_option.post_stream_in if non-NULL.
19789 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
19790 * doc/tm.texi: Updated.
19791 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
19793 (TARGET_OPTION_POST_STREAM_IN): Redefine.
19795 2015-02-24 Jeff Law <law@redhat.com>
19798 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
19799 of operand 0 and operand 2.
19800 (zero_cost_loop_end, loop_end): Similarly.
19802 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
19804 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
19807 2015-02-24 DJ Delorie <dj@redhat.com>
19809 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
19810 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
19811 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
19812 instead of hardcoding SImode.
19814 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
19816 * omp-low.c (create_omp_child_function): Tag entrypoint
19817 functions with a special attribute.
19819 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
19822 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
19824 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
19826 PR rtl-optimization/65123
19827 * lra-remat.c (operand_to_remat): Check hard regs in insn
19830 2015-02-24 Nick Clifton <nickc@redhat.com>
19832 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
19835 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
19838 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
19839 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
19840 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
19841 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
19842 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
19843 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
19844 (BUILT_IN_GOACC_PARALLEL): Specify as
19845 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
19846 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
19847 * builtin-types.def
19848 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
19849 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
19850 Remove function types.
19851 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
19852 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
19853 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
19854 New function types.
19856 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
19858 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
19860 2015-02-24 Jakub Jelinek <jakub@redhat.com>
19862 PR tree-optimization/65170
19863 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
19864 if val[1] < 0, clear also val[2] and return 3.
19866 2015-02-24 Alan Modra <amodra@gmail.com>
19869 * config/rs6000/rs6000.c (get_memref_parts): Only return true
19870 when *base is a reg. Handle nested plus addresses. Simplify
19873 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
19875 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
19876 use natural alignment when optimizing for size.
19878 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
19881 * config/sh/sh.md (movsicc_true+3): Remove peephole.
19882 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
19883 * config/sh/sh.c (replace_n_hard_rtx): Remove.
19885 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
19888 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
19889 too big for a wide_int. Implement missing wrapping operation.
19891 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
19894 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
19895 instead of const_int 4294901760.
19897 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
19899 * config/avr/t-avr: Fix typo in comment.
19901 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
19903 * doc/rtl.texi (fma): Clarify documentation.
19905 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
19908 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
19909 over input_location.
19911 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
19913 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
19914 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
19915 restrict alignments to absolute_biggest_alignment.
19916 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
19918 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
19919 * doc/tm.texi: Regenerate.
19920 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
19922 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
19925 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
19927 2015-02-20 Richard Biener <rguenther@suse.de>
19929 PR tree-optimization/65136
19930 * tree-ssa-propagate.c: Include cfgloop.h.
19931 (replace_phi_args_in): Avoid replacing loop latch edge PHI
19932 arguments with constants.
19934 2015-02-20 Jakub Jelinek <jakub@redhat.com>
19935 Martin Liska <mliska@suse.cz>
19938 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
19939 don't try to create_thunk if stdarg_p. If
19940 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
19941 redirect_callers if possible.
19942 (sem_item_optimizer::execute): Call unregister_hooks here...
19943 (ipa_icf_driver): ... instead of here.
19945 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19947 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
19948 Mark operand 0 as earlyclobber in 2nd alternative.
19949 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
19950 Write negated shift amount into QI lowpart operand 0 and use it
19952 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
19954 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
19956 * cgraph.h (clone_function_name_1): Declare.
19957 * cgraphclones.c (clone_function_name_1): New function.
19958 (clone_function_name): Use it.
19959 * lto-partition.c: Include "stringpool.h".
19960 (must_not_rename, maybe_rewrite_identifier)
19961 (validize_symbol_for_target): New static functions.
19962 (privatize_symbol_name): Use must_not_rename.
19963 (promote_symbol): Call validize_symbol_for_target.
19964 (lto_promote_cross_file_statics): Likewise.
19965 (lto_promote_statics_nonwpa): Likewise.
19967 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
19970 * config/avr/avr.md (pushhi_insn): New insn.
19971 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
19973 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
19974 Jakub Jelinek <jakub@redhat.com>
19976 * tree-streamer.c (preload_common_nodes): Don't preload
19977 TI_VA_LIST* for offloading.
19978 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
19981 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
19983 * config/pa/pa.c (pa_emit_move_sequence): Always force
19984 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
19987 * config/pa/pa.c (pa_reloc_rw_mask): New function.
19988 (TARGET_ASM_RELOC_RW_MASK): Define.
19989 (pa_cannot_force_const_mem): Revert previous change.
19991 2015-02-19 Martin Jambor <mjmabor@suse.cz>
19992 Jan Hubicka <hubicka@ucw.cz>
19995 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
19996 across jump functions.
19998 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
20000 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
20002 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
20004 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
20006 2015-02-19 Richard Henderson <rth@redhat.com>
20008 PR middle-end/65074
20009 * varasm.c (default_binds_local_p_2): Don't test node->definition;
20010 test DECL_EXTERNAL independent of symtab_node.
20012 2015-02-19 Jakub Jelinek <jakub@redhat.com>
20015 * varpool.c (varpool_node::get_constructor): Return early
20016 if this->lto_file_data is NULL.
20018 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20020 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
20021 (rank_for_schedule_debug): Update.
20022 (ready_sort): Make static. Move sorting logic to ...
20023 (ready_sort_debug, ready_sort_real): New static functions.
20024 (schedule_block): Sort both debug insns and real insns in preparation
20025 for ready list trimming. Improve debug output.
20026 * sched-int.h (ready_sort): Remove global declaration.
20028 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
20030 * ipa-icf.c (sem_function::equals_private): Adjust.
20031 (sem_function::bb_dict_test): Take a vec<int> * instead of
20033 * ipa-icf.h (bb_dict_test): Likewise.
20035 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20037 PR gcov-profile/64634
20038 * tree-eh.c (frob_into_branch_around): Fix up typos
20039 in function comment.
20040 (lower_catch): Put eh_seq resulting from EH lowering of
20041 the cleanup sequence after the cleanup rather than before it.
20043 2015-02-18 Tom de Vries <tom@codesourcery.com>
20045 * common.opt (fstdarg-opt): New option.
20046 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
20047 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
20048 (@item -fstdarg-opt): New item.
20050 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
20053 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
20054 for common symbols.
20056 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20058 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
20060 (ALL_HOST_OBJS): Add mkoffload.o.
20061 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
20063 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
20065 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
20066 (compare_virtual_tables): Be smarter about skipping typeinfos;
20067 do sane output on virtual table table mismatch.
20068 (warn_odr): Be ready for forward declarations of enums;
20069 output sane info on base mismatch and virtual table mismatch.
20070 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
20071 when only one type is polymorphic.
20072 (get_odr_type): Fix hashtable corruption.
20073 (dump_odr_type): Dump mangled names.
20075 2015-02-18 Richard Biener <rguenther@suse.de>
20077 PR tree-optimization/65063
20078 * tree-predcom.c (determine_unroll_factor): Return 1 if we
20079 have replaced looparound PHIs.
20081 2015-02-18 Martin Liska <mliska@suse.cz>
20083 * lto-streamer.c (lto_streamer_init): Encapsulate
20084 streamer_check_handled_ts_structures with checking macro.
20086 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20089 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
20090 section if !implicit_section.
20091 (cgraph_node::create_version_clone_with_body): Likewise.
20092 * trans-mem.c (ipa_tm_create_version): Likewise.
20094 2015-02-18 Richard Biener <rguenther@suse.de>
20096 PR tree-optimization/62217
20097 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
20100 2015-02-18 Marek Polacek <polacek@redhat.com>
20103 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
20104 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
20105 is in range [-16K, -1]. Don't issue run-time error if
20106 (ptr > ptr + offset).
20108 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
20110 * doc/install.texi (nvptx-*-none): New section.
20111 * doc/invoke.texi (Nvidia PTX Options): Likewise.
20112 * config/nvptx/nvptx.opt: Update.
20114 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
20115 (access_check): New functions, copied from
20116 config/i386/intelmic-mkoffload.c.
20117 (main): For non-installed testing, look in all COMPILER_PATHs for
20120 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
20122 2015-02-18 Andrew Pinski <apinski@cavium.com>
20123 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
20125 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
20126 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
20128 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
20130 * ipa-visibility.c (function_and_variable_visibility): Only
20131 check locality if node is not already local.
20132 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
20133 call_for_symbol_and_aliases instead of
20134 call_for_symbol_thunks_and_aliases.
20135 (ipa_inline): Likewise.
20136 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20137 first walk aliases.
20138 * ipa.c (symbol_table::remove_unreachable_nodes): Use
20139 call_for_symbol_and_aliases.
20140 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
20141 (ipa_propagate_frequency_1): Use it; use opt_for_fn
20142 (ipa_propagate_frequency): Update.
20143 (ipa_profile): Add opt_for_fn gueards.
20145 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
20147 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
20148 * doc/invoke.texi (SH options): Document it.
20149 * config/sh/sh.c (sh_insn_length_adjustment): Check
20150 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
20152 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
20154 * common.opt (fipa-cp-alignment): New.
20155 * ipa-cp.c (ipcp_store_alignment_results): Check
20156 flag_ipa_cp_alignment.
20157 * opts.c (default_options_table): Enable -fipa-cp-alignment for
20159 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
20160 * doc/invoke.texi: Document -fipa-cp-alignment.
20162 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
20165 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
20166 to nil. Adjust comments.
20168 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
20170 * ipa-visibility.c (function_and_variable_visibility): Only
20171 check locality if node is not already local.
20172 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
20173 call_for_symbol_and_aliases instead of
20174 call_for_symbol_thunks_and_aliases.
20175 (ipa_inline): Likewise.
20176 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20177 first walk aliases.
20178 * ipa.c (symbol_table::remove_unreachable_nodes): Use
20179 call_for_symbol_and_aliases.
20180 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
20181 (ipa_propagate_frequency_1): Use it; use opt_for_fn
20182 (ipa_propagate_frequency): Update.
20183 (ipa_profile): Add opt_for_fn guards.
20185 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
20187 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
20188 skipping of "strange" tokens.
20190 2015-02-17 Jeff Law <law@redhat.com>
20192 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
20195 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
20197 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
20198 as forcing a HARD_DEP between instructions, thereby
20199 disallowing rewriting to break dependencies.
20201 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
20203 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
20204 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
20205 variables in boundary that have no inlitalizer encoded and are
20207 * varasm.c (default_binds_local_p_2): External definitions do not
20208 count as definitions here.
20210 2015-02-16 Jeff Law <law@redhat.com>
20212 PR tree-optimization/64823
20213 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
20215 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
20216 threading through blocks with PHIs, but no statements.
20217 (thread_through_normal_block): Distinguish between blocks where
20218 we did not process all the statements and blocks with no statements.
20220 2015-02-16 Jakub Jelinek <jakub@redhat.com>
20221 James Greenhalgh <james.greenhalgh@arm.com>
20224 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
20225 section if not linkonce. Fix up formatting.
20226 (cgraph_node::create_version_clone_with_body): Copy section.
20227 * trans-mem.c (ipa_tm_create_version): Likewise.
20229 2015-02-16 Richard Biener <rguenther@suse.de>
20231 PR tree-optimization/65077
20232 * tree-ssa-structalias.c (get_constraint_for_1): Handle
20233 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
20234 (find_func_aliases): Allow float values to carry pointers again.
20236 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
20238 * doc/install.texi (Specific): Reorder targets list to put
20239 aarch64 in alphabetical order. Add a link to aarch64*-*-*
20242 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
20243 David Edelsohn <dje.gcc@gmail.com>
20246 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
20247 mapping class to external variable or function reference.
20248 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
20251 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
20254 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
20255 ASM_WEAKEN_DECL if defined.
20257 2015-02-16 Richard Biener <rguenther@suse.de>
20260 * varasm.c (default_file_start): For LTO produced units
20261 emit <artificial> as file directive.
20263 2015-02-16 Richard Biener <rguenther@suse.de>
20265 PR tree-optimization/63593
20266 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
20267 stmts and releasing SSA names until...
20268 (execute_pred_commoning): ... after processing all chains.
20270 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
20273 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
20274 external functions.
20276 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
20278 * doc/bugreport.texi: Adjust section titles throughout the file
20279 to use "Title Case".
20280 * doc/extend.texi: Likewise.
20281 * doc/gcov.texi: Likewise.
20282 * doc/implement-c.texi: Likewise.
20283 * doc/implement-cxx.texi: Likewise.
20284 * doc/invoke.texi: Likewise.
20285 * doc/objc.texi: Likewise.
20286 * doc/standards.texi: Likewise.
20287 * doc/trouble.texi: Likewise.
20289 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
20291 * cgraph.h (symtab_node::has_aliases_p): Simplify.
20292 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
20293 * tree.c (lookup_binfo_at_offset): Make static.
20294 (get_binfo_at_offset): Do not shadow offset; add explanatory
20297 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
20299 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
20300 for all floading point loads and stores except those using a register
20302 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
20305 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
20307 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
20308 (do_estimate_growth_1): Record if any uninlinable edge was seen.
20309 (estimate_growth): Handle uninlinable edges correctly.
20310 (check_callers): New.
20311 (growth_likely_positive): Handle aliases correctly.
20313 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
20315 * ipa-chkp.c: Use iterate_direct_aliases.
20316 * symtab.c (resolution_used_from_other_file_p): Move inline.
20317 (symtab_node::create_reference): Fix formating.
20318 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
20319 (symtab_node::iterate_reference): Move inline.
20320 (symtab_node::iterate_referring): Move inline.
20321 (symtab_node::iterate_direct_aliases): Move inline.
20322 (symtab_node::used_from_object_file_p_worker): Inline into ...
20323 (symtab_node::used_from_object_file_p): ... this one; move inline.
20324 (symtab_node::call_for_symbol_and_aliases): Move inline;
20325 use iterate_direct_aliases.
20326 (symtab_node::call_for_symbol_and_aliases_1): New method.
20327 (cgraph_node::call_for_symbol_and_aliases): Move inline;
20328 use iterate_direct_aliases.
20329 (cgraph_node::call_for_symbol_and_aliases_1): New method.
20330 (varpool_node::call_for_node_and_aliases): Rename to ...
20331 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
20332 use iterate_direct_aliases.
20333 (varpool_node::call_for_symbol_and_aliases_1): New method.
20334 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
20335 (ipa_discover_readonly_nonaddressable_var): Update.
20336 * ipa-devirt.c: Fix formating.
20337 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
20339 (cgraph_node::call_for_symbol_and_aliases): Move inline.
20340 (cgraph_node::call_for_symbol_and_aliases_1): New function..
20341 * cgraph.h (used_from_object_file_p_worker): Remove.
20342 (resolution_used_from_other_file_p): Move inline.
20343 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
20344 (symtab_node::iterate_reference): Move inline.
20345 (symtab_node::iterate_referring): Move inline.
20346 (symtab_node::iterate_direct_aliases): Move inline.
20347 (symtab_node::used_from_object_file_p_worker): Inline into ...
20348 (symtab_node::used_from_object_file_p): Move inline.
20349 * tree-emutls.c (ipa_lower_emutls): Update.
20350 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
20351 (varpool_node::call_for_node_and_aliases): Remove.
20353 2015-02-14 Jakub Jelinek <jakub@redhat.com>
20355 PR tree-optimization/62209
20356 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
20357 op == range->exp, insert seq and gimplified code after labels
20358 instead of after the phi.
20360 2015-02-13 Jeff Law <law@redhat.com>
20363 Revert my change for tree-optimization/64823.
20365 2015-02-13 Jakub Jelinek <jakub@redhat.com>
20367 PR tree-optimization/65053
20368 * tree-ssa-phiopt.c (value_replacement): When moving assign before
20369 cond, either reset VR on lhs or set it to phi result VR.
20371 2015-02-13 Jeff Law <law@redhat.com>
20373 PR tree-optimization/64823
20374 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
20375 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
20376 threading through blocks with PHIs, but no statements.
20377 (thread_through_normal_block): Distinguish between blocks where
20378 we did not process all the statements and blocks with no statements.
20380 PR rtl-optimization/47477
20381 * match.pd (convert (plus/minus (convert @0) (convert @1): New
20382 simplifier to narrow arithmetic.
20384 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
20387 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
20388 polymorphic call info when type is not known to be preserved.
20390 2015-02-13 Maritn Jambor <mjambor@suse.cz>
20393 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
20394 (inline_call): Use it.
20396 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
20398 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
20399 GOMP_DEVICE_NVIDIA_PTX.
20401 2015-02-13 Jakub Jelinek <jakub@redhat.com>
20404 * stmt.c (emit_case_nodes): Use void_type_node instead of
20405 NULL_TREE as LABEL_DECL type.
20407 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
20409 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
20411 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
20412 symbolic references to data to be forced to constant memory on the
20415 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
20417 PR tree-optimization/65002
20418 * tree-cfg.c (pass_data_fixup_cfg): Don't update
20420 * tree-sra.c (some_callers_have_no_vuse_p): New.
20421 (ipa_early_sra): Reject functions whose callers
20422 assume function is read only.
20424 2015-02-13 Richard Biener <rguenther@suse.de>
20427 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
20428 for LTO produced CUs.
20430 2015-02-13 Bin Cheng <bin.cheng@arm.com>
20432 PR tree-optimization/64705
20433 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
20434 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
20435 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
20436 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
20437 expand_simple_operations.
20439 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
20440 Richard Henderson <rth@redhat.com>
20443 * cgraphunit.c (cgraph_node::finalize_function): Set definition
20444 before notice_global_symbol.
20445 (varpool_node::finalize_decl): Likewise.
20446 * varasm.c (default_binds_local_p_2): Rename from
20447 default_binds_local_p_1, add weak_dominate argument. Use direct
20448 returns instead of assigning to local variable. Unify varpool and
20449 cgraph paths via symtab_node. Reject undef weak variables before
20450 testing visibility. Reorder tests for simplicity.
20451 (default_binds_local_p): Use default_binds_local_p_2.
20452 (default_binds_local_p_1): Likewise.
20453 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
20455 (default_elf_asm_output_external): Emit visibility when specified.
20457 2015-02-13 Alan Modra <amodra@gmail.com>
20459 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
20460 code setting up r11 for out-of-line fp restore.
20462 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
20464 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
20465 (muser-mode): Likewise.
20467 2015-02-13 Alan Modra <amodra@gmail.com>
20469 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
20470 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
20472 2015-02-12 David Howells <dhowells@redhat.com>
20474 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
20476 * tree-ssa-uninit.c (dump_predicates): Likewise.
20477 * opts.c (print_filtered_help): Likewise.
20479 2015-02-12 Jakub Jelinek <jakub@redhat.com>
20481 * dwarf2out.c (output_die): Use "%s", name instead of name to
20482 avoid -Wformat-security warning.
20484 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
20485 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20486 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
20487 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20489 2015-02-12 Jason Merrill <jason@redhat.com>
20491 * common.opt (-flifetime-dse): New.
20493 2015-02-12 Jakub Jelinek <jakub@redhat.com>
20496 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
20498 PR tree-optimization/65014
20499 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
20500 use original second operand of arg0 or arg1 instead of
20501 that adjusted by STRIP_NOPS.
20503 2015-02-11 Jeff Law <law@redhat.com>
20506 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
20507 that needs to be queued, just queue it for a single cycle.
20509 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
20511 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
20512 bodies of thunks; comment on why.
20513 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
20514 symbols are extern.
20516 2015-02-11 Richard Henderson <rth@redhat.com>
20519 * tree-eh.c (mark_reachable_handlers): Mark source and destination
20520 regions of __builtin_eh_copy_values.
20522 2015-02-11 Jakub Jelinek <jakub@redhat.com>
20524 PR middle-end/65003
20525 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
20526 ultimate alias is MEM with SYMBOL_REF satisfying
20527 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
20528 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
20530 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
20532 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
20533 "diagnostic-core.h".
20534 (main): Initialize progname, and call diagnostic_initialize.
20536 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
20537 instead of __OPENMP_TARGET__.
20539 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
20540 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
20541 hard-coding PTX_ID.
20543 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
20545 * doc/sourcebuild.texi (pie_enabled): Document.
20547 2015-02-11 Martin Liska <mliska@suse.cz>
20550 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
20551 a return value for call to a function that is noreturn.
20553 2015-02-11 Richard Biener <rguenther@suse.de>
20556 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
20559 2015-02-11 Andrew Pinski <apinski@cavium.com>
20562 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
20563 Change the first argument type to size_type_node and add another
20565 (aarch64_simd_expand_builtin): Handle the new argument to
20566 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
20567 print an out when the first two arguments are not
20568 nonzero integer constants.
20569 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
20570 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
20572 2015-02-11 Jakub Jelinek <jakub@redhat.com>
20575 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
20576 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
20577 (ix86_set_current_function): Rewritten.
20578 (ix86_add_new_builtins): Temporarily clear current_target_pragma
20579 when creating builtin fndecls.
20581 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
20584 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
20586 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
20587 have no comdat group.
20588 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
20589 (lto_output_varpool_node): Always output alias info.
20590 (output_refs): Output refs of boundary aliases, too.
20591 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
20592 (output_symtab): Output call eges in thunks in boundary.
20593 (get_alias_symbol): Remove.
20594 (input_node, input_varpool_node): Do not special case weakrefs.
20595 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
20596 alias and thunks targets in the boundary; do not take removed symbols
20597 from their comdat groups.
20598 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
20599 (cgraph_node::global_info): Remove.
20600 (cgraph_node::rtl_info): Look through aliases and thunks.
20601 * cgrpah.h (global_info): Remove.
20602 (non_local_p): Remove.
20604 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
20605 Sandra Loosemore <sandra@codesourcery.com>
20607 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
20608 to inline asm. List dialects in proper order.
20610 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
20611 Sandra Loosemore <sandra@codesourcery.com>
20613 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
20615 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
20617 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
20618 modified) reference to Solaris.
20620 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
20622 * doc/extend.texi (Extended Asm): Fix typos.
20624 2015-02-10 Jakub Jelinek <jakub@redhat.com>
20627 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
20629 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
20632 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
20633 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
20634 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
20635 * config/sh/constraints.md (Ara, Add): New constraints.
20636 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
20638 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
20639 atomic_mem_operand_0. Don't use force_reg on the memory address.
20640 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
20641 Sra constraint. Convert to insn_and_split. Add workaround for
20643 (atomic_compare_and_swap<mode>_hard): Copy to
20644 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
20645 Use atomic_mem_operand_0 predicate.
20646 (atomic_compare_and_swap<mode>_soft_gusa,
20647 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
20648 AraAdd constraints.
20649 (atomic_compare_and_swap<mode>_soft_tcb,
20650 atomic_compare_and_swap<mode>_soft_imask,
20651 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
20652 atomic_mem_operand_0 predicate and SraSdd constraints.
20653 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
20655 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
20656 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
20657 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
20658 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
20659 force_reg on the memory address.
20660 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
20661 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
20662 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
20663 atomic_mem_operand_1 predicate and Sra constraint.
20664 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
20665 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
20666 Use atomic_mem_operand_1 predicate.
20667 (atomic_<fetchop_name><mode>_hard): Copy to
20668 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
20669 Use atomic_mem_operand_1 predicate.
20670 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
20671 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
20672 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
20673 insn_and_split. Use atomic_mem_operand_1 predicate.
20674 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
20675 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
20676 Use atomic_mem_operand_1 predicate.
20677 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
20678 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
20679 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
20680 in generated insn with original mem operand before emitting the insn.
20681 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
20682 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
20683 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
20684 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
20685 Use atomic_mem_operand_1 predicate and AraAdd constraints.
20686 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
20687 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
20688 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
20689 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
20690 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
20691 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
20692 atomic_not_fetch<mode>_soft_tcb,
20693 atomic_<fetchop_name>_fetch<mode>_soft_imask,
20694 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
20695 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
20696 Use atomic_mem_operand_1 predicate and SraSdd constraints.
20698 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
20700 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
20701 and 3 earlyclobber operands.
20703 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
20705 * common.opt (fstack-reuse): Mark as optimization.
20707 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
20710 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
20712 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
20714 PR tree-optimization/64326
20715 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
20717 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
20719 PR gcov-profile/61889
20720 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
20722 2015-02-10 Richard Biener <rguenther@suse.de>
20724 PR tree-optimization/64995
20725 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
20726 value we use is final.
20727 (visit_reference_op_store): Always valueize op.
20728 (visit_use): Properly valueize vuses.
20730 2015-02-10 Richard Biener <rguenther@suse.de>
20732 PR tree-optimization/64909
20733 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
20734 pass a scalar-stmt count estimate to the cost model.
20735 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
20737 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
20739 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
20740 enabled by default together with var-tracking.
20742 2015-02-10 Nick Clifton <nickc@redhat.com>
20744 * config/rl78/rl78.c: Remove DIV attribute code accidentally
20745 included in previous rl78 commit.
20747 2015-02-10 Richard Biener <rguenther@suse.de>
20749 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
20750 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
20751 return the bitpack.
20753 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
20755 PR gcov-profile/61889
20756 * config.in: regenerate.
20757 * configure.in: Likewise.
20758 * configure.ac: Check for ftw.h.
20759 * gcov-tool.c: Check for ftw.h before using nftw.
20761 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
20764 * ipa-visibility.c (update_visibility_by_resolution_info): Only
20765 assert when not in lto mode.
20767 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20769 * ira-color.c (setup_left_conflict_sizes_p): Simplify
20770 initialization/assignment of conflict_size.
20772 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
20775 * ipa-cp.c (gather_caller_stats): Skip thunks.
20776 (propagate_constants_topo): Skip aliases.
20778 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
20781 * config/sh/sh.c (sh_option_override): Don't change
20782 -freorder-blocks-and-partition to -freorder-blocks even when
20783 unwinding is enabled.
20784 (sh_can_follow_jump): Return false if the followee jump is
20785 a crossing jump when -freorder-blocks-and-partition is specified.
20786 * config/sh/sh.md (*jump_compact_crossing): New insn.
20788 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
20789 Kaz Kojima <kkojima@gcc.gnu.org>
20792 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
20793 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
20794 (sh_can_redirect_branch): Rename to ...
20795 (sh_can_follow_jump): ... this. Constify argument types.
20796 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
20797 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
20798 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
20799 * doc/tm.texi: Regenerate.
20801 2015-02-09 Jakub Jelinek <jakub@redhat.com>
20804 * builtins.c (expand_builtin): Call targetm.expand_builtin
20805 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
20807 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20810 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
20812 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20815 * ipa-icf.c (set_local): New function.
20816 (sem_function::merge): Use it.
20818 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20820 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
20821 (add_type_duplicate): Fix comparison of BINFOs.
20823 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20825 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
20826 on getting VOID pointer.
20828 2015-02-09 Jakub Jelinek <jakub@redhat.com>
20831 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
20834 2015-02-09 Richard Biener <rguenther@suse.de>
20836 * genmatch.c (replace_id): Copy expr_type.
20838 2015-02-09 Richard Biener <rguenther@suse.de>
20840 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
20841 (streamer_write_tree_bitfields): Declare.
20842 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
20843 properly unpack padding.
20844 (unpack_value_fields): Inline ...
20845 (streamer_read_tree_bitfields): ... here.
20846 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
20847 and properly add padding bits.
20848 (streamer_pack_tree_bitfields): Fold into ...
20849 (streamer_write_tree_bitfields): ... this new function,
20850 exposing the bitpack object.
20851 * lto-streamer-out.c (lto_write_tree_1): Call
20852 streamer_write_tree_bitfields.
20854 2015-02-09 Richard Biener <rguenther@suse.de>
20856 PR tree-optimization/54000
20857 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
20858 (struct ivopts_data): Add loop_loc member.
20859 (tree_ssa_iv_optimize_loop): Dump loop location.
20860 (create_new_ivs): Likewise, also dump number of IVs generated.
20862 2015-02-09 Martin Liska <mliska@suse.cz>
20864 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
20865 just if not yet registered.
20866 (ipa_icf_generate_summary): Register callgraph hooks.
20868 2015-02-08 Andrew Pinski <apinski@cavium.com>
20870 * config/aarch64/aarch64.c (gty_dummy): Delete.
20872 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20875 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
20876 (cgraph_node::local_p): Remove thunk related FIXME.
20878 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20881 * i386.c (ix86_function_regparm): Look through aliases to see if callee
20882 is local and optimized.
20883 (ix86_function_sseregparm): Likewise; also use target's SSE math
20884 settings; error out instead of silently generating wrong code
20886 (init_cumulative_args): Look through aliases.
20888 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20891 * ipa-split.c (execute_split_functions): Split if function has aliases.
20893 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20896 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
20897 aliases before trying to expand it.
20898 (cgraph_node::expand_thunk): Fix formating.
20900 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
20902 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
20903 (Using Assembly Language with C): Expand introduction.
20904 (Basic Asm): Copy-edit. Add more information about uses of
20906 (Extended Asm): Copy-edit. Document new escape syntax and
20908 (Global Reg Vars): Copy-edit.
20909 (Local Reg Vars): Likewise.
20911 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
20915 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
20916 (DBX_CONTIN_CHAR): Define.
20918 2015-02-06 Sebastian Pop <s.pop@samsung.com>
20919 Brian Rzycki <b.rzycki@samsung.com>
20921 PR tree-optimization/64878
20922 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
20923 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
20924 Stop recursion at loop phi nodes after having visited a loop phi node.
20926 2015-02-06 Jakub Jelinek <jakub@redhat.com>
20928 * toplev.c (process_options): Change flag_ipa_ra before creating
20929 optimization_{default,current}_node.
20932 * cgraphunit.c (cgraph_node::expand_thunk): If
20933 restype is not is_gimple_reg_type nor the thunk_fndecl
20934 returns aggregate_value_p, set restmp to a temporary variable
20935 instead of resdecl.
20937 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
20939 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
20941 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
20944 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
20945 add a general secondary reload handler for SDmode, unless we have
20946 both read/write support for SDmode.
20948 2015-02-06 Jakub Jelinek <jakub@redhat.com>
20950 PR middle-end/64937
20951 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
20952 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
20953 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
20954 1 before, push it to abstract_vec.
20955 (dwarf2out_abstract_function): Adjust caller. Don't call
20956 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
20957 DECL_ABSTRACT_P flags for all abstract_vec elts.
20959 2015-02-06 Renlin Li <renlin.li@arm.com>
20961 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
20963 * tree-ssa.c (execute_update_addresses_taken): Likewise.
20965 2015-02-06 Jeff Law <law@redhat.com>
20968 * config/h8300/h8300.c (push): New argument "in_prologue".
20969 Pass "in_prologue" along to "F".
20970 (h8300_push_pop): Corresponding changes.
20971 (h8300_expand_prologue): Likewise.
20972 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
20974 2015-02-06 Jakub Jelinek <jakub@redhat.com>
20976 PR rtl-optimization/64957
20978 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
20979 IOR rather than for AND.
20981 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
20984 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
20985 of shift-add and (add + shift) operations. Rename local variable.
20987 2015-02-05 Jeff Law <law@redhat.com>
20990 * config/h8300/constraints.md (U): Correctly dectect
20991 "eightbit_data" memory addresses.
20992 * config/h8300/h8300.c (eightbit_constant_address_p): Also
20993 handle (const (plus (symbol_ref (x)))) where x is declared
20994 as an 8-bit data memory address.
20995 * config/h8300/h8300.md (call, call_value): Correctly detect
20996 "funcvec" functions.
20999 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
21000 24 to 28 bits for the H8/300.
21002 2015-02-06 Alan Modra <amodra@gmail.com>
21005 * config/rs6000/rs6000.c (chain_already_loaded): New function.
21006 (rs6000_call_aix): Use it.
21008 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
21010 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
21013 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
21015 * config/h8300/constraints.md ("U" constraint): Use strict
21016 variant of REG_OK_FOR_BASE_P after reload has started.
21018 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
21020 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
21021 define to zero if !TARGET_NEON.
21022 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
21024 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21025 Trevor Saunders <tsaunders@mozilla.com>
21028 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
21030 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21033 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
21034 when removing varpool nodes.
21036 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21039 * varpool.c (varpool_node::remove): Fix order of variables.
21041 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21044 * ipa-inline.c (inline_small_functions): Fix ordering issue between
21045 speculation resolution and key updates.
21047 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21049 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
21050 about not letting any speculative edges unupdated.
21052 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21055 * gcov-io.c (gcov_var): Export.
21057 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21059 PR middle-end/64922
21060 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
21061 edges that become speculative.
21063 2015-02-04 Jakub Jelinek <jakub@redhat.com>
21065 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
21066 or DW_LANG_Fortran08.
21067 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
21069 (gen_compile_unit_die): Handle "GNU Fortran2003" and
21070 "GNU Fortran2008" language strings.
21071 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
21072 * langhooks.h (lang_GNU_Fortran): New prototype.
21073 * langhooks.c (lang_GNU_Fortran): New function.
21074 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
21077 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
21079 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
21080 (RTX_OK_FOR_OLO10_P): Likewise.
21082 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
21084 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
21086 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21088 PR middle-end/64922
21089 * gimple.c: Include gimple-ssa.h.
21090 (maybe_remove_unused_call_args): New function.
21091 * gimple.h (maybe_remove_unused_call_args): Declare.
21092 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
21093 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
21094 * gimple-fold.c (gimple_fold_call): Likewise.
21096 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
21098 PR rtl-optimization/64905
21099 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
21100 pointer alignment if it isn't needed.
21102 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
21104 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
21105 cortex-a72.cortex-a53.
21106 * config/aarch64/aarch64-tune.md: Regenerate.
21107 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
21109 2015-02-04 Nick Clifton <nickc@redhat.com>
21111 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
21114 2015-02-04 Jakub Jelinek <jakub@redhat.com>
21116 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
21117 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
21118 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
21120 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
21121 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
21122 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
21123 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
21124 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
21125 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
21126 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
21127 * tree-core.h (enum built_in_function): In between
21128 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
21129 for builtins that use DEF_BUILTIN_CHKP macro.
21131 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
21134 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
21135 operands for tcc_comparison exprs. Fix typos.
21138 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
21139 of two XORs that have an intervening AND or IOR.
21142 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
21143 simplification of XOR of AND to not allocate new rtx before
21144 committing to a simplification.
21146 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21148 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
21149 manual swaps in all peepholes.
21151 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21153 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
21154 of manual swapping implementation.
21155 (aarch64_expand_vec_perm_const_1): Likewise.
21157 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
21159 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
21160 (generic_addrcost_table): Remove NAMED_PARAM.
21161 (cortexa57_addrcost_table): Likewise.
21162 (xgene1_addrcost_table): Likewise.
21163 (generic_regmove_table): Likewise.
21164 (cortexa53_regmove_table): Likewise.
21165 (xgene1_regmove_table): Likewise.
21166 (generic_vector_table): Likewise.
21167 (cortexa57_vector_table): Likewise.
21168 (xgene1_vector_table): Likewise.
21169 (generic_tunings): Likewise.
21170 (cortexa53_tunings): Likewise.
21171 (cortexa57_tunings): Likewise.
21172 (xgene1_tunings): Likewise.
21174 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
21176 * config/arm/arm-cores.def: Add cortex-a72 and
21177 cortex-a72.cortex-a53.
21178 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
21179 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
21180 * config/arm/arm-tune.md: Regenerate.
21181 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
21182 "cortex-a72.cortex-a53".
21183 * doc/invoke.texi (ARM Options/-mtune): Likewise.
21185 2015-02-04 Nick Clifton <nickc@redhat.com>
21188 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
21190 (nonimmediate_di_operand): Likewise.
21192 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
21193 prefixes of known F5 using MSP430 MCUs.
21195 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21197 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
21198 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
21199 instead of __builtin_sqrt.
21201 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
21203 * varasm.c (do_assemble_alias): Follow transparent alias
21205 (default_assemble_visibility): Follow transparent alias
21206 chain for decl name.
21208 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
21210 PR middle-end/62103
21211 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
21212 to compute size of referenced value in the constant case.
21214 2015-02-03 Jakub Jelinek <jakub@redhat.com>
21216 PR rtl-optimization/64756
21217 * cse.c (invalidate_dest): New function.
21218 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
21219 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
21220 invalidate and do not record it.
21222 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
21225 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
21226 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
21227 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
21228 atomic_nand<mode>_soft_tcb): New insns.
21229 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
21230 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
21231 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
21232 Split into atomic_not_fetchsi_hard if operands[0] is unused.
21233 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
21234 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
21235 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
21236 atomic_not<mode>_hard if operands[0] is unused.
21237 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
21238 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
21239 if operands[0] is unused.
21240 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
21241 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
21242 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
21243 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
21245 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
21246 into atomic_not<mode>_soft_tcb if operands[0] is unused.
21247 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
21248 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
21249 if operands[0] is unused.
21250 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
21251 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
21252 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
21253 atomic_nand_fetchsi_hard if operands[0] is unused.
21254 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
21255 atomic_nand<mode>_hard if operands[0] is unused.
21256 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
21257 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
21258 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
21259 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
21260 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
21261 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
21262 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
21263 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
21264 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
21265 atomic_not<mode>_hard if operands[0] is unused.
21266 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
21267 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
21269 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
21270 into atomic_not<mode>_soft_tcb if operands[0] is unused.
21271 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
21272 atomic_nand<mode>_hard if operands[0] is unused.
21273 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
21274 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
21276 2015-02-03 David Malcolm <dmalcolm@redhat.com>
21279 * Makefile.in (GCC_OBJS): Add gcc-main.o.
21280 * gcc-main.c: New file, containing "main" taken from gcc.c.
21281 * gcc.c (do_self_spec): Free decoded_options.
21282 (class driver): Move declaration to gcc.h.
21283 (main): Move declaration and implementation to new file
21285 (driver_get_configure_time_options): New function.
21286 * gcc.h (class driver): Move this declaration here, from
21288 (driver_get_configure_time_options): New declaration.
21290 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
21292 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
21293 cross-module inlining.
21294 * cgraph.h (cgraph_node): Add flag merged.
21295 * ipa-icf.c (sem_function::merge): Maintain it.
21297 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
21299 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
21300 instead of OBJECT_P.
21302 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
21305 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
21306 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
21307 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
21308 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
21310 2015-02-03 Jakub Jelinek <jakub@redhat.com>
21313 * combine.c (reg_n_sets_max): New variable.
21314 (can_change_dest_mode, reg_nonzero_bits_for_combine,
21315 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
21316 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
21317 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
21318 (rest_of_handle_combine): Initialize reg_n_sets_max.
21320 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
21322 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
21323 if some always_inline was inlined, apply changes before inlining
21326 2015-02-02 David Malcolm <dmalcolm@redhat.com>
21329 * config/arm/arm.c (arm_option_override): Set
21330 arm_selected_arch/cpu/tune to NULL on entry.
21332 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
21333 Andrew Pinski <pinskia@gcc.gnu.org>
21334 Jakub Jelinek <jakub@gcc.gnu.org>
21337 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
21338 integer typing for small model. Use IN_RANGE.
21340 2015-02-02 Richard Biener <rguenther@suse.de>
21342 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
21343 * tree-vrp.c (vrp_valueize_1): Likewise.
21345 2015-02-02 Alan Modra <amodra@gmail.com>
21347 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
21348 than mem for toc_restore.
21349 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
21350 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
21351 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
21353 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
21356 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
21357 explicit default options.
21359 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
21362 * ipa-utils.c (ipa_merge_profiles): Add release argument.
21363 * ipa-icf.c (sem_function::merge): Do not release body when merging.
21364 * ipa-utils.h (ipa_merge_profiles): Update prototype.
21366 2015-02-01 Jakub Jelinek <jakub@redhat.com>
21369 * cfgexpand.c (deep_ter_debug_map): New variable.
21370 (avoid_deep_ter_for_debug): New function.
21371 (expand_debug_expr): If TERed SSA_NAME is in
21372 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
21373 instead of trying to expand SSA_NAME's def stmt.
21374 (expand_debug_locations): When expanding debug bind
21375 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
21376 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
21378 (pass_expand::execute): Call avoid_deep_ter_for_debug on
21379 all debug bind stmts. Delete deep_ter_debug_map after
21380 expand_debug_location if non-NULL and clear it.
21382 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
21385 * config/sh/sync.md (atomic_fetch_notsi_hard,
21386 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
21387 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
21388 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
21389 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
21390 atomic_not_fetch<mode>_soft_imask): New insns.
21392 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21394 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
21395 (rank_for_schedule_debug): Split from ...
21396 (rank_for_schedule): ... this.
21397 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
21398 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
21400 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
21402 * doc/md.texi (Machine Constraints): Alphabetize table by target.
21403 * doc/extend.texi (x86 Variable Attributes): Move section to
21404 correct alphabetization after renaming.
21405 (x86 Type Attributes): Likewise.
21406 (Target Builtins): Re-alphabetize menu.
21407 (x86 Built-in Functions): Move section to correct alphabetization
21409 (x86 transactional memory intrinsics): Likewise.
21410 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
21411 and x86 Windows Options in table and menu.
21412 (x86 Options): Move section to correct alphabetization after
21414 (x86 Windows Options): Likewise.
21416 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
21418 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
21419 preferred names of the architecture and its 32- and 64-bit
21421 * doc/invoke.texi: Likewise.
21422 * doc/md.texi: Likewise.
21424 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
21427 * config/i386/predicates.md (address_no_seg_operand): Reject
21428 non-CONST_INT_P operands in invalid mode.
21430 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
21432 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
21433 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
21434 * config/i386/predicates.md (address_no_seg_operand): Call
21435 address_operand with VOIDmode.
21436 (vsib_address_operand): Ditto.
21437 (address_mpx_no_base_operand): Ditto.
21438 (address_mpx_no_index_operand): Ditto.
21440 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
21443 * lra-constraints.c (original_subreg_reg_mode): New.
21444 (simplify_operand_subreg): Try to simplify subreg of const. Use
21445 original_subreg_reg_mode for it.
21446 (swap_operands): Update original_subreg_reg_mode.
21447 (curr_insn_transform): Set up original_subreg_reg_mode.
21449 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
21452 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
21454 (process_alt_operands): Use it.
21455 (curr_insn_transform): Check the optional reload pseudo class is
21458 2015-01-30 Joseph Myers <joseph@codesourcery.com>
21460 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
21461 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
21463 * toplev.h (init_asm_output): Update comment on use of
21464 UNKNOWN_LOCATION with fatal_error.
21465 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
21466 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
21467 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
21468 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
21469 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
21470 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
21471 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
21472 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
21473 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
21474 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
21475 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
21476 fatal_error changed to pass input_location as first argument.
21478 2015-01-30 Martin Liska <mliska@suse.cz>
21480 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
21481 in #pragma GCC diagnostic guards.
21483 2015-01-30 Richard Biener <rguenther@suse.de>
21485 PR tree-optimization/64829
21486 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
21487 not add a widening conversion pattern but hand off extra
21488 widenings to callers.
21489 (vect_recog_widen_mult_pattern): Handle extra widening produced
21490 by vect_handle_widen_op_by_const.
21491 (vect_recog_widen_shift_pattern): Likewise.
21492 (vect_pattern_recog_1): Remove excess vertical space in dumping.
21493 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21494 (vect_init_vector_1): Likewise.
21495 (vect_get_vec_def_for_operand): Likewise.
21496 (vect_finish_stmt_generation): Likewise.
21497 (vectorizable_load): Likewise.
21498 (vect_analyze_stmt): Likewise.
21499 (vect_is_simple_use): Likewise.
21501 2015-01-29 Jeff Law <law@redhat.com>
21503 * combine.c (try_combine): Fix typo in comment.
21505 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
21508 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
21509 (rs6000_stack_info): Add assert.
21510 (rs6000_output_savres_externs): New function, split off from...
21511 (rs6000_output_function_prologue): ... here. Do not call it for
21514 2015-01-29 Jeff Law <law@redhat.com>
21517 * combine.c (try_combine): If I0 is a memory load and I3 a store
21518 to a related address, increase the "goodness" of doing a 4-insn
21519 combination with I0-I3.
21520 (make_field_assignment): Handle SUBREGs in the ior+and case.
21522 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
21524 PR tree-optimization/64746
21525 * tree-if-conv.c (mask_exists): New function.
21526 (predicate_mem_writes): Save created mask with given size for further
21528 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
21529 (ifcvt_repair_bool_pattern): Collect all statements that are root
21530 of bool pattern and use iterative algorithm to remove multiple uses
21531 of predicates, display number of required iterations.
21533 2015-01-29 Richard Biener <rguenther@suse.de>
21535 PR tree-optimization/64853
21536 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
21537 stmt will get simulated again.
21538 * tree-ssa-ccp.c (valueize_op_1): Likewise.
21540 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21542 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
21543 return_in_pc. Remove redundant assignments.
21544 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
21545 (arm_expand_epilogue): Don't compare boolean with true in if condition.
21547 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
21549 * config/i386/i386.c (ix86_mode_after): Make static.
21551 2015-01-29 Richard Biener <rguenther@suse.de>
21553 PR tree-optimization/64844
21554 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
21555 dump cost model analysis.
21556 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21557 Do not register adjusted load/store costs here.
21559 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
21560 Uros Bizjak <ubizjak@gmail.com>
21562 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
21563 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
21564 using x86_use_pseudo_pic_reg.
21565 * config/i386/i386.c (ix86_conditional_register_usage): Remove
21566 support for fixed PIC register.
21567 (ix86_use_pseudo_pic_reg): Not static any more.
21569 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
21571 PR middle-end/64805
21572 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
21573 to avoid error in cgraph node verification.
21575 2015-01-29 Marek Polacek <polacek@redhat.com>
21577 * doc/standards.texi: Reflect that the default for C is gnu11.
21579 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
21582 * reorg.c (switch_text_sections_between_p): New function.
21583 (relax_delay_slots): Call it when testing if the jump insn
21584 is removable. Use targetm.can_follow_jump when testing if
21585 the conditional branch can follow an unconditional jump.
21587 2015-01-27 Caroline Tice <cmtice@google.com>
21589 Committing VTV Cywin/Ming patch for Patrick Wollgast
21590 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
21591 if -fvtable-verify=preinit/std is used.
21592 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
21593 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
21594 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
21595 if -fvtable-verify=preinit/std is used.
21596 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
21597 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
21598 if -fvtable-verify=preinit/std is used.
21599 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
21600 * config/i386/mingw32.h (LIB_SPEC): Likewise.
21601 * varasm.c (assemble_variable): Add code to properly set the comdat
21602 section and name for the .vtable_map_vars section in case the
21603 target is PE or COFF.
21605 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
21608 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
21609 make sane BB profile.
21610 (cgraph_node::expand_thunk): Make sane BB profile.
21611 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
21612 * cgraph.h (init_lowered_empty_function): Update prototype.
21613 * config/i386/i386.c (make_resolver_func): Update call.
21614 * predict.c (gate): Disable branch prediction pass if
21615 profile is already there.
21617 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
21619 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
21620 * opth-gen.awk: Likewise.
21621 * common.opt: Mark flag_fp_contract_mode as Optimization.
21623 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
21625 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
21626 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
21628 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
21631 * config/sh/predicates.md (atomic_arith_operand,
21632 atomic_logical_operand): Remove.
21633 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
21634 (atomic_arith_operand_0): New predicate.
21635 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
21636 Use atomic_arith_operand_0 for input values.
21637 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
21638 atomic_compare_and_swap<mode>_soft_gusa,
21639 atomic_compare_and_swap<mode>_soft_tcb,
21640 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
21641 arith_reg_operand instead of register_operand.
21642 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
21643 atomic_arith_operand_0 for newval input.
21644 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
21645 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
21646 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
21647 arith_reg_operand instead of register_operand.
21648 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
21649 fetchop_predicate_1, fetchop_constraint_1_llcs,
21650 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
21651 fetchop_constraint_1_imask): New code iterator attributes.
21652 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
21653 register_operand. Use fetchop_predicate_1.
21654 (atomic_fetch_<fetchop_name>si_hard,
21655 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
21656 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
21657 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
21658 and arith_reg_operand instead of register_operand. Use
21659 fetchop_predicate_1, fetchop_constraint_1_gusa.
21660 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
21661 and arith_reg_operand instead of register_operand. Use
21662 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
21664 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
21665 and arith_reg_operand instead of register_operand. Use
21666 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
21668 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
21669 register_operand. Use atomic_logical_operand_1.
21670 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
21671 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
21672 arith_reg_operand instead of register_operand.
21673 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
21674 Use arith_reg_dest and arith_reg_operand instead of register_operand.
21675 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
21676 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
21677 register_operand. Use fetchop_predicate_1.
21678 (atomic_<fetchop_name>_fetchsi_hard,
21679 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
21680 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21681 fetchop_constraint_1_llcs.
21682 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
21683 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21684 fetchop_constraint_1_gusa.
21685 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
21686 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21687 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
21688 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
21689 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21690 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
21691 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
21692 register_operand. Use atomic_logical_operand_1.
21693 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
21694 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
21695 arith_reg_operand instead of register_operand.
21696 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
21697 arith_reg_operand instead of register_operand. Use logical_operand
21698 and K08. Adjust asm sequence to allow R0 usage.
21699 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
21700 arith_reg_operand instead of register_operand. Use logical_operand
21703 2015-01-28 Jakub Jelinek <jakub@redhat.com>
21706 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
21707 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
21708 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
21709 only get_full_len HOST_WIDE_INTs from get_val () array rather than
21710 all bits in *val_wide.
21712 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
21714 * varpool.c (tls_model_names): Fix names.
21715 (varpool_node::dump): Dump tls- prefix for tls models.
21717 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
21718 Bernd Schmidt <bernds@codesourcery.com>
21719 Nathan Sidwell <nathan@codesourcery.com>
21721 * config/nvptx/mkoffload.c: New file.
21722 * config/nvptx/t-nvptx: Add build rules for it.
21723 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
21724 (extra_programs): Add mkoffload.
21725 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
21727 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
21729 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
21731 PR middle-end/64809
21732 * cfgexpand.c (reorder_operands): Skip debug gimples.
21734 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
21736 PR tree-optimization/64277
21737 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
21738 range info when possible to refine estimation.
21740 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
21742 PR tree-optimization/64718
21743 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
21744 be a 16bit unsigned integer when n->range is 16.
21745 (bswap_replace): Convert src to that type if necessary for all bswap
21746 sizes. Fix rotation right notation in nearby comment. Use bswap_type
21747 set in pass_optimize_bswap::execute ().
21749 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
21751 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
21752 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
21753 integer and floating point variants.
21754 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
21756 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
21758 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
21759 for all vector modes.
21761 2015-01-28 Jakub Jelinek <jakub@redhat.com>
21764 * doc/sourcebuild.texi (comdat_group): Document.
21766 2015-01-28 Terry Guo <terry.guo@arm.com>
21768 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
21770 2015-01-27 David Malcolm <dmalcolm@redhat.com>
21772 * toplev.c (print_version): Add param "show_global_state", and
21773 only print GGC and plugin information if it is true.
21774 (init_asm_output): Pass in "true" for the new param when calling
21776 (process_options): Likewise.
21777 (toplev::main): Likewise.
21778 * toplev.h (print_version): Add new param to decl.
21780 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
21784 * tree.c (lookup_binfo_at_offset): New function.
21785 (get_binfo_at_offset): Use it.
21787 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
21790 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
21791 on vtable being vtable.
21793 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
21795 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
21796 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
21797 -mhotpatch= option.
21798 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
21799 -mno-hotpatch options. Change syntax of -mhotpatch= option.
21800 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
21802 (s390_hotpatch_trampoline_halfwords_max): Renamed.
21803 (s390_hotpatch_hw_max): New name.
21804 (s390_hotpatch_trampoline_halfwords): Renamed.
21805 (s390_hotpatch_hw_before_label): New name.
21806 (get_hotpatch_attribute): Removed.
21807 (s390_hotpatch_hw_after_label): New name.
21808 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
21810 (s390_attribute_table): Ditto.
21811 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
21812 (s390_function_num_hotpatch_hw): New name.
21813 Remove special handling of inline functions and hotpatching.
21814 Return number of nops before and after the function label.
21815 (s390_can_inline_p): Removed.
21816 (s390_asm_output_function_label): Emit a configurable number of nops
21817 after the function label.
21818 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
21819 (TARGET_CAN_INLINE_P) Removed.
21820 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
21822 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21823 Jiong Wang <jiong.wang@arm.com>
21825 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
21827 (cb<optab><mode>1): Likewise.
21828 * config/aarch64/iterators.md (bcond): New define_code_attr.
21830 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21832 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
21835 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21837 * config/s390/s390.c (s390_register_move_cost): Increase costs for
21840 2015-01-27 Richard Biener <rguenther@suse.de>
21842 * tree-vrp.c (update_value_range): Intersect the range with
21843 old recorded SSA name range information.
21845 2015-01-27 Nick Clifton <nickc@redhat.com>
21847 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
21848 BC, DE and HL registers directly, not via AX.
21849 When decrementing the stack pointer by a large amount, transfer SP
21850 into AX and perform the subtraction there.
21851 (rl78_expand_epilogue): Perform the inverse of the above
21854 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21856 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
21858 2015-01-27 Jakub Jelinek <jakub@redhat.com>
21859 Yury Gribov <y.gribov@samsung.com>
21862 * ubsan.c (ubsan_source_location): Refactor code.
21863 (ubsan_type_descriptor): Update type size. Refactor code.
21865 2015-01-27 Richard Biener <rguenther@suse.de>
21867 PR tree-optimization/56273
21868 PR tree-optimization/59124
21869 PR tree-optimization/64277
21870 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
21871 from the first VRP pass.
21873 2015-01-27 Jakub Jelinek <jakub@redhat.com>
21876 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
21877 handle the first argument in the same loop as all the other arguments.
21879 PR rtl-optimization/61058
21880 * jump.c (cleanup_barriers): Update basic block boundaries
21881 if BLOCK_FOR_INSN is non-NULL on PREV.
21883 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
21885 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
21886 bounds narrowing, already instrumented calls and calls to
21887 not instrumentable functions.
21889 2015-01-27 Jakub Jelinek <jakub@redhat.com>
21891 PR tree-optimization/64807
21892 * wide-int.cc (wi::divmod_internal): Clear
21893 b_dividend[dividend_blocks_needed].
21895 2015-01-26 DJ Delorie <dj@redhat.com>
21897 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
21898 volatile memory references.
21900 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
21903 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
21905 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
21906 shifts if it already fits into K08.
21908 2015-01-26 Jakub Jelinek <jakub@redhat.com>
21911 * ipa-inline.c (inline_small_functions): Print "unknown" even
21912 if edge->call_stmt is non-NULL, but has builtins or unknown
21915 PR middle-end/64421
21916 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
21917 with asterisk, skip the first character.
21919 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
21922 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
21925 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
21928 * config/i386/i386.md (*movdi_internal): Also check operand 0
21929 to determine TYPE_LEA operand.
21930 (*movsi_internal): Ditto.
21932 2015-01-26 Jakub Jelinek <jakub@redhat.com>
21934 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
21935 OPTION_MASK_QUAD_MEMORY_ATOMIC.
21937 2015-01-26 Renlin Li <renlin.li@arm.com>
21939 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
21941 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
21944 2015-01-26 Richard Biener <rguenther@suse.de>
21946 PR middle-end/64764
21947 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
21948 combining two BIT_AND_EXPR predicates.
21950 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
21953 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
21955 2015-01-26 Terry Guo <terry.guo@arm.com>
21957 * config/arm/arm.c (arm_file_start): Update the assignment of
21958 Tag_ABI_HardFP_use.
21960 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
21962 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
21964 config/arm/arm.md: Include the new Cortex-A57 model.
21965 (generic_sched): Don't use generic_sched when tuning for
21968 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
21969 Uros Bizjak <ubizjak@gmail.com>
21971 * config/i386/i386.c (get_builtin_code_for_version): Add
21972 support for BMI and BMI2 multiversion functions.
21974 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21976 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
21977 (extract_bit_field): Likewise.
21978 (extract_low_bits): Likewise.
21979 (expand_mult): Likewise.
21980 (expand_mult_highpart_adjust): Likewise.
21982 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
21984 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
21985 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
21986 * config/i386/i386.c (processor_model): Add
21987 M_INTEL_COREI7_BROADWELL.
21988 (arch_names_table): Add "broadwell".
21990 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
21999 * config/sh/sh-protos.h
22000 (sh_extending_set_of_reg::can_use_as_unextended_reg,
22001 sh_extending_set_of_reg::use_as_unextended_reg,
22002 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
22003 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
22004 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
22005 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
22006 (sh_treg_insns): New class.
22007 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
22008 (scope_counter): New class.
22009 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
22010 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
22011 sh_extending_set_of_reg::can_use_as_unextended_reg,
22012 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
22013 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
22014 sh_split_treg_set_expr): New functions.
22015 (addsubcosts): Handle treg_set_expr.
22016 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
22017 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
22018 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
22019 (sh_insn_operands_modified_between_p): Make non-static.
22020 * config/sh/predicates.md (zero_extend_movu_operand): Allow
22021 simple_mem_operand in addition to displacement_mem_operand.
22022 (zero_extend_operand): Don't allow zero_extend_movu_operand.
22023 (treg_set_expr, treg_set_expr_not_const01,
22024 arith_reg_or_treg_set_expr): New predicates.
22025 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
22026 arith_or_int_operand instead of logical_operand. Convert to
22027 insn_and_split. Try to optimize constant operand in splitter.
22028 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
22029 (*tstqi_t_zero): Delete.
22030 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
22031 (tstsi_t_and_not): Delete.
22032 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
22033 Convert to insn_and_split.
22034 (unnamed split, tstsi_t_zero_extract_xor,
22035 tstsi_t_zero_extract_subreg_xor_little,
22036 tstsi_t_zero_extract_subreg_xor_big): Delete.
22037 (*tstsi_t_shift_mask): New insn_and_split.
22038 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
22039 to recombine with surrounding insns when splitting.
22040 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
22041 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
22042 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
22043 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
22044 (*cbranch_div0s: Delete.
22045 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
22046 Try to recombine with surrounding insns when splitting. Add operand
22048 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
22049 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
22050 *addc_r_r_msb, *addc_2r_msb): Delete.
22051 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
22053 (*addc_negreg_t): New insn_and_split.
22054 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
22055 Try to recombine with surrounding insns when splitting.
22056 Add operand order variants.
22057 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
22058 insn_and_split patterns.
22059 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
22060 surrounding insns when splitting.
22061 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
22062 (*rotcl): Likewise. Add zero_extract variant.
22063 (*ashrsi2_31): New insn_and_split.
22064 (*negc): Convert to insn_and_split. Use treg_set_expr.
22065 (*zero_extend<mode>si2_disp_mem): Update comment.
22066 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
22068 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
22069 with surrounding insns when splitting.
22070 (any_treg_expr_to_reg): New insn_and_split.
22071 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
22072 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
22073 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
22074 *zero_extract_2): New single bit zero extract patterns.
22075 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
22076 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
22077 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
22078 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
22080 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
22081 register_operand for set source.
22083 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
22085 * i386.opt (prefetch_sse): New targetsave.
22086 * i386.c (ix86_function_specific_save): Save prefetch_sse.
22087 (ix86_function_specific_restore): Restore prefetch_sse and initialize
22088 ix86_cost/ix86_tune_cost.
22090 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22092 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
22093 Support the JIT by using 0 as the language type.
22095 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
22098 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
22099 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
22100 (mark_regno_live, process_bb_lives): Pass new parameter value to
22101 make_hard_regno_born.
22103 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22105 PR rtl-optimization/63637
22106 PR rtl-optimization/60663
22107 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
22108 if elt->cost is MAX_COST for ASM_OPERANDS.
22109 (find_sets_in_insn): Fix up comment typo.
22110 (cse_insn): Don't set src_volatile for all non-volatile
22111 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
22112 or with "memory" clobber. Set elt->cost to MAX_COST
22113 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
22114 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
22116 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
22118 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
22121 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
22123 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
22124 libgcc/config/i386/elf-lib.h.
22126 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22129 * gcc.c (print_configuration): Don't print a blank line at the end
22131 (run_attempt): ... but here unstead.
22133 PR middle-end/64734
22134 * omp-low.c (scan_sharing_clauses): Don't ignore
22135 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
22136 on target data/update constructs.
22138 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
22141 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
22142 (DEBUG_RELOAD): Removed define.
22143 (m32c_limit_reload_class): Enable traces with if DEBUG0.
22144 (m32c_function_arg): Added a type cast.
22145 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
22146 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
22147 * config/m32c/bitops.md (andqi3_16): Likewise.
22148 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
22149 (push_a01_l): Likewise.
22151 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22154 * main.c (main): Construct toplev instances with init_signals=true.
22155 * toplev.c (general_init): Add param "init_signals", and use it to
22156 conditionalize the calls to signal and host_hooks.extra_signals.
22157 (toplev::toplev): Add param "init_signals".
22158 (toplev::main): When invoking general_init, pass m_init_signals
22159 to control whether signal-handlers are installed.
22160 * toplev.h (toplev::toplev): Add param "init_signals".
22161 (toplev::m_init_signals): New field.
22163 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22166 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
22167 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
22168 latter may be affected by the former (e.g. on i686).
22170 2015-01-23 Martin Liska <mliska@suse.cz>
22172 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
22173 false positive during profiledbootstrap.
22175 2015-01-23 Tom de Vries <tom@codesourcery.com>
22178 * lto-opts.c (lto_write_options): Output non-explicit conservative
22180 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
22181 (append_compiler_options): Pass -fopenacc through.
22183 2015-01-23 Tom de Vries <tom@codesourcery.com>
22186 * lto-opts.c (lto_write_options): Output non-explicit conservative
22188 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
22189 (append_compiler_options): Pass -fopenmp through.
22191 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22194 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
22197 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
22198 * diagnostic.def (DK_ICE_NOBT): New kind.
22199 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
22200 like DK_ICE, but never print backtrace.
22201 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
22202 (internal_error_no_backtrace): New function.
22203 * gcc.c (execute): Use internal_error_no_backtrace instead of
22206 2015-01-22 Jeff Law <law@redhat.com>
22209 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
22210 improve code density for small immediate to memory case.
22211 (insv): Better handle bitfield assignments when the field is
22212 being set to all ones.
22213 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
22216 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22217 Jakub Jelinek <jakub@redhat.com>
22219 PR middle-end/64729
22220 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
22221 for !TARGET_LIBC_PROVIDES_SSP version and
22222 -fstack-protector-{all,strong,explicit} otherwise.
22223 * config/freebsd.h (LINK_SSP_SPEC): Handle
22224 -fstack-protector-{strong,explicit}.
22226 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
22227 H.J. Lu <hongjiu.lu@intel.com>
22230 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
22233 2015-01-22 Wei Mi <wmi@google.com>
22235 PR rtl-optimization/64557
22236 * dse.c (record_store): Call get_addr for mem_addr.
22237 (check_mem_read_rtx): Likewise.
22239 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
22241 * fold-const.c (const_binop): Add early return for non-tcc_binary.
22243 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
22245 * toplev.c (init_local_tick): Process the failure when read
22246 fails for random_seed.
22248 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
22249 'pretty_name' to avoid memory overflow.
22251 2015-01-22 Richard Biener <rguenther@suse.de>
22253 PR middle-end/64728
22254 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
22255 abnormal coalescing on undefined SSA names.
22257 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
22261 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
22263 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
22265 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
22267 PR middle-end/63325
22268 * fold-const.c (fold_checksum_tree): Don't include value of
22269 expr->decl_with_vis.symtab_node in the checksum.
22271 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22273 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
22275 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
22278 * gcc.c (insert_comments): New function.
22279 (try_generate_repro): Call it.
22280 (append_text): Removed.
22282 2015-01-22 Richard Biener <rguenther@suse.de>
22284 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
22285 with IL incompatible options. Properly honor user optimize
22288 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
22290 PR rtl-optimization/64682
22291 * combine.c (distribute_notes): When moving a death note for
22292 a register that is set in the new I2, make sure to put it
22293 before that new I2.
22295 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
22297 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
22298 not TARGET_DEFAULT.
22300 2015-01-21 Jakub Jelinek <jakub@redhat.com>
22303 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
22304 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
22305 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
22308 * doc/invoke.texi (-fsanitize=vptr): Document.
22310 PR rtl-optimization/62078
22311 * dse.c: Include cfgcleanup.h.
22312 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
22313 anything call purge_all_dead_edges and cleanup_cfg at the end
22316 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
22318 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
22321 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
22323 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
22326 2015-01-21 David Sherwood <david.sherwood@arm.com>
22327 Tejas Belagod <Tejas.Belagod@arm.com>
22329 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
22330 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
22331 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
22334 2015-01-21 David Sherwood <david.sherwood@arm.com>
22335 Tejas Belagod <Tejas.Belagod@arm.com>
22337 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
22338 (aarch64_reverse_mask): New decls.
22339 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
22340 (insn_count): New mode_attr.
22341 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
22342 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
22343 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
22344 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
22345 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
22346 (aarch64_simd_st4): New patterns.
22347 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
22348 (aarch64_reverse_mask): New functions.
22350 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
22352 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
22354 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
22355 addressing modes for BE.
22356 (aarch64_print_operand): Add 'R' specifier.
22357 (aarch64_simd_disambiguate_copy): Delete.
22358 (aarch64_simd_emit_reg_reg_move): New function.
22359 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
22360 in define_splits for structural moves.
22361 (mov<mode>): Use less restrictive predicates.
22362 (*aarch64_mov<mode>): Simplify and only allow for LE.
22363 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
22365 2015-01-21 Alan Hayward <alan.hayward@arm.com>
22367 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
22369 2015-01-21 Richard Henderson <rth@redhat.com>
22372 * ccmp.c (used_in_cond_stmt_p): Remove.
22373 (expand_ccmp_expr): Don't use it.
22375 2015-01-21 Nick Clifton <nickc@redhat.com>
22377 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
22380 2015-01-21 Richard Biener <rguenther@suse.de>
22382 PR middle-end/64313
22383 * tree-core.h (builtin_info, builtin_info_type): Turn from
22384 an object with two arrays into an array of an object with
22385 decl and two flags, implicit_p and declared_p.
22386 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
22387 set_builtin_decl, set_builtin_decl_implicit_p,
22388 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
22389 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
22390 * builtins.c (builtin_info): Adjust.
22391 * gimplify.c (gimplify_addr_expr): References to builtins
22392 that have been declared by the user makes them eligible for
22393 use by the compiler. Call set_builtin_decl_implicit_p on them.
22395 2015-01-20 Jeff Law <law@redhat.com>
22398 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
22399 allow pc-relative addresses in operand predicates or constraints.
22401 2015-01-21 Bin Cheng <bin.cheng@arm.com>
22403 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
22404 neon on aarch32 processors for stringops.
22406 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22409 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
22411 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22414 * ipa-inline.c: Include lto-streamer.h
22415 (report_inline_failed_reason): Output source file differences and
22416 flags on optimization/target node mismatch.
22417 (can_inline_edge_p): Consider caller to be the outer inline function;
22418 be less restrictive about matching opimize and optimize_size attributes.
22419 (inline_account_function_p): Break out from ...
22420 (inline_small_functions): ... here.
22421 * ipa-inline-transform.c (clone_inlined_nodes): Use
22422 inline_account_function_p.
22423 (inline_call): Use optimize attribution; use inline_account_function_p.
22424 (inline_transform): Use opt_for_fn.
22425 * ipa-inline.h (inline_account_function_p): Declare.
22427 2015-01-20 Jakub Jelinek <jakub@redhat.com>
22430 * dwarf2out.c (decl_piece_node): Don't put bitsize into
22431 mode if bitsize <= 0.
22432 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
22433 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
22434 sizes and positions.
22436 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
22438 * config/nios2/nios2.c (nios2_asm_file_end): Implement
22439 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
22441 (TARGET_ASM_FILE_END): Define.
22443 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22445 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
22446 (struct tune_params): Use the enum.
22447 * arm.c (arm_*_tune): Update.
22448 (arm_option_override): Update.
22450 2015-01-20 Richard Biener <rguenther@suse.de>
22453 * ipa-reference.c (add_static_var): Inline ...
22454 (analyze_function): ... here after splitting out from ...
22455 (is_proper_for_analysis): ... this.
22457 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
22460 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
22461 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
22462 replace the conditional with it's true branch.
22463 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
22464 (arm_lra_p): Remove.
22466 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
22468 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
22470 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22472 * config/tilegx/mul-tables.c: Move symtab.h include after
22473 coretypes.h include.
22474 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
22475 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
22476 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
22477 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
22478 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
22480 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
22484 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
22486 PR rtl-optimization/64081
22487 * loop-iv.c (def_pred_latch_p): New function.
22488 (latch_dominating_def): Allow specific cases with non-single
22490 (iv_get_reaching_def): Likewise.
22491 (check_complex_exit_p): New function.
22492 (check_simple_exit): Use check_complex_exit_p to allow certain cases
22493 with exits not executing on any iteration.
22495 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22498 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
22499 to set branch cost.
22501 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22504 * i386.c (gate): Check flag_expensive_optimizations and
22506 (ix86_option_override_internal): Drop optimize_size condition
22507 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
22508 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
22509 MASK_PREFER_AVX128.
22510 (ix86_avx256_split_vector_move_misalign,
22511 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
22512 * sse.md (all uses of TARGET_PREFER_AVX128): Add
22513 optimize_insn_for_speed_p check.
22515 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
22517 * config/mips/mips.h (FP_ASM_SPEC): New define.
22518 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
22521 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
22524 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
22525 nullptr for insn when reaching the first insn.
22526 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
22527 (sh_insn_operands_modified_between_p): Add nullptr check.
22528 (sh_find_extending_set_of_reg): Fix log message. Don't accept
22529 sign extending mem load if the insn contains any UNSPEC or
22532 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22534 * params.def (inline-unit-growth): Drop to 15%.
22535 * invoke.texi (inline-unit-growth): Document change.
22537 2015-01-19 Martin Liska <mliska@suse.cz>
22540 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
22541 function for second argument of OBJ_TYPE_REF.
22543 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22546 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
22547 whether function is an alias.
22549 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22551 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
22554 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
22556 PR rtl-optimization/64671
22557 * lra-remat.c (operand_to_remat): Don't consider jump and call
22560 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
22563 * config/rs6000/default64.h: Include rs6000-cpus.def.
22564 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
22565 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
22566 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
22568 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
22570 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
22571 pseudo-op to specify assembler dialect.
22573 2015-01-19 Martin Liska <mliska@suse.cz>
22576 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
22577 Handle safe potentially removed nodes during filtering.
22579 2015-01-19 Martin Liska <mliska@suse.cz>
22581 * doc/extend.texi (no_icf): Add new attribute description.
22582 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
22583 where the pass attempts to merge a function with no_icf attribute.
22585 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22588 * doc/md.texi (ARM Options): Document register constraints.
22590 2015-01-19 Jiong Wang <jiong.wang@arm.com>
22591 Andrew Pinski <apinski@cavium.com>
22594 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
22595 (ashl<mode>3): Don't expand if operands[2] is not constant.
22597 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22600 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
22601 Match xor-and-xor RTL pattern.
22603 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
22605 PR rtl-optimization/64081
22606 * loop-iv.c (def_pred_latch_p): New function.
22607 (latch_dominating_def): Allow specific cases with non-single
22609 (iv_get_reaching_def): Likewise.
22610 (check_complex_exit_p): New function.
22611 (check_simple_exit): Use check_complex_exit_p to allow certain cases
22612 with exits not executing on any iteration.
22614 2015-01-19 Jakub Jelinek <jakub@redhat.com>
22616 * common.opt (fgraphite): Fix a typo.
22618 2015-01-19 Felix Yang <felix.yang@huawei.com>
22620 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
22622 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
22623 uminp, smax_nanp, smin_nanp): New builtins.
22624 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
22625 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
22626 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
22627 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
22628 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
22629 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
22630 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
22631 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
22632 vpminnms_f32): Rewrite using builtin functions.
22634 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
22637 * omp-low.c (offload_symbol_decl): Remove variable.
22638 (get_offload_symbol_decl): Remove function.
22639 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
22640 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
22641 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
22642 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
22643 BUILT_IN_GOACC_UPDATE don't pass it at all.
22645 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
22647 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
22650 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
22652 * ipa-chkp.c (chkp_produce_thunks): Add early param
22653 to split thunks production into two passes. Keep
22654 'always_inline' function bodies after the first pass.
22655 (pass_data_ipa_chkp_early_produce_thunks): New.
22656 (pass_ipa_chkp_early_produce_thunks): New.
22657 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
22658 chkp_produce_thunks signature.
22659 (make_pass_ipa_chkp_early_produce_thunks): New.
22660 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
22661 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
22662 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
22664 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
22666 * cgraph.c (cgraph_node::dump): Dump profile flags.
22668 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
22671 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
22672 reg appear first in the parallel.
22674 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
22676 * ipa-reference.c (set_reference_optimization_summary,
22677 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
22679 (ignore_module_statics): New static var.
22680 (propagate_bits): If ipa-reference is disabled, do not look into local
22682 (analyze_function): Disable analysis when ipa_reference is disabled.
22683 (generate_summary): Do not dump when reference is disabled;
22684 collect vars accessed from functions with ipa-reference disabled.
22685 (get_read_write_all_from_node): When ipa-reference is disabled, use the
22687 (gate): Enable for LTO.
22688 (ignore_edge_p): New function.
22689 (propagate): Skip functions w/o ipa-reference analysis.
22690 * optc-save-gen.awk: Handle optimize_debug correctly.
22691 * opth-gen.awk: Likewise.
22692 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
22693 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
22694 fira-share-save-slots, fira-share-spill-slots,
22695 fmodulo-sched-allow-regmoves, fpartial-inlining,
22696 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
22697 ftracer, ftree-parallelize-loops, fassociative-math,
22698 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
22700 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
22701 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
22703 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
22706 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
22709 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
22711 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
22713 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
22715 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
22716 Remove duplicate option listings.
22718 2015-01-18 Felix Yang <felix.yang@huawei.com>
22720 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
22721 (autofdo_source_profile::get_callsite_total_count,
22722 function_instance::get_function_instance_by_decl,
22723 string_table::get_index, string_table::get_index_by_decl,
22724 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
22725 Fix comment typos. Reformatting and minor code rearrangement.
22727 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22729 * config/rs6000/rs6000.md (probe_stack): Delete.
22730 (probe_stack_address): New.
22732 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22734 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
22735 to test for 32-bit ABIs, not !TARGET_POWERPC64.
22737 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22739 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
22740 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
22741 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
22743 (rs6000_libcall_value): Use the new function.
22745 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
22747 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
22749 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
22751 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
22752 implement a more precise life analysis for it during backward scan.
22754 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
22756 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
22758 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
22760 PR rtl-optimization/52773
22761 * calls.c (emit_library_call_value): When pushing arguments use
22762 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
22763 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
22764 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
22766 2015-01-17 Jeff Law <law@redhat.com>
22768 PR rtl-optimization/32790
22769 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
22770 not ZERO_EXTEND in SET_DESTs.
22772 2015-01-17 Alan Modra <amodra@gmail.com>
22774 * cprop.c (do_local_cprop): Revert last change.
22776 2015-01-16 DJ Delorie <dj@redhat.com>
22777 Nick Clifton <nickc@redhat.com>
22779 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
22780 (addhi3_real): Likewise. Fix [HL+0] syntax.
22781 (subqi3_real): Likewise.
22782 (subhi3_real): Likewise.
22783 (cbranchqi4_real): Likewise. Allow saddr,#imm.
22784 (cbranchhi4_real): Likewise.
22785 (cbranchhi4_real_inverted): Likewise.
22786 (cbranchsi4_real_lt): Likewise.
22787 (cbranchsi4_real_ge): Likewise.
22788 (cbranchsi4_real_ge): Likewise.
22789 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
22790 (sub<mode>3_virt): Likewise.
22791 (cbranchqi4_virt): Likewise.
22792 (cbranchhi4_virt): Likewise.
22793 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
22794 always use '[reg+imm]' even when imm is zero.
22795 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
22796 (rl78_general_operand): New.
22797 (rl78_nonimmediate_operand): New.
22798 (rl78_nonfar_operand): Use them.
22799 (rl78_nonfar_nonimm_operand): Likewise.
22800 (rl78_stack_based_mem): Fix.
22801 * config/rl78/constraints.md (Ibqi): New.
22806 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
22807 (iorqi3): Likewise.
22808 (xorqi3): Likewise.
22809 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
22811 * config/rl78/constrains (Qs8): New constraint.
22812 * config/rl78/rl78.c (rl78_flags_already_set): New function.
22813 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
22814 * config/rl78/rl78-real.md (update_Z): New attribute.
22815 Update patterns to set it.
22816 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
22817 shorter compare and branch sequence can be used.
22818 (cbranchhi4_real): Likewise.
22819 (cbranchhi4_real_inverted): Likewise.
22821 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
22822 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
22824 * config/rl78/rl78.c (rl78_get_name_encoding): New.
22825 (rl78_option_override): Allow -mes0 only if C.
22826 (characterize_address): Support subregs of symbol_refs.
22827 (rl78_addr_space_address_mode): Move. Add __near.
22828 (rl78_far_p): Likewise.
22829 (rl78_addr_space_pointer_mode): Likewise.
22830 (rl78_as_legitimate_address): Likewise.
22831 (rl78_addr_space_subset_p): Likewise.
22832 (rl78_addr_space_convert): Likewise.
22833 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
22834 symbols with -mes0.
22835 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
22837 (rl78_alloc_physical_registers_op1): Change logic to prefer
22838 symbol[BC] addressing.
22839 (frodata_section): New.
22840 (rl78_asm_init_sections): Initialize it.
22841 (rl78_select_section): Put __far readonly symbols in .frodata.
22842 (rl78_make_type_far): New.
22843 (rl78_insert_attributes): Force all readonly symbols to be
22845 (rl78_asm_out_integer): New.
22846 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
22847 * config/rl78/rl78.opt (-mes0): New.
22849 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
22850 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
22851 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
22852 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
22853 (rl78_saddr_p): New.
22854 (rl78_output_aligned_common): New.
22855 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
22856 (rl78_handle_saddr_attribute): New.
22857 (rl78_handle_naked_attribute): New.
22858 (rl78_attribute_table): Add saddr.
22859 (rl78_print_operand_1): Don't print '!' on saddr operands.
22860 (rl78_print_operand_1): Strip encodings.
22862 (rl78_strip_name_encoding): New.
22863 (rl78_attrlist_to_encoding): New.
22864 (rl78_encode_section_info): New.
22865 (rl78_asm_init_sections): New.
22866 (rl78_select_section): New.
22867 (rl78_output_labelref): New.
22868 (rl78_output_aligned_common): New.
22869 (rl78_asm_out_integer): New.
22870 (rl78_asm_ctor_dtor): New.
22871 (rl78_asm_constructor): New.
22872 (rl78_asm_destructor): New.
22874 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
22875 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
22876 (transcode_memory_rtx): Update.
22877 (rl78_expand_epilogue): Use A_REG instead of 0.
22879 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22881 * config/arm/arm-protos.h (struct tune_params): New field
22882 sched_autopref_queue_depth.
22883 * config/arm/arm.c (sched-int.h): Include header.
22884 (arm_first_cycle_multipass_dfa_lookahead_guard,)
22885 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
22886 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
22887 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
22888 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
22889 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
22890 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
22891 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
22892 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
22893 * config/arm/t-arm (arm.o): Update.
22894 * haifa-sched.c (update_insn_after_change): Update.
22895 (rank_for_schedule): Use auto-prefetcher model, if requested.
22896 (autopref_multipass_init): New static function.
22897 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
22898 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
22899 variable for debug dumps.
22900 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
22901 (autopref_multipass_dfa_lookahead_guard): New global function that
22902 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
22903 (init_h_i_d): Update.
22904 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
22905 * sched-int.h (enum autopref_multipass_data_status): New const enum.
22906 (autopref_multipass_data_): Structure for auto-prefetcher data.
22907 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
22908 (struct _haifa_insn_data:autopref_multipass_data): New field.
22909 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
22910 (autopref_multipass_dfa_lookahead_guard): Declare.
22912 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22914 * rtlanal.c (get_base_term): Handle SCRATCH.
22916 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22918 * config/aarch64/aarch64.c
22919 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
22920 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
22922 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
22923 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
22925 2015-01-17 Alan Modra <amodra@gmail.com>
22927 * cprop.c (do_local_cprop): Disallow replacement of fixed
22930 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22933 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
22936 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
22938 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
22939 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
22941 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22943 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
22944 * config/arm/thumb1.md: ... Here.
22946 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
22948 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
22949 TImode for TARGET_32BIT.
22951 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
22953 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
22954 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
22956 (rs6000_abi_word_mode): New function.
22958 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
22960 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
22961 instead of UNITS_PER_WORD to describe the size of stack slots.
22963 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
22965 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
22966 as rs6000_promote_function_mode. Move comment to there.
22967 (rs6000_promote_function_mode): New function.
22969 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
22971 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
22972 -mpowerpc64 is active.
22974 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
22976 PR middle-end/64353
22977 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
22980 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
22982 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
22983 introduced in revision 219724.
22985 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22986 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22989 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
22990 destination is not a GP reg.
22991 (*movdi_aarch64): Likewise.
22993 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
22996 * config/rs6000/default64.h: Revert ISA change.
22998 2015-01-16 Richard Biener <rguenther@suse.de>
23000 PR middle-end/64614
23001 * tree-ssa-uninit.c: Include tree-cfg.h.
23002 (MAX_SWITCH_CASES): New define.
23003 (convert_control_dep_chain_into_preds): Handle switch statements.
23004 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
23005 (normalize_one_pred_1): Do not split bit-manipulations.
23008 2015-01-16 Richard Biener <rguenther@suse.de>
23010 PR tree-optimization/64568
23011 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
23012 complex load rewriting for TARGET_MEM_REFs.
23014 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
23016 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
23018 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
23021 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
23023 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
23024 (aarch64_lra_p): Remove.
23026 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
23029 * ipa-chkp.h (chkp_instrumentable_p): New.
23030 * ipa-chkp.c: Include tree-inline.h.
23031 (chkp_instrumentable_p): New.
23032 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
23033 Fix processing of not instrumentable functions.
23034 (chkp_versioning): Use chkp_instrumentable_p. Warn about
23035 not instrumentable functions.
23036 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
23037 chkp_instrumentable_p.
23038 * tree-inline.h (copy_forbidden): New.
23039 * tree-inline.c (copy_forbidden): Not static anymore.
23041 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23043 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
23046 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
23048 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
23049 type OP_OUT to OP_INOUT.
23051 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
23053 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
23054 (high x) y) to y if x and y have the same base.
23056 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
23058 * config/arm/cortex-a57.md: New.
23059 * config/aarch64/aarch64.md: Include it.
23060 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
23061 * config/aarch64/aarch64-tune.md: Regenerate.
23063 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
23066 * ccmp.c (expand_ccmp_next): New function.
23067 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
23068 and compare insn sequence.
23069 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
23070 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
23071 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
23072 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
23073 (*ccmp_ior): Changed to ccmp_ior<mode>.
23074 (cmp<mode>): New pattern.
23075 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
23077 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
23079 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
23081 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
23082 _mm256_bsrli_epi128): New.
23083 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
23085 2015-01-15 Jiong Wang <jiong.wang@arm.com>
23087 * expmed.c (store_bit_field_using_insv): Improve warning message.
23088 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
23090 2015-01-15 Jiong Wang <jiong.wang@arm.com>
23092 PR rtl-optimization/64011
23093 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
23094 there is partial overflow.
23096 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23098 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
23100 (nds32_expand_epilogue_v3pop): Likewise.
23101 * config/nds32/nds32.md (sibcall): Define this for sibling call
23103 (sibcall_register): Likewise.
23104 (sibcall_immediate): Likewise.
23105 (sibcall_value): Likewise.
23106 (sibcall_value_register): Likewise.
23107 (sibcall_value_immediate): Likewise.
23108 (sibcall_epilogue): Likewise.
23109 (epilogue): Pass false to indicate this is not a sibcall epilogue.
23110 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
23111 (nds32_expand_epilogue_v3pop): Likewise.
23113 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23115 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
23116 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
23117 (return_internal): New.
23118 (return): Define this named pattern.
23119 (simple_return): Define this named pattern.
23120 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
23121 pattern instead of unspec_volatile_func_return.
23122 (nds32_expand_epilogue_v3pop): Likewise.
23123 (nds32_can_use_return_insn): New function.
23125 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23127 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
23128 * config/nds32/nds32.md (pop25return): New.
23129 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
23130 pop25return pattern.
23132 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23134 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
23135 -mforbid-fp-as-gp, and -mex9 options.
23137 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23139 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
23140 remove -mgp-direct option.
23142 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23144 * doc/invoke.texi (--param early-inlining-insns): Update default value.
23145 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
23147 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23149 * ipa-inline.c (inline_small_functions): Work around hints
23152 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
23155 * doc/invoke.texi (Option Summary): Document new Nios II
23157 (Nios II Options): Likewise.
23158 * config/nios2/nios2.opt: Add -mgpopt= option support.
23159 Modify existing -mgpopt and -mno-gpopt options to be aliases.
23160 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
23161 * config/nios2/nios2.c (nios2_option_override): Adjust
23162 -mgpopt defaulting.
23163 (nios2_in_small_data_p): Return true for explicit small data
23164 sections even with -G0.
23165 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
23168 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23171 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
23173 (inline_call): Fix removal of aliases.
23175 2015-01-15 Jakub Jelinek <jakub@redhat.com>
23177 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
23178 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
23179 * opts.c (common_handle_option): Add -fsanitize=vptr.
23180 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
23181 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
23182 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
23183 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
23184 (ubsan_expand_vptr_ifn): New prototype.
23185 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
23186 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
23187 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
23188 expand_LOOP_VECTORIZED): Make argument nameless, remove
23190 (expand_UBSAN_VPTR): New function.
23191 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
23193 (UBSAN_VPTR): New internal function.
23194 * sanopt.c (tree_map_traits): Renamed to ...
23195 (sanopt_tree_map_traits): ... this.
23196 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
23197 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
23198 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
23199 (maybe_optimize_ubsan_vptr_ifn): New function.
23200 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
23201 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
23203 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
23204 internal calls like pure functions for aliasing, even when they
23205 have other side-effects that prevent making them ECF_PURE.
23206 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
23207 (ubsan_expand_vptr_ifn): New function.
23209 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
23211 PR rtl-optimization/64110
23212 * stmt.c (parse_output_constraint): Process '^' and '$'.
23213 (parse_input_constraint): Ditto.
23214 * lra-constraints.c (process_alt_operands): Process the new
23216 * ira-costs.c (record_reg_classes): Process the new constraint
23218 * genoutput.c (indep_constraints): Add '^' and '$'.
23219 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
23220 * doc/md.texi: Add description of the new constraints.
23222 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
23223 Bernd Schmidt <bernds@codesourcery.com>
23224 Cesar Philippidis <cesar@codesourcery.com>
23225 James Norris <jnorris@codesourcery.com>
23226 Tom de Vries <tom@codesourcery.com>
23227 Ilmir Usmanov <i.usmanov@samsung.com>
23228 Dmitry Bocharnikov <dmitry.b@samsung.com>
23229 Evgeny Gavrin <e.gavrin@samsung.com>
23230 Jakub Jelinek <jakub@redhat.com>
23232 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
23233 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23234 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23235 New function types.
23236 * builtins.c: Include "gomp-constants.h".
23237 (expand_builtin_acc_on_device): New function.
23238 (expand_builtin, is_inexpensive_builtin): Handle
23239 BUILT_IN_ACC_ON_DEVICE.
23240 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
23242 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
23244 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
23245 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
23246 i386/intelmic-offload.h.
23247 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
23248 to libgomp and its dependencies.
23249 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
23250 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
23251 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
23252 * config/ia64/hpux.h (LIB_SPEC): Likewise.
23253 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
23254 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
23255 * doc/generic.texi: Update for OpenACC changes.
23256 * doc/gimple.texi: Likewise.
23257 * doc/invoke.texi: Likewise.
23258 * doc/sourcebuild.texi: Likewise.
23259 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
23260 GF_OMP_FOR_KIND_OACC_LOOP.
23261 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
23262 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
23263 GF_OMP_TARGET_KIND_OACC_UPDATE,
23264 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
23266 * gimple.c: Update comments for OpenACC changes.
23267 * gimple.def: Likewise.
23268 * gimple.h: Likewise.
23269 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
23270 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
23271 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
23272 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
23273 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
23275 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
23276 * gimplify.c: Include "gomp-constants.h".
23277 Update comments for OpenACC changes.
23278 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
23279 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
23280 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
23281 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
23282 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
23283 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
23284 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
23285 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
23286 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
23288 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
23289 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
23290 OMP_CLAUSE_SET_MAP_KIND.
23291 (gimplify_oacc_cache): New function.
23292 (gimplify_omp_for): Handle OACC_LOOP.
23293 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
23295 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
23296 OACC_EXIT_DATA, OACC_UPDATE.
23297 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
23298 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
23299 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
23300 (gimplify_body): Consider flag_openacc next to flag_openmp.
23301 * lto-streamer-out.c: Include "gomp-constants.h".
23302 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
23303 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
23304 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
23305 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
23306 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
23307 (BUILT_IN_ACC_ON_DEVICE): New builtins.
23308 * omp-low.c: Include "gomp-constants.h".
23309 Update comments for OpenACC changes.
23310 (struct omp_context): Add reduction_map, gwv_below, gwv_this
23312 (extract_omp_for_data, use_pointer_for_field, install_var_field)
23313 (new_omp_context, delete_omp_context, scan_sharing_clauses)
23314 (create_omp_child_function, scan_omp_for, scan_omp_target)
23315 (check_omp_nesting_restrictions, lower_reduction_clauses)
23316 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
23317 Update for OpenACC changes.
23318 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
23319 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
23320 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
23321 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
23322 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
23323 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
23325 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
23326 Handle GF_OMP_FOR_KIND_OACC_LOOP.
23327 (expand_omp_target, lower_omp_target): Handle
23328 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
23329 GF_OMP_TARGET_KIND_OACC_UPDATE,
23330 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
23331 GF_OMP_TARGET_KIND_OACC_DATA.
23332 (pass_expand_omp::execute, execute_lower_omp)
23333 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
23335 (offload_symbol_decl): New variable.
23336 (oacc_get_reduction_array_id, oacc_max_threads)
23337 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
23338 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
23339 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
23340 (oacc_gimple_assign, oacc_initialize_reduction_data)
23341 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
23343 (is_targetreg_ctx): Remove function.
23344 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
23345 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
23346 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
23347 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
23348 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
23349 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
23350 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
23351 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
23352 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
23353 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
23354 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
23355 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
23356 * tree-core.h: Update comments for OpenACC changes.
23357 (enum omp_clause_map_kind): Remove.
23358 (struct tree_omp_clause): Change type of map_kind member from enum
23359 omp_clause_map_kind to unsigned char.
23360 * tree-inline.c: Update comments for OpenACC changes.
23361 * tree-nested.c: Likewise. Include "gomp-constants.h".
23362 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
23363 (convert_tramp_reference_stmt, convert_gimple_call): Update for
23364 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
23365 OMP_CLAUSE_SET_MAP_KIND.
23366 * tree-pretty-print.c: Include "gomp-constants.h".
23367 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
23368 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
23369 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
23370 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
23371 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
23372 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
23373 instead of OMP_CLAUSE_MAP_*.
23374 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
23375 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
23376 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
23377 * tree-streamer-in.c: Include "gomp-constants.h".
23378 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
23379 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
23380 * tree-streamer-out.c: Include "gomp-constants.h".
23381 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
23383 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
23384 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
23385 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
23386 * tree.c (omp_clause_num_ops): Update accordingly.
23387 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
23389 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
23390 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
23391 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
23392 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
23393 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
23394 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
23395 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
23396 (OMP_CLAUSE_SET_MAP_KIND): New macro.
23397 * varpool.c (varpool_node::get_create): Consider flag_openacc next
23399 * config/i386/intelmic-offload.h: New file.
23400 * config/nvptx/offload.h: Likewise.
23402 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23404 * explow.h: Remove duplicate contents.
23405 * dojump.h: Likewise.
23407 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
23409 * arm.c (arm_xgene_tune): Add default initializer for instruction
23412 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23416 * ipa.c (symbol_table::remove_unreachable_nodes):
23417 Do not put abstract origins into boundary.
23419 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
23421 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
23422 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
23424 2015-01-15 Steve Ellcey <sellcey@mips.com>
23426 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
23427 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
23428 builtins.def, and chkp-builtins.def.
23430 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
23432 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
23435 2015-01-15 Richard Biener <rguenther@suse.de>
23437 PR tree-optimization/61743
23438 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
23439 information on PHIs for some simple cases.
23441 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23443 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
23445 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
23446 * config/arm/arm-cores.def (xgene1): New entry.
23447 * config/arm/arm-tables.opt: Regenerate.
23448 * config/arm/arm-tune.md: Regenerate.
23449 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
23451 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
23453 * tree-if-conv.c: Include hash-map.h.
23454 (aggressive_if_conv): New variable.
23455 (fold_build_cond_expr): Add simplification of non-zero condition.
23456 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
23457 destination block is not always executed.
23458 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
23459 than two predecessors if AGGRESSIVE_IF_CONV is true.
23460 (if_convertible_stmt_p): Fix commentary.
23461 (all_preds_critical_p): New function.
23462 (has_pred_critical_p): New function.
23463 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
23464 BB can have more than two predecessors and all incoming edges can be
23466 (predicate_bbs): Skip predication for loop exit block, use build2_loc
23467 to compute predicate for true edge.
23468 (find_phi_replacement_condition): Delete this function.
23469 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
23470 Allow interchange PHI arguments if EXTENDED is false.
23471 Change check that block containing reduction statement candidate
23472 is predecessor of phi-block since phi may have more than two arguments.
23473 (phi_args_hash_traits): New helper structure.
23474 (struct phi_args_hash_traits): New type.
23475 (phi_args_hash_traits::hash): New function.
23476 (phi_args_hash_traits::equal_keys): New function.
23477 (gen_phi_arg_condition): New function.
23478 (predicate_scalar_phi): Add handling of phi nodes with more than two
23479 arguments, delete COND and TRUE_BB arguments, insert body of
23480 find_phi_replacement_condition to predicate ordinary phi nodes.
23481 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
23482 delete call of find_phi_replacement_condition and invoke
23483 predicate_scalar_phi with two arguments.
23484 (insert_gimplified_predicates): Add assert that non-predicated block
23485 don't have statements to insert.
23486 (ifcvt_split_critical_edges): New function.
23487 (ifcvt_split_def_stmt): Likewise.
23488 (ifcvt_walk_pattern_tree): Likewise.
23489 (stmt_is_root_of_bool_pattern): Likewise.
23490 (ifcvt_repair_bool_pattern): Likewise.
23491 (ifcvt_local_dce): Likewise.
23492 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
23493 is copy of inner or outer loop force_vectorize field, invoke
23494 ifcvt_split_critical_edges, ifcvt_local_dce and
23495 ifcvt_repair_bool_pattern for aggressive if-conversion.
23497 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
23499 * config/aarch64/aarch64.md: Include xgene1.md.
23500 * config/aarch64/xgene1.md: New file.
23502 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23504 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
23505 xgene1 (APM XGene-1) core definition.
23506 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
23507 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
23508 * doc/invoke.texi: Document -mcpu=xgene1.
23510 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23512 * dojump.h: New header file.
23513 * explow.h: Likewise.
23514 * expr.h: Remove includes.
23515 Move expmed.c prototypes to expmed.h.
23516 Move dojump.c prototypes to dojump.h.
23517 Move alias.c prototypes to alias.h.
23518 Move explow.c prototypes to explow.h.
23519 Move calls.c prototypes to calls.h.
23520 Move emit-rtl.c prototypes to emit-rtl.h.
23521 Move varasm.c prototypes to varasm.h.
23522 Move stmt.c prototypes to stmt.h.
23523 (saved_pending_stack_adjust): Move to dojump.h.
23524 (adjust_address): Move to explow.h.
23525 (adjust_address_nv): Move to emit-rtl.h.
23526 (adjust_bitfield_address): Likewise.
23527 (adjust_bitfield_address_size): Likewise.
23528 (adjust_bitfield_address_nv): Likewise.
23529 (adjust_automodify_address_nv): Likewise.
23530 * explow.c (expr_size): Move to expr.c.
23531 (int_expr_size): Likewise.
23532 (tree_expr_size): Likewise.
23533 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23534 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
23535 * genemit.c (main): Generate includes statistics.h, real.h,
23536 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
23538 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
23539 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
23540 explow.h, emit-rtl.h, stmt.h.
23541 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
23542 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
23543 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
23544 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
23545 emit-rtl.h, varasm.h, stmt.h.
23546 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
23547 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
23548 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
23549 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
23550 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
23551 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
23552 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
23553 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
23554 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
23555 tm.h tree.h varasm.h vec.h wide-int.h.
23556 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23557 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
23558 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
23559 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
23560 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
23561 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
23562 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
23563 * loop-iv.c: Likewise.
23564 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
23565 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
23566 statistics.h stmt.h tree.h varasm.h wide-int.h.
23567 * lra-constraints.c: Likewise.
23568 * lra-eliminations.c: Likewise.
23569 * lra-lives.c: Likewise.
23570 * lra-remat.c: Likewise.
23571 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23572 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
23573 statistics.h stmt.h tree.h varasm.h wide-int.h.
23574 * hw-doloop.c: Likewise.
23575 * ira-color.c: Likewise.
23576 * ira-emit.c: Likewise.
23577 * loop-doloop.c: Likewise.
23578 * loop-invariant.c: Likewise.
23579 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23580 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
23581 statistics.h stmt.h tree.h varasm.h wide-int.h.
23582 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
23583 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
23584 statistics.h stmt.h tree.h varasm.h wide-int.h.
23585 * combine-stack-adj.c: Likewise.
23588 * ifcvt.c: Likewise.
23589 * ira-costs.c: Likewise.
23590 * jump.c: Likewise.
23591 * lra-coalesce.c: Likewise.
23592 * lra-spills.c: Likewise.
23593 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23594 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
23595 stmt.h varasm.h wide-int.h.
23596 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23597 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
23599 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
23600 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
23601 statistics.h stmt.h varasm.h wide-int.h.
23602 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
23603 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
23604 varasm.h wide-int.h.
23605 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
23606 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23607 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
23608 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
23609 statistics.h stmt.h.
23610 * config/tilepro/tilepro.c: Likewise.
23611 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
23612 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
23613 * config/pdp11/pdp11.c: Likewise.
23614 * config/xtensa/xtensa.c: Likewise.
23615 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
23616 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
23618 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23619 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
23620 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
23621 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23622 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
23623 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
23624 * rtl-chkp.c: Likewise.
23625 * tree-chkp-opt.c: Likewise.
23626 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
23627 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
23628 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
23629 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23630 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
23631 statistics.h stmt.h.
23632 * tree-vect-data-refs.c: Likewise.
23633 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
23634 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23635 rtl.h statistics.h stmt.h varasm.h.
23636 * internal-fn.c: Likewise.
23637 * ipa-icf-gimple.c: Likewise.
23638 * lto-section-out.c: Likewise.
23639 * tree-data-ref.c: Likewise.
23640 * tree-nested.c: Likewise.
23641 * tree-outof-ssa.c: Likewise.
23642 * tree-predcom.c: Likewise.
23643 * tree-pretty-print.c: Likewise.
23644 * tree-scalar-evolution.c: Likewise.
23645 * tree-ssa-strlen.c: Likewise.
23646 * tree-vect-loop.c: Likewise.
23647 * tree-vect-patterns.c: Likewise.
23648 * tree-vect-slp.c: Likewise.
23649 * tree-vect-stmts.c: Likewise.
23650 * tsan.c: Likewise.
23651 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23652 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
23654 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
23655 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23656 statistics.h stmt.h varasm.h.
23657 * loop-unroll.c: Likewise.
23658 * ubsan.c: Likewise.
23659 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
23660 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
23662 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23663 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
23664 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
23665 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
23666 statistics.h stmt.h.
23667 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
23668 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
23669 statistics.h stmt.h varasm.h.
23670 * gimple-match-head.c: Likewise.
23671 * lto-cgraph.c: Likewise.
23672 * lto-section-in.c: Likewise.
23673 * lto-streamer-in.c: Likewise.
23674 * lto-streamer-out.c: Likewise.
23675 * tree-affine.c: Likewise.
23676 * tree-cfg.c: Likewise.
23677 * tree-cfgcleanup.c: Likewise.
23678 * tree-if-conv.c: Likewise.
23679 * tree-into-ssa.c: Likewise.
23680 * tree-ssa-alias.c: Likewise.
23681 * tree-ssa-copyrename.c: Likewise.
23682 * tree-ssa-dse.c: Likewise.
23683 * tree-ssa-forwprop.c: Likewise.
23684 * tree-ssa-live.c: Likewise.
23685 * tree-ssa-math-opts.c: Likewise.
23686 * tree-ssa-pre.c: Likewise.
23687 * tree-ssa-sccvn.c: Likewise.
23688 * tree-tailcall.c: Likewise.
23689 * tree-vect-generic.c: Likewise.
23690 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23691 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
23692 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23693 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
23694 * varasm.c: Likewise.
23695 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23696 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
23698 * init-regs.c: Likewise.
23700 * omp-low.c: Likewise.
23701 * stack-ptr-mod.c: Likewise.
23702 * tree-ssa-reassoc.c: Likewise.
23703 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23704 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
23706 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23707 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
23708 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23709 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
23710 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23711 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
23712 * tree-ssa-phiopt.c: Likewise.
23713 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23714 fixed-value.h hashtab.h real.h statistics.h stmt.h.
23715 * config/fr30/fr30.c: Likewise.
23716 * config/frv/frv.c: Likewise.
23717 * expr.c: Likewise.
23718 * final.c: Likewise.
23719 * optabs.c: Likewise.
23720 * passes.c: Likewise.
23721 * simplify-rtx.c: Likewise.
23722 * stmt.c: Likewise.
23723 * toplev.c: Likewise.
23724 * var-tracking.c: Likewise.
23725 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23726 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23727 * lower-subreg.c: Likewise.
23728 * postreload-gcse.c: Likewise.
23730 * reginfo.c: Likewise.
23731 * store-motion.c: Likewise.
23732 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23733 fixed-value.h hashtab.h real.h stmt.h varasm.h.
23734 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23735 fixed-value.h hashtab.h statistics.h stmt.h.
23736 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23737 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
23738 * except.c: Likewise.
23739 * explow.c: Likewise.
23740 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23741 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
23743 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23744 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
23745 * tree-ssa-structalias.c: Likewise.
23746 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23747 fixed-value.h insn-config.h real.h statistics.h.
23748 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23749 fixed-value.h insn-config.h real.h statistics.h stmt.h.
23750 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23751 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
23752 * cfgbuild.c: Likewise.
23753 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23754 fixed-value.h real.h rtl.h statistics.h stmt.h.
23755 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23756 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23757 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23758 fixed-value.h real.h statistics.h stmt.h.
23759 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23760 fixed-value.h real.h statistics.h stmt.h varasm.h.
23761 * cprop.c: Likewise.
23762 * modulo-sched.c: Likewise.
23763 * postreload.c: Likewise.
23764 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
23765 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
23766 statistics.h stmt.h varasm.h.
23767 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
23768 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23769 rtl.h statistics.h stmt.h varasm.h.
23770 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
23771 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
23773 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
23774 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
23776 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
23777 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
23779 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
23780 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23781 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23782 function.h real.h statistics.h stmt.h varasm.h.
23783 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23784 insn-config.h real.h statistics.h stmt.h.
23785 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23786 statistics.h stmt.h.
23787 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
23788 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
23789 statistics.h stmt.h varasm.h.
23790 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
23791 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
23792 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23793 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
23794 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
23795 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
23796 statistics.h stmt.h varasm.h.
23797 * ipa-polymorphic-call.c: Likewise.
23798 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
23799 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23800 statistics.h stmt.h.
23801 * config/c6x/c6x.c: Likewise.
23802 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
23803 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23804 statistics.h stmt.h varasm.h.
23805 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
23806 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
23808 * ipa-split.c: Likewise.
23809 * tree-eh.c: Likewise.
23810 * tree-ssa-dce.c: Likewise.
23811 * tree-ssa-loop-niter.c: Likewise.
23812 * tree-vrp.c: Likewise.
23813 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
23814 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
23816 * config/nds32/nds32-fp-as-gp.c: Likewise.
23817 * config/nds32/nds32-intrinsic.c: Likewise.
23818 * config/nds32/nds32-isr.c: Likewise.
23819 * config/nds32/nds32-md-auxiliary.c: Likewise.
23820 * config/nds32/nds32-memory-manipulation.c: Likewise.
23821 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23822 * config/nds32/nds32-predicates.c: Likewise.
23823 * config/nds32/nds32.c: Likewise.
23824 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
23825 fixed-value.h hashtab.h real.h statistics.h.
23826 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
23827 fixed-value.h hashtab.h real.h statistics.h stmt.h.
23828 * config/arm/arm.c: Likewise.
23829 * config/avr/avr.c: Likewise.
23830 * config/bfin/bfin.c: Likewise.
23831 * config/h8300/h8300.c: Likewise.
23832 * config/i386/i386.c: Likewise.
23833 * config/ia64/ia64.c: Likewise.
23834 * config/iq2000/iq2000.c: Likewise.
23835 * config/m32c/m32c.c: Likewise.
23836 * config/m32r/m32r.c: Likewise.
23837 * config/m68k/m68k.c: Likewise.
23838 * config/mcore/mcore.c: Likewise.
23839 * config/mep/mep.c: Likewise.
23840 * config/mips/mips.c: Likewise.
23841 * config/mn10300/mn10300.c: Likewise.
23842 * config/moxie/moxie.c: Likewise.
23843 * config/pa/pa.c: Likewise.
23844 * config/rl78/rl78.c: Likewise.
23845 * config/rx/rx.c: Likewise.
23846 * config/s390/s390.c: Likewise.
23847 * config/sh/sh.c: Likewise.
23848 * config/sparc/sparc.c: Likewise.
23849 * config/spu/spu.c: Likewise.
23850 * config/stormy16/stormy16.c: Likewise.
23851 * config/v850/v850.c: Likewise.
23852 * config/vax/vax.c: Likewise.
23853 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
23854 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23855 * config/msp430/msp430.c: Likewise.
23856 * predict.c: Likewise.
23857 * value-prof.c: Likewise.
23858 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
23859 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
23860 * config/microblaze/microblaze.c: Likewise.
23861 * config/nios2/nios2.c: Likewise.
23862 * config/rs6000/rs6000.c: Likewise.
23863 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23864 insn-config.h real.h rtl.h statistics.h stmt.h.
23865 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23866 insn-config.h real.h statistics.h stmt.h.
23867 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
23868 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
23869 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
23870 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23871 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
23872 fixed-value.h real.h statistics.h stmt.h.
23873 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
23874 fixed-value.h statistics.h stmt.h.
23875 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
23878 2015-01-15 Jakub Jelinek <jakub@redhat.com>
23880 * gengtype.c (create_user_defined_type): Workaround
23881 -Wmaybe-uninitialized false positives.
23882 * cse.c (fold_rtx): Likewise.
23883 * loop-invariant.c (gain_for_invariant): Likewise.
23885 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
23887 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
23888 set the memory attributes in all cases but clear MEM_EXPR if need be.
23890 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
23892 PR tree-optimization/64434
23893 * cfgexpand.c (reorder_operands): New function.
23894 (expand_gimple_basic_block): Insert call of reorder_operands if
23897 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
23899 * config/mips/micromips.md (*swp): Remove explicit parallel.
23900 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
23901 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
23902 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
23903 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
23904 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
23905 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
23906 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
23907 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
23908 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
23909 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
23910 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
23911 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
23912 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
23913 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
23914 (mips_wrdsp): Likewise.
23915 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
23917 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
23918 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
23919 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
23920 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
23921 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
23922 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
23923 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
23924 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
23925 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
23927 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
23929 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
23930 (mips_print_operand): Support 'y' to print exact log2 in decimal
23932 * config/mips/mips.h (ISA_HAS_LSA): New define.
23933 (ISA_HAS_DLSA): Likewise.
23934 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
23935 * config/mips/predicates.md (const_immlsa_operand): New predicate.
23937 2015-01-15 Martin Liska <mliska@suse.cz>
23940 * optc-save-gen.awk: Add support for array types.
23942 2015-01-15 Richard Biener <rguenther@suse.de>
23944 PR middle-end/64365
23945 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
23946 for MEM_REF access functions with the same base can never partially
23949 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
23951 * common.opt: New option -fstack-protector-explicit.
23952 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
23953 (stack_protect_decl_phase): Handle stack_protect attribute for
23954 explicit stack protection requests.
23955 (expand_used_vars): Similarly.
23956 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
23957 * doc/extend.texi: Add documentation for "stack_protect" attribute.
23958 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
23960 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
23963 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
23965 (sh_extending_set_of_reg): New struct.
23966 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
23967 sh_remove_reg_dead_or_unused_notes): New Declarations.
23968 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
23969 sh_find_extending_set_of_reg, sh_split_tst_subregs,
23970 sh_extending_set_of_reg::use_as_extended_reg): New functions.
23971 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
23972 convert to insn_and_split and use new function sh_split_tst_subregs.
23974 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
23976 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
23978 (Optimization Options): Move -fuse-ld documentation to...
23979 (Link Options): ...here.
23981 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
23983 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
23985 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
23986 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
23987 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
23988 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
23989 instead of ZR for the memory operand of LL/SC.
23990 (compare_and_swap_12, sync_add<mode>): Likewise.
23991 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
23992 (sync_new_<optab>_12, sync_nand_12): Likewise.
23993 (sync_old_nand_12, sync_new_nand_12): Likewise.
23994 (sync_sub<mode>, sync_old_add<mode>): Likewise.
23995 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
23996 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
23997 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
23998 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
23999 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
24000 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
24001 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
24002 * doc/md.texi (ZC): Update description.
24004 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
24006 * builtins.c (expand_builtin_atomic_exchange): Remove error when
24007 memory model is CONSUME.
24008 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
24009 expand_builtin_atomic_store): Change invalid memory model errors to
24011 (expand_builtin_atomic_clear): Change invalid model errors to warnings
24012 and issue warning for CONSUME.
24014 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
24016 * lto-cgraph: Update function comments for
24017 lto_symtab_encoder_encode_*.
24019 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
24021 * Makefile.in (site.exp): Do not set ENABLE_LTO.
24023 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
24025 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
24026 * lto-cgraph.c (select_what_to_stream): Remove argument, use
24027 lto_stream_offload_p instead.
24028 * lto-streamer.h (select_what_to_stream): Remove argument.
24029 * passes.c (ipa_write_summaries): Likewise.
24030 * tree-pass.h (ipa_write_summaries): Likewise.
24032 2015-01-14 Richard Biener <rguenther@suse.de>
24034 PR tree-optimization/59354
24035 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
24036 groups larger than the slp group size as having gaps.
24038 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
24040 PR middle-end/59448
24041 * builtins.c (get_memmodel): Promote consume to acquire always.
24043 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24046 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
24049 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24052 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
24054 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
24055 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
24056 AVX512VBMI, as it implies AVX512BW.
24058 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24061 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
24062 (vec_unpacks_hi_v16sf): Ditto.
24064 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24066 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
24069 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24071 * doc/invoke.texi (mapcs): Mention deprecation.
24072 (mapcs-frame): Likewise.
24074 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
24077 * config/arm/arm.c (callee_saved_reg_p): Define.
24078 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
24079 register is callee saved instead of !call_used_regs[reg].
24080 (thumb1_compute_save_reg_mask): Likewise.
24082 2015-01-14 Hale Wang <hale.wang@arm.com>
24084 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
24087 2015-01-14 Richard Biener <rguenther@suse.de>
24090 * tree-inline.c (insert_debug_decl_map): Check destination
24091 function MAY_HAVE_DEBUG_STMTS.
24092 (insert_init_debug_bind): Likewise.
24093 (insert_init_stmt): Remove redundant check.
24094 (remap_gimple_stmt): Drop debug stmts if the destination
24095 function has var-tracking assignments disabled.
24097 2015-01-14 Martin Liska <mliska@suse.cz>
24099 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
24100 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
24102 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24105 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
24106 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
24108 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24110 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
24111 level from an ARCH; do not inject the default.
24112 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
24113 MIPS_ISA_LEVEL_SPEC.
24114 (MIPS_ISA_NAN2008_SPEC): Update comment.
24115 (BASE_DRIVER_SELF_SPECS): Likewise.
24116 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
24117 MIPS_DEFAULT_ISA_LEVEL_SPEC.
24118 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
24119 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
24120 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
24122 2015-01-14 Richard Biener <rguenther@suse.de>
24124 PR tree-optimization/64493
24125 PR tree-optimization/64495
24126 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
24127 assign the proper vectorized PHI to the inner loop exit PHIs.
24129 2015-01-14 Joey Ye <joey.ye@arm.com>
24131 * config/arm/arm.c (arm_compute_save_reg_mask):
24132 Do not save lr in case of tail call.
24133 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
24135 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
24137 * tree-vrp.c (check_array_ref): Emit more warnings
24138 for warn_array_bounds >= 2.
24139 * common.opt: New option -Warray-bounds=.
24140 * doc/invoke.texi: Document -Warray-bounds=.
24142 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
24144 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
24145 (mforbid-fp-as-gp): Remove.
24147 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
24148 (nds32_symbol_load_store_p): Remove.
24149 (nds32_fp_as_gp_check_available): Clean up implementation.
24150 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
24152 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
24153 fp-as-gp and ex9 cases.
24155 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24157 * tree-profile.c (init_ic_make_global_vars): Drop workaround
24158 for bintuils bug 14342.
24159 (init_ic_make_global_vars): Likewise.
24160 (gimple_init_edge_profiler): Likewise.
24161 (gimple_gen_ic_func_profiler): Likewise.
24163 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24165 * ipa-inline.c (inline_small_functions): Swap the operands in
24168 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24171 * ipa-inline-analysis.c (node_growth_cache): Remove.
24172 (initialize_growth_caches): Do not initialize it.
24173 (free_growth_caches): Do not free it.
24174 (do_estimate_growth): Rename to ...
24175 (estimate_growth): ... this one; drop growth cache code.
24176 (growth_likely_positive): Always go the heuristics way.
24177 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
24178 (reset_edge_caches): Do not reset node growth.
24179 (heap_edge_removal_hook): Do not maintain cache.
24180 (inline_small_functions): Likewise; strenghten sanity check.
24181 (ipa_inline): Do not maintain caches.
24182 * ipa-inline.h (node_growth_cache): Remove.
24183 (do_estimate_growth): Remove to ...
24184 (estimate_growth): this one; remove inline version.
24185 (reset_node_growth_cache): Remove.
24187 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24190 * ipa-inline.c (inline_small_functions): Update callee keys after
24191 resolving speculation
24192 (inline_small_functions): Always check monotonicity of the queue.
24194 2015-01-13 Marek Polacek <polacek@redhat.com>
24196 PR middle-end/64391
24197 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
24199 2015-01-13 Jakub Jelinek <jakub@redhat.com>
24201 PR rtl-optimization/64286
24202 * ree.c (combine_reaching_defs): Move part of comment earlier,
24203 remove !SCALAR_INT_MODE_P check.
24204 (add_removable_extension): Don't add vector mode
24205 extensions if all uses of the source register aren't the same
24208 2015-01-13 Renlin Li <renlin.li@arm.com>
24210 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
24211 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
24213 2015-01-13 Martin Liska <mliska@suse.cz>
24215 * ipa-icf.c (sem_function::equals_private): Call new functions
24216 cl_target_option_print_diff and cl_optimization_print_diff.
24217 * optc-save-gen.awk (cl_target_option_print_diff): New function.
24218 (cl_optimization_print_diff): Likewise.
24219 * opth-gen.awk: Likewise.
24221 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
24223 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
24224 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
24225 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
24226 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
24227 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
24228 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
24230 2015-01-13 Andrew Pinski <apinski@cavium.com>
24232 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
24233 instead of src mode.
24235 2015-01-13 Richard Biener <rguenther@suse.de>
24238 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
24241 2015-01-13 Andrew Pinski <apinski@cavium.com>
24243 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
24245 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
24247 2015-01-13 Jakub Jelinek <jakub@redhat.com>
24249 PR middle-end/63974
24250 * cfgexpand.c (expand_computed_goto): Don't call
24251 convert_memory_address here.
24253 2015-01-13 Richard Biener <rguenther@suse.de>
24255 PR tree-optimization/64406
24256 * tree-loop-distibution.c (pass_loop_distribution::execute):
24257 Reset the SCEV hashtable if we distributed anything.
24259 2015-01-13 Richard Biener <rguenther@suse.de>
24261 PR tree-optimization/64404
24262 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
24263 SLP types for CSEd loads.
24265 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
24267 PR tree-optimization/64436
24268 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
24269 merge of two symbolic numbers for a bitwise OR to ...
24270 (perform_symbolic_merge): This. Also fix computation of the range and
24271 end of the symbolic number corresponding to the result of a bitwise OR.
24273 2015-01-13 Richard Biener <rguenther@suse.de>
24275 PR tree-optimization/64568
24276 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
24277 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
24279 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24281 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
24282 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
24284 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24286 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
24287 target-specific symbol_ref flag.
24288 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
24289 resides in rodata section.
24290 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
24291 (nds32_encode_section_info): New function.
24293 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24295 * config/nds32/nds32.md (call): Use pseudo instruction bal which
24296 clobbers TA_REGNUM if large code model is specified.
24297 (call_register): Likewise.
24298 (call_immediate): Likewise.
24299 (call_value): Likewise.
24300 (call_value_register): Likewise.
24301 (call_value_immediate): Likewise.
24303 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24305 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
24306 (TARGET_CMODEL_MEDIUM): New macro.
24307 (TARGET_CMODEL_LARGE): New macro.
24308 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
24309 code model setting in assembly code.
24311 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24313 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24314 Remove MASK_GP_DIRECT flag.
24315 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
24316 one of the multilib default options.
24317 * config/nds32/nds32.opt (mgp-direct): Remove.
24318 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
24319 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
24321 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24323 * config/nds32/nds32.opt (mcmodel): Add new option.
24324 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
24325 to describe code model.
24327 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
24330 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
24332 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
24334 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
24335 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24336 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
24337 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
24338 __builtin_sh_set_fpscr.
24340 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
24342 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
24343 after a funtion name just to indicate it is a function.
24344 ([-fsanitize-undefined-trap-on-error]): Likewise.
24345 ([-fdbg-cnt=]): Likewise.
24346 ([-mmemcpy]): Likewise.
24347 ([-mflush-func]): Likewise.
24348 ([-msynci]): Likewise.
24350 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
24352 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
24355 2015-01-12 Jakub Jelinek <jakub@redhat.com>
24357 PR tree-optimization/64563
24358 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
24359 instead of != VR_VARYING.
24362 * config/i386/i386.c (ix86_expand_prologue): Add
24363 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
24365 PR tree-optimization/64454
24366 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
24367 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
24368 for signed or [0, op1 - 1] for unsigned modulo.
24369 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
24370 even if op1 does not satisfy integer_pow2p.
24373 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
24375 2015-01-12 Jeff Law <law@redhat.com>
24378 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
24379 (trunchiqi2, truncsihi2): Similarly.
24381 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
24382 rather than calling F.
24384 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
24386 * tsan.c (instrument_expr): Use force_gimple_operand.
24387 Use may_be_nonaddressable_p instead of is_gimple_addressable.
24389 2015-01-12 Richard Biener <rguenther@suse.de>
24391 PR tree-optimization/64530
24392 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
24395 2015-01-12 Richard Biener <rguenther@suse.de>
24397 PR middle-end/64357
24398 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
24401 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24403 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
24404 Cortex-A17 tuning parameters.
24405 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
24407 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24409 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
24410 * config/arm/arm.c (arm_macro_fusion_p): New function.
24411 (arm_macro_fusion_pair_p): Likewise.
24412 (TARGET_SCHED_MACRO_FUSION_P): Define.
24413 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
24414 (ARM_FUSE_NOTHING): Likewise.
24415 (ARM_FUSE_MOVW_MOVT): Likewise.
24416 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
24417 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
24418 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
24419 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
24420 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
24421 arm_cortex_a5_tune): Specify fuseable_ops value.
24423 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
24426 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
24427 test for PIE with copy reloc.
24428 * configure: Regenerated.
24430 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24432 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
24434 (arm_tls_descseq_addr): Likewise.
24435 (arm_gen_movmemqi): Likewise.
24436 (arm_expand_epilogue_apcs_frame): Likewise.
24437 (arm_expand_epilogue): Likewise.
24438 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
24441 2015-01-12 Martin Liska <mliska@suse.cz>
24444 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
24445 volatility for correct operands.
24447 2015-01-12 Martin Liska <mliska@suse.cz>
24449 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
24450 indication that a function is not leaf.
24451 (sem_function::compare_polymorphic_p): Likewise.
24453 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24455 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
24456 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
24457 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
24458 fold-const.h, tree-check.h.
24460 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
24464 * ipa-inline.c (compute_uninlined_call_time,
24465 compute_inlined_call_time): Use counts for extra precision when
24467 (big_speedup_p): Fix formating.
24468 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
24469 (relative_time_benefit): Remove.
24470 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
24471 merge guessed and read profile paths.
24472 (inline_small_functions): Count only !optimize_size functions into
24473 initial size; be more lax about sanity check when profile is used;
24474 be sure to update inlined function profile when profile is read.
24476 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
24479 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
24480 cost when edge becomes direct.
24481 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
24482 is resolved or when introducing new speculation.
24484 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
24488 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
24489 '||' to fix typo issue.
24491 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
24492 accept and return NULL.
24494 2015-01-12 Martin Liska <mliska@suse.cz>
24496 * cgraph.c (cgraph_edge::remove_callee): Move function to header
24497 file for being inlined.
24498 (cgraph_set_edge_callee): Delete.
24499 (cgraph_edge::redirect_callee): Move function to header file
24501 (cgraph_edge::make_direct): Use new function.
24502 (cgraph_edge::dump_edge_flags): New function created from
24503 static dump_edge_flags function.
24504 (cgraph_node::dump): Use new function.
24505 (cgraph_edge::verify_count_and_frequency): New function created
24506 from verify_edge_count_and_frequency.
24507 (cgraph_edge::verify_corresponds_to_fndecl): New function created
24508 from verify_edge_corresponds_to_fndecl.
24509 (verify_edge_corresponds_to_fndecl): Delete.
24510 (cgraph_node::verify_node): Use new function.
24511 * cgraph.h (cgraph_edge::set_callee): New function.
24512 (cgraph_edge::dump_edge_flags): Likewise.
24513 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
24515 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
24517 * ipa-utils.c (estimate_function_body_sizes): Do not
24518 free node params when called late with early=true.
24520 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
24522 * doc/md.texi (Instruction Patterns): Rewrite text for
24524 (Example): Likewise.
24526 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
24528 * doc/invoke.texi (Option Summary): Break long lines.
24529 [(-fdiagnostics-color)]: Put long literal in @smallexample
24531 [(-fsanitize-recover)]: Likewise.
24532 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
24533 [(-ffast-math)]: Likewise.
24534 [(--param max-inline-insns-recursive)]: Likewise.
24535 [(--param max-inline-recursive-depth)]: Likewise.
24536 [(-mno-text-section-literals)]: Likewise.
24538 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
24540 * doc/install.texi: Update for libgomp being renamed from "GNU
24541 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
24543 * doc/sourcebuild.texi: Likewise.
24545 2015-01-10 Anthony Green <green@moxielogic.com>
24547 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
24548 mul.x availability for moxiebox configuration.
24550 2015-01-09 Anthony Green <green@moxielogic.com>
24552 * config/moxie/moxie.md: Tabify assembly output.
24554 2015-01-09 Anthony Green <green@moxielogic.com>
24556 * config/moxie/moxie.md (CC_REG): Correct register definition.
24558 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
24560 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
24561 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
24564 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
24566 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
24568 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
24569 Jakub Jelinek <jakub@redhat.com>
24571 PR middle-end/64412
24572 * lto-streamer.h (lto_stream_offload_p): New declaration.
24573 * lto-streamer.c (lto_stream_offload_p): New variable.
24574 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
24575 at the same time as section_name_prefix.
24576 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
24577 if lto_stream_offload_p.
24578 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
24579 stream TREE_TARGET_OPTION if lto_stream_offload_p.
24580 (write_ts_function_decl_tree_pointers): Don't
24581 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
24582 * tree-streamer-in.c (unpack_value_fields): Don't stream
24583 TREE_TARGET_OPTION in if ACCEL_COMPILER.
24584 (lto_input_ts_function_decl_tree_pointers): Don't stream
24585 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
24586 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
24587 instead of section_name_prefix string comparisons.
24589 2015-01-09 Jakub Jelinek <jakub@redhat.com>
24591 PR rtl-optimization/64536
24592 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
24595 2015-01-09 Michael Collison <michael.collison@linaro.org>
24597 PR tree-optimization/64322
24598 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
24599 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
24601 2015-01-09 Tom de Vries <tom@codesourcery.com>
24603 PR rtl-optimization/64539
24604 * regcprop.c (kill_clobbered_values): Factor out of ...
24605 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
24606 instead of note_stores with kill_clobbered_value.
24608 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
24610 * ginclude/unwind-arm-common.h: Revert previous commit.
24612 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
24614 * config.gcc (arm*-*-freebsd*): New configuration.
24615 * config/arm/freebsd.h: New file.
24616 * config.host: Add extra components for arm*-*-freebsd*.
24617 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
24618 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
24620 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24622 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
24624 * config/rs6000/t-rtems: Add e6500 multilibs.
24626 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24628 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
24631 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24633 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
24634 MULTILIB_EXCEPTIONS.
24636 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24638 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
24639 MULTILIB_EXCEPTIONS.
24641 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24643 * config/arm/t-rtems-eabi: Rename to...
24644 * config/arm/t-rtems: ...this.
24645 * config/arm/rtems-eabi.h: Rename to...
24646 * config/arm/rtems.h: ...this.
24647 * config.gcc (arm*-*-rtems*): Reflect changes above.
24649 2015-01-09 Richard Biener <rguenther@suse.de>
24651 PR tree-optimization/64410
24652 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
24654 (execute_update_addresses_taken): Deal with that.
24655 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
24656 loads/stores for complex variables.
24658 2015-01-09 Martin Liska <mliska@suse.cz>
24660 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
24662 (func_checker::compare_memory_operand): New function.
24663 (func_checker::compare_operand): Split case to newly
24665 (func_checker::compare_cst_or_decl): New function.
24666 (func_checker::compare_gimple_call): Identify
24668 (func_checker::compare_gimple_assign): Likewise.
24669 * ipa-icf-gimple.h: New function.
24671 2015-01-09 Martin Liska <mliska@suse.cz>
24674 * sreal.c (sreal::dump): Change unsigned format to signed for
24676 (sreal::to_double): Replace exp2 with scalbln.
24678 2015-01-09 Martin Liska <mliska@suse.cz>
24680 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
24681 * ipa-icf.c (sem_function::equals_private): Add support for target and
24682 (sem_item_optimizer::merge_classes): Remove redundant function
24683 optimization flags comparison.
24684 * tree.h (target_opts_for_fn): New function.
24686 2015-01-09 Tom de Vries <tom@codesourcery.com>
24688 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
24690 2015-01-09 Kito Cheng <kito@0xlab.org>
24692 PR rtl-optimization/64348
24693 * lra-constraints.c (split_reg): Fix caller-save store/restore
24694 instruction generation.
24696 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
24698 PR gcov-profile/61790
24699 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
24700 long long. Fallback to int64_t if host doesn't have long long and
24701 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
24703 2015-01-08 Jakub Jelinek <jakub@redhat.com>
24705 PR tree-optimization/63989
24706 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
24707 from 1000 to 10000.
24708 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
24709 (get_stridx): If we don't have a record for certain SSA_NAME,
24710 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
24711 constant offset, call get_stridx_plus_constant.
24712 (get_stridx_plus_constant): New function.
24713 (zero_length_string): Don't use get_stridx here.
24716 PR middle-end/64388
24717 * dse.c (struct insn_info): Mention frame_read set also
24718 before reload for tail calls on some targets.
24719 (scan_insn): Revert 2014-12-22 change. Set frame_read
24720 also before reload for tail calls if
24721 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
24722 instead of add_non_frame_wild_read for non-const/memset
24723 tail calls after reload.
24725 2015-01-08 Jason Merrill <jason@redhat.com>
24727 * ubsan.c (do_ubsan_in_current_function): New.
24728 (pass_ubsan::gate): Use it.
24729 * ubsan.h: Declare it.
24730 * convert.c (convert_to_integer): Use it.
24732 2015-01-08 Jakub Jelinek <jakub@redhat.com>
24735 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
24736 compare_code when it is unconditionally overwritten afterwards.
24737 Use ix86_reverse_condition instead of reverse_condition. Don't
24738 change code if *reverse_condition* returned UNKNOWN and don't
24739 swap ct/cf and negate diff in that case.
24741 2015-01-08 Mike Stump <mikestump@comcast.net>
24743 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
24744 (pass_tsan_O0::gate): Likewise.
24745 * extend.texi (Function Attributes): Add no_sanitize_thread
24748 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
24750 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
24751 for registering builtins.
24752 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
24753 add -fopenmp to the argv_obstack used when invoking
24754 compile_for_target.
24756 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
24757 add "-m32" or "-m64" to argv_obstack.
24758 (generate_host_descr_file): Likewise, when invoking host_compiler.
24759 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
24762 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
24764 * config/sh/sh-mem.cc: Use constant as second operand when emitting
24767 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
24770 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
24771 constant load if constant operand fits into I08.
24773 2015-01-08 Jakub Jelinek <jakub@redhat.com>
24776 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
24777 and TREE_THIS_VOLATILE for MEM_REFs.
24778 (build5_stat): Fix up initialization of TREE_READONLY and
24779 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
24781 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
24784 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
24785 of r for the second alternative of the destination operand.
24787 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
24790 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
24792 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
24794 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
24796 ([-fivar-visibility], [-fvisibility]): Likewise.
24798 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
24800 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
24801 the file where @code, @command, etc is more appropriate.
24803 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
24805 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
24806 of -mrecip= documentation.
24808 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24811 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
24812 correct reload handler if -m32 -mpowerpc64 is used.
24814 2015-01-06 Tom de Vries <tom@codesourcery.com>
24816 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
24818 2015-01-08 Christian Bruel <christian.bruel@st.com>
24821 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
24823 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
24825 PR tree-optimization/63259
24826 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
24827 if optab exists for 16bit byteswap.
24829 2015-01-06 Jakub Jelinek <jakub@redhat.com>
24831 * opts.c (common_handle_option): Add support for
24832 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
24833 * doc/invoke.texi: Document -fno-sanitize=all,
24834 -f{,no-}sanitize-recover=all. Document that
24835 -fsanitize=float-cast-overflow is not enabled
24836 by -fsanitize=undefined. Fix up documentation
24837 of -f{,no-}sanitize-recover.
24839 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
24841 * config.gcc: Add Visium support.
24842 * configure.ac: Likewise.
24843 * configure: Regenerate.
24844 * doc/extend.texi (interrupt attribute): Add Visium.
24845 * doc/invoke.texi: Document Visium options.
24846 * doc/install.texi: Document Visium target.
24847 * doc/md.texi: Document Visium constraints.
24848 * common/config/visium: New directory.
24849 * config/visium: Likewise.
24851 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
24853 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
24854 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
24856 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
24858 * combine.c (combine_validate_cost): Do not count the cost of a
24859 split I2 twice. Do not display it twice in the dump, either.
24861 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
24863 Revert parts of r219199.
24864 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
24866 ([-Wtraditional]): Restore markup on <limits.h>.
24868 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
24871 * doc/invoke.texi: Document -Wsuggest-override.
24873 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
24875 PR rtl-optimization/64287
24876 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
24877 (process_options): Disable flag_ipa_ra if profiling.
24879 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
24881 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
24883 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
24885 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
24886 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
24887 put under #if TARGET_LOOPS guard.
24889 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
24891 * config/i386/i386.c (output_387_binary_op): Use std::swap.
24893 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
24895 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
24896 * rtl.h (refers_to_regno_p): Add overload.
24898 * bt-load.c: Likewise.
24899 * combine.c: Likewise.
24900 * df-scan.c: Likewise.
24901 * sched-deps.c: Likewise.
24902 * config/s390/s390.c: Likewise.
24903 * config/m32r/m32r.c: Likewise.
24904 * config/rs6000/spe.md: Likewise.
24905 * config/rs6000/rs6000.c: Likewise.
24906 * config/pa/pa.c: Likewise.
24907 * config/stormy16/stormy16.c: Likewise.
24908 * config/cris/cris.c: Likewise.
24909 * config/arc/arc.md: Likewise.
24910 * config/arc/arc.c: Likewise.
24911 * config/sh/sh.md: Likewise.
24912 * config/sh/sh.c: Likewise.
24913 * config/frv/frv.c: Likewise.
24915 2015-01-05 Jakub Jelinek <jakub@redhat.com>
24918 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
24919 call as cleanup of the whole body.
24920 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
24921 * tsan.c (replace_func_exit): New function.
24922 (instrument_func_exit): Moved earlier.
24923 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
24924 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
24926 (tsan_pass): Don't call instrument_func_exit.
24927 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
24928 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
24932 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
24933 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
24934 it to libubsan handler instead of EXPR. Fold comparisons earlier,
24935 if the result is integer_zerop, return NULL_TREE.
24936 * convert.c (convert_to_integer): Pass expr as ARG.
24938 PR tree-optimization/64465
24939 * tree-inline.c (redirect_all_calls): During inlining
24940 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
24941 changed the stmt to a non-throwing call.
24943 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
24945 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
24946 etc markup throughout the file.
24948 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
24950 Enable experimental TSAN support for Ada.
24951 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
24953 2015-01-05 Jakub Jelinek <jakub@redhat.com>
24955 PR tree-optimization/64494
24956 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
24957 clear SSA_NAME_ANTI_RANGE_P flag.
24959 2015-01-05 Marek Polacek <polacek@redhat.com>
24961 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
24963 2015-01-05 Jakub Jelinek <jakub@redhat.com>
24965 Update copyright years.
24967 * gcc.c (process_command): Update copyright notice dates.
24968 * gcov-dump.c: Ditto.
24970 * doc/cpp.texi: Bump @copying's copyright year.
24971 * doc/cppinternals.texi: Ditto.
24972 * doc/gcc.texi: Ditto.
24973 * doc/gccint.texi: Ditto.
24974 * doc/gcov.texi: Ditto.
24975 * doc/install.texi: Ditto.
24976 * doc/invoke.texi: Ditto.
24978 * auto-profile.c, auto-profile.h: Fix up Copyright line.
24980 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
24982 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
24984 ([-fvtable-verify], [-fvtv-debug]): Likewise.
24985 ([-Wabi]): Likewise.
24986 ([-fmessage-length]): Likewise.
24987 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
24988 ([-Wno-discarded-qualifiers]): Likewise.
24989 ([-Wnodiscarded-array-qualifiers]): Likewise.
24990 ([-Wno-virtual-move-assign]): Likewise.
24991 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
24992 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
24993 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
24994 ([-fsanitize-undefined-trap-on-error]): Likewise.
24995 ([-floop-interchange]): Likewise.
24996 ([-ftree-coalesce-inlined-vars]): Likewise.
24997 ([-fvect-cost-model]): Likewise.
24998 ([-flto]): Likewise.
24999 ([--param]): Likewise.
25000 (Spec Files): Likewise.
25001 ([-mstrict-align]): Likewise.
25002 ([-mfix-cortex-a53-835769]): Likewise.
25003 ([-march], [-mtune]): Likewise.
25004 ([-mpic-register]): Likewise.
25005 ([-munaligned-access]): Likewise.
25006 ([-msp8]): Likewise.
25007 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
25008 (AVR Built-in Macros): Likewise.
25009 ([-mpreferred-stack-boundary]): Likewise.
25010 ([-mtune-crtl]): Likewise.
25011 ([-mashf]): Likewise.
25012 ([-mmcu=]): Likewise.
25013 ([-minrt]): Likewise.
25014 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
25015 ([-mupper-regs]): Likewise.
25016 ([-matomic-model]): Likewise.
25017 ([-mdiv]): Likewise.
25018 ([-mzdcbranch]): Likewise.
25019 ([-mdisable-callt]): Likewise.
25020 ([-msoft-float]): Likewise.
25021 ([-m8byte-align]): Likewise.
25022 ([-fstack-reuse]): Likewise.
25024 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25026 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
25027 Fix markup, light copy-editing.
25028 ([-fauto-profile]): Rewrite to fix formatting and content
25031 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25033 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
25034 Copy-edit description.
25035 ([-fisolate-erroneous-paths-attribute]): Likewise.
25036 * common.opt (fisolate-erroneous-paths-dereference):
25037 Copy-edit description.
25038 (fisolate-erroneous-paths-attribute): Likewise.
25040 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25042 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
25045 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25047 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
25048 ([-fvtv-debug]): Likewise.
25049 ([-Wc++-compat]): Likewise.
25050 ([-Wc++11-compat]): Likewise.
25051 ([-Wc++14-compat]): Likewise.
25052 ([-Wno-sized-deallocation]): Likewise.
25053 ([-femit-class-debug-always]): Likewise.
25054 ([-femit-struct-debug-detailed]): Likewise.
25055 ([-fno-keep-inline-dllexport]): Likewise.
25056 ([-fira-algorithm]): Likewise.
25057 ([-fira-region]): Likewise.
25058 ([-flra-remat]): Likewise.
25059 ([-fipa-ra]): Likewise.
25060 ([-fhoist-adjacent-loads]): Likewise.
25061 ([-fisolate-erroneous-paths-dereference]): Likewise.
25062 ([-fisolate-erroneous-paths-attribute]): Likewise.
25063 ([-ftree-switch-conversion]): Likewise.
25064 ([-ftree-tail-merge]): Likewise.
25065 ([-ftree-loop-if-convert]): Likewise.
25066 ([-ftree-loop-if-convert-stores]): Likewise.
25067 ([-ftree-loop-distribution]): Likewise.
25068 ([-ftree-loop-distribute-patterns]): Likewise.
25069 ([-flto-compression-level]): Likewise.
25070 ([-flto-report]): Likewise.
25071 ([-flto-report-wpa]): Likewise.
25072 ([-fuse-linker-plugin]): Likewise.
25073 ([-mfix-cortex-a53-835769]): Likewise.
25074 ([-mno-fix-cortex-a53-835769]): Likewise.
25075 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
25076 explicit listing; add a note to the discussion indicating they
25077 exist. Reorder table to group similar options. Add missing
25078 @opindex entries. Add @need commands throughout the table to
25079 allow it to be split across multiple pages.
25080 ([-m8bit-idiv]): Fix @opindex.
25081 ([-mavx256-split-unaligned-load]): Likewise.
25082 ([-mavx256-split-unaligned-store]): Likewise.
25083 ([-mstack-protector-guard]): Likewise.
25084 ([-mcpu=]): Likewise.
25085 ([-mcpu]): Likewise.
25086 ([-mpointer-size=]): Likewise.
25088 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
25090 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
25091 instead of `m' constraint. Likewise for unnamed movb comparison
25092 patterns using reg_before_reload_operand predicate.
25093 * config/pa/predicates.md (reg_before_reload_operand): Tighten
25094 predicate to reject register index and LO_SUM DLT memory forms
25097 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
25099 * doc/invoke.texi (Option Summary): Fix spelling of
25100 -fdevirtualize-at-ltrans.
25101 ([-fdevirtualize]): Fix markup.
25102 ([-fdevirtualize-speculatively]): Fix typo.
25103 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
25104 implementor-speaky.
25105 * common.opt (fdevirtualize-at-ltrans): Likewise.
25106 * ipa-devirt.c: Fix typos in comments throughout the file.
25107 (ipa_devirt): Fix typos in format strings for dump output.
25109 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
25111 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
25112 discussion of defaults, light copy-editing.
25114 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25116 * tsan.c (instrument_expr): corrected previous checkin.
25118 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25120 Instrument bit field and unaligned accesses for TSAN.
25121 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
25122 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
25123 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
25124 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
25125 unaligned memory regions.
25127 2015-01-01 Anthony Green <green@moxielogic.com>
25129 * config/moxie/predicates.md (moxie_general_movsrc_operand):
25130 Restrict move source register offsets to 16 bits.
25132 Copyright (C) 2015 Free Software Foundation, Inc.
25134 Copying and distribution of this file, with or without modification,
25135 are permitted in any medium without royalty provided the copyright
25136 notice and this notice are preserved.