1 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
5 predicate to allow construction of vector constants using the
6 VSLDOI vector shift instruction.
8 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
11 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
12 the number of bytes to be shifted left and filled in with either
13 all zero or all one bits.
14 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
16 (output_vec_const_move): On power8, generate XXLORC to generate
17 a vector constant with all 1's. Do a split if we need to use a
20 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
21 properly test for the MSB.
23 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
24 vector constants that can be created with VSLDOI.
26 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
29 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
30 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
31 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
32 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
33 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
34 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
35 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
36 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
37 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
39 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
41 * config/xtensa/constraints.md (define_constraint "Y"): New
43 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
44 * config/xtensa/linux.h (ASM_SPEC): Likewise.
45 * config/xtensa/predicates.md (move_operand): Match constants
46 and symbols in the presence of TARGET_AUTO_LITPOOLS.
47 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
48 immediate references to TLS data.
49 (xtensa_emit_move_sequence): Don't force constants to memory in
50 the presence of TARGET_AUTO_LITPOOLS.
51 (print_operand): Add 'y' format, same as default, but capable of
52 printing SF mode constants as well.
53 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
54 (movsf_internal): Add movi pattern that loads literal.
55 (movsf, movdf): Don't force constants to memory in the presence
56 of TARGET_AUTO_LITPOOLS.
57 (movdf_internal): Add 'Y' constraint.
58 * config/xtensa/xtensa.opt (mauto-litpools): New option.
59 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
61 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
63 * config/arm/arm-fpus.def: Replace booleans with feature flags.
65 * config/arm/arm.c (ARM_FPU): Update macro.
66 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
67 (TARGET_FP16): Likewise.
68 (TARGET_CRYPTO): Likewise.
69 (TARGET_NEON): Likewise.
70 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
73 2015-08-12 Tom de Vries <tom@codesourcery.com>
77 * doc/install.texi: Remove --with_host_libstdcxx item. Update
78 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
79 accordingly. Mention default for --with-stage1-ldflags.
81 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
83 * config/arm/arm.h (arm_fpu_feature_set): New.
84 (ARM_FPU_FSET_HAS): New.
90 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
92 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
93 after -mcmodel=large -fPIC sorry.
95 2015-08-12 Richard Biener <rguenther@suse.de>
97 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
98 comparison operand order and commutative ternary op operand order.
99 (sccvn_dom_walker::cond_stack): New state to track temporary
101 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
103 (sccvn_dom_walker::record_cond): Add a single temporary conditional
105 (sccvn_dom_walker::record_conds): Add a temporary conditional
106 expressions and all related expressions also true/false.
107 (sccvn_dom_walker::before_dom_children): Record temporary
108 expressions based on the controlling condition of a single
109 predecessor. When trying to simplify a conditional statement
110 lookup expressions we might have inserted earlier.
112 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
115 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
116 to ARM core registers.
118 2015-08-12 Nathan Sidwell <nathan@acm.org>
120 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
121 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
123 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
125 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
127 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
129 2015-08-12 Richard Biener <rguenther@suse.de>
131 * gimple.h (remove_pointer): New trait.
132 (GIMPLE_CHECK2): New inline template function.
133 (gassign::code_): New constant static member.
134 (is_a_helper<const gassign *>): Add.
135 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
136 and forward to a new gassign overload with less checking and a
137 cheaper way to access the operand.
138 (gimple_assign_lhs_ptr): Likewise.
139 (gimple_assign_set_lhs): Likewise.
140 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
142 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
144 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
146 (gimple_assign_rhs_code): Likewise.
147 * gimple.c (gassign::code_): Define.
149 2015-08-12 Richard Biener <rguenther@suse.de>
151 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
152 Eliminate edges marked as not executable by SCCVN.
153 * tree-ssa-sccvn.c: Include gimple-iterator.h.
154 (cond_dom_walker): Rename to sccvn_dom_walker.
155 (sccvn_dom_walker::before_dom_children): Value-number defs
157 (run_scc_vn): Remove loop value-numbering all SSA names.
158 Drop not visited SSA names to varying.
160 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
162 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
163 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
164 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
165 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
166 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
167 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
168 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
169 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
170 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
172 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
175 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
176 to enum feature_priority and feature_list.
177 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
180 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
182 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
185 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
189 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
190 account when deciding what was the command-line status.
192 2015-08-11 Nathan Sidwell <nathan@acm.org>
194 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
196 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
197 we're not the only contributor to target phi.
199 2015-08-11 Jiong Wang <jiong.wang@arm.com>
201 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
204 2015-08-11 Tom de Vries <tom@codesourcery.com>
206 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
208 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
210 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
212 * config/i386/i386.md (cpu): Remove knl.
214 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
218 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
220 * omp-low.c (oacc_process_reduction_data): Remove handline of
221 GOMP_DEVICE_HOST_NONSHM.
223 * lto-streamer-in.c (lto_input_mode_table): Adjust to
224 GET_MODE_INNER changes.
226 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
227 Ilya Verbin <ilya.verbin@intel.com>
229 * lto-streamer-in.c (lto_input_mode_table): Correctly advance
232 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
234 * doc/options.texi (EnabledBy): Document that the argument must be
236 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
237 Not enabled by -Wall.
238 * optc-gen.awk: Give nicer error messages. Detect if the argument
239 of EnabledBy is not a Common option.
240 * common.opt (Wnull-dereference): Not enabled by -Wall.
241 * opt-functions.awk (lang_enabled_by): Nicer error messages.
243 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
245 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
246 model == 0x4f as Broadwell.
248 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
250 PR rtl-optimization/67028
251 * combine.c (simplify_comparison): Fix comment. Rearrange code.
252 Add test to see if a const_int fits in the new mode.
254 2015-08-07 DJ Delorie <dj@redhat.com>
256 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
258 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
260 PR rtl-optimization/67029
261 * ira-color.c: Include "recog.h" before including "ira-int.h".
262 * target-globals.c: Likewise.
263 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
264 adds an alternative_mask argument and use it instead of
265 preferred_alternatives.
266 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
267 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
268 * sched-deps.c: Include "ira-int.h" after including "ira.h".
269 (sched_analyze_insn): Update call to
270 ira_implicitly_set_insn_hard_regs.
271 * sel-sched.c: Include "ira-int.h" after including "ira.h".
272 (implicit_clobber_conflict_p): Update call to
273 ira_implicitly_set_insn_hard_regs.
275 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
277 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
279 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
282 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
283 currently_expanding_to_rtl is set.
285 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
287 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
288 * configure: Regenerate.
290 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
291 Jiong Wang <jiong.wang@arm.com>
293 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
294 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
295 (REG_CLASS_NAMES): Likewise.
296 (REG_CLASS_CONTENTS): Likewise.
297 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
298 (aarch64_register_move_cost): Likewise.
299 (aarch64_load_symref_appropriately): Invoke the new added pattern if
301 * config/aarch64/constraints.md (Uc0): New constraint.
303 2015-08-06 Jiong Wang <jiong.wang@arm.com>
305 * config/aarch64/constraints.md (Usf): Add the test of
306 aarch64_is_noplt_call_p.
308 2015-08-06 Jiong Wang <jiong.wang@arm.com>
310 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
312 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
313 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
314 (call_symbol): Likewise.
316 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
318 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
319 for vectorizing multiplication patterns.
320 * tree-vectorizer.h: Adjust the number of patterns.
322 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
324 * config/i386/sse.md (*vec_concatv2df): Declare added
325 alternatives as sselog type.
327 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
329 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
332 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
334 * config/s390/s390.c (s390_expand_tbegin): Expand either
335 tbegin_1_z13 or tbegin_1 depending on VX flag.
336 * config/s390/s390.md ("tbegin_1_z13"): New expander.
338 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
340 * config/s390/s390.opt: Clarify description for -mzvector
341 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
344 2015-08-06 Richard Biener <rguenther@suse.de>
346 * gimple.h (gimple_call_set_fn): Access op member directly.
347 (gimple_call_chain_ptr): Likewise.
348 (gimple_call_set_chain): Likewise.
349 (gimple_cond_lhs_ptr): Likewise.
350 (gimple_cond_set_lhs): Likewise.
351 (gimple_cond_rhs_ptr): Likewise.
352 (gimple_cond_set_rhs): Likewise.
353 (gimple_cond_true_label): Likewise.
354 (gimple_cond_set_true_label): Likewise.
355 (gimple_cond_set_false_label): Likewise.
356 (gimple_cond_false_label): Likewise.
357 (gimple_label_label): Likewise.
358 (gimple_label_set_label): Likewise.
359 (gimple_goto_set_dest): Likewise.
360 (gimple_asm_input_op): Likewise.
361 (gimple_asm_input_op_ptr): Likewise.
362 (gimple_asm_set_input_op): Likewise.
363 (gimple_asm_output_op): Likewise.
364 (gimple_asm_output_op_ptr): Likewise.
365 (gimple_asm_set_output_op): Likewise.
366 (gimple_asm_clobber_op): Likewise.
367 (gimple_asm_set_clobber_op): Likewise.
368 (gimple_asm_label_op): Likewise.
369 (gimple_asm_set_label_op): Likewise.
370 (gimple_switch_index): Likewise.
371 (gimple_switch_index_ptr): Likewise.
372 (gimple_return_retval_ptr): Likewise.
373 (gimple_return_retval): Likewise.
374 (gimple_return_set_retval): Likewise.
375 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
376 (gimple_switch_label): Likewise.
377 (gimple_switch_set_label): Likewise.
379 2015-08-06 Richard Biener <rguenther@suse.de>
381 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
382 bool comparison canonicalization and restrict to integers.
384 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
386 * coretypes.h (enum symbol_visibility): Relocate here.
387 * flag-types.h (enum symbol_visibility): Remove.
388 * tree-core.h (enum symbol_visibility): Remove.
390 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
393 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
394 for no_split_stack function attribute along with
396 (rs6000_expand_split_stack_prologue): Likewise.
398 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
399 Jeff Law <law@redhat.com>
402 * doc/invoke.texi (Wnull-dereference): New.
403 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
404 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
405 Warn for potential NULL dereferences.
406 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
407 * ubsan.c (instrument_nonnull_arg): Call
408 infer_nonnull_range_by_attribute.
409 (instrument_nonnull_return): Likewise.
410 * common.opt (Wnull-dereference); New.
411 * gimple.c (infer_nonnull_range): Remove bool arguments.
412 (infer_nonnull_range_by_dereference): New.
413 (infer_nonnull_range_by_attribute): New.
414 * gimple.h: Update declarations.
416 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
418 * gensupport.c (sequence_num): Replace with...
419 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
420 ...these new variables.
421 (init_rtx_reader_args_cb): Update accordingly.
422 (get_num_code_insns): Likewise.
423 (read_md_rtx): Rework to use a while loop and get_c_test.
424 Use the new counters. Remove redundant DEFINE_SUBST case.
425 * genoutput.c (gen_split): Delete.
426 (main): Don't call it.
428 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
430 * gensupport.h (get_c_test): Declare.
431 * gensupport.c (get_c_test): New function.
432 * genconditions.c (main): Use it.
433 * genrecog.c (validate_pattern): Likewise.
434 (match_pattern_1): Likewise. Remove c_test argument.
435 (match_pattern): Update accordingly and remove c_test argument.
436 (main): Update accordingly.
438 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
440 * gensupport.h (get_num_insn_codes): Declare.
441 * gensupport.c (get_num_insn_codes): New function.
442 * genattrtab.c (optimize_attrs): Rename max_insn_code to
444 (main): Likewise. Use get_num_insn_codes.
445 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
447 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
450 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
451 is zero- rather than sign-extended.
453 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
455 * target-insns.def (can_extend): Delete.
457 2015-08-05 Richard Biener <rguenther@suse.de>
459 PR tree-optimization/67121
460 * tree-if-conv.c (combine_blocks): Clear range-info produced
461 by stmts no longer executed conditionally.
463 2015-08-05 Nick Clifton <nickc@redhat.com>
465 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
466 to allow identical far pointers to remain.
468 2015-08-05 Richard Biener <rguenther@suse.de>
471 * match.pd: Compare address bases with == if they are decls
472 or SSA names, not operand_equal_p. Otherwise fail.
474 2015-08-05 Richard Biener <rguenther@suse.de>
476 PR tree-optimization/67055
477 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
480 * g++.dg/torture/pr67055.C: New testcase.
482 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
484 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
486 (define_attr "enabled"): Handle avx521vl and noavx512vl.
487 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
488 AVX-512 alternative out of SSE.
489 (define_insn "*vec_concatv2df"): Ditto.
491 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
493 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
494 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
495 CODE_FOR_avx_ptestv4di.
496 * config/i386/sse.md (define_mode_iterator V_AVX): New.
497 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
498 (define_insn "avx_ptest256"): Merge this ...
499 (define_insn "sse4_1_ptest"): And this ...
500 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
502 2015-08-05 Richard Biener <rguenther@suse.de>
504 PR tree-optimization/67109
505 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
506 against too big groups. Print whether this is a load or store
507 group. Rename from ...
508 (vect_analyze_group_access): ... this which is now a wrapper
509 dissolving an invalid group.
510 (vect_analyze_data_ref_accesses): Print whether this is a load
513 2015-08-05 Richard Biener <rguenther@suse.de>
516 * match.pd: Guard const_binop result checking against NULL_TREE
519 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
521 * cse.c (cse_insn): Restoring old behaviour for src_eqv
522 when dest and value in the REG_EQUAL are same and dest
525 2015-08-04 Anatoly Sokolov <aesok@post.ru>
527 * config/moxie/moxie.h (PRINT_OPERAND,
528 PRINT_OPERAND_ADDRESS): Remove macros.
529 * config/moxie/moxie-protos.h (moxie_print_operand,
530 moxie_print_operand_address): Remove declaration.
531 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
532 TARGET_PRINT_OPERAND_ADDRESS): Define.
533 (moxie_print_operand, moxie_print_operand_address): Make static.
535 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
538 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
539 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
541 2015-08-04 Richard Biener <rguenther@suse.de>
543 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
545 (dt_operand::gen_gimple_expr): Adjust.
547 2015-08-04 Richard Biener <rguenther@suse.de>
549 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
550 bool compares on RHS.
551 * match.pd: Add X ==/!= !X is false/true pattern.
553 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
555 * config/aarch64/aarch64.c: Change inner loop statement cost
556 to be consistent with other targets.
558 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
560 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
563 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
565 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
566 (machine_function): Remove pseudos field.
568 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
570 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
571 Exit early and use target_option_current_node if processing current
574 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
576 * doc/extend.texi (AArch64 Function Attributes): New node.
577 (AArch64 Pragmas): Likewise.
579 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
581 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
582 Initialize simd builtins if TARGET_SIMD.
583 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
584 Make sure that the builtins are initialized only once no matter how
585 many times the function is called.
586 (aarch64_init_builtins): Unconditionally initialize crc builtins.
587 (aarch64_relayout_simd_param): New function.
588 (aarch64_simd_expand_args): Use above during argument expansion.
589 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
590 simd builtins if TARGET_SIMD.
591 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
593 (aarch64_relayout_simd_types): Likewise.
595 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
597 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
598 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
599 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
600 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
602 (aarch64_reset_previous_fndecl): New function.
603 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
605 * config/aarch64/aarch64-c.c: New file.
606 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
607 Push and pop options at beginning and end. Remove ifdef
609 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
610 Add pragma +nothing+simd and +nothing+crypto where appropriate.
611 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
612 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
614 (aarch64_register_pragmas): Likewise.
615 (aarch64_reset_previous_fndecl): Likewise.
616 (aarch64_process_target_attr): Likewise.
617 (aarch64_override_options_internal): Likewise.
619 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
621 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
623 (aarch64_can_inline_p): Likewise.
624 (TARGET_CAN_INLINE_P): Define.
626 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
628 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
629 Remove static. Handle OPT_mgeneral_regs_only,
630 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
631 OPT_momit_leaf_frame_pointer.
632 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
633 (aarch64_attr_opt_type): New enum.
634 (aarch64_attribute_info): New struct.
635 (aarch64_handle_attr_arch): New function.
636 (aarch64_handle_attr_cpu): Likewise.
637 (aarch64_handle_attr_tune): Likewise.
638 (aarch64_handle_attr_isa_flags): Likewise.
639 (aarch64_attributes): New table.
640 (aarch64_process_one_target_attr): New function.
641 (num_occurences_in_str): Likewise.
642 (aarch64_process_target_attr): Likewise.
643 (aarch64_option_valid_attribute_p): Likewise.
644 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
645 * config/aarch64/aarch64-protos.h: Include input.h
646 (aarch64_handle_option): Declare prototype.
648 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
650 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
651 * config/aarch64/aarch64.c: Include target-globals.h
652 (aarch64_previous_fndecl): New variable.
653 (aarch64_set_current_function): New function.
654 (TARGET_SET_CURRENT_FUNCTION): Define.
656 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
658 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
659 (explicit_arch): Likewise.
660 (x_aarch64_isa_flags): Likewise.
661 (mgeneral-regs-only): Mark as Save.
662 (mfix-cortex-a53-835769): Likewise.
663 (mcmodel=): Likewise.
664 (mstrict-align): Likewise.
665 (momit-leaf-frame-pointer): Likewise.
666 (mtls-dialect): Likewise.
668 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
669 (aarch64_isa_flags): Remove extern declaration.
670 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
671 to indicate success or failure.
672 (aarch64_validate_march): Likewise.
673 (aarch64_validate_mtune): Likewise.
674 (aarch64_isa_flags): Delete.
675 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
676 instead of aarch64_isa_flags.
677 (aarch64_get_tune_cpu): New function.
678 (aarch64_get_arch): Likewise.
679 (aarch64_override_options): Use above and set up explicit_tune_core
681 (aarch64_print_extension): Move earlier in file. Add isa_flags
682 argument and use that instead of the global aarch64_isa_flags.
683 (aarch64_option_save): New function.
684 (aarch64_option_restore): Likewise.
685 (aarch64_option_print): Likewise.
686 (aarch64_declare_function_name): Likewise.
687 (aarch64_start_file): Delete.
688 (TARGET_ASM_FILE_START): Do not define.
689 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
690 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
693 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
695 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
696 flag_omit_leaf_frame_pointer to 2.
698 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
700 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
702 (TARGET_FIX_ERR_A53_835769): New macro.
703 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
704 handling of opts->x_aarch64_fix_a53_err835769.
705 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
706 than aarch64_fix_a53_err835769.
707 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
708 * config/aarch64/aarch64-linux.h: Likewise.
710 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
712 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
713 ix86_expand_int_movcc as boolean.
715 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
717 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
718 (aarch64_cpu_string): Likewise.
719 (aarch64_tune_string): Likewise.
720 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
721 (aarch64_parse_extension): Return aarch64_parse_opt_result.
722 Add extra argument to put result into.
723 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
724 (aarch64_parse_cpu): Add arguments to put results into. Return
725 aarch64_parse_opt_result.
726 (aarch64_parse_tune): Likewise.
727 (aarch64_override_options_after_change_1): New function.
728 (aarch64_override_options_internal): New function.
729 (aarch64_validate_mcpu): Likewise.
730 (aarch64_validate_march): Likewise.
731 (aarch64_validate_mtune): Likewise.
732 (aarch64_override_options): Update to reflect above changes.
733 Move some logic into aarch64_override_options_internal.
734 Initialize target_option_default_node and target_option_current_node.
735 (aarch64_override_options_after_change): Move logic into
736 aarch64_override_options_after_change_1 and call it with global_options.
737 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
738 flag values from that.
740 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
742 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
743 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
744 * config/aarch64/aarch64.c (struct processor): Add arch field.
745 (all_architectures): Handle above, move above all_cores.
746 (all_cores): Handle above.
747 (aarch64_parse_arch): Handle above changes.
748 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
749 above. Update comments.
750 (armv8.1-a): Likewise.
751 * config/aarch64/aarch64-cores.def: Update according to above.
752 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
753 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
754 aarch64_arch_driver_info.
756 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
758 * config/aarch64/aarch64.c (struct processor): Add ident field.
759 Rename core sched_core.
760 (all_cores): Handle above changes.
761 (all_architectures): Likewise.
762 (aarch64_parse_arch): Likewise.
763 (aarch64_override_options): Likewise.
765 2015-08-04 Richard Biener <rguenther@suse.de>
767 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
768 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
769 comparisons embedded in [VEC_]COND_EXPRs.
771 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
773 * tree-if-conv.c: Fix various typos in comments.
774 * tree-vect-stmts.c: Likewise.
776 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
778 PR tree-optimization/67043
779 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
780 preheader after hoisting invariant in it.
781 (find_defs): Force recomputation of all luids.
783 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
785 * config/rs6000/htm.md (tabort.): Restrict the source operand to
786 using a base register.
788 2015-08-03 David Malcolm <dmalcolm@redhat.com>
790 * main.c (main): Pass in NULL for toplev's external_timer.
791 * timevar.c: Include coretypes.h.
792 (class timer::named_items): New.
793 (timer::named_items::named_items): New.
794 (timer::named_items::~named_items): New.
795 (timer::named_items::push): New.
796 (timer::named_items::pop): New.
797 (timer::named_items::print): New.
798 (timer::timer): Initialize field "m_jit_client_items".
799 (timer::~timer): New.
800 (timer::push): Move bulk of implementation to...
801 (timer::push_internal): ...here. New function.
802 (timer::pop): Move bulk of implementation to...
803 (timer::pop_internal): ...here. New function.
804 (timer::push_client_item): New.
805 (timer::pop_client_item): New.
806 (timer::print_row): New function, taken from timer::print.
807 (timer::print): Print "GCC items" header if we also have client
808 items. Move row-printing to timer::print_row. Print any client
810 (timer::get_topmost_item_name): New method.
811 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
812 (TV_JIT_CLIENT_CODE): New.
813 * timevar.h (timer::push_client_item): New declaration.
814 (timer::pop_client_item): New declaration.
815 (timer::get_topmost_item_name): New method.
816 (timer::push_internal): New declaration.
817 (timer::pop_internal): New declaration.
818 (timer::print_row): New declaration.
819 (timer::named_items): New declaration.
820 (timer::m_jit_client_items): New field.
821 (timer): Add friend class named_items.
822 (auto_timevar::auto_timevar): Add timer param.
823 (auto_timevar::~auto_timevar): Use field "m_timer".
824 (auto_timevar::m_timer): New field.
825 * toplev.c (initialize_rtl): Add g_timer as param when
826 constructing auto_timevar instance.
827 (toplev::toplev): Add "external_timer" param, and use it to
828 initialize the "g_timer" global if non-NULL.
829 (toplev::~toplev): If this created "g_timer", delete it.
830 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
831 with "external_timer" timer *.
833 2015-08-03 Alexander Basov <coohpt@gmail.com>
838 * cfgexpand.c (expand_one_var): Add check if stack is going to
839 be used in naked function.
840 * expr.c (expand_expr_addr_expr_1): Remove excess checking
841 whether expression should not reside in MEM.
842 * function.c (use_register_for_decl): Do not use registers for
843 non-register things (volatile, float, BLKMode) in naked functions.
845 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
848 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
849 Adjust splits to match new pattern.
851 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
853 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
856 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
857 point in VSX registers.
859 * config/rs6000/constraints.md (wb constraint): Document unused
861 (we constraint): Likewise.
862 (wo constraint): Likewise.
863 (wp constraint): New constraint for IEEE 128-bit floating point in
865 (wq constraint): Likewise.
867 * config/rs6000/predicates.md (easy_fp_constant): Add support for
868 IEEE 128-bit floating point in VSX registers.
869 (easy_scalar_constant): Likewise.
871 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
872 constraints (wp, wq) for IEEE 128-bit floating point in VSX
874 (rs6000_init_hard_regno_mode_ok): Likewise.
876 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
877 floating point in VSX registers.
886 (vsx_le_permute_<mode>): Add support to properly swap bytes for
887 IEEE 128-bit floating point in VSX registers on little endian.
888 (vsx_le_undo_permute_<mode>): Likewise.
889 (vsx_le_perm_load_<mode>): Likewise.
890 (vsx_le_perm_store_<mode>): Likewise.
891 (splitters for IEEE 128-bit fp moves): Likewise.
893 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
896 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
897 floating point in VSX registers.
900 * doc/md.text (Machine Constraints): Document wp and wq
901 constraints on PowerPC.
903 2015-08-03 Jeff Law <law@redhat.com>
906 PR gcov-profile/66899
907 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
908 iterate over the jump threading paths when an element in the
909 jump threading paths array is eliminated.
911 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
913 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
915 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
917 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
918 is_use_properly_guarded the variable def_preds. Free its
919 contents before returning.
920 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
921 (is_use_properly_guarded): Replace local variable def_preds with
922 a parameter. Adjust accordingly. Only update *def_preds if it's
925 2015-08-03 Richard Biener <rguenther@suse.de>
927 * genmatch.c (simplify::for_subst_vec): New member.
928 (binary_ok): New helper for for lowering.
929 (lower_for): Delay substituting operators into result expressions
930 if we can merge the results eventually again.
931 (capture_info::walk_result): Adjust for user_id appearing as
932 result expression operator.
933 (expr::gen_transform): Likewise.
934 (dt_simplify::gen_1): Likewise.
935 (dt_simplify::gen): Pass not substituted operators to tail
936 functions or initialize local variable with it.
937 (decision_tree::gen): Adjust function signature.
938 * match.pd: Fix tests against global code and add default
939 cases to switch stmts.
941 2015-08-03 Richard Biener <rguenther@suse.de>
943 * genmatch.c (dt_simplify::gen): Create captures array
946 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
948 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
949 the host compiler is affected by placement new aliasing bug.
950 * configure: Regenerate.
951 * Makefile.in (ALIASING_FLAGS): New variable.
952 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
954 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
957 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
958 (negmulsf3_vfp): Likewise.
959 (muldf3negdf_vfp): Disable for -frounding-math.
960 (mulsf3negsf_vfp): Likewise.
961 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
962 fix MULT cost with -frounding-math.
964 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
966 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
967 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
968 explicit. Prefer to add the flag whenever possible.
969 (noce_process_if_block): Try noce_try_store_flag_constants before
972 2015-08-03 Richard Biener <rguenther@suse.de>
974 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
975 New hash-map to record equivalent transforms.
976 (dt_node::analyze): Populate the equivalent transforms hash-map.
977 (dt_simplify::info): Add reference to hash-map entry.
978 (dt_simplify::gen): If we have split out a function for the
979 transform, generate a call to it.
980 (sinfo_hashmap_traits::hash): New function.
981 (compare_op): New helper function for ...
982 (sinfo_hashmap_traits::equal_keys): ... this new function.
983 (decision_tree::gen): Split out common equivalent transforms
986 2015-08-03 Richard Biener <rguenther@suse.de>
988 * gimple-fold.c (fold_gimple_assign): Remove folding of
989 the comparison in COND_EXPRs.
991 2015-08-03 Richard Biener <rguenther@suse.de>
993 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
994 on the rhs of assignments first simplify the embedded
997 2015-08-03 Richard Biener <rguenther@suse.de>
999 PR tree-optimization/66917
1000 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
1002 (DR_VECT_AUX): New macro.
1003 (set_dr_misalignment): Adjust.
1004 (dr_misalignment): Likewise.
1005 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
1006 Compute whether the base is at least element aligned.
1007 * tree-vect-stmts.c (ensure_base_align): Adjust.
1008 (vectorizable_store): If the base is not element aligned
1009 preserve alignment of the original access if misalignment is unknown.
1010 (vectorizable_load): Likewise.
1012 2015-08-02 Martin Sebor <msebor@redhat.com>
1014 * c-family/c.opt (-Wframe-address): New warning option.
1015 * doc/invoke.texi (Wframe-address): Document it.
1016 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
1017 Clarify possible effects of calling the functions with non-zero
1018 arguments and mention -Wframe-address.
1019 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
1021 2015-08-01 Michael Collison <michael.collison@linaro.org
1022 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1024 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
1025 (*arm_umin_cmp): Likewise.
1027 2015-08-01 Caroline Tice <cmtice@google.com>
1030 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
1032 (vtbl_find_mangled_name): New function.
1033 (vtbl_register_mangled_name): New function.
1034 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
1035 mangled name in mangled name vectors.
1036 (find_or_create_vtbl_map_node): Ditto.
1037 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
1038 update recursion_depth on function entry; pass it to every recursive
1039 call; automatically exit if depth > 25 (give up looking at that point).
1040 (verify_bb_vtables): Initialize recursion_depth and pass it to
1041 var_is_used_for_virtual_call_p.
1042 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
1043 global variable decls.
1044 (vtbl_register_mangled_name): New extern function decl.
1046 2015-08-01 Tom de Vries <tom@codesourcery.com>
1048 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
1050 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
1052 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
1053 operation_no_trapping_overflow. Allow non-overflow operations.
1054 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
1057 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
1060 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
1062 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1064 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
1065 Enable for TARGET_32BIT.
1066 (*if_move_neg): Likewise.
1068 2015-07-31 Nick Clifton <nickc@redhat.com>
1070 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
1071 Returns true for __model__.
1072 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
1074 2015-07-31 Alan Modra <amodra@gmail.com>
1077 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
1078 (rs6000_emit_prologue): Set it.
1079 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
1081 2015-07-31 Richard Biener <rguenther@suse.de>
1083 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
1084 -> X == (C1 ^ C2) which is already implemented in match.pd.
1085 Remove redundant dispatching to fold_relational_const.
1086 Move unordered self and NaN compares ...
1087 * match.pd: ... as patterns here. Remove some stray captures
1090 2015-07-31 Petr Murzin <petr.murzin@intel.com>
1092 * config/i386/i386.c
1093 (bdesc_special_args): Convert mask type from signed to unsigned for
1095 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
1096 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
1097 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
1098 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
1099 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
1100 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
1101 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
1102 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
1103 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
1104 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
1105 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
1106 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
1107 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
1108 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
1109 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
1110 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
1111 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
1112 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
1113 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
1114 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
1115 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
1116 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
1117 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
1118 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
1119 * config/i386/i386-builtin-types.def
1120 (V16QI_FTYPE_V16SI): Remove.
1121 (V8DF_FTYPE_V8SI): Ditto.
1122 (V8HI_FTYPE_V8DI): Ditto.
1123 (V8SI_FTYPE_V8DI): Ditto.
1124 (V8SF_FTYPE_V8DF): Ditto.
1125 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
1126 (V16HI_FTYPE_V16SI): Ditto.
1127 (V16SF_FTYPE_V16HI): Ditto.
1128 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
1129 (V16SF_FTYPE_V16SI): Ditto.
1130 (V4DI_FTYPE_V4DI): Ditto.
1131 (V16SI_FTYPE_V16SF): Ditto.
1132 (V16SF_FTYPE_FLOAT): Ditto.
1133 (V8DF_FTYPE_DOUBLE): Ditto.
1134 (V8DI_FTYPE_INT64): Ditto.
1135 (V8DI_FTYPE_V4DI): Ditto.
1136 (V16QI_FTYPE_V8DI): Ditto.
1137 (UINT_FTYPE_V4SF): Ditto.
1138 (UINT64_FTYPE_V4SF): Ditto.
1139 (UINT_FTYPE_V2DF): Ditto.
1140 (UINT64_FTYPE_V2DF): Ditto.
1141 (V16SI_FTYPE_V16SI): Ditto.
1142 (V8DI_FTYPE_V8DI): Ditto.
1143 (V16SI_FTYPE_PV4SI): Ditto.
1144 (V16SF_FTYPE_PV4SF): Ditto.
1145 (V8DI_FTYPE_PV2DI): Ditto.
1146 (V8DF_FTYPE_PV2DF): Ditto.
1147 (V4DI_FTYPE_PV2DI): Ditto.
1148 (V4DF_FTYPE_PV2DF): Ditto.
1149 (V16SI_FTYPE_PV2SI): Ditto.
1150 (V16SF_FTYPE_PV2SF): Ditto.
1151 (V8DI_FTYPE_PV4DI): Ditto.
1152 (V8DF_FTYPE_PV4DF): Ditto.
1153 (V8SF_FTYPE_FLOAT): Ditto.
1154 (V4SF_FTYPE_FLOAT): Ditto.
1155 (V4DF_FTYPE_DOUBLE): Ditto.
1156 (V8SF_FTYPE_PV4SF): Ditto.
1157 (V8SI_FTYPE_PV4SI): Ditto.
1158 (V4SI_FTYPE_PV2SI): Ditto.
1159 (V8SF_FTYPE_PV2SF): Ditto.
1160 (V8SI_FTYPE_PV2SI): Ditto.
1161 (V16SF_FTYPE_PV8SF): Ditto.
1162 (V16SI_FTYPE_PV8SI): Ditto.
1163 (V8DI_FTYPE_V8SF): Ditto.
1164 (V4DI_FTYPE_V4SF): Ditto.
1165 (V2DI_FTYPE_V4SF): Ditto.
1166 (V64QI_FTYPE_QI): Ditto.
1167 (V32HI_FTYPE_HI): Ditto.
1168 (V8UHI_FTYPE_V8UHI): Ditto.
1169 (V16UHI_FTYPE_V16UHI): Ditto.
1170 (V32UHI_FTYPE_V32UHI): Ditto.
1171 (V2UDI_FTYPE_V2UDI): Ditto.
1172 (V4UDI_FTYPE_V4UDI): Ditto.
1173 (V8UDI_FTYPE_V8UDI): Ditto.
1174 (V4USI_FTYPE_V4USI): Ditto.
1175 (V8USI_FTYPE_V8USI): Ditto.
1176 (V16USI_FTYPE_V16USI): Ditto.
1177 (V2DF_FTYPE_V2DF_UINT64): Ditto.
1178 (V2DI_FTYPE_V2DF_V2DF): Ditto.
1179 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
1180 (V8DF_FTYPE_V8DF_V8DI): Ditto.
1181 (V4SF_FTYPE_V4SF_UINT64): Ditto.
1182 (V4SI_FTYPE_V4SF_V4SF): Ditto.
1183 (V16SF_FTYPE_V16SF_V16SI): Ditto.
1184 (V64QI_FTYPE_V32HI_V32HI): Ditto.
1185 (V32HI_FTYPE_V16SI_V16SI): Ditto.
1186 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
1187 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
1188 (V32HI_FTYPE_V64QI_V64QI): Ditto.
1189 (V32HI_FTYPE_V32HI_V32HI): Ditto.
1190 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
1191 (V16SI_FTYPE_V16SI_V4SI): Ditto.
1192 (V16SI_FTYPE_V16SI_V16SI): Ditto.
1193 (V16SI_FTYPE_V32HI_V32HI): Ditto.
1194 (V16SI_FTYPE_V16SI_SI): Ditto.
1195 (V8DI_FTYPE_V8DI_V8DI): Ditto.
1196 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
1197 (V8DI_FTYPE_V16SI_V16SI): Ditto.
1198 (V8DI_FTYPE_V8DI_V2DI): Ditto.
1199 (QI_FTYPE_QI): Ditto.
1200 (SI_FTYPE_SI): Ditto.
1201 (DI_FTYPE_DI): Ditto.
1202 (QI_FTYPE_QI_QI): Ditto.
1203 (QI_FTYPE_QI_INT): Ditto.
1204 (HI_FTYPE_HI_INT): Ditto.
1205 (SI_FTYPE_SI_INT): Ditto.
1206 (DI_FTYPE_DI_INT): Ditto.
1207 (HI_FTYPE_V16QI_V16QI): Ditto.
1208 (SI_FTYPE_V32QI_V32QI): Ditto.
1209 (DI_FTYPE_V64QI_V64QI): Ditto.
1210 (QI_FTYPE_V8HI_V8HI): Ditto.
1211 (HI_FTYPE_V16HI_V16HI): Ditto.
1212 (SI_FTYPE_V32HI_V32HI): Ditto.
1213 (QI_FTYPE_V4SI_V4SI): Ditto.
1214 (QI_FTYPE_V8SI_V8SI): Ditto.
1215 (QI_FTYPE_V2DI_V2DI): Ditto.
1216 (QI_FTYPE_V4DI_V4DI): Ditto.
1217 (QI_FTYPE_V8DI_V8DI): Ditto.
1218 (HI_FTYPE_V16SI_V16SI): Ditto.
1219 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
1220 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
1221 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
1222 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
1223 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
1224 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
1225 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
1226 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
1227 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
1228 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
1229 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
1230 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
1231 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
1232 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
1233 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
1234 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
1235 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
1236 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
1237 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
1238 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
1239 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
1240 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
1241 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
1242 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
1243 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
1244 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
1245 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
1246 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
1247 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
1248 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
1249 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
1250 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
1251 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
1252 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
1253 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
1254 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
1255 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
1256 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
1257 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
1258 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
1259 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
1260 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
1261 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
1262 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
1263 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
1264 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
1265 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
1266 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
1267 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
1268 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
1269 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
1270 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
1271 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
1272 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
1273 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
1274 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
1275 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
1276 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
1277 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
1278 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
1279 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
1280 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
1281 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
1282 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
1283 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
1284 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
1285 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
1286 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
1287 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
1288 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
1289 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
1290 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
1291 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
1292 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
1293 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
1294 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
1295 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
1296 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
1297 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
1298 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
1299 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
1300 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
1301 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
1302 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
1303 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
1304 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
1305 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
1306 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
1307 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
1308 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
1309 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
1310 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
1311 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
1312 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
1313 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
1314 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
1315 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
1316 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
1317 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
1318 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
1319 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
1320 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
1321 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
1322 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
1323 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
1324 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
1325 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
1326 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
1327 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
1328 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
1329 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
1330 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
1331 (HI_FTYPE_HI): Ditto.
1332 (HI_FTYPE_V16QI): Ditto.
1333 (SI_FTYPE_V32QI): Ditto.
1334 (DI_FTYPE_V64QI): Ditto.
1335 (QI_FTYPE_V8HI): Ditto.
1336 (HI_FTYPE_V16HI): Ditto.
1337 (SI_FTYPE_V32HI): Ditto.
1338 (QI_FTYPE_V4SI): Ditto.
1339 (QI_FTYPE_V8SI): Ditto.
1340 (HI_FTYPE_V16SI): Ditto.
1341 (QI_FTYPE_V2DI): Ditto.
1342 (QI_FTYPE_V4DI): Ditto.
1343 (QI_FTYPE_V8DI): Ditto.
1344 (V16QI_FTYPE_HI): Ditto.
1345 (V32QI_FTYPE_SI): Ditto.
1346 (V64QI_FTYPE_DI): Ditto.
1347 (V8HI_FTYPE_QI): Ditto.
1348 (V16HI_FTYPE_HI): Ditto.
1349 (V32HI_FTYPE_SI): Ditto.
1350 (V4SI_FTYPE_QI): Ditto.
1351 (V4SI_FTYPE_HI): Ditto.
1352 (V8SI_FTYPE_QI): Ditto.
1353 (V8SI_FTYPE_HI): Ditto.
1354 (V2DI_FTYPE_QI): Ditto.
1355 (V4DI_FTYPE_QI): Ditto.
1356 (HI_FTYPE_HI_HI): Ditto.
1357 (SI_FTYPE_SI_SI): Ditto.
1358 (DI_FTYPE_DI_DI): Ditto.
1359 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
1360 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
1361 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
1362 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
1363 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
1364 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
1365 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
1366 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
1367 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
1368 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
1369 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
1370 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
1371 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
1372 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
1373 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
1374 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
1375 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
1376 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
1377 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
1378 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
1379 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
1380 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
1381 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
1382 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
1383 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
1384 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
1385 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
1386 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
1387 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
1388 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
1389 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
1390 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
1391 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
1392 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
1393 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
1394 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
1395 (V16SI_FTYPE_HI): Ditto.
1396 (V8DI_FTYPE_QI): Ditto.
1397 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
1398 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
1399 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
1400 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
1401 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
1402 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
1403 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
1404 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
1405 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
1406 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
1407 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
1408 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
1409 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
1410 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
1411 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
1412 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
1413 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
1414 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
1415 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
1416 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
1417 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
1418 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
1419 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
1420 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
1421 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
1422 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
1423 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
1424 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
1425 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
1426 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
1427 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
1428 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
1429 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
1430 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
1431 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
1432 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
1433 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
1434 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
1435 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
1436 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
1437 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
1438 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
1439 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
1440 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
1441 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
1442 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
1443 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
1444 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
1445 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
1446 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
1447 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
1448 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
1449 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
1450 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
1451 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
1452 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
1453 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
1454 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
1455 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
1456 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
1457 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
1458 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
1459 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
1460 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
1461 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
1462 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
1463 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
1464 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
1465 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
1466 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
1467 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
1468 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
1469 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
1470 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
1471 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
1472 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
1473 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
1474 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
1475 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
1476 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
1477 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
1478 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
1479 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
1480 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
1481 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
1482 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
1483 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
1484 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
1485 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
1486 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
1487 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
1488 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
1489 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
1490 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
1491 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
1492 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
1493 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
1494 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
1495 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
1496 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
1497 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
1498 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
1499 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
1500 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
1501 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
1502 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
1503 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
1504 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
1505 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
1506 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
1507 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
1508 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
1509 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
1510 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
1511 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
1512 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
1513 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
1514 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
1515 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
1516 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
1517 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
1518 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
1519 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
1520 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
1521 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
1522 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
1523 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
1524 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
1525 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
1526 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
1527 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
1528 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
1529 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
1530 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
1531 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
1532 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
1533 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
1534 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
1535 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
1536 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
1537 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
1538 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
1539 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
1540 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
1541 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
1542 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
1543 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
1544 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
1545 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
1546 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
1547 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
1548 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
1549 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
1550 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
1551 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
1552 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
1553 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
1554 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
1555 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
1556 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
1557 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
1558 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
1559 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
1560 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
1561 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
1562 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
1563 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
1564 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
1565 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
1566 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
1567 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
1568 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
1569 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
1570 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
1571 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
1572 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
1573 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
1574 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
1575 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
1576 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
1577 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
1578 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
1579 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
1580 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
1581 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
1582 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
1583 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
1584 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
1585 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
1586 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
1587 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
1588 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
1589 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
1590 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
1591 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
1592 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
1593 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
1594 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
1595 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
1596 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
1597 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
1598 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
1599 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
1600 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
1601 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
1602 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
1603 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
1604 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
1605 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
1606 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
1607 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
1608 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
1609 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
1610 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
1611 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
1612 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
1613 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
1614 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
1615 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
1616 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
1617 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
1618 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
1619 (QI_FTYPE_V8DF_INT_QI): Ditto.
1620 (QI_FTYPE_V4DF_INT_QI): Ditto.
1621 (QI_FTYPE_V2DF_INT_QI): Ditto.
1622 (HI_FTYPE_V16SF_INT_HI): Ditto.
1623 (QI_FTYPE_V8SF_INT_QI): Ditto.
1624 (QI_FTYPE_V4SF_INT_QI): Ditto.
1625 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
1627 2015-07-31 Richard Biener <rguenther@suse.de>
1629 * gimple-fold.c (fold_gimple_assign): Remove folding of
1632 2015-07-31 Tom de Vries <tom@codesourcery.com>
1634 PR tree-optimization/66846
1635 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
1636 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
1637 (expand_omp_target) [ENABLE_CHECKING]: Same.
1638 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
1639 cfun if !LOOPS_NEED_FIXUP.
1640 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
1641 that omp_for already has its own loop struct.
1642 * tree-parloops.c (create_phi_for_local_result)
1643 (create_call_for_reduction): Handle simple latch bb.
1644 (create_parallel_loop): Add simple latch bb to preserve
1645 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
1646 (gen_parallel_loop): Remove call to cancel_loop_tree.
1647 (parallelize_loops): Skip loops that are inner loops of parallelized
1649 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
1650 verify_loop_structure.
1652 2015-07-30 Anatoly Sokolov <aesok@post.ru>
1654 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
1655 * config/v850/v850.md (RV_REGNUM): New constants.
1656 * config/v850/v850.c (v850_libcall_value): New functions.
1657 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
1658 (TARGET_LIBCALL_VALUE): Define.
1660 2015-07-30 Anatoly Sokolov <aesok@post.ru>
1662 * rtl.h (lowpart_subreg): Move in file.
1663 * loop-iv.c (lowpart_subreg): Move to...
1664 * simplify-rtx.c (lowpart_subreg): ...here.
1665 (simplify_binary_operation_1): Use lowpart_subreg instead of
1666 simplify_gen_subreg.
1667 * expr.c (expand_expr_real_2): Ditto.
1668 * emit-rtl.c (gen_lowpart_common): Ditto.
1669 * combine.c (gen_lowpart_for_combine): Ditto.
1670 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
1671 expand_debug_source_expr): Ditto.
1673 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
1675 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
1676 (expand_builtin_atomic_clear): Remove support for atomic_clear
1679 2015-07-30 Richard Biener <rguenther@suse.de>
1681 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
1682 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
1683 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
1684 redundant operand canonicalization.
1686 2015-07-30 David Sherwood <david.sherwood@arm.com>
1688 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
1689 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
1690 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
1691 * config/arm/arm.c (neon_valid_immediate): Likewise.
1692 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
1693 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
1694 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
1695 (expand_vec_perm_vpshufb2_vpermq): Likewise.
1696 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
1697 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
1698 * config/i386/sse.md
1699 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
1700 (*ssse3_palignr<mode>_perm): Likewise.
1701 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
1702 * config/spu/spu.c (arith_immediate_p): Likewise.
1703 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1704 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
1706 2015-07-30 Richard Biener <rguenther@suse.de>
1708 * genmatch.c (decision_tree::gen_gimple): Merge with ...
1709 (decision_tree::gen_generic): ... this into ...
1710 (decision_tree::gen): ... this.
1711 (main): Adjust callers.
1713 2015-07-30 Richard Biener <rguenther@suse.de>
1715 * genmatch.c (verbose): New global.
1716 (warning_at): Add overload with source_location.
1717 (capture_info::capture_info): Add bool whether generating gimple
1718 or generic. Add gimple member.
1719 (capture_info::cinfo): Add capture member.
1720 (capture_info::walk_match): Record capture. Warn on
1722 (capture_info::walk_c_expr): Add more fragments captures cannot
1723 escape through. Warn on escaped captures.
1724 (dt_simplify::gen_1): Warn on operands we force to have no
1726 (main): Initialize verbose.
1727 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
1729 2015-07-30 Richard Biener <rguenther@suse.de>
1732 * match.pd: Allow both operands to independently have conversion
1733 when simplifying compares of addresses.
1735 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
1739 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
1740 around those cases that need one.
1742 2015-07-29 Aditya Kumar <hiraditya@msn.com>
1744 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
1746 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
1748 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
1749 New. Copied from config/i386/gnu-user.h.
1750 (ASM_COMMENT_START): Likewise.
1751 (DBX_REGISTER_NUMBER): Likewise.
1753 2015-07-29 Richard Biener <rguenther@suse.de>
1755 * gimple-fold.c (fold_gimple_cond): Remove.
1756 (fold_stmt_1): Do not call it.
1758 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
1760 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
1761 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
1763 * config/aarch64/aarch64-modes.def: Add HFmode.
1765 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1766 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
1768 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
1769 aarch64_promoted_type): New.
1771 (aarch64_float_const_representable_p): Disable HFmode.
1772 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
1773 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
1774 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
1776 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
1777 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
1779 * config/aarch64/iterators.md (GPF_F16): New.
1781 2015-07-29 Richard Biener <rguenther@suse.de>
1783 * match.pd: Merge address comparison patterns and make them
1784 handle some more cases.
1786 2015-07-29 Richard Biener <rguenther@suse.de>
1788 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
1789 (parser::parse_capture): Add bool argument on whether to reject
1791 (parser::parse_expr): Adjust.
1792 (parser::parse_op): Likewise.
1793 (parser::parse_pattern): Likewise.
1795 2015-07-29 Richard Biener <rguenther@suse.de>
1797 * gimple-fold.c (has_use_on_stmt): New function.
1798 (replace_stmt_with_simplification): Use it to allow
1799 abnormals originally referenced in the stmt.
1800 (fold_stmt_1): Canonicalize operand order.
1802 2015-07-28 David Sherwood <david.sherwood@arm.com>
1804 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
1805 GET_MODE_INNER unconditionally.
1806 * config/spu/spu.c (arith_immediate_p): Likewise.
1807 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
1808 * expmed.c (synth_mult): Remove check for VOIDmode result from
1810 (expand_mult_const): Likewise.
1811 * fold-const.c (fold_binary_loc): Replace call to element_precision
1812 with call to GET_MODE_PRECISION.
1813 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
1815 (emit_mode_inner): Likewise.
1816 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
1818 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
1819 (GET_MODE_UNIT_PRECISION): Likewise.
1820 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
1821 * simplify-rtx.c (simplify_immed_subreg): Likewise.
1822 * stor-layout.c (bitwise_type_for_mode): Update assert.
1823 (element_precision): Remove.
1825 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1827 * target-insns.def (reload_load_address): New targetm instruction
1829 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
1831 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1833 * target-insns.def (atomic_test_and_set): New targetm instruction
1835 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
1836 HAVE_*/gen_* interface.
1838 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1840 * target-insns.def (can_extend, ptr_extend): New targetm instruction
1842 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
1843 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1844 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
1845 * rtlanal.c (nonzero_bits1): Likewise.
1846 (num_sign_bit_copies1): Likewise.
1848 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1850 * target-insns.def (eh_return): New targetm instruction pattern.
1851 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
1853 * function.c (thread_prologue_and_epilogue_insns): Remove
1854 preprocessor condition.
1856 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1858 * target-insns.def (indirect_jump): New targetm instruction pattern.
1859 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
1862 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1864 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
1865 instead of nonimmediate_operand. Remove C condiition.
1867 2015-07-28 Richard Biener <rguenther@suse.de>
1869 * match.pd: Add more simplification of address comparisons.
1871 2015-07-28 Richard Biener <rguenther@suse.de>
1873 * match.pd: Re-order two cases in comparison with max/min
1874 value simplification to make it apply for bools.
1876 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1878 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
1879 Handle simple SIGN_EXTEND or ZERO_EXTEND.
1880 (aarch64_rtx_costs): Properly strip extend or extract before
1881 passing down to rtx costs again.
1883 2015-07-28 Nick Clifton <nickc@redhat.com>
1885 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
1886 Optimizes the case where -mes0 is active and a constant symbolic
1888 * config/rl78/rl78-protos.h: Prototype the new function.
1889 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
1891 2015-07-28 Tom de Vries <tom@codesourcery.com>
1893 * tree-parloops.c (reduc_stmt_res): New function.
1894 (initialize_reductions, add_field_for_reduction)
1895 (create_phi_for_local_result, create_loads_for_reductions)
1896 (create_stores_for_reduction, build_new_reduction): Handle case that
1897 reduc_stmt is a phi.
1898 (gather_scalar_reductions): Allow double_reduc reductions.
1900 2015-07-28 Richard Biener <rguenther@suse.de>
1902 * fold-const.c (fold_comparison): Remove equality folding
1903 of decl addresses ...
1904 * match.pd: ... here and merge with existing pattern.
1906 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
1908 PR tree-optimization/66828
1909 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
1910 from int64_t to uint64_t.
1912 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
1914 * opts-common.c (read_cmdline_option): List DriverOnly enum values
1915 as valid only in the error message of the driver, not in the
1916 messages of the language compilers.
1918 2015-07-27 Tom de Vries <tom@codesourcery.com>
1920 * tree-parloops.c (gather_scalar_reductions): Simplify function
1923 2015-07-27 Marek Polacek <polacek@redhat.com>
1925 * ipa-devirt.c (types_same_for_odr): Fix typo.
1927 2015-07-27 Jason Merrill <jason@redhat.com>
1930 * dwarf2out.c (gen_inlined_subroutine_die): Check
1931 cgraph_function_possibly_inlined_p.
1933 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
1935 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
1936 Place integer variant first.
1937 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
1939 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
1942 * config/arm/arm-builtins.c (enum arm_builtins):
1943 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
1944 (ARM_BUILTIN_NEON_BASE): Rename macro to....
1945 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
1946 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
1947 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
1949 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
1952 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
1953 Add qualifier_lane_index.
1954 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
1955 (arm_getlane_qualifiers): Use qualifier_lane_index.
1956 (arm_lanemac_qualifiers): Rename to...
1957 (arm_mac_n_qualifiers): ...this.
1958 (LANEMAC_QUALIFIERS): Rename to...
1959 (MAC_N_QUALIFIERS): ...this.
1960 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
1961 (arm_setlane_qualifiers): Use qualifier_lane_index.
1962 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
1963 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
1964 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
1965 (arm_expand_neon_builtin): Handle qualifier_lane_index.
1967 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
1968 * config/arm/arm.c (bounds_check): Likewise, improve error message.
1969 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
1970 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
1971 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
1972 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
1973 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
1974 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
1975 qualifiers to TERNOP_IMM.
1976 (vdup_lane): Change qualifiers to GETLANE.
1977 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
1978 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
1979 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
1980 vqdmlsl_n): Change qualifiers to MAC_N.
1982 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
1983 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
1984 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
1985 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
1986 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
1987 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
1988 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
1989 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
1990 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
1991 Remove call to neon_lane_bounds.
1993 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
1995 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
1996 Place integer variant first.
1998 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
2000 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
2001 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
2002 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
2003 for armv6kz targets.
2004 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
2005 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
2006 (FL_FOR_ARCH6ZK): Remove.
2007 (FL_FOR_ARCH6KZ): New.
2008 (arm_arch6zk): New declaration.
2009 * config/arm/arm-tables.opt: Regenerate.
2010 * config/arm/arm.c (arm_arch6kz): New.
2011 (arm_option_override): Set arm_arch6kz.
2012 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
2013 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
2014 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
2016 2015-07-27 Marek Polacek <polacek@redhat.com>
2020 * doc/invoke.texi: Document -Wtautological-compare.
2022 2015-07-27 Richard Biener <rguenther@suse.de>
2024 * genmatch.c (decision_tree::gen_gimple): Split out large
2025 subtrees into separate functions.
2026 (decision_tree::gen_generic): Likewise.
2028 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
2030 * config/alpha/alpha.c: Use SUBREG_P predicate.
2031 * config/alpha/predicates.md: Ditto.
2033 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
2035 * config.host (s390*-*-*): Include driver-native.c only when
2036 building with s390* as host *and* target.
2038 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
2041 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
2042 T bit register modified_between_p check.
2044 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2046 * config/i386/i386.c: Use SUBREG_P predicate.
2047 * config/i386/i386.md: Ditto.
2048 * config/i386/sse.md: Ditto.
2049 * config/i386/predicates.md: Ditto.
2051 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2054 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
2055 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
2057 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2059 * Makefile.in: Remove use of TREEBROWSER.
2060 * config.in: Regenerated.
2061 * configure: Regenerated.
2062 * configure.ac: Remove definition of TREEBROWSER.
2063 * tree-browser.c: Removed.
2064 * tree-browser.def: Removed.
2066 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2068 * graphite-scop-detection.c: Include gimple-pretty-print.h.
2069 (stmt_simple_for_scop_p): Print when a stmt is not handled in
2071 (scopdet_basic_block_info): Print when a loop or bb cannot be
2072 represented in Graphite.
2074 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2077 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
2078 execution guard when min_size is less than size_needed.
2080 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2082 * doc/install.texi: Document supported versions of ISL.
2084 2015-07-25 Jeff Law <law@redhat.com>
2088 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2089 unable to find X NE 0 in the tables, return X as the simplified
2091 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2092 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2094 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2095 after removing the control flow statement and unnecessary edges.
2097 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
2100 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
2102 PR rtl-optimization/64164
2103 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2104 * tree-ssa-copyrename.c: Removed.
2105 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2106 -ftree-coalesce-vars.
2107 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2108 * common.opt (ftree-copyrename): Ignore.
2109 (ftree-coalesce-inlined-vars): Likewise.
2110 * doc/invoke.texi: Remove the ignored options above.
2111 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2112 * tree-ssa-coalesce.h: ... here.
2113 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2114 headers required by it.
2115 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2116 across variables when flag_tree_coalesce_vars. Check register
2117 use and promoted modes to allow coalescing. Moved to
2118 tree-ssa-coalesce.c.
2119 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2120 with its member functions to tree-ssa-coalesce.c.
2121 (var_map_base_init): Likewise. Renamed to
2122 compute_samebase_partition_bases.
2123 (partition_view_normal): Drop want_bases parameter.
2124 (partition_view_bitmap): Likewise.
2125 * tree-ssa-live.h: Adjust declarations.
2126 * tree-ssa-coalesce.c: Include explow.h.
2127 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2128 default defs at the entry point.
2129 (dump_part_var_map): New.
2130 (compute_optimized_partition_bases): New, called by...
2131 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2132 of compute_samebase_partition_bases. Adjust.
2133 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2134 * cfgexpand.c (leader_merge): New.
2135 (get_rtl_for_parm_ssa_default_def): New.
2136 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2137 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2138 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2139 redundant MEM attr setting.
2140 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2142 (expand_one_stack_var): ... this. New wrapper to check and
2143 skip already expanded SSA partitions.
2144 (record_alignment_for_reg_var): New, factored out of...
2145 (expand_one_var): ... this.
2146 (expand_one_ssa_partition): New.
2147 (adjust_one_expanded_partition_var): New.
2148 (expand_one_register_var): Check and skip already expanded SSA
2150 (expand_used_vars): Don't create DECLs for anonymous SSA
2151 names. Expand all SSA partitions, then adjust all SSA names.
2152 (pass::execute): Replace the loops that set
2153 SA.partition_to_pseudo from partition leaders and cleared
2154 DECL_RTL for multi-location variables, and that which used to
2155 rename vars and set attrs, with one that clears DECL_RTL and
2156 checks that PARMs and RESULTs default_defs match DECL_RTL.
2157 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2158 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2159 * explow.c (promote_ssa_mode): New.
2160 * explow.h (promote_ssa_mode): Declare.
2161 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2162 * function.c: Include cfgexpand.h.
2163 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2164 (use_register_for_parm_decl): Wrapper for the above to
2165 special-case the result_ptr.
2166 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2167 (split_complex_args): Take assign_parm_data_all argument.
2168 Pass it to rtl_for_parm. Set up rtl and context for split
2170 (assign_parms_augmented_arg_list): Adjust.
2171 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2172 multiple locations. Recognize split complex args.
2173 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2174 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2175 (assign_parm_setup_block): Prefer SSA-assigned location.
2176 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2177 if stack_parm is NULL.
2178 (assign_parm_setup_stack): Prefer SSA-assigned location.
2179 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2180 rtl before testing for pointer bounds. Special-case result_ptr.
2181 (expand_function_start): Maybe reset DECL_RTL of result.
2182 Prefer SSA-assigned location for result and static chain.
2183 Factor out DECL_RESULT and SET_DECL_RTL.
2184 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2185 anonymous SSA names. Use promote_ssa_mode.
2186 (get_temp_reg): Likewise.
2187 (remove_ssa_form): Adjust.
2188 * stor-layout.c (layout_decl): Don't set mem attributes of
2190 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2191 and get its reg_usage for reg invalidation.
2192 (compute_bb_dataflow): Pass it insn.
2193 (emit_notes_in_bb): Likewise.
2195 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2197 * config/i386/i386.c (ix86_va_start): Remove
2198 unneeded !TARGET_64BIT check.
2199 (ix86_gimplify_va_arg): Ditto.
2201 2015-07-24 Tom de Vries <tom@codesourcery.com>
2203 * graphite-sese-to-poly.c (build_poly_scop): Always call
2204 rewrite_commutative_reductions_out_of_ssa.
2206 2015-07-24 Tom de Vries <tom@codesourcery.com>
2208 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
2209 flag_associative_math to FLOAT_TYPE_P. Honour
2210 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
2212 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
2215 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
2216 and "%qD" in warning_at instead of "%q+D" in warning.
2218 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
2220 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
2221 (ix86_function_abi): Cleanup.
2223 2015-07-24 Michael Darling <darlingm@gmail.com>
2226 * acinclude.m4: Reflects renaming of configure.in to configure.ac
2227 * configure: Likewise
2228 * configure.ac: Likewise
2229 * doc/install.texi: Likewise
2230 * doc/tm.texi: Likewise
2231 * doc/tm.texi.in: Likewise
2233 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2235 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
2236 manually swapping values.
2237 * cse.c (fold_rtx): Likewise.
2238 * lra-eliminations.c (form_sum): Likewise.
2240 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
2243 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
2244 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
2245 (*jcc_1, *jcc_2, jump, simple_return_internal)
2246 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
2247 Set length_nobnd attribute instead of length attribute.
2248 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
2249 (length_nobnd): Remove attribute.
2250 (length): Remove length_nobnd processing.
2252 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
2254 * gimplify.c (omp_default_clause): New function. Reorganize flow
2255 for clarity. Broken out of ...
2256 (omp_notice_variable): ... here.
2258 2015-07-24 Gary Funck <gary@intrepid.com>
2261 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
2262 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
2264 2015-07-24 Tom de Vries <tom@codesourcery.com>
2266 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
2267 exit-first loop transform.
2269 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
2272 * tree-cfg.c (struct replace_decls_d): New struct.
2273 (replace_block_vars_by_duplicates_1): New function.
2274 (replace_block_vars_by_duplicates): Use it to replace the decls
2275 in the value exprs by duplicates.
2277 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2279 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
2280 -shared, -symbolic, -rdynamic.
2282 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2285 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
2286 -dynamic-linker within %{!static %{!shared, and -rdynamic within
2289 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
2292 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
2293 edge summary is available.
2295 2015-07-24 Richard Biener <rguenther@suse.de>
2297 * genmatch.c (struct dt_node): Add statistic fields.
2298 (dt_node::analyze): New method.
2299 (decision_tree::gen_gimple): Call analyze on the root node
2300 and print statistics to stderr.
2301 (decision_tree::gen_generic): Likewise.
2303 2015-07-24 Richard Biener <rguenther@suse.de>
2305 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
2306 against the highest or lowest possible integer ...
2307 * match.pd: ... as patterns here.
2309 2015-07-24 Richard Biener <rguenther@suse.de>
2311 * genmatch.c (struct capture_info): Add same_as field.
2312 (capture_info::capture_info): Initialize same_as.
2313 (capture_info::walk_match): Compute same_as.
2314 (capture_info::walk_result): Compute stuff for the leader.
2315 (capture_info::walk_c_expr): Likewise.
2316 (dt_simplify::gen_1): Only look at leaders when deciding
2317 to force no side-effects or emit side-effects of omitted operands.
2319 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2321 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
2322 reg note to the GPR -> FPR save instructions.
2324 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2326 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
2328 (s390_expand_insv): Don't generate risbg pattern for constant zero
2330 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
2331 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
2334 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2336 * config/s390/s390.c (s390_reorg): Clean up handling of processors
2339 (s390_issue_rate): Likewise.
2340 (s390_sched_reorder): Likewise.
2341 (s390_sched_variable_issue): Likewise.
2342 (s390_loop_unroll_adjust): Likewise.
2343 (s390_option_override): Likewise.
2345 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2347 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
2348 processor capabilities with -march=native.
2349 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
2350 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
2351 (S390_TARGET_BITS_STRING): Macro to simplify specs.
2353 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2355 * config/s390/s390.c (s390_issue_rate): Handle
2356 PROCESSOR_2094_Z9_EC.
2357 (s390_option_override): Likewise.
2358 (s390_adjust_priority): Likewise.
2360 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2362 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
2363 when cross compiling.
2365 2015-07-24 Richard Biener <rguenther@suse.de>
2367 * fold-const.c (maybe_canonicalize_comparison_1): Move
2368 A code CST canonicalization ...
2369 * match.pd: ... to a pattern here.
2371 2015-07-24 Jiong Wang <jiong.wang@arm.com>
2374 2015-07-22 Jiong Wang <jiong.wang@arm.com>
2376 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
2377 (HONOR_REG_ALLOC_ORDER): Define.
2379 2015-07-24 Richard Biener <rguenther@suse.de>
2381 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
2382 * fold-const.c (fold_comparison): Move parameter does not
2383 alias &local simplification ...
2384 * match.pd: ... as a pattern here.
2386 2015-07-24 Richard Biener <rguenther@suse.de>
2388 * gimple-fold.c (replace_stmt_with_simplification): Special-case
2389 valueizing call operands.
2390 * gimple-match-head.c (maybe_push_res_to_seq): Take
2391 number of call arguments from ops array.
2392 (do_valueize): New function.
2393 (gimple_simplify): Return true if valueization changed
2394 any operand even if the result didn't simplify further.
2396 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2399 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
2401 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2404 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
2406 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2408 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
2411 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2413 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
2416 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
2418 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
2419 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
2421 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
2422 ms_va_list_type_node initialization.
2424 2015-07-23 Jeff Law <law@redhat.com>
2427 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2428 unable to find X NE 0 in the tables, return X as the simplified
2430 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2431 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2433 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2434 after removing the control flow statement and unnecessary edges.
2436 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2438 * tree-pass.h (get_current_pass_name): Removed.
2440 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
2442 PR rtl-optimization/64164
2443 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2444 * tree-ssa-copyrename.c: Removed.
2445 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2446 -ftree-coalesce-vars.
2447 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2448 * common.opt (ftree-copyrename): Ignore.
2449 (ftree-coalesce-inlined-vars): Likewise.
2450 * doc/invoke.texi: Remove the ignored options above.
2451 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2452 * tree-ssa-coalesce.h: ... here.
2453 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2454 headers required by it.
2455 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2456 across variables when flag_tree_coalesce_vars. Check register
2457 use and promoted modes to allow coalescing. Moved to
2458 tree-ssa-coalesce.c.
2459 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2460 with its member functions to tree-ssa-coalesce.c.
2461 (var_map_base_init): Likewise. Renamed to
2462 compute_samebase_partition_bases.
2463 (partition_view_normal): Drop want_bases parameter.
2464 (partition_view_bitmap): Likewise.
2465 * tree-ssa-live.h: Adjust declarations.
2466 * tree-ssa-coalesce.c: Include explow.h.
2467 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2468 default defs at the entry point.
2469 (dump_part_var_map): New.
2470 (compute_optimized_partition_bases): New, called by...
2471 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2472 of compute_samebase_partition_bases. Adjust.
2473 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2474 * cfgexpand.c (leader_merge): New.
2475 (get_rtl_for_parm_ssa_default_def): New.
2476 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2477 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2478 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2479 redundant MEM attr setting.
2480 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2482 (expand_one_stack_var): ... this. New wrapper to check and
2483 skip already expanded SSA partitions.
2484 (record_alignment_for_reg_var): New, factored out of...
2485 (expand_one_var): ... this.
2486 (expand_one_ssa_partition): New.
2487 (adjust_one_expanded_partition_var): New.
2488 (expand_one_register_var): Check and skip already expanded SSA
2490 (expand_used_vars): Don't create DECLs for anonymous SSA
2491 names. Expand all SSA partitions, then adjust all SSA names.
2492 (pass::execute): Replace the loops that set
2493 SA.partition_to_pseudo from partition leaders and cleared
2494 DECL_RTL for multi-location variables, and that which used to
2495 rename vars and set attrs, with one that clears DECL_RTL and
2496 checks that PARMs and RESULTs default_defs match DECL_RTL.
2497 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2498 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2499 * explow.c (promote_ssa_mode): New.
2500 * explow.h (promote_ssa_mode): Declare.
2501 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2502 * function.c: Include cfgexpand.h.
2503 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2504 (use_register_for_parm_decl): Wrapper for the above to
2505 special-case the result_ptr.
2506 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2507 (split_complex_args): Take assign_parm_data_all argument.
2508 Pass it to rtl_for_parm. Set up rtl and context for split
2510 (assign_parms_augmented_arg_list): Adjust.
2511 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2512 multiple locations. Recognize split complex args.
2513 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2514 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2515 (assign_parm_setup_block): Prefer SSA-assigned location.
2516 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2517 if stack_parm is NULL.
2518 (assign_parm_setup_stack): Prefer SSA-assigned location.
2519 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2520 rtl before testing for pointer bounds. Special-case result_ptr.
2521 (expand_function_start): Maybe reset DECL_RTL of result.
2522 Prefer SSA-assigned location for result and static chain.
2523 Factor out DECL_RESULT and SET_DECL_RTL.
2524 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2525 anonymous SSA names. Use promote_ssa_mode.
2526 (get_temp_reg): Likewise.
2527 (remove_ssa_form): Adjust.
2528 * stor-layout.c (layout_decl): Don't set mem attributes of
2530 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2531 and get its reg_usage for reg invalidation.
2532 (compute_bb_dataflow): Pass it insn.
2533 (emit_notes_in_bb): Likewise.
2535 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
2538 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
2540 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
2541 (rs6000_emit_2insn_and): Handle dot forms.
2542 * config/rs6000/rs6000.md (and<mode>3): Adjust.
2543 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
2544 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
2546 2015-07-23 Richard Biener <rguenther@suse.de>
2548 * generic-match-head.c: Include cgraph.h.
2549 * gimple-match-head.c: Likewise.
2550 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
2552 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
2553 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
2556 2015-07-23 Richard Biener <rguenther@suse.de>
2558 * gimple-fold.c (fold_gimple_cond): Do not require folding
2559 results to pass valid_gimple_rhs_p.
2560 * tree-cfg.h (fold_cond_expr_cond): Remove.
2561 * tree-cfg.c (fold_cond_expr_cond): Likewise.
2562 (make_edges): Do not call it.
2563 * tree-inline.c (tree_function_versioning): Likewise.
2565 2015-07-23 Tom de Vries <tom@codesourcery.com>
2567 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
2568 vect_force_simple_reduction.
2569 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
2570 (vect_is_simple_reduction_1): Add and handle
2571 need_wrapping_integral_overflow parameter.
2572 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
2573 need_wrapping_integral_overflow parameter.
2574 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
2575 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
2578 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
2580 PR tree-optimization/66926,66951
2581 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
2582 INNER_LOOP and fix up condition for renaming virtual operands.
2584 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2586 * combine.c (try_combine): Use std::swap instead of manually
2589 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
2591 * config/mips/i6400.md: New file.
2592 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
2593 (mips64r6): Likewise.
2595 * config/mips/mips-tables.opt: Regenerate.
2596 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
2597 (mips_issue_rate): Add support for i6400.
2598 (mips_multipass_dfa_lookahead): Likewise.
2599 * config/mips/mips.h (TUNE_I6400): Define.
2600 * config/mips/mips.md: Include i6400.md.
2601 (processor): Add i6400.
2602 * doc/invoke.texi (-march=@var{arch}): Add i6400.
2604 2015-07-23 Richard Biener <rguenther@suse.de>
2607 * match.pd: Guard widen and sign-change comparison simplification
2610 2015-07-23 Richard Biener <rguenther@suse.de>
2612 PR tree-optimization/66945
2613 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
2614 ::before_dom_children): Force the propagators idea of
2615 non-executable edges to materialize, not what the folder
2618 2015-07-23 Richard Biener <rguenther@suse.de>
2620 * gimple.h (gimple_cond_make_false): Use 0 != 0.
2621 (gimple_cond_make_true): Use 1 != 0.
2623 2015-07-22 DJ Delorie <dj@redhat.com>
2625 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
2628 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
2629 (ashrhi3): Likewise.
2630 (lshrhi3): Likewise.
2631 (movhi): Take advantage of zero-extend to load small constants.
2633 (and<mode>3): Likewise.
2634 (zero_extendqihi2): Likewise.
2635 (zero_extendqisi2): New.
2636 * config/msp430/constraints.md (N,O): New.
2637 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
2639 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
2642 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
2643 to enum feature_priority and feature_list.
2644 (fold_builtin_cpu): Add F_AES to enum processor_features
2645 and isa_names_table.
2647 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
2650 * config/i386/linux-common.h (MPX_SPEC): Use linker option
2651 for 64bit target only.
2653 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
2655 * config/nvptx/nvptx.c: Expand some comments.
2657 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
2659 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
2660 (cortex_a53_advsimd): ...This.
2662 2015-07-22 Richard Biener <rguenther@suse.de>
2664 * genmatch.c (expr::gen_transform): Clarify error message
2665 and display location.
2667 2015-07-22 Richard Biener <rguenther@suse.de>
2669 * genmatch.c (struct operand): Add location member.
2670 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
2672 (struct simplify): Remove match_location and result_location
2674 (elsehwere): Adjust.
2676 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
2678 * config/mips/m5100.md: New file.
2679 * config/mips/mips-cpus.def (m5100, m5101): Define.
2680 * config/mips/mips-tables.opt: Regenerate.
2681 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
2682 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
2683 -march=m5101 to -mips32r5.
2684 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
2685 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
2687 * config/mips/mips.md: Include m5100.md.
2688 (processor): Add m5100.
2689 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
2691 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
2693 * config/mips/mips-cpus.def (interaptiv): Define.
2694 * config/mips/mips-tables.opt: Regenerate.
2695 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
2697 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
2698 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
2700 2015-07-22 Jiong Wang <jiong.wang@arm.com>
2703 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
2704 (HONOR_REG_ALLOC_ORDER): Define.
2706 2015-07-22 Richard Biener <rguenther@suse.de>
2708 PR tree-optimization/66952
2709 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
2710 blocks we end up executing unconditionally reset all SSA
2711 info such as range and alignment.
2712 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
2713 * tree-ssanames.c (reset_flow_sensitive_info): New function.
2715 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
2717 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
2720 2015-07-22 Richard Biener <rguenther@suse.de>
2722 * genmatch.c (parser::parse_result): Properly handle
2723 match with result operands and conditions.
2725 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
2728 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
2729 Add qualifier_struct_load_store_lane_index.
2730 (aarch64_types_loadstruct_lane_qualifiers): Use
2731 qualifier_struct_load_store_lane_index for lane index argument for
2733 (aarch64_types_storestruct_lane_qualifiers): Ditto.
2734 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2735 (aarch64_simd_expand_args): Add new argument describing mode of
2736 builtin. Check lane bounds for arguments with
2737 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2738 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
2739 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2740 (aarch64_simd_expand_builtin): Handle arguments with
2741 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
2742 aarch64_simd_expand_args.
2743 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
2744 vst[234]_lane with BUILTIN_VALLDIF.
2745 * config/aarch64/aarch64-simd.md:
2746 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
2747 endianness reversal on lane index.
2748 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
2749 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
2750 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
2751 (vec_store_lanesci_lane<mode>): Ditto.
2752 (vec_store_lanesxi_lane<mode>): Ditto.
2753 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
2754 reversal of lane index.
2755 (aarch64_ld3_lane<mode>): Ditto.
2756 (aarch64_ld4_lane<mode>): Ditto.
2757 (aarch64_st2_lane<mode>): Ditto.
2758 (aarch64_st3_lane<mode>): Ditto.
2759 (aarch64_st4_lane<mode>): Ditto.
2760 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
2761 to qmode. Add new mode parameter. Update uses.
2762 (__LD3_LANE_FUNC): Ditto.
2763 (__LD4_LANE_FUNC): Ditto.
2764 (__ST2_LANE_FUNC): Ditto.
2765 (__ST3_LANE_FUNC): Ditto.
2766 (__ST4_LANE_FUNC): Ditto.
2768 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
2770 * doc/invoke.texi (Language Independent Options): Rename node to
2771 Diagnostic Message Formatting Options.
2773 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
2776 * lra-remat.c (operand_to_remat): Prevent using insns with input
2777 subregs processed separately by IRA.
2779 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
2781 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
2783 (single_imm_use): Check for iterator node.
2784 (num_imm_uses): Likewise.
2785 * tree-ssa-operands.c (has_zero_uses_1): Delete.
2786 (single_imm_use_1): Check for iterator node.
2788 2015-07-21 Mike Frysinger <vapier@gentoo.org>
2789 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2791 * configure.ac: Add check for new options in isl-0.15.
2792 * config.in, configure: Rebuilt.
2793 * graphite-blocking.c: Include <isl/constraint.h>
2794 * graphite-interchange.c, graphite-poly.c: Likewise.
2795 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
2796 * graphite.c: Likewise.
2797 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
2799 * graphite-dependences.c: Include <isl/constraint.h>.
2800 (max_number_of_out_dimensions): Returns isl_stat.
2801 (extend_schedule_1): Likewise
2802 (extend_schedule): Corresponding changes.
2803 * graphite-optimize-isl.c: Include <isl/constraint.h> and
2805 (getSingleMap): Change return type of isl_stat.
2806 (optimize_isl): Conditionally use
2807 isl_options_set_schedule_serialize_sccs.
2808 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
2809 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
2811 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
2814 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
2815 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
2817 2015-07-21 Richard Biener <rguenther@suse.de>
2819 PR tree-optimization/66948
2820 * genmatch.c (capture_info::walk_match): Also recurse to
2821 captures. Properly compute expr state from captures of
2823 * match.pd: Add single-use guards to
2824 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
2826 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
2828 * config/nvptx/mkoffload.c (process): Add static destructor call.
2830 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2833 * match.pd (A - B -> A + (-B)): Don't allow folding
2834 when type if a fixed-point type.
2836 2015-07-20 DJ Delorie <dj@redhat.com>
2838 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
2839 (iorqi3_real): Likewise for set1.
2841 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
2843 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
2846 2015-07-20 Aditya Kumar <hiraditya@msn.com>
2848 * graphite-isl-ast-to-gimple.c:
2849 Refactor so that each function can access 'region'. This will help
2850 maintain a parameter rename_map within a region.
2852 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2854 * config/rs6000/rs6000.md (*lt0_disi): New.
2856 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2859 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
2860 "available letters" comment.
2861 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
2862 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
2863 and_2rld_operand): Delete.
2864 (and_operand): Adjust.
2865 (rotate_mask_operator): New.
2866 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
2867 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
2868 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
2869 extract_ME): Delete.
2870 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
2871 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
2872 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
2873 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
2874 rs6000_emit_2insn_and): New.
2875 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
2876 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
2877 includes_rldic_lshift_p, includes_rldicr_lshift_p,
2878 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
2879 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
2880 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
2881 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
2882 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
2883 rs6000_emit_2insn_and): New.
2884 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
2885 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
2887 <NOT>: Don't fall through to next case.
2888 <AND>: Handle the various rotate-and-mask cases directly.
2889 <IOR>: Always cost as one insn.
2890 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
2891 (and<mode>3): Adjust expander for the new patterns.
2892 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
2893 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
2894 (*and<mode>3_imm_dot_shifted): New.
2895 (*and<mode>3_mask): Delete, rewrite as ...
2896 (and<mode>3_mask): ... New.
2897 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
2898 (andsi3_internal0_nomc): Delete.
2899 (*andsi3_internal6): Delete.
2900 (*and<mode>3_2insn): New.
2901 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
2902 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
2903 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
2904 *insvdi_internal3): Delete.
2905 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
2906 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
2907 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
2908 *ior<mode>_mask): New.
2909 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
2910 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
2911 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
2912 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
2914 (ashr<mode>3): Delete expander.
2915 (*ashr<mode>3): Rename to ...
2916 (ashr<mode>3): ... This.
2917 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
2918 (*rotldi3_internal4, *rotldi3_internal5 and split,
2919 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
2920 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
2921 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
2922 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
2923 (splitter for loading a mask): Adjust.
2924 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
2926 2015-07-20 Marek Polacek <polacek@redhat.com>
2928 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
2929 output_add_clobbers, output_added_clobbers_hard_reg_p,
2930 gen_rtx_scratch): Remove declarations.
2932 2015-07-20 Marek Polacek <polacek@redhat.com>
2935 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
2937 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2939 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
2940 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
2942 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2944 * combine.c (combine_simplify_rtx): Move simplification step
2945 before various transformations/substitutions.
2947 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
2949 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
2950 (struct int_traits): Likewise.
2952 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2954 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
2955 function to vmsdbgout_function_decl.
2957 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
2960 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
2961 from misaligned positions.
2962 (ix86_expand_pinsr): Reject insertions to misaligned positions.
2964 2015-07-18 Sebastian Pop <s.pop@samsung.com>
2968 * Makefile.in: Removed omega.o.
2969 * common.opt: Document flag fcheck-data-deps as deprecated.
2970 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
2971 its associated params: omega-max-vars, omega-max-geqs,
2972 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
2973 omega-max-keys, omega-eliminate-redundant-constraints.
2974 * doc/loop.texi: Remove all the section on Omega.
2975 * graphite-blocking.c: Include missing params.h: it used to be
2976 included through tree-data-ref.h and omega.h.
2977 * graphite-isl-ast-to-gimple.c: Same.
2978 * graphite-optimize-isl.c: Same.
2979 * graphite-sese-to-poly.c: Same.
2983 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
2984 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
2985 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
2986 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
2987 * passes.def: Remove pass_check_data_deps.
2988 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
2989 (dump_conflict_function): Same.
2990 (dump_subscript): Same.
2991 (print_direction_vector): Same.
2992 (print_dir_vectors): Same.
2993 (print_lambda_vector): Same.
2994 (print_dist_vectors): Same.
2995 (dump_data_dependence_relation): Same.
2996 (dump_data_dependence_relations): Same.
2997 (dump_dist_dir_vectors): Same.
2999 (init_omega_eq_with_af): Removed.
3000 (omega_extract_distance_vectors): Removed.
3001 (omega_setup_subscript): Removed.
3002 (init_omega_for_ddr_1): Removed.
3003 (init_omega_for_ddr): Removed.
3004 (ddr_consistent_p): Removed.
3005 (compute_affine_dependence): Do not use omega to check data
3007 (compute_data_dependences_for_bb): Removed.
3008 (analyze_all_data_dependences): Removed.
3009 (tree_check_data_deps): Removed.
3010 * tree-data-ref.h: Do not include omega.h.
3011 (compute_data_dependences_for_bb): Removed.
3012 (tree_check_data_deps): Removed.
3013 * tree-ssa-loop.c (pass_check_data_deps): Removed.
3014 (make_pass_check_data_deps): Removed.
3015 * tree-ssa-phiopt.c: Include params.h.
3016 * tree-vect-data-refs.c: Same.
3017 * tree-vect-slp.c: Same.
3019 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
3021 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
3022 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
3023 (mem->fpreg splitters): Ditto.
3024 (general_operand->nonimmediate_operand splitter): Use explicit modes.
3025 Disable DFmode for TARGET_64BIT.
3027 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
3030 * config/i386/i386.c (ix86_expand_prologue): Replicate static
3033 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
3035 * config/nvptx/mkoffload.c (process): Constify host data.
3036 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
3038 (generate_host_descr_file): Likewise.
3040 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
3041 Sebastian Pop <s.pop@samsung.com>
3044 * graphite-dependences.c (add_pdr_constraints): Renamed
3045 pdr->extent to pdr->subscript_sizes.
3046 * graphite-interchange.c (build_linearized_memory_access): Add
3047 back all gcc_assert's that the "isl_int to isl_val conversion"
3048 patch has removed. Refactored.
3049 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
3050 * graphite-poly.c (new_poly_dr): Same.
3051 (free_poly_dr): Same.
3052 * graphite-poly.h (struct poly_dr): Same.
3053 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
3054 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
3055 * graphite-scop-detection.h: Fix space.
3056 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
3057 back all gcc_assert's removed by a previous patch.
3058 (wrap): Remove the_isl_ctx global variable that the same patch has
3060 (build_loop_iteration_domains): Same.
3061 (add_param_constraints): Same.
3062 (pdr_add_data_dimensions): Same. Refactored.
3063 (build_poly_dr): Renamed extent to subscript_sizes.
3065 2015-07-17 Marek Polacek <polacek@redhat.com>
3067 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
3068 * match.pd: ... here.
3070 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
3072 * config/nvptx/mkoffload.c (process): Constify target data.
3073 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
3074 Constify target data.
3075 (generate_target_offloadend_file): Likewise.
3077 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
3079 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
3080 to allow renaming of PHI arguments on edges incoming from outer
3081 loop header, add corresponding check before start PHI iterator.
3082 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
3083 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
3084 with true force_vectorize. Set-up dominator for outer loop too.
3085 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
3086 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
3087 was marked with force_vectorize and has restricted cfg.
3088 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
3090 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3091 do peeling for outer loops.
3093 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
3094 Matthias Klose <doko@ubuntu.com>
3096 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
3097 build-sysroot, sysroot from the `Miscenalleous configure options' to
3098 the `Directories' section and strip trailing `/' from with_sysroot.
3099 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
3100 * configure: Regenerated.
3102 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
3105 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
3106 (TARGET_HARD_DF_REGS): Ditto.
3107 (TARGET_HARD_XF_REGS): Ditto.
3108 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
3109 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
3110 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
3111 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
3112 (*movsf_internal): Add alternatives 16 and 17. Enable
3113 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
3115 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
3117 PR rtl-optimization/66891
3118 * calls.c (expand_call): Wrap precompute_register_parameters with
3119 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
3121 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
3123 * config/nvptx/mkoffload.c (process): Constify mapping variables.
3124 Define target data struct and initialize it.
3126 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
3128 PR rtl-optimization/66626
3129 * ira.h (emit-rtl.h): Include.
3130 (non_spilled_static_chain_regno_p): New.
3131 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
3132 unless it is non spilled static chain pseudo.
3133 (assign_hard_rego): Spill memory profitable allocno unless it is
3134 non spilled static chain pseudo.
3135 (allocno_spill_priority_compare): Put non spilled static chain
3136 pseudo at the end of sorted array.
3137 (improve_allocation): Do nothing if we have static chain and
3139 (allocno__priority_compare_func): Put non spilled static chain
3140 pseudo at the beginning of sorted array.
3141 (move_spill_restore): Ignore non spilled static chain pseudo.
3142 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
3143 to non spilled static chain pseudo.
3144 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
3145 pseudo at the beginning of sorted array.
3146 (spill_for): Spill non spilled static chain pseudo last.
3147 * lra-constraints.c (lra_constraints): Remove static chain pseudo
3148 check for equivalence.
3150 2015-07-16 Martin Liska <mliska@suse.cz>
3153 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
3154 dst_ctx if it does not exist.
3156 2015-07-16 Martin Liska <mliska@suse.cz>
3158 * hash-set.h (remove): New function.
3159 (iterator): New iteration class for hash_set.
3161 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3163 * genattrtab.c (make_canonical): Add a file_location parameter.
3164 Use fatal_at rather than fatal.
3165 (get_attr_value): Likewise. Update call to make_canonical.
3166 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
3167 (make_internal_attr): Update calls accordingly.
3169 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3171 * read-md.h (message_with_line, error_with_line): Delete.
3172 * read-md.c (message_with_line, error_with_line): Delete.
3173 * gensupport.h: Include read-md.h.
3174 (md_rtx_info): New structure.
3175 (read_md_rtx): Use it. Return a bool success value.
3176 * gensupport.c (read_md_rtx): Likewise.
3177 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
3178 (main): Update after interface changes.
3179 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
3180 (main): Update after interface changes.
3181 * genattrtab.c (insn_code_number): Delete.
3182 (optimize_attrs): Add a max_insn_code parameter and use it instead
3183 of insn_code_number.
3184 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
3185 Use *_at rather than *_with_line functions.
3186 (gen_insn): Likewise.
3187 (gen_delay): Likewise.
3188 (gen_insn_reserv): Likewise.
3189 (gen_bypass): Take an md_rtx_info rather than an rtx.
3190 (main): Update after interface changes. Use a local max_insn_code
3191 variable instead of insn_code_number.
3192 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
3193 an rtx. Use fatal_at rather than fatal.
3194 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
3195 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
3196 (gen_absence_set, gen_final_absence_set, gen_automaton)
3197 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
3198 (main): Update after interface changes.
3199 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
3201 (main): Update after interface changes.
3202 * genconditions.c (main): Use new read_md_rtx interface.
3203 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
3204 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
3205 (main): Update after interface changes.
3206 * genemit.c (insn_code_number, insn_index_number): Delete.
3207 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3208 Use fatal_at rather than fatal.
3209 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
3211 (gen_split): Likewise.
3212 (main): Update after interface changes.
3213 * genextract.c (line_no): Delete.
3214 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3215 Update call to walk_rtx.
3216 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
3217 rather than message_with_line.
3218 (walk_rtx): Add an md_rtx_info argument. Update call to
3219 VEC_safe_set_locstr.
3220 (main): Update after interface changes.
3221 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
3222 and lineno. Use error_at rather than separate message_with_line
3223 calls and have_error assignments.
3224 (main): Update after interface changes.
3225 * genmddump.c (main): Use new read_md_rtx interface.
3226 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
3227 (main): Update after interface changes.
3228 * genoutput.c (next_code_number): Delete.
3229 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3230 (gen_peephole, gen_expand, gen_split): Likewise.
3231 (note_constraint): Likewise. Use *_at rather than *_with_line
3233 (main): Update after interface changes.
3234 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
3236 (main): Update after interface changes.
3237 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
3238 than an rtx and lineno.
3239 (process_define_constraint): Likewise.
3240 (process_define_register_constraint): Likewise.
3241 (main): Update after interface changes.
3242 * genrecog.c (next_insn_code, pattern_lineno): Delete.
3243 (validate_pattern): Replace top-level rtx with an md_rtx_info.
3244 Use *_at rather than *_with_line functions.
3245 (match_pattern_2): Likewise.
3246 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
3247 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
3248 Use *_at rather than *_with_line functions.
3249 * gentarget-def.c (add_insn): New function.
3250 (main): Use it. Use new read_md_rtx interface.
3252 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3254 * gensupport.h (compute_test_codes): Take a file_location rather
3256 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
3257 rather than *_with_line functions.
3258 (process_define_predicate): Update call to compute_test_codes.
3259 * genpreds.c (validate_exp): Take a file_location rather than a
3260 line number. Use *_at functions rather than *_with_line functions.
3261 (process_define_predicate): Update call to validate_exp.
3262 (constraint_data): Replace lineno field with a file_location.
3263 (add_constraint): Take a file_location rather than a line number.
3264 Use *_at functions rather than *_with_line functions. Fix error
3265 message for address constraints. Update after changes to
3266 validate_exp, constraint_data and compute_test_codes.
3267 (process_define_constraint): Update accordingly.
3268 (process_define_register_constraint): Likewise.
3270 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3272 * genoutput.c (data): Use a file_location to record the source
3275 (idata, idata_end): Remove initialization.
3276 (constraint_data): Replace lineno with a file_location.
3277 (output_insn_data): Update after changes to data.
3278 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
3279 (scan_operands): Likewise, using *_at rather than *_with_line
3281 (process_template): Likewise.
3282 (validate_insn_alternatives): Likewise.
3283 (validate_insn_operands): Likewise.
3284 (validate_optab_operands): Likewise.
3285 (init_insn_for_nothing): Initialize idata and idata_end.
3286 (note_constraint): Update after changes to constraint_data,
3287 using at rather than with_line functions.
3288 (mdep_constraint_len): Take a file_location rather than a
3289 line number. Use at rather than with_line functions.
3291 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3293 * read-md.h (fatal_at): Declare.
3294 * read-md.c (fatal_at): New function.
3295 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
3296 to record the source position.
3297 (check_attr_test): Take a file_location instead of a line number.
3298 Use fatal_at instead of fatal.
3299 (check_attr_value): Update after above changes, using "at"
3300 rather than "with_line" reporting functions.
3301 (convert_set_attr_alternative): Likewise.
3302 (gen_attr): Likewise.
3303 (check_defs): Likewise. Don't assign to read_md_filename.
3304 (gen_insn): Update initialization after above changes.
3305 (gen_delay): Likewise.
3306 (write_insn_cases): Print the filename for a define_peephole.
3307 (gen_insn_reserv): Take a line number as argument and update
3308 the call to check_attr_test.
3309 (main): Pass a line number to gen_insn_reserv.
3311 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3313 * read-md.h (file_location): New structure.
3314 (directive_handler_t): Take a file_location rather than a line number.
3315 (message_at, error_at): Declare.
3316 (read_skip_construct): Delete.
3317 * read-md.c (message_with_line_1): Replace with...
3318 (message_at_1): ...this new function.
3319 (message_at, error_at): New functions.
3320 (message_with_line, error_with_line): Update to use message_at_1.
3321 (handle_enum): Take a file_location rather than a line number
3322 and use error_at for error reporting.
3323 (handle_include): Likewise.
3324 (read_skip_construct): Likewise. Make static.
3325 (handle_file): Update after above changes. Pass a file_location
3326 rather than a line number to handle_directive.
3327 * gensupport.c (queue_elem): Replace separate filename and lineno
3328 with a file_location.
3329 (queue_pattern): Replace filename and lineno arguments with a
3330 file_location. Update after change to queue_elem.
3331 (process_define_predicate): Replace lineno argument with a
3332 file_location and use error_at for error reporting. Update
3333 after above changes.
3334 (process_rtx): Likewise.
3335 (subst_pattern_match): Likewise.
3336 (get_alternatives_number): Likewise.
3337 (alter_predicate_for_insn): Likewise.
3338 (rtx_handle_directive): Likewise.
3339 (is_predicable): Update after above changes, using error_at rather
3340 than error_with_line.
3341 (has_subst_attribute): Likewise.
3342 (identify_predicable_attribute): Likewise.
3343 (alter_attrs_for_subst_insn): Likewise.
3344 (process_one_cond_exec): Likewise.
3345 (process_substs_on_one_elem): Likewise.
3346 (process_define_subst): Likewise.
3347 (check_define_attr_duplicates): Likewise.
3348 (read_md_rtx): Update after change to queue_elem.
3350 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3352 * genoutput.c (next_index_number): Delete.
3353 (data): Remove index_number.
3354 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
3355 (main): Remove manipulation of next_index_number.
3357 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3359 * genattrtab.c (check_attr_value): Remove handling of null attrs.
3360 (make_canonical): Likewise.
3362 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
3364 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
3365 instead of adjust_address_nv.
3366 (restore_stack_nonlocal): Likewise.
3367 (nonlocal_goto): Likewise.
3369 2015-07-16 Tom de Vries <tom@codesourcery.com>
3371 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
3372 not have a corresponding loop header phi.
3374 2015-07-16 Tom de Vries <tom@codesourcery.com>
3376 * tree-parloops.c (create_loads_for_reductions): Handle case that
3377 reduction is unused.
3379 2015-07-16 Richard Biener <rguenther@suse.de>
3381 PR tree-optimization/66894
3382 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
3383 about deriving NE_EXPR from truncated values.
3385 2015-07-16 Martin Liska <mliska@suse.cz>
3388 (object_allocator): Add new class.
3389 (pool_allocator::initialize): Use the underlying class.
3390 (pool_allocator::allocate): Likewise.
3391 (pool_allocator::remove): Likewise.
3392 (operator new): A new generic allocator.
3393 * asan.c (struct asan_mem_ref): Remove unused members.
3394 (asan_mem_ref_new): Replace new operator with
3395 object_allocator::allocate.
3396 (free_mem_ref_resources): Change deallocation.
3397 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
3398 with object_allocator.
3399 * config/sh/sh.c (add_constant): Replace new operator with
3400 object_allocator::allocate.
3401 (sh_reorg): Change call to a release method.
3402 * cselib.c (struct elt_list): Remove unused members.
3403 (new_elt_list): Replace new operator with
3404 object_allocator::allocate.
3405 (new_elt_loc_list): Likewise.
3406 (new_cselib_val): Likewise.
3407 (unchain_one_elt_list): Change delete operator with remove method.
3408 (unchain_one_elt_loc_list): Likewise.
3409 (unchain_one_value): Likewise.
3410 (cselib_finish): Release newly added static allocators.
3411 * cselib.h (struct cselib_val): Remove unused members.
3412 (struct elt_loc_list): Likewise.
3413 * df-problems.c (df_chain_alloc): Replace pool_allocator with
3415 * df-scan.c (struct df_scan_problem_data): Likewise.
3416 (df_scan_alloc): Likewise.
3417 * df.h (struct dataflow): Likewise.
3418 * dse.c (struct read_info_type): Likewise.
3419 (struct insn_info_type): Likewise.
3420 (struct dse_bb_info_type): Likewise.
3421 (struct group_info): Likewise.
3422 (struct deferred_change): Likewise.
3423 (get_group_info): Likewise.
3424 (delete_dead_store_insn): Likewise.
3425 (free_read_records): Likewise.
3426 (replace_read): Likewise.
3427 (check_mem_read_rtx): Likewise.
3428 (scan_insn): Likewise.
3429 (dse_step1): Likewise.
3430 (dse_step7): Likewise.
3431 * et-forest.c (struct et_occ): Remove unused members.
3432 (et_new_occ): Use allocate instead of new operator.
3433 (et_new_tree): Likewise.
3434 (et_free_tree): Call release method explicitly.
3435 (et_free_tree_force): Likewise.
3436 (et_free_pools): Likewise.
3437 (et_split): Use remove instead of delete operator.
3438 * et-forest.h (struct et_node): Remove unused members.
3439 * ipa-cp.c: Change pool_allocator to object_allocator.
3440 * ipa-inline-analysis.c: Likewise.
3441 * ipa-profile.c: Likewise.
3442 * ipa-prop.c: Likewise.
3443 * ipa-prop.h: Likewise.
3444 * ira-build.c (initiate_cost_vectors): Cast return value.
3445 (ira_allocate_cost_vector): Likewise.
3446 * ira-color.c (struct update_cost_record): Remove unused members.
3447 * lra-int.h (struct lra_live_range): Likewise.
3448 (struct lra_copy): Likewise.
3449 (struct lra_insn_reg): Likewise.
3450 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
3451 * lra.c (new_insn_reg): Replace new operator with allocate method.
3452 (free_insn_regs): Same for operator delete.
3453 (finish_insn_regs): Release new static allocator.
3454 (finish_insn_recog_data): Likewise.
3455 (lra_free_copies): Replace delete operator with remove method.
3456 (lra_create_copy): Replace operator new with allocate method.
3457 (invalidate_insn_data_regno_info): Same for remove method.
3458 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
3459 (free_debug_insn_changes): Replace delete operator with remove method.
3460 (replace_oldest_value_reg): Replace operator new with allocate method.
3461 (pass_cprop_hardreg::execute): Release new static variable.
3462 * sched-deps.c (sched_deps_init): Change pool_allocator to
3464 * sel-sched-ir.c: Likewise.
3465 * sel-sched-ir.h: Likewise.
3466 * stmt.c (expand_case): Likewise.
3467 (expand_sjlj_dispatch_table): Likewise.
3468 * tree-sra.c (struct access): Remove unused members.
3469 (struct assign_link): Likewise.
3470 (sra_deinitialize): Release newly added static pools.
3471 (create_access_1):Replace operator new with allocate method.
3472 (build_accesses_from_assign): Likewise.
3473 (create_artificial_child_access): Likewise.
3474 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
3475 pool_allocator to object_allocator.
3476 * tree-ssa-pre.c: Likewise.
3477 * tree-ssa-reassoc.c: Likewise.
3478 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
3479 * tree-ssa-strlen.c: Likewise.
3480 * tree-ssa-structalias.c: Likewise.
3481 * var-tracking.c (onepart_pool_allocate): New function.
3482 (unshare_variable): Use the newly added function.
3483 (variable_merge_over_cur): Likewise.
3484 (variable_from_dropped): Likewise.
3485 (variable_was_changed): Likewise.
3486 (set_slot_part): Likewise.
3487 (emit_notes_for_differences_1): Likewise.
3488 (vt_finalize): Release newly added static pools.
3490 2015-07-16 Martin Jambor <mjambor@suse.cz>
3492 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
3493 all uses. Fix two typos in its general comment.
3494 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
3496 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
3498 * config/i386/linux-common.h (LINK_MPX): New.
3499 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
3500 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
3501 indicating '-z bndplt' support by linker.
3502 * configure: Regenerate.
3503 * config.in: Regenerate.
3505 2015-07-16 Richard Biener <rguenther@suse.de>
3507 * fold-const.c (fold_widened_comparison): Remove.
3508 (fold_sign_changed_comparison): Likewise.
3509 (fold_comparison): Move widened and sign-changed comparison
3511 * match.pd: ... to patterns here.
3512 * generic-match-head.c: Include target.h.
3513 * gimple-match-head.c: Likewise.
3515 2015-07-16 Richard Biener <rguenther@suse.de>
3517 * tree-ssa-dom.c (dom_valueize): New function.
3518 (record_temporary_equivalences): Also record equivalences
3519 for dominating stmts that have uses of equivalences we are
3522 2015-07-16 Bin Cheng <bin.cheng@arm.com>
3524 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
3525 add_autoinc_candidates.
3526 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
3527 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
3528 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
3529 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
3531 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
3532 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
3533 Remove parameter struct iv*. Call add_autoinc_candidates here.
3534 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
3535 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
3537 (find_iv_candidates): Call new functions.
3539 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
3541 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
3542 uninitialized-variable warning.
3544 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
3547 * config/sh/sh.md (movdi): Split simple reg move to two movsi
3548 when the destination is R0.
3550 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
3553 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
3554 * config/i386/i386.c (ix86_expand_pextr): New function.
3555 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
3556 for non-lowpart subregs.
3557 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
3558 (insv<mode>): Use SWI248 mode iterator.
3559 (insv<mode>_1): Ditto.
3561 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3562 Sebastian Pop <s.pop@samsung.com>
3564 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
3565 iterator to use_stmt.
3567 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3568 Sebastian Pop <s.pop@samsung.com>
3570 * graphite-scop-detection.c (build_scops_1): Discard scops for
3573 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3574 Sebastian Pop <s.pop@samsung.com>
3576 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
3577 case of a return statement in scop.
3579 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3580 Sebastian Pop <s.pop@samsung.com>
3582 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
3583 INTEGER_TYPE parameters.
3584 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
3585 VECTOR_CST in scan_tree_for_params.
3586 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
3588 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
3590 * gimple-pretty-print.h: Don't include pretty-print.h.
3591 * tree-streamer.h: Don't include lto-streamer.h.
3592 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
3593 * gimple-streamer-in.c: Remove redundant includes.
3594 * gimple-streamer-out.c: Likewise.
3595 * ipa-devirt.c: Likewise.
3596 * ipa-icf.c: Likewise.
3597 * ipa-inline-analysis.c: Likewise.
3598 * ipa-polymorphic-call.c: Likewise.
3599 * ipa-profile.c: Likewise.
3600 * ipa-prop.c: Likewise.
3601 * ipa-pure-const.c: Likewise.
3602 * lto-cgraph.c: Likewise.
3603 * lto-streamer-in.c: Likewise.
3604 * lto-streamer-out.c: Likewise.
3605 * lto-streamer.c: Likewise.
3606 * tree-streamer-in.c: Likewise.
3607 * tree-streamer-out.c: Likewise.
3608 * tree-streamer.c: Likewise.
3610 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
3612 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
3614 * opts.c: Remove multiline #include comment.
3616 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
3618 * config/nvptx/mkoffload.c (process): Add C++ protection to
3621 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3624 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
3625 null before IEEE 128-bit floating point support patch.
3627 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3629 * simplify-rtx.c (simplify_ternary_operation): Add simplification
3630 for (!c) != {0,...,0} ? a : b for vector modes.
3632 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
3633 Martin Jambor <mjambor@suse.cz>
3635 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
3636 struct func_body_info* instead of struct ipa_node_params*, expecting
3637 fbi->info to be filled in. Replace throughout. Adjust call to
3638 ipa_load_from_parm_agg.
3639 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
3640 instead of struct ipa_node_params*. Adjust calls to other functions
3641 so that they pass either fbi or fbi->info.
3642 (set_switch_stmt_execution_predicate): Likewise.
3643 (will_be_nonconstant_predicate): Likewise.
3644 (compute_bb_predicates): Likewise.
3645 (estimate_function_body_sizes): Move asserts earlier. Fill in
3646 struct func_body_info, replace parms_info with fbi.info. Adjust
3647 calls to functions that now accept struct func_body_info.
3648 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
3649 (struct func_body_info): Likewise.
3650 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
3651 remove static. Adjust callers.
3652 (ipa_load_from_parm_agg): Remove.
3653 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
3654 (func_body_info): Likewise.
3655 (ipa_load_from_parm_agg): Adjust prototype.
3657 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3659 * gensupport.c (rtx_handle_directive): Adjust.
3660 * read-rtl.c (apply_iterators): Take vector to add rtxs to
3661 instead of expr list rtx.
3662 (add_define_attr_for_define_subst): Likewise.
3663 (add_define_subst_attr): Likewise.
3664 (read_subst_mapping): Likewise.
3665 (read_rtx): Likewise.
3666 * rtl.h (read_rtx): Adjust.
3668 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3670 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
3672 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
3675 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
3676 (*tls_local_dynamic_base_64_<mode>): Ditto.
3677 (*tls_local_dynamic_base_64_largepic): Ditto.
3678 (tls_global_dynamic_64_<mode>): Update expander pattern.
3679 (tls_local_dynamic_base_64_<mode>): Ditto.
3681 2015-07-15 Richard Biener <rguenther@suse.de>
3683 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
3684 and bool_var == 1 -> bool_var simplifications ...
3685 * match.pd: ... to patterns here. Factor out negate_expr_p
3686 cases from the A - B -> A + (-B) patterns as negate_expr_p
3687 predicate and add a -(A + B) -> (-B) - A pattern.
3689 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
3691 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
3693 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
3694 Robert Suchanek <robert.suchanek@imgtec.com>
3696 * config/mips/mips.c (mips_int_mask): New enum.
3697 (mips_shadow_set): Likewise.
3698 (int_mask): New variable.
3699 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
3700 (machine_function): Add int_mask and use_shadow_register_set.
3701 (mips_attribute_table): Add attribute handlers for interrupt and
3702 use_shadow_register_set.
3703 (mips_interrupt_mask): New static function.
3704 (mips_handle_interrupt_attr): Likewise.
3705 (mips_handle_use_shadow_register_set_attr): Likewise.
3706 (mips_use_shadow_register_set): Change return type to enum
3707 mips_shadow_set. Add argument handling for use_shadow_register_set
3709 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
3710 compare with mips_shadow_set enum.
3711 (mips_compute_frame_info): Add interrupt mask and
3712 use_shadow_register_set to per-function information structure.
3713 Add a stack slot for EPC unconditionally.
3714 (mips_expand_prologue): Compare use_shadow_register_set value
3715 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
3716 masked interrupt register but in EIC mode use K0 and save Cause in K0.
3717 EPC saved and restored unconditionally. Use PMODE_INSN macro when
3718 copying the stack pointer from the shadow register set.
3719 * config/mips/mips.h (SR_IM0): New define.
3720 * config/mips/mips.md (mips_rdpgpr): Rename to...
3721 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
3722 * doc/extend.texi (Declaring Attributes of Functions): Document
3723 optional arguments for interrupt and use_shadow_register_set
3726 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
3728 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
3729 interrupt attribute.
3730 (mips_expand_prologue): Disable the floating point unit in an ISR.
3731 * config/mips/mips.h (SR_COP1): New define.
3733 2015-07-15 Richard Biener <rguenther@suse.de>
3735 * genmatch.c (parser::peek, parser::peek_ident): Add argument
3736 to tell how many tokens to peek ahead (default 1).
3737 (parser::eat_token, parser::eat_ident): Return token consumed.
3738 (parser::parse_result): Parse new switch statement.
3739 * match.pd: Use case statements where appropriate.
3741 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
3743 PR rtl-optimization/58066
3744 * calls.c (expand_call): Precompute register parameters before stack
3745 alignment is performed.
3747 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
3749 PR rtl-optimization/66838
3750 * postreload.c (reload_cse_move2add): Also process
3751 CALL_INSN_FUNCTION_USAGE when resetting information of
3752 call-clobbered registers.
3754 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3755 Cesar Philippidis <cesar@codesourcery.com>
3756 Chung-Lin Tang <cltang@codesourcery.com>
3758 * config/nios2/constraints.md (U, v): New constraints.
3759 * config/nios2/predicates.md (rdprs_dcache_operand): New.
3760 (ldstex_memory_operand): New.
3761 * config/nios2/sync.md: New file.
3762 * config/nios2/nios2.md (unspecv): Add new builtin function
3764 (rdprs, flushd, flushda, wrpie, eni): New patterns.
3765 (top-level): Include sync.md.
3766 * config/nios2/nios2.c (N2_FTYPES): Add function types for
3768 (N2_BUILTINS): Add arch field setting, add new builtins.
3769 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
3771 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
3772 Also handle ldex/stex/ldsex/stsex builtins.
3773 (nios2_expand_rdprs_builtin): New function.
3774 (nios2_expand_cache_builtin): New function.
3775 (nios2_expand_wrpie_builtin): New function.
3776 (nios2_expand_eni_builtin): New function.
3777 (nios2_expand_builtin): Add arch field handling and new builtin
3779 * doc/extend.texi (Altera Nios II Built-in Functions): Document
3781 * doc/md.texi (Machine Constraints): Document U and v constraints.
3783 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3784 Cesar Philippidis <cesar@codesourcery.com>
3785 Chung-Lin Tang <cltang@codesourcery.com>
3787 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
3788 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
3789 callee_save_reg_size and uses_anonymous_args fields.
3790 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
3791 (nios2_create_cfa_notes): New function.
3792 (nios2_adjust_stack): New function for adjusting stack.
3793 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
3794 Use nios2_adjust_stack.
3795 (nios2_expand_epilogue): Likewise.
3796 (nios2_expand_return): New function.
3797 (nios2_can_use_return_insn): Update for CDX pop.n usage.
3798 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
3799 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
3800 * config/nios2/nios2.md (return): Use nios2_expand_return.
3802 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3803 Cesar Philippidis <cesar@codesourcery.com>
3804 Chung-Lin Tang <cltang@codesourcery.com>
3806 * config/nios2/predicates.md (pop_operation): New.
3807 (ldwm_operation, stwm_operation): New.
3808 (nios2_hard_register_operand): New.
3809 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
3810 (ldstwm_operation_p): Declare.
3811 (gen_ldstwm_peep): Declare.
3812 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
3813 (base_reg_adjustment_p): New.
3814 (pop_operation_p): New.
3815 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
3816 (nios2_ldstwm_regset_p): New.
3817 (ldstwm_operation_p): New.
3819 (nios2_ldst_parallel): New.
3820 (struct ldswm_operand): Declare.
3821 (compare_ldstwm_operands): New.
3822 (can_use_cdx_ldstw): New.
3823 (gen_ldstwm_peep): New.
3824 * config/nios2/nios2-ldstwm.sml: New.
3825 * config/nios2/nios2.md: Include ldstwm.md.
3826 * config/nios2/ldstwm.md: Generated.
3828 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3829 Cesar Philippidis <cesar@codesourcery.com>
3830 Chung-Lin Tang <cltang@codesourcery.com>
3832 * config/nios2/nios2.h (LABEL_ALIGN): Define.
3833 (REG_ALLOC_ORDER): Define.
3834 (ADJUST_REG_ALLOC_ORDER): Define.
3835 (HONOR_REG_ALLOC_ORDER): Define.
3836 (CDX_REG_P): Define.
3837 (ANDCLEAR_INT): Define.
3838 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
3839 (nios2_label_align): Declare.
3840 (nios2_cdx_narrow_form_p): Declare.
3841 (nios2_adjust_reg_alloc_order): Declare.
3842 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
3844 (nios2_large_unspec_reloc_p): New function, split from...
3845 (nios2_legitimate_pic_operand_p): ...here.
3846 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
3847 (nios2_print_operand_punct_valid_p): New.
3848 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
3849 (split_mem_address): New.
3850 (split_alu_insn): New.
3852 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
3853 (enum nios2_add_insn_kind): New.
3854 (nios2_add_insn_names, nios2_add_insn_narrow): New.
3855 (nios2_add_insn_classify): New.
3856 (nios2_add_insn_asm): New.
3857 (nios2_cdx_narrow_form_p): New.
3858 (label_align, min_labelno, max_labelno): New.
3860 (nios2_label_align): New.
3861 (nios2_adjust_reg_alloc_order): New.
3862 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3863 (TARGET_MACHINE_DEPENDENT_REORG): Define.
3864 * config/nios2/constraints.md (P): New constraint.
3865 * config/nios2/predicates.md (const_and_operand): New.
3867 (stack_memory_operand): New.
3868 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
3869 (length): Update to use nios2_cdx_narrow_form_p().
3870 (type): Add new insn type values.
3871 (control, alu, st, ld, shift): Update insn reservations with
3872 new insn type values.
3873 (*high, *lo_sum): Define new insn patterns for constant generation.
3874 (movqi_internal, movhi_internal, movsi_internal): Reduce
3875 alternatives, update asm template to handle CDX variants, update
3877 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
3878 template, update type attributes.
3879 (extendhisi2, extendqi<mode>2): Likewise.
3880 (addsi3): Change to use function for asm string.
3881 (subsi3): Add CDX notation to asm template, update type attributes.
3882 (negsi3, one_cmplsi3): Likewise.
3883 (andsi3): New pattern, specialized from logical patterns.
3884 (<code>si3): Remove and case, combine alternatives, update asm
3886 (<shift_op>si3): Add CDX notation, update type attributes.
3887 (rotrsi3): Update type attribute.
3888 (*merge, extzv, insv): New insn patterns.
3889 (return): Change to define_expand.
3890 (simple_return): Add CDX notation, update type attributes.
3891 (indirect_jump): Add CDX notation.
3892 (jump): Update asm cases, update length attribute expression.
3893 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
3894 (nios2_cbranch): Update asm cases and length attribute expression
3895 to handle CDX variants.
3896 (nios2_cmp<code>): Update asm template.
3897 (nop): Add CDX notation, update type attributes.
3898 (trap): Add CDX notation.
3899 (ctrapsi4): Update asm cases and length attribute expression to
3901 * doc/md.texi (Machine Constraints): Document P constraint.
3903 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3904 Cesar Philippidis <cesar@codesourcery.com>
3905 Chung-Lin Tang <cltang@codesourcery.com>
3907 * config/nios2/nios2.h (SMALL_INT12): New macro.
3908 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
3909 (nios2_valid_addr_expr_p): Use it.
3910 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
3911 with implicit "io" instructions on R2.
3912 * config/nios2/constraints.md (w): New constraint.
3913 * config/nios2/predicates.md (ldstio_memory_operand): New.
3914 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
3915 operand predicate and constraint.
3916 (ld<bh>io_signed, st<bhw>io>): Likewise.
3917 * doc/md.texi (Machine Constraints): Document w constraint.
3919 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3920 Cesar Philippidis <cesar@codesourcery.com>
3921 Chung-Lin Tang <cltang@codesourcery.com>
3923 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
3924 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
3925 Nios II architecture level.
3926 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
3927 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
3928 (OPTION_DEFAULT_SPECS): Define.
3929 (ASM_SPEC): Add -march= spec strings.
3930 * config/nios2/nios2.c (nios2_option_override): Check for
3931 conflicts involving new options.
3932 * config.gcc (nios2*-*-*): Support --with-arch=.
3933 * doc/invoke.texi (Option Summary, Nios II Options): Document
3934 -march=, -mbmx, and -mcdx.
3936 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
3938 PR rtl-optimization/66626
3939 * lra-constraints.c (lra_constraints): Prevent equivalence
3940 substitution for static chain pseudo in functions with nonlocal
3943 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3945 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
3946 (nios2_emit_stack_limit_check): Add size parameter. Handle
3947 -fstack-limit-symbol as well as -fstack-limit-register.
3948 (nios2_expand_prologue): Emit only a single stack limit check,
3949 even if multiple stack adjustments are required.
3950 (nios2_option_override): Diagnose unsupported combination of -fpic
3951 and -stack-limit-symbol.
3953 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
3955 * Makefile.in (top_srcdir): New.
3956 * configure.ac: Use AM_ZLIB.
3957 * configure: Regeneated.
3959 2015-07-14 Matthias Klose <doko@ubuntu.com>
3962 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
3964 2015-07-14 Richard Biener <rguenther@suse.de>
3966 PR tree-optimization/66863
3967 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
3968 what we record for conversion use stmt lhs inequalities.
3970 2015-07-14 Richard Biener <rguenther@suse.de>
3972 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
3973 (decision_tree::gen_gimple): Likewise.
3975 2015-07-14 Tom de Vries <tom@codesourcery.com>
3977 * gcc.c (greater_than_spec_func): Declare forward.
3978 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
3979 -ftree-parallelize-loops={0,1}.
3980 (static_spec_functions): Add greater_than_spec_func function with name
3982 (greater_than_spec_func): New function.
3984 2015-07-14 Richard Biener <rguenther@suse.de>
3986 * tree-ssa-dom.c (record_temporary_equivalences): Merge
3987 wideing type conversion case from record_equivalences_from_incoming_edge
3988 and use record_equality to record equivalences.
3989 (record_equivalences_from_incoming_edge): Call
3990 record_temporary_equivalences.
3992 2015-07-14 Richard Biener <rguenther@suse.de>
3994 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
3995 (struct if_expr): New.
3996 (struct with_expr): Likewise.
3997 (is_a_helper): Add helpers for if_expr and with_expr.
3998 (struct simplify): Add simplify_kind enum and member. Remove
4000 (simplify::simplify): Adjust.
4001 (lower_commutative): Adjust.
4002 (lower_opt_convert): Likewise.
4003 (lower_cond): Likewise.
4004 (replace_id): Handle with_expr and if_expr.
4005 (lower_for): Adjust.
4006 (dt_simplify::gen_1): New recursive worker, split out from ...
4007 (dt_simplify::gen): ... here. Deal with if and with expansion
4009 (capture_info::capture_info): Take context argument
4010 (capture_info::walk_result): Only analyze specific result.
4011 (parser::parse_result): New function.
4012 (parser::parse_simplify): Adjust to parse ifs with then end
4014 (parser::parse_if): Simplify.
4015 (parser::parse_pattern): Pass down simplify kind.
4016 * match.pd: Convert if structure to new syntax.
4018 2015-07-13 Marek Polacek <polacek@redhat.com>
4020 * rtl.c (rtx_equal_p_cb): Fix typo.
4022 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
4024 * omega.h: Don't include config.h, don't include params.h again if
4025 omega.h has already been included.
4026 * graphite-poly.h: Include sese.h.
4027 * graphite.c: Don't include sese.h, remove needless includes and
4028 minimize includes outside #ifdef HAVE_isl block.
4029 * graphite-blocking.c: Don't include sese.h, remove needless includes,
4030 and wrap entire file in #ifdef HAVE_isl
4031 * graphite-dependences.c: Likewise.
4032 * graphite-interchange.c: Likewise.
4033 * graphite-isl-ast-to-gimple.c: Likewise.
4034 * graphite-optimize-isl.c: Likewise.
4035 * graphite-poly.c: Likewise.
4036 * graphite-scop-detection.c: Likewise.
4037 * graphite-sese-to-poly.c: Likewise.
4039 2015-07-13 Tom de Vries <tom@codesourcery.com>
4041 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
4043 2015-07-13 Renlin Li <renlin.li@arm.com>
4046 * simplify-rtx.c (simplify_const_relational_operation): Add
4047 side_effects_p checks.
4049 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
4051 * bitmap.h: Fix double word typos.
4054 * cfgloopmanip.c: Same.
4057 * cgraphclones.c: Same.
4059 * config/aarch64/aarch64-protos.h: Same.
4060 * config/aarch64/aarch64.c: Same.
4061 * config/aarch64/aarch64.md: Same.
4062 * config/arm/arm.md: Same.
4063 * config/arm/arm1020e.md: Same.
4064 * config/arm/arm1026ejs.md: Same.
4065 * config/arm/arm926ejs.md: Same.
4066 * config/arm/fa526.md: Same.
4067 * config/arm/fa606te.md: Same.
4068 * config/arm/fa626te.md: Same.
4069 * config/arm/fa726te.md: Same.
4070 * config/arm/fmp626.md: Same.
4071 * config/darwin.c: Same.
4072 * config/epiphany/epiphany.c: Same.
4073 * config/frv/frv.c: Same.
4074 * config/ft32/ft32.c: Same.
4075 * config/gnu-user.h: Same.
4076 * config/h8300/constraints.md: Same.
4077 * config/i386/i386.c: Same.
4078 * config/i386/i386.md: Same.
4079 * config/iq2000/iq2000.md: Same.
4080 * config/mips/mips.c: Same.
4081 * config/mmix/mmix.md: Same.
4082 * config/moxie/moxie.c: Same.
4083 * config/nds32/nds32.md: Same.
4084 * config/pa/pa.h: Same.
4085 * config/rs6000/aix.h: Same.
4086 * config/rs6000/rs6000.h: Same.
4087 * config/sh/sh.c: Same.
4088 * config/tilegx/tilegx.md: Same.
4089 * config/tilepro/gen-mul-tables.cc: Same.
4092 * doc/invoke.texi: Same.
4094 * dwarf2out.c: Same.
4099 * hash-table.h: Same.
4100 * internal-fn.c: Same.
4102 * ipa-devirt.c: Same.
4105 * ipa-profile.c: Same.
4110 * reg-stack.c: Same.
4116 * tree-inline.c: Same.
4118 * tree-ssa-dom.c: Same.
4119 * tree-ssa-loop-ivopts.c: Same.
4120 * tree-ssa-structalias.c: Same.
4121 * tree-ssa-tail-merge.c: Same.
4122 * tree-ssa-ter.c: Same.
4123 * tree-ssa-threadupdate.c: Same.
4124 * tree-ssa-uninit.c: Same.
4125 * tree-ssanames.c: Same.
4126 * tree-vect-loop-manip.c: Same.
4132 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4135 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
4136 tree_ssa_phiopt_worker): Call it.
4138 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4140 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
4141 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
4144 2015-07-11 Marek Polacek <polacek@redhat.com>
4147 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
4148 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
4149 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
4150 rather than bb_has_abnormal_call_pred.
4151 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
4152 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
4153 rather than bb_has_abnormal_call_pred.
4155 2015-07-10 Anatoly Sokolov <aesok@post.ru>
4157 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4158 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
4159 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4160 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
4161 v850_legitimate_address_p): New functions.
4162 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4164 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
4167 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
4168 indirect sibcall with register arguments if register available
4169 for argument passing.
4170 (init_cumulative_args): Set cfun->machine->arg_reg_available
4171 to (cum->nregs > 0) or to true if function has a variable
4173 (function_arg_advance_32): Set cfun->machine->arg_reg_available
4174 to false if cum->nregs <= 0.
4175 * config/i386/i386.h (machine_function): Add arg_reg_available.
4177 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
4179 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
4180 and gen_higpart instead of gen_rtx_SUBREG.
4181 * config/i386/i386.md
4182 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
4183 (read-modify peephole2): Use gen_lowpart instead of
4184 gen_rtx_SUBREG for operand 5.
4186 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
4188 * config/tilepro/gen-mul-tables.cc (main): Change include list for
4190 * config/tilepro/mul-tables.c: Regenerate.
4191 * config/tilegx/mul-tables.c: Regenerate.
4193 2015-07-10 Richard Biener <rguenther@suse.de>
4195 * fold-const.c (distribute_bit_expr): Remove.
4196 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
4197 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
4198 to A & (B | C) and simplifying A << C1 << C2 to ...
4199 * match.pd: ... patterns here.
4201 2015-07-10 Jiong Wang <jiong.wang@arm.com>
4203 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4204 Mark mem as READONLY and NOTRAP for PIC symbol.
4206 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
4208 * gimple-predict.h: New file.
4209 (gimple_predict_predictor, gimple_predict_set_predictor,
4210 gimple_predict_outcome, gimple_predict_set_outcome,
4211 gimple_build_predict): Relocate here.
4212 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
4213 gimple_predict_outcome, gimple_predict_set_outcome): Move to
4215 * gimple.c (gimple_build_predict): Move to gimple-predict.h
4216 * basic-block.h: Don't include cfghooks.h.
4217 * backend.h: Don't include predict.h.
4218 * cfghooks.h: Include predict.h.
4219 * gimple-pretty-print.c: Include gimple-predict.h.
4220 * gimplify.c: Likwise.
4221 * predict.c: Adjust includes.
4222 * tree-inline.c: Likewise.
4224 * auto-inc-dec.c: Likewise.
4225 * auto-profile.c: Likewise.
4226 * bb-reorder.c: Likewise.
4227 * builtins.c: Likewise.
4228 * caller-save.c: Likewise.
4229 * calls.c: Likewise.
4230 * cfganal.c: Likewise.
4231 * cfgbuild.c: Likewise.
4233 * cfgcleanup.c: Likewise.
4234 * cfgexpand.c: Likewise.
4235 * cfghooks.c: Likewise.
4236 * cfgloopanal.c: Likewise.
4237 * cfgloop.c: Likewise.
4238 * cfgloopmanip.c: Likewise.
4239 * cfgrtl.c: Likewise.
4240 * cgraph.c: Likewise.
4241 * cgraphunit.c: Likewise.
4242 * combine.c: Likewise.
4243 * cprop.c: Likewise.
4246 * dojump.c: Likewise.
4248 * except.c: Likewise.
4249 * expmed.c: Likewise.
4251 * final.c: Likewise.
4252 * fold-const.c: Likewise.
4253 * function.c: Likewise.
4254 * fwprop.c: Likewise.
4255 * gcc-plugin.h: Likewise.
4257 * genattrtab.c: Likewise.
4258 * genemit.c: Likewise.
4259 * gengtype.c: Likewise.
4260 * genopinit.c: Likewise.
4261 * genoutput.c: Likewise.
4262 * genpreds.c: Likewise.
4263 * genrecog.c: Likewise.
4264 * gimple-fold.c: Likewise.
4265 * gimple-iterator.c: Likewise.
4266 * gimple-ssa-isolate-paths.c: Likewise.
4267 * gimple-ssa-strength-reduction.c: Likewise.
4268 * graph.c: Likewise.
4269 * graphite-blocking.c: Likewise.
4270 * graphite.c: Likewise.
4271 * graphite-dependences.c: Likewise.
4272 * graphite-interchange.c: Likewise.
4273 * graphite-isl-ast-to-gimple.c: Likewise.
4274 * graphite-optimize-isl.c: Likewise.
4275 * graphite-poly.c: Likewise.
4276 * graphite-scop-detection.c: Likewise.
4277 * graphite-sese-to-poly.c: Likewise.
4278 * haifa-sched.c: Likewise.
4279 * ifcvt.c: Likewise.
4280 * internal-fn.c: Likewise.
4281 * ipa-cp.c: Likewise.
4282 * ipa-profile.c: Likewise.
4283 * ipa-split.c: Likewise.
4284 * ipa-utils.c: Likewise.
4285 * ira-build.c: Likewise.
4286 * ira-color.c: Likewise.
4287 * ira-conflicts.c: Likewise.
4288 * ira-costs.c: Likewise.
4289 * ira-emit.c: Likewise.
4290 * ira-lives.c: Likewise.
4292 * loop-doloop.c: Likewise.
4293 * loop-init.c: Likewise.
4294 * loop-invariant.c: Likewise.
4295 * loop-unroll.c: Likewise.
4296 * lower-subreg.c: Likewise.
4297 * lra-assigns.c: Likewise.
4299 * lra-coalesce.c: Likewise.
4300 * lra-constraints.c: Likewise.
4301 * lra-lives.c: Likewise.
4302 * lto-cgraph.c: Likewise.
4303 * lto-streamer-in.c: Likewise.
4304 * mode-switching.c: Likewise.
4305 * modulo-sched.c: Likewise.
4306 * omp-low.c: Likewise.
4307 * optabs.c: Likewise.
4308 * passes.c: Likewise.
4309 * postreload.c: Likewise.
4310 * postreload-gcse.c: Likewise.
4311 * profile.c: Likewise.
4312 * recog.c: Likewise.
4313 * regstat.c: Likewise.
4314 * reload1.c: Likewise.
4315 * reorg.c: Likewise.
4316 * rtlanal.c: Likewise.
4317 * sched-ebb.c: Likewise.
4318 * sel-sched-ir.c: Likewise.
4320 * shrink-wrap.c: Likewise.
4321 * simplify-rtx.c: Likewise.
4323 * store-motion.c: Likewise.
4324 * tracer.c: Likewise.
4325 * trans-mem.c: Likewise.
4326 * tree-call-cdce.c: Likewise.
4327 * tree-cfg.c: Likewise.
4328 * tree-cfgcleanup.c: Likewise.
4329 * tree-chkp.c: Likewise.
4330 * tree-complex.c: Likewise.
4331 * tree-eh.c: Likewise.
4332 * tree-if-conv.c: Likewise.
4333 * tree-loop-distribution.c: Likewise.
4334 * tree-outof-ssa.c: Likewise.
4335 * tree-parloops.c: Likewise.
4336 * tree-predcom.c: Likewise.
4337 * tree-pretty-print.c: Likewise.
4338 * tree-profile.c: Likewise.
4339 * tree-sra.c: Likewise.
4340 * tree-ssa.c: Likewise.
4341 * tree-ssa-coalesce.c: Likewise.
4342 * tree-ssa-dce.c: Likewise.
4343 * tree-ssa-dom.c: Likewise.
4344 * tree-ssa-forwprop.c: Likewise.
4345 * tree-ssa-ifcombine.c: Likewise.
4346 * tree-ssa-loop-ch.c: Likewise.
4347 * tree-ssa-loop-im.c: Likewise.
4348 * tree-ssa-loop-ivcanon.c: Likewise.
4349 * tree-ssa-loop-ivopts.c: Likewise.
4350 * tree-ssa-loop-manip.c: Likewise.
4351 * tree-ssa-loop-prefetch.c: Likewise.
4352 * tree-ssa-loop-unswitch.c: Likewise.
4353 * tree-ssa-math-opts.c: Likewise.
4354 * tree-ssa-phiopt.c: Likewise.
4355 * tree-ssa-pre.c: Likewise.
4356 * tree-ssa-reassoc.c: Likewise.
4357 * tree-ssa-sink.c: Likewise.
4358 * tree-ssa-tail-merge.c: Likewise.
4359 * tree-ssa-threadedge.c: Likewise.
4360 * tree-ssa-threadupdate.c: Likewise.
4361 * tree-switch-conversion.c: Likewise.
4362 * tree-tailcall.c: Likewise.
4363 * tree-vect-data-refs.c: Likewise.
4364 * tree-vect-loop.c: Likewise.
4365 * tree-vect-loop-manip.c: Likewise.
4366 * tree-vectorizer.c: Likewise.
4367 * tree-vrp.c: Likewise.
4368 * ubsan.c: Likewise.
4369 * value-prof.c: Likewise.
4370 * varasm.c: Likewise.
4371 * var-tracking.c: Likewise.
4372 * config/aarch64/aarch64-builtins.c: Likewise.
4373 * config/aarch64/aarch64.c: Likewise.
4374 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4375 * config/alpha/alpha.c: Likewise.
4376 * config/arc/arc.c: Likewise.
4377 * config/arm/arm.c: Likewise.
4378 * config/avr/avr.c: Likewise.
4379 * config/bfin/bfin.c: Likewise.
4380 * config/c6x/c6x.c: Likewise.
4381 * config/cr16/cr16.c: Likewise.
4382 * config/cris/cris.c: Likewise.
4383 * config/darwin.c: Likewise.
4384 * config/darwin-c.c: Likewise.
4385 * config/epiphany/epiphany.c: Likewise.
4386 * config/epiphany/mode-switch-use.c: Likewise.
4387 * config/epiphany/resolve-sw-modes.c: Likewise.
4388 * config/fr30/fr30.c: Likewise.
4389 * config/frv/frv.c: Likewise.
4390 * config/ft32/ft32.c: Likewise.
4391 * config/h8300/h8300.c: Likewise.
4392 * config/i386/i386.c: Likewise.
4393 * config/i386/winnt.c: Likewise.
4394 * config/ia64/ia64.c: Likewise.
4395 * config/iq2000/iq2000.c: Likewise.
4396 * config/lm32/lm32.c: Likewise.
4397 * config/m32c/m32c.c: Likewise.
4398 * config/m32r/m32r.c: Likewise.
4399 * config/m68k/m68k.c: Likewise.
4400 * config/mcore/mcore.c: Likewise.
4401 * config/mep/mep.c: Likewise.
4402 * config/microblaze/microblaze.c: Likewise.
4403 * config/mips/mips.c: Likewise.
4404 * config/mmix/mmix.c: Likewise.
4405 * config/mn10300/mn10300.c: Likewise.
4406 * config/moxie/moxie.c: Likewise.
4407 * config/msp430/msp430.c: Likewise.
4408 * config/nds32/nds32.c: Likewise.
4409 * config/nds32/nds32-cost.c: Likewise.
4410 * config/nds32/nds32-fp-as-gp.c: Likewise.
4411 * config/nds32/nds32-intrinsic.c: Likewise.
4412 * config/nds32/nds32-isr.c: Likewise.
4413 * config/nds32/nds32-md-auxiliary.c: Likewise.
4414 * config/nds32/nds32-memory-manipulation.c: Likewise.
4415 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4416 * config/nds32/nds32-predicates.c: Likewise.
4417 * config/nios2/nios2.c: Likewise.
4418 * config/nvptx/nvptx.c: Likewise.
4419 * config/pa/pa.c: Likewise.
4420 * config/pdp11/pdp11.c: Likewise.
4421 * config/rl78/rl78.c: Likewise.
4422 * config/rs6000/rs6000.c: Likewise.
4423 * config/rx/rx.c: Likewise.
4424 * config/s390/s390.c: Likewise.
4425 * config/sh/sh.c: Likewise.
4426 * config/sh/sh-mem.cc: Likewise.
4427 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4428 * config/sh/sh_treg_combine.cc: Likewise.
4429 * config/sparc/sparc.c: Likewise.
4430 * config/spu/spu.c: Likewise.
4431 * config/stormy16/stormy16.c: Likewise.
4432 * config/tilegx/tilegx.c: Likewise.
4433 * config/tilepro/tilepro.c: Likewise.
4434 * config/v850/v850.c: Likewise.
4435 * config/vax/vax.c: Likewise.
4436 * config/visium/visium.c: Likewise.
4437 * config/xtensa/xtensa.c: Likewise.
4439 2015-07-10 Richard Biener <rguenther@suse.de>
4441 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
4442 (decision_tree::gen_gimple): Likewise.
4443 (decision_tree::gen_generic): Likewise.
4445 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
4448 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
4449 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
4451 2015-07-10 Jakub Jelinek <jakub@redhat.com>
4454 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
4455 or ORT_TASK contexts.
4456 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
4459 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4461 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
4464 2015-07-10 Tom de Vries <tom@codesourcery.com>
4466 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
4467 insert nit + 1 bound.
4469 2015-07-10 Richard Biener <rguenther@suse.de>
4471 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
4472 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
4473 (if_convertible_loop_p_1): For this always compute bb predicates.
4474 (if_convertible_loop_p): And free them.
4476 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4478 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
4481 2015-07-10 Richard Biener <rguenther@suse.de>
4483 PR tree-optimization/66823
4484 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
4487 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
4489 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
4490 to handle mips[32|64]r3 and mips[32|64]r5.
4492 2015-07-09 Jakub Jelinek <jakub@redhat.com>
4495 * tree-nested.c (get_static_chain): Or in a flag into
4496 info->static_chain_added.
4497 (get_frame_field, get_nonlocal_debug_decl): Likewise.
4498 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
4500 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
4501 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
4504 PR tree-optimization/66718
4505 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
4507 (vect_simd_lane_linear): New function.
4508 (vectorizable_simd_clone_call): Support using linear arguments for
4509 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
4511 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4514 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
4516 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4518 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
4519 Use machine mode, not enum machine_mode in the prototype.
4521 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
4522 classify 128-bit floating point support.
4523 (FLOAT128_IBM_P): Likewise.
4524 (FLOAT128_VECTOR_P): Likewise.
4525 (FLOAT128_2REG_P): Likewise.
4526 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
4527 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
4528 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
4529 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
4531 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
4532 tests against TFmode/TDmode, since those modes do not use VSX
4534 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
4536 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
4537 tests against TFmode, etc.
4538 (invalid_e500_subreg): Add tests against IFmode/KFmode.
4539 (reg_offset_addressing_ok_p): Likewise.
4540 (rs6000_legitimate_offset_address_p): Likewise.
4541 (rs6000_legitimize_address): Likewise.
4542 (rs6000_legitimize_reload_address): Likewise.
4543 (rs6000_legitimate_address_p): Clean up tests against TFmode and
4544 TDmode to use the new helper macros, which will include IFmode and
4546 (rs6000_emit_move): Likewise.
4547 (rs6000_darwin64_record_arg_recurse): Likewise.
4548 (print_operand): Likewise.
4549 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
4550 that uses a single vector register as a vector and not as a
4551 floating point register in terms of the calling sequence.
4552 (rs6000_discover_homogeneous_aggregate): Likewise.
4553 (rs6000_return_in_memory): Likewise.
4554 (init_cumulative_args): Likewise.
4555 (rs6000_function_arg_boundary): Likewise.
4556 (rs6000_function_arg_advance_1): Likewise.
4557 (rs6000_function_arg): Likewise.
4558 (rs6000_pass_by_reference): Likewise.
4559 (rs6000_gimplify_va_arg): Likewise.
4560 (rs6000_secondary_reload_memory): Use machine_mode not enum
4562 (rs6000_split_multireg_move): Use new helper macros.
4563 (spe_func_has_64bit_regs_p): Likewise.
4564 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
4565 (output_toc): Use new helper macros.
4566 (rs6000_register_move_cost): Likewise.
4567 (rs6000_function_value): Add IEEE 128-bit floating point calling
4569 (rs6000_libcall_value): Likewise.
4570 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
4571 floating point support.
4572 (rs6000_vector_mode_supported_p): Likewise.
4574 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
4576 PR rtl-optimization/66782
4577 * lra-int.h (struct lra_insn_recog_data): Add comment about
4578 clobbered hard regs for arg_hard_regs.
4579 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
4580 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
4581 Add condition for processing used hard regs.
4582 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
4583 Process clobbered hard regs.
4585 2015-07-09 Michael Matz <matz@suse.de>
4587 * genmatch.c (fprintf_indent): New function.
4588 (operand::gen_transform): Add indent parameter.
4589 (expr::gen_transform, c_expr::gen_transform,
4590 capture::gen_transform): Ditto and use fprintf_indent.
4591 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
4592 (dt_operand::gen, dt_operand::gen_predicate,
4593 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
4594 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
4595 (decision_tree::gen_gimple): Adjust calls and indent generated
4597 (decision_tree::gen_generic): Ditto.
4598 (write_predicate): Ditto.
4600 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
4603 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
4604 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
4605 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
4606 {GENERAL,SSE,MMX}_REG_P where appropriate.
4608 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
4610 * lto-streamer.h: Don't include target.h and alloc-pool.h.
4611 * builtins.c: Adjust includes.
4612 * gimple.c: Likewise.
4613 * ipa-icf.c: Likewise.
4614 * lto-opts.c: Likewise.
4615 * ipa-reference.c: Likewise.
4616 * lto-section-out.c: Likewise.
4617 * lto-streamer-in.c: Likewise.
4618 * lto-streamer-out.c: Likewise.
4619 * opts-global.c: Likewise.
4620 * symtab.c: Likewise.
4621 * tree-chkp.c: Likewise.
4622 * tree-ssa-live.c: Likewise.
4623 * tree-streamer-in.c: Likewise.
4624 * tree-streamer-out.c: Likewise.
4625 * config/darwin.c: Likewise.
4626 * config/i386/winnt.c: Likewise.
4628 2015-07-09 Richard Biener <rguenther@suse.de>
4630 * genmatch.c (struct expr): Add force_single_use flag.
4631 (expr::expr): Add copy constructor.
4632 (capture_info::walk_match): Gather force_single_use captures.
4633 (expr::gen_transform): Use possibly NULLified sequence.
4634 (dt_simplify::gen): Apply single-use restrictions by NULLifying
4635 seq if any constrained expr is not single-use.
4636 (parser::parse_expr): Refactor to allow multiple flags. Handle
4637 's' flag to force an expression have a single-use if the pattern
4638 simplifies to more than one statement.
4639 * match.pd: Convert most single_use conditionals to :s flags.
4641 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4643 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
4644 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
4645 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
4647 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
4649 * flags.h: Don't include flag-types.h or options.h.
4650 * opts-common.c: Adjust includes.
4651 * opts-global.c: Likewise.
4652 * common/config/epiphany/epiphany-common.c: Likewise.
4654 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4657 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
4660 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4663 * config/i386/i386.c (ix86_return_in_memory): Return true
4664 if int_size_in_bytes returns negative for IA MCU.
4666 2015-07-09 Marek Polacek <polacek@redhat.com>
4668 PR tree-optimization/66718
4669 * Makefile.in (OBJS): Add gimple-laddress.o.
4670 * passes.def: Schedule pass_laddress.
4671 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
4672 * tree-pass.h (make_pass_laddress): Declare.
4673 * gimple-laddress.c: New file.
4675 2015-07-09 Richard Biener <rguenther@suse.de>
4677 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
4679 2015-07-09 Richard Biener <rguenther@suse.de>
4681 PR tree-optimization/66807
4682 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
4684 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
4686 * function.c (stack_protect_epilogue): Use if rather than switch for
4687 check targetm.have_stack_protect_test.
4689 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4691 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
4692 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
4693 * config/arc/arc.h: Likewise.
4694 * config/arm/arm.h: Likewise.
4695 * config/bfin/bfin.h: Likewise.
4696 * config/epiphany/epiphany.h: Likewise.
4697 * config/frv/frv.h: Likewise.
4698 * config/ia64/ia64.h: Likewise.
4699 * config/iq2000/iq2000.h: Likewise.
4700 * config/lm32/lm32.h: Likewise.
4701 * config/m32r/m32r.h: Likewise.
4702 * config/mcore/mcore.h: Likewise.
4703 * config/mep/mep.h: Likewise.
4704 * config/microblaze/microblaze.h: Likewise.
4705 * config/mips/mips.h: Likewise.
4706 * config/mmix/mmix.h: Likewise.
4707 * config/mn10300/mn10300.h: Likewise.
4708 * config/nds32/nds32.h: Likewise.
4709 * config/nios2/nios2.h: Likewise.
4710 * config/pa/pa.h: Likewise.
4711 * config/rl78/rl78.h: Likewise.
4712 * config/sh/sh.h: Likewise.
4713 * config/sparc/sparc.h: Likewise.
4714 * config/stormy16/stormy16.h: Likewise.
4715 * config/tilegx/tilegx.h: Likewise.
4716 * config/tilepro/tilepro.h: Likewise.
4717 * config/v850/v850.h: Likewise.
4718 * config/xtensa/xtensa.h: Likewise.
4719 * doc/tm.texi: Regenerate.
4720 * doc/tm.texi.in: Adjust.
4721 * combine.c (simplify_set): Likewise.
4722 (simplify_comparison): Likewise.
4723 * expr.c (store_constructor): Likewise.
4724 * internal-fn.c (expand_arith_overflow): Likewise.
4725 * reload.c (push_reload): Likewise.
4726 (find_reloads): Likewise.
4727 (find_reloads_subreg_address): Likewise.
4728 * reload1.c (eliminate_regs_1): Likewise.
4729 * rtlanal.c (nonzero_bits1): Likewise.
4730 (num_sign_bit_copies1): Likewise.
4731 * simplify-rtx.c (simplify_truncation): Likewise.
4733 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4735 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
4736 of AUTO_INC_DEC with the preprocessor.
4737 * combine.c (combine_instructions): Likewise.
4738 (can_combine_p): Likewise.
4739 (try_combine): Likewise.
4740 * emit-rtl.c (try_split): Likewise.
4741 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4742 * lower-subreg.c (resolve_simple_move): Likewise.
4743 * lra.c (update_inc_notes): Likewise.
4744 * recog.c (asm_operand_ok): Likewise.
4745 (constrain_operands): Likewise.
4746 * regrename.c (scan_rtx_address): Likewise.
4747 * reload.c (update_auto_inc_notes): Likewise.
4748 (reg_inc_found_and_valid_p): Likewise.
4749 * reload1.c (reload): Likewise.
4750 (emit_input_reload_insns): Likewise.
4751 (delete_output_reload): Likewise.
4752 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4753 * valtrack.c (cleanup_auto_inc_dec): Likewise.
4755 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4757 * rtl.h: Always define AUTO_INC_DEC.
4758 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
4759 * combine.c (combine_instructions): Likewise.
4760 (can_combine_p): Likewise.
4761 (try_combine): Likewise.
4762 * emit-rtl.c (try_split): Likewise.
4763 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4764 * lower-subreg.c (resolve_simple_move): Likewise.
4765 * lra.c (update_inc_notes): Likewise.
4766 * recog.c (asm_operand_ok): Likewise.
4767 (constrain_operands): Likewise.
4768 * regrename.c (scan_rtx_address): Likewise.
4769 * reload.c (update_auto_inc_notes): Likewise.
4770 (find_equiv_reg): Likewise.
4771 * reload1.c (reload): Likewise.
4772 (reload_as_needed): Likewise.
4773 (choose_reload_regs): Likewise.
4774 (emit_input_reload_insns): Likewise.
4775 (delete_output_reload): Likewise.
4776 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4777 * valtrack.c (cleanup_auto_inc_dec): Likewise.
4779 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4781 * combine.c (can_combine_def_p): Don't check the value of
4782 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
4783 (combinable_i3pat): Likewise.
4784 (mark_used_regs_combine): Likewise.
4785 * regrename.c (rename_chains): Likewise.
4786 * reload.c (find_reloads_address): Likewise.
4787 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4789 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4791 * combine.c (update_rsp_from_reg_equal): Don't check if
4792 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
4793 (reg_nonzero_bits_for_combine): Likewise.
4794 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
4796 * config/frv/frv.h: Likewise.
4797 * config/lm32/lm32.h: Likewise.
4798 * config/mep/mep.h: Likewise.
4799 * config/mips/mips.h: Likewise.
4800 * config/rs6000/rs6000.h: Likewise.
4801 * config/sh/sh.h: Likewise.
4802 * config/tilegx/tilegx.h (enum reg_class): Likewise.
4803 * config/tilepro/tilepro.h: Likewise.
4804 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
4805 * doc/tm.texi: Regenerate.
4806 * doc/tm.texi.in: Adjust.
4807 * rtlanal.c (nonzero_bits1): Likewise.
4809 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4811 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
4812 with the preprocessor.
4813 (combine_instructions): Likewise.
4814 (try_combine): Likewise.
4816 (distribute_notes): Likewise.
4818 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4820 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
4822 (simplify_set): Likewise.
4823 * cse.c (cse_insn): Likewise.
4824 * fold-const.c (fold_single_bit_test): Likewise.
4825 (fold_unary_loc): Likewise.
4826 * postreload.c (reload_cse_simplify_set): Likewise.
4827 (reload_cse_simplify_operands): Likewise.
4829 2015-07-08 Jiong Wang <jiong.wang@arm.com>
4831 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
4832 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
4834 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
4837 * config/i386/x86intrin.h: Include <adxintrin.h> even if
4838 __iamcu__ is defined.
4840 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
4842 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
4844 2015-07-08 Iain Sandoe <iain@codesourcery.com>
4847 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
4848 names from preservation.
4850 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
4853 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
4855 (function_arg_advance_32): Don't pass vectors in registers for
4857 (function_arg_32): Likewise.
4858 (ix86_return_in_memory): Don't return vectors in registers for
4861 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
4864 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
4865 hard regno live at the start of BB with incoming abnormal edges.
4866 * lra-lives.c (process_bb_lives): Ditto.
4868 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
4871 * config/nvptx/mkoffload.c (main): Create an offload image only in
4872 64-bit configurations.
4874 2015-07-08 Martin Liska <mliska@suse.cz>
4877 * tree-sra.c (create_access_1): Call ctor without brackets.
4878 (create_artificial_child_access): Likewise.
4880 2015-07-08 Richard Biener <rguenther@suse.de>
4882 PR tree-optimization/66793
4883 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
4884 Properly split the block after stmts ending it.
4886 2015-07-08 Richard Biener <rguenther@suse.de>
4888 PR tree-optimization/66794
4889 * passes.c (execute_function_todo): Assert that post-dominators
4891 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
4892 Free post-dominators.
4894 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4896 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
4899 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
4901 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
4902 more than or equal 8 and less than 32 when optimizing for size.
4904 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4906 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
4907 COSTS_N_INSNS (1) and increment it appropriately throughout the
4910 2015-07-08 Richard Biener <rguenther@suse.de>
4912 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
4914 2015-07-08 Alan Modra <amodra@gmail.com>
4916 * target.def (rtx_costs): Remove "code" param, add "mode".
4917 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
4918 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
4919 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
4920 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
4921 call. Track mode when given in rtx.
4922 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
4923 (default_address_cost): Pass Pmode to rtx_cost.
4924 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
4925 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
4927 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
4928 (notreg_cost): Add mode param. Use it.
4929 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
4930 mode param and pass to set_src_cost. Update all calls.
4931 (hash_scan_set): Formatting.
4932 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
4933 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
4935 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
4936 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
4937 emit_store_flag): Update set_src_cost and rtx_cost calls.
4938 * auto-inc-dec.c (attempt_change): Likewise.
4939 * calls.c (precompute_register_parameters): Likewise.
4940 * combine.c (expand_compound_operation, make_extraction,
4941 force_to_mode, distribute_and_simplify_rtx): Likewise.
4942 * dojump.c (prefer_and_bit_test): Likewise.
4943 * dse.c (find_shift_sequence): Likewise.
4944 * expr.c (compress_float_constant): Likewise.
4945 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4946 * ifcvt.c (noce_try_sign_mask): Likewise.
4947 * loop-doloop.c (doloop_optimize): Likewise.
4948 * loop-invariant.c (create_new_invariant): Likewise.
4949 * lower-subreg.c (shift_cost, compute_costs): Likewise.
4950 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
4951 lshift_cheap_p): Likewise.
4952 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
4953 try_replace_in_use, reload_cse_move2add): Likewise.
4954 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
4956 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4957 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4958 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
4959 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4960 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
4961 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
4963 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
4964 * config/arc/arc.c (arc_rtx_costs): Likewise.
4965 * config/arm/arm.c (arm_rtx_costs): Likewise.
4966 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
4967 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4968 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4969 * config/cris/cris.c (cris_rtx_costs): Likewise.
4970 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
4971 * config/frv/frv.c (frv_rtx_costs): Likewise.
4972 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4973 * config/i386/i386.c (ix86_rtx_costs): Likewise.
4974 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4975 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4976 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4977 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4978 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4979 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4980 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4981 * config/mep/mep.c (mep_rtx_cost): Likewise.
4982 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4983 * config/mips/mips.c (mips_rtx_costs): Likewise.
4984 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4985 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
4986 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
4987 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
4988 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
4989 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
4990 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
4991 * config/pa/pa.c (hppa_rtx_costs): Likewise.
4992 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4993 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
4994 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4995 * config/s390/s390.c (s390_rtx_costs): Likewise.
4996 * config/sh/sh.c (sh_rtx_costs): Likewise.
4997 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4998 * config/spu/spu.c (spu_rtx_costs): Likewise.
4999 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
5000 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
5001 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
5002 * config/v850/v850.c (v850_rtx_costs): Likewise.
5003 * config/vax/vax.c (vax_rtx_costs): Likewise.
5004 * config/visium/visium.c (visium_rtx_costs): Likewise.
5005 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
5006 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
5007 "code" param, and pass as outer_code to first rtx_cost call. Pass
5008 mode to rtx_cost calls.
5009 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
5011 (aarch64_rtx_costs_wrapper): Update.
5012 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
5013 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
5015 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
5017 (avr_operand_rtx_cost): Similarly.
5018 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
5019 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
5020 * config/mips/mips.c (mips_stack_address_p): Comment typo.
5021 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
5022 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
5023 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
5025 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
5026 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
5027 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
5028 * doc/tm.texi: Regenerate.
5030 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
5032 * tree-core.h: Include symtab.h.
5033 * rtl.h: Include hard-reg-set.h but not flags.h.
5034 (HARD_CONST): Remove condition compilation involving HARD_CONST since
5035 hard-reg-set.h is always included.
5036 * regs.h: Don't include hard-reg-set.h or rtl.h.
5037 * cfg.h: Include dominance.h.
5038 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
5039 * backend.h: New. Aggregate commonly used backend header files.
5040 * gimple-ssa.h: Don't include tree-hasher.h.
5041 * ssa.h: New. Aggregate commonly used SSA header files.
5042 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
5043 * sel-sched-ir.h: Flatten includes.
5044 * lra-int.h: Flatten completely.
5045 * sel-sched-dump.h: Flatten includes.
5046 * ira-int.h: Flatten includes.
5047 * gimple-streamer.h: Remove all includes.
5048 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
5049 * resource.h: Flatten hard-reg-set.h and df.h.
5050 * sched-int.h: Flatten insn-arrt.h and df.h.
5051 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
5052 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
5053 * genattrtab.c (write_header): Adjust generated includes.
5054 * genautomata.c (main): Likewise.
5055 * genconditions.c (write-header): Likewise.
5056 * genemit.c (main): Likewise.
5057 * gengtype.c (open_base_files): Likewise.
5058 * genopinit.c (main): Likewise.
5059 * genoutput.c (output_prologue): Likewise.
5060 * genpeep.c (main): Likewise.
5061 * genpreds.c (write_insn_preds_c): Likewise.
5062 * genrecog.c (write_header): Likewise.
5063 * alias.c: Adjust includes.
5065 * attribs.c: Likewise.
5066 * auto-inc-dec.c: Likewise.
5067 * auto-profile.c: Likewise.
5068 * bb-reorder.c: Likewise.
5069 * bt-load.c: Likewise.
5070 * builtins.c: Likewise.
5071 * caller-save.c: Likewise.
5072 * calls.c: Likewise.
5075 * cfganal.c: Likewise.
5076 * cfgbuild.c: Likewise.
5077 * cfgcleanup.c: Likewise.
5078 * cfgexpand.c: Likewise.
5079 * cfghooks.c: Likewise.
5080 * cfgloop.c: Likewise.
5081 * cfgloopanal.c: Likewise.
5082 * cfgloopmanip.c: Likewise.
5083 * cfgrtl.c: Likewise.
5084 * cgraph.c: Likewise.
5085 * cgraphbuild.c: Likewise.
5086 * cgraphclones.c: Likewise.
5087 * cgraphunit.c: Likewise.
5088 * cilk-common.c: Likewise.
5089 * combine-stack-adj.c: Likewise.
5090 * combine.c: Likewise.
5091 * compare-elim.c: Likewise.
5092 * convert.c: Likewise.
5093 * coverage.c: Likewise.
5094 * cppbuiltin.c: Likewise.
5095 * cprop.c: Likewise.
5097 * cselib.c: Likewise.
5098 * data-streamer-in.c: Likewise.
5099 * data-streamer-out.c: Likewise.
5100 * data-streamer.c: Likewise.
5101 * dbxout.c: Likewise.
5104 * debug.c: Likewise.
5105 * df-core.c: Likewise.
5106 * df-problems.c: Likewise.
5107 * df-scan.c: Likewise.
5109 * dojump.c: Likewise.
5110 * dominance.c: Likewise.
5111 * domwalk.c: Likewise.
5112 * double-int.c: Likewise.
5114 * dumpfile.c: Likewise.
5115 * dwarf2asm.c: Likewise.
5116 * dwarf2cfi.c: Likewise.
5117 * dwarf2out.c: Likewise.
5118 * emit-rtl.c: Likewise.
5119 * et-forest.c: Likewise.
5120 * except.c: Likewise.
5121 * explow.c: Likewise.
5122 * expmed.c: Likewise.
5124 * final.c: Likewise.
5125 * fixed-value.c: Likewise.
5126 * fold-const.c: Likewise.
5127 * function.c: Likewise.
5128 * fwprop.c: Likewise.
5129 * gcc-plugin.h: Likewise.
5130 * gcse-common.c: Likewise.
5132 * generic-match-head.c: Likewise.
5133 * ggc-page.c: Likewise.
5134 * gimple-builder.c: Likewise.
5135 * gimple-expr.c: Likewise.
5136 * gimple-fold.c: Likewise.
5137 * gimple-iterator.c: Likewise.
5138 * gimple-low.c: Likewise.
5139 * gimple-match-head.c: Likewise.
5140 * gimple-pretty-print.c: Likewise.
5141 * gimple-ssa-isolate-paths.c: Likewise.
5142 * gimple-ssa-strength-reduction.c: Likewise.
5143 * gimple-streamer-in.c: Likewise.
5144 * gimple-streamer-out.c: Likewise.
5145 * gimple-walk.c: Likewise.
5146 * gimple.c: Likewise.
5147 * gimplify-me.c: Likewise.
5148 * gimplify.c: Likewise.
5149 * godump.c: Likewise.
5150 * graph.c: Likewise.
5151 * graphite-blocking.c: Likewise.
5152 * graphite-dependences.c: Likewise.
5153 * graphite-interchange.c: Likewise.
5154 * graphite-isl-ast-to-gimple.c: Likewise.
5155 * graphite-optimize-isl.c: Likewise.
5156 * graphite-poly.c: Likewise.
5157 * graphite-scop-detection.c: Likewise.
5158 * graphite-sese-to-poly.c: Likewise.
5159 * graphite.c: Likewise.
5160 * haifa-sched.c: Likewise.
5161 * hw-doloop.c: Likewise.
5162 * ifcvt.c: Likewise.
5163 * init-regs.c: Likewise.
5164 * internal-fn.c: Likewise.
5165 * ipa-chkp.c: Likewise.
5166 * ipa-comdats.c: Likewise.
5167 * ipa-cp.c: Likewise.
5168 * ipa-devirt.c: Likewise.
5169 * ipa-icf-gimple.c: Likewise.
5170 * ipa-icf.c: Likewise.
5171 * ipa-inline-analysis.c: Likewise.
5172 * ipa-inline-transform.c: Likewise.
5173 * ipa-inline.c: Likewise.
5174 * ipa-polymorphic-call.c: Likewise.
5175 * ipa-profile.c: Likewise.
5176 * ipa-prop.c: Likewise.
5177 * ipa-pure-const.c: Likewise.
5178 * ipa-ref.c: Likewise.
5179 * ipa-reference.c: Likewise.
5180 * ipa-split.c: Likewise.
5181 * ipa-utils.c: Likewise.
5182 * ipa-visibility.c: Likewise.
5184 * ira-build.c: Likewise.
5185 * ira-color.c: Likewise.
5186 * ira-conflicts.c: Likewise.
5187 * ira-costs.c: Likewise.
5188 * ira-emit.c: Likewise.
5189 * ira-lives.c: Likewise.
5192 * langhooks.c: Likewise.
5194 * loop-doloop.c: Likewise.
5195 * loop-init.c: Likewise.
5196 * loop-invariant.c: Likewise.
5197 * loop-iv.c: Likewise.
5198 * loop-unroll.c: Likewise.
5199 * lower-subreg.c: Likewise.
5200 * lra-assigns.c: Likewise.
5201 * lra-coalesce.c: Likewise.
5202 * lra-constraints.c: Likewise.
5203 * lra-eliminations.c: Likewise.
5204 * lra-lives.c: Likewise.
5205 * lra-remat.c: Likewise.
5206 * lra-spills.c: Likewise.
5208 * lto-cgraph.c: Likewise.
5209 * lto-compress.c: Likewise.
5210 * lto-opts.c: Likewise.
5211 * lto-section-in.c: Likewise.
5212 * lto-section-out.c: Likewise.
5213 * lto-streamer-in.c: Likewise.
5214 * lto-streamer-out.c: Likewise.
5215 * lto-streamer.c: Likewise.
5217 * mode-switching.c: Likewise.
5218 * modulo-sched.c: Likewise.
5219 * omega.c: Likewise.
5220 * omp-low.c: Likewise.
5221 * optabs.c: Likewise.
5222 * opts-global.c: Likewise.
5223 * passes.c: Likewise.
5224 * plugin.c: Likewise.
5225 * postreload-gcse.c: Likewise.
5226 * postreload.c: Likewise.
5227 * predict.c: Likewise.
5228 * print-rtl.c: Likewise.
5229 * print-tree.c: Likewise.
5230 * profile.c: Likewise.
5232 * realmpfr.c: Likewise.
5233 * recog.c: Likewise.
5235 * reg-stack.c: Likewise.
5236 * regcprop.c: Likewise.
5237 * reginfo.c: Likewise.
5238 * regrename.c: Likewise.
5239 * regstat.c: Likewise.
5240 * reload.c: Likewise.
5241 * reload1.c: Likewise.
5242 * reorg.c: Likewise.
5243 * resource.c: Likewise.
5244 * rtl-chkp.c: Likewise.
5245 * rtlanal.c: Likewise.
5246 * rtlhooks.c: Likewise.
5247 * sanopt.c: Likewise.
5248 * sched-deps.c: Likewise.
5249 * sched-ebb.c: Likewise.
5250 * sched-rgn.c: Likewise.
5251 * sched-vis.c: Likewise.
5252 * sdbout.c: Likewise.
5253 * sel-sched-dump.c: Likewise.
5254 * sel-sched-ir.c: Likewise.
5255 * sel-sched.c: Likewise.
5257 * shrink-wrap.c: Likewise.
5258 * simplify-rtx.c: Likewise.
5259 * stack-ptr-mod.c: Likewise.
5261 * stor-layout.c: Likewise.
5262 * store-motion.c: Likewise.
5263 * stringpool.c: Likewise.
5264 * symtab.c: Likewise.
5265 * target-globals.c: Likewise.
5266 * targhooks.c: Likewise.
5267 * toplev.c: Likewise.
5268 * tracer.c: Likewise.
5269 * trans-mem.c: Likewise.
5270 * tree-affine.c: Likewise.
5271 * tree-browser.c: Likewise.
5272 * tree-call-cdce.c: Likewise.
5273 * tree-cfg.c: Likewise.
5274 * tree-cfgcleanup.c: Likewise.
5275 * tree-chkp-opt.c: Likewise.
5276 * tree-chkp.c: Likewise.
5277 * tree-chrec.c: Likewise.
5278 * tree-complex.c: Likewise.
5279 * tree-data-ref.c: Likewise.
5280 * tree-dfa.c: Likewise.
5281 * tree-diagnostic.c: Likewise.
5282 * tree-dump.c: Likewise.
5283 * tree-eh.c: Likewise.
5284 * tree-emutls.c: Likewise.
5285 * tree-if-conv.c: Likewise.
5286 * tree-inline.c: Likewise.
5287 * tree-into-ssa.c: Likewise.
5288 * tree-iterator.c: Likewise.
5289 * tree-loop-distribution.c: Likewise.
5290 * tree-nested.c: Likewise.
5291 * tree-nrv.c: Likewise.
5292 * tree-object-size.c: Likewise.
5293 * tree-outof-ssa.c: Likewise.
5294 * tree-parloops.c: Likewise.
5295 * tree-phinodes.c: Likewise.
5296 * tree-predcom.c: Likewise.
5297 * tree-pretty-print.c: Likewise.
5298 * tree-profile.c: Likewise.
5299 * tree-scalar-evolution.c: Likewise.
5300 * tree-sra.c: Likewise.
5301 * tree-ssa-address.c: Likewise.
5302 * tree-ssa-alias.c: Likewise.
5303 * tree-ssa-ccp.c: Likewise.
5304 * tree-ssa-coalesce.c: Likewise.
5305 * tree-ssa-copy.c: Likewise.
5306 * tree-ssa-copyrename.c: Likewise.
5307 * tree-ssa-dce.c: Likewise.
5308 * tree-ssa-dom.c: Likewise.
5309 * tree-ssa-dse.c: Likewise.
5310 * tree-ssa-forwprop.c: Likewise.
5311 * tree-ssa-ifcombine.c: Likewise.
5312 * tree-ssa-live.c: Likewise.
5313 * tree-ssa-loop-ch.c: Likewise.
5314 * tree-ssa-loop-im.c: Likewise.
5315 * tree-ssa-loop-ivcanon.c: Likewise.
5316 * tree-ssa-loop-ivopts.c: Likewise.
5317 * tree-ssa-loop-manip.c: Likewise.
5318 * tree-ssa-loop-niter.c: Likewise.
5319 * tree-ssa-loop-prefetch.c: Likewise.
5320 * tree-ssa-loop-unswitch.c: Likewise.
5321 * tree-ssa-loop.c: Likewise.
5322 * tree-ssa-math-opts.c: Likewise.
5323 * tree-ssa-operands.c: Likewise.
5324 * tree-ssa-phiopt.c: Likewise.
5325 * tree-ssa-phiprop.c: Likewise.
5326 * tree-ssa-pre.c: Likewise.
5327 * tree-ssa-propagate.c: Likewise.
5328 * tree-ssa-reassoc.c: Likewise.
5329 * tree-ssa-sccvn.c: Likewise.
5330 * tree-ssa-scopedtables.c: Likewise.
5331 * tree-ssa-sink.c: Likewise.
5332 * tree-ssa-strlen.c: Likewise.
5333 * tree-ssa-structalias.c: Likewise.
5334 * tree-ssa-tail-merge.c: Likewise.
5335 * tree-ssa-ter.c: Likewise.
5336 * tree-ssa-threadedge.c: Likewise.
5337 * tree-ssa-threadupdate.c: Likewise.
5338 * tree-ssa-uncprop.c: Likewise.
5339 * tree-ssa-uninit.c: Likewise.
5340 * tree-ssa.c: Likewise.
5341 * tree-ssanames.c: Likewise.
5342 * tree-stdarg.c: Likewise.
5343 * tree-streamer-in.c: Likewise.
5344 * tree-streamer-out.c: Likewise.
5345 * tree-streamer.c: Likewise.
5346 * tree-switch-conversion.c: Likewise.
5347 * tree-tailcall.c: Likewise.
5348 * tree-vect-data-refs.c: Likewise.
5349 * tree-vect-generic.c: Likewise.
5350 * tree-vect-loop-manip.c: Likewise.
5351 * tree-vect-loop.c: Likewise.
5352 * tree-vect-patterns.c: Likewise.
5353 * tree-vect-slp.c: Likewise.
5354 * tree-vect-stmts.c: Likewise.
5355 * tree-vectorizer.c: Likewise.
5356 * tree-vrp.c: Likewise.
5359 * ubsan.c: Likewise.
5360 * valtrack.c: Likewise.
5361 * value-prof.c: Likewise.
5362 * var-tracking.c: Likewise.
5363 * varasm.c: Likewise.
5364 * varpool.c: Likewise.
5365 * vmsdbgout.c: Likewise.
5366 * vtable-verify.c: Likewise.
5368 * wide-int.cc: Likewise.
5369 * xcoffout.c: Likewise.
5370 * config/aarch64/aarch64-builtins.c: Likewise.
5371 * config/aarch64/aarch64.c: Likewise.
5372 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5373 * config/alpha/alpha.c: Likewise.
5374 * config/arc/arc.c: Likewise.
5375 * config/arm/aarch-common.c: Likewise.
5376 * config/arm/arm-builtins.c: Likewise.
5377 * config/arm/arm-c.c: Likewise.
5378 * config/arm/arm.c: Likewise.
5379 * config/avr/avr-c.c: Likewise.
5380 * config/avr/avr-log.c: Likewise.
5381 * config/avr/avr.c: Likewise.
5382 * config/bfin/bfin.c: Likewise.
5383 * config/c6x/c6x.c: Likewise.
5384 * config/cr16/cr16.c: Likewise.
5385 * config/cris/cris.c: Likewise.
5386 * config/darwin-c.c: Likewise.
5387 * config/darwin.c: Likewise.
5388 * config/epiphany/epiphany.c: Likewise.
5389 * config/epiphany/mode-switch-use.c: Likewise.
5390 * config/epiphany/resolve-sw-modes.c: Likewise.
5391 * config/fr30/fr30.c: Likewise.
5392 * config/frv/frv.c: Likewise.
5393 * config/ft32/ft32.c: Likewise.
5394 * config/h8300/h8300.c: Likewise.
5395 * config/i386/i386-c.c: Likewise.
5396 * config/i386/i386.c: Likewise.
5397 * config/i386/msformat-c.c: Likewise.
5398 * config/i386/winnt-cxx.c: Likewise.
5399 * config/i386/winnt-stubs.c: Likewise.
5400 * config/i386/winnt.c: Likewise.
5401 * config/ia64/ia64-c.c: Likewise.
5402 * config/ia64/ia64.c: Likewise.
5403 * config/iq2000/iq2000.c: Likewise.
5404 * config/lm32/lm32.c: Likewise.
5405 * config/m32c/m32c-pragma.c: Likewise.
5406 * config/m32c/m32c.c: Likewise.
5407 * config/m32r/m32r.c: Likewise.
5408 * config/m68k/m68k.c: Likewise.
5409 * config/mcore/mcore.c: Likewise.
5410 * config/mep/mep-pragma.c: Likewise.
5411 * config/mep/mep.c: Likewise.
5412 * config/microblaze/microblaze-c.c: Likewise.
5413 * config/microblaze/microblaze.c: Likewise.
5414 * config/mips/mips.c: Likewise.
5415 * config/mmix/mmix.c: Likewise.
5416 * config/mn10300/mn10300.c: Likewise.
5417 * config/moxie/moxie.c: Likewise.
5418 * config/msp430/msp430-c.c: Likewise.
5419 * config/msp430/msp430.c: Likewise.
5420 * config/nds32/nds32-cost.c: Likewise.
5421 * config/nds32/nds32-fp-as-gp.c: Likewise.
5422 * config/nds32/nds32-intrinsic.c: Likewise.
5423 * config/nds32/nds32-isr.c: Likewise.
5424 * config/nds32/nds32-md-auxiliary.c: Likewise.
5425 * config/nds32/nds32-memory-manipulation.c: Likewise.
5426 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5427 * config/nds32/nds32-predicates.c: Likewise.
5428 * config/nds32/nds32.c: Likewise.
5429 * config/nios2/nios2.c: Likewise.
5430 * config/nvptx/nvptx.c: Likewise.
5431 * config/pa/pa.c: Likewise.
5432 * config/pdp11/pdp11.c: Likewise.
5433 * config/rl78/rl78-c.c: Likewise.
5434 * config/rl78/rl78.c: Likewise.
5435 * config/rs6000/rs6000-c.c: Likewise.
5436 * config/rs6000/rs6000.c: Likewise.
5437 * config/rx/rx.c: Likewise.
5438 * config/s390/s390-c.c: Likewise.
5439 * config/s390/s390.c: Likewise.
5440 * config/sh/sh-c.c: Likewise.
5441 * config/sh/sh-mem.cc: Likewise.
5442 * config/sh/sh.c: Likewise.
5443 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5444 * config/sh/sh_treg_combine.cc: Likewise.
5445 * config/sol2-c.c: Likewise.
5446 * config/sol2-cxx.c: Likewise.
5447 * config/sol2-stubs.c: Likewise.
5448 * config/sol2.c: Likewise.
5449 * config/sparc/sparc-c.c: Likewise.
5450 * config/sparc/sparc.c: Likewise.
5451 * config/spu/spu-c.c: Likewise.
5452 * config/spu/spu.c: Likewise.
5453 * config/stormy16/stormy16.c: Likewise.
5454 * config/tilegx/mul-tables.c: Likewise.
5455 * config/tilegx/tilegx-c.c: Likewise.
5456 * config/tilegx/tilegx.c: Likewise.
5457 * config/tilepro/mul-tables.c: Likewise.
5458 * config/tilepro/tilepro-c.c: Likewise.
5459 * config/tilepro/tilepro.c: Likewise.
5460 * config/v850/v850-c.c: Likewise.
5461 * config/v850/v850.c: Likewise.
5462 * config/vax/vax.c: Likewise.
5463 * config/visium/visium.c: Likewise.
5464 * config/vms/vms-c.c: Likewise.
5465 * config/vms/vms.c: Likewise.
5466 * config/vxworks.c: Likewise.
5467 * config/xtensa/xtensa.c: Likewise.
5469 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
5471 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
5472 Remove operand constraints. Change operand 2 predicate to
5473 nonmemory operand. Limit const_int values to mode bitsize. Only
5474 allow const_int values less than 32 when optimizing for size.
5475 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
5476 Remove operand constraints.
5477 (*bt<mode>): Use SImode for const_int values less than 32.
5478 (regmode): Remove mode attribute.
5480 2015-07-07 Anatoly Sokolov <aesok@post.ru>
5482 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5483 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
5484 moxie_legitimate_address_p): New functions.
5485 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5487 2015-07-07 Tom de Vries <tom@codesourcery.com>
5489 PR tree-optimization/66642
5490 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
5491 header comment. Rename split_edge variable to edge_at_split. Split
5492 exit edge to create new loop exit bb. Insert loop exit phis in new
5495 2015-07-07 Tom de Vries <tom@codesourcery.com>
5497 * tree-cfg.c (get_virtual_phi): New function.
5498 * tree-cfg.h (get_virtual_phi): Declare.
5499 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
5500 (rewrite_virtuals_into_loop_closed_ssa): New function.
5501 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
5503 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
5504 (transform_to_exit_first_loop_alt): Use
5505 rewrite_virtuals_into_loop_closed_ssa.
5507 2015-07-07 Richard Biener <rguenther@suse.de>
5509 * fold-const.c (fold_binary_loc): Move
5510 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
5511 * match.pd: ... here.
5512 Add (X * C1) % C2 -> 0 simplification pattern derived from
5515 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
5518 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
5519 change for target/65249.
5521 2015-07-07 Paulo Matos <pmatos@broadcom.com>
5523 * symtab.c (address_matters_1): Fix typo in comment above.
5524 (can_increase_alignment_p): Likewise.
5526 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5528 * function.c (free_after_compilation): Clear PROP_cfg in
5531 2015-07-07 Richard Biener <rguenther@suse.de>
5533 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
5535 (add_control_edge): Remove excessive vertical space in dumping.
5536 (process_ssa_edge_worklist): Simulate at most one statement and
5537 return whether we did. Do not simulate PHIs if they are in a
5538 BB not yet simulated.
5539 (ssa_propagate): Adjust to always drain the BB worklist whenever
5540 a BB is available there, likewise the VARYING edges list before
5541 the interesting edge list.
5543 2015-07-07 Christian Bruel <christian.bruel@st.com>
5546 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
5548 2015-07-07 Richard Biener <rguenther@suse.de>
5551 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
5554 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
5556 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
5557 modes for operands 0 and 3. Use SImode for operands 2 and 3.
5558 Copy operand 0 to a temporary if !ext_register_operand. Remove
5559 ancient extract_bit_field workaround.
5560 (insv<mode>_1): Rename from mov<mode>_insv_1.
5561 (*insvqi): Rename from *movqi_insv_2.
5562 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
5563 for renamed insvsi_1.
5564 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
5566 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
5568 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
5569 call to nvptx_reorg_subreg.
5571 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
5573 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
5574 * graphite-dependencies.c, graphite-interchange.c,
5575 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
5576 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
5579 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
5581 * match.pd: Remove element_mode inside HONOR_*.
5582 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
5583 (~X | X -> -1, ~X ^ X -> -1): Merge.
5584 * tree.c (build_each_one_cst): New function.
5585 * tree.h (build_each_one_cst): Likewise.
5587 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
5589 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5592 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
5594 * config.gcc <mips*-*-*>: Add fused-madd.opt.
5595 * config/mips/mips.opt (mfused-madd): Remove.
5596 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
5597 * config/mips/mips.h (TARGET_MIPS8000): New.
5598 (ISA_HAS_FP_MADD4_MSUB4): Remove.
5599 (ISA_HAS_FP_MADDF_MSUBF): Remove.
5600 (ISA_HAS_FP_MADD3_MSUB3): Remove.
5601 (ISA_HAS_NMADD4_NMSUB4): Remove.
5602 (ISA_HAS_NMADD3_NMSUB3): Remove.
5603 (ISA_HAS_FUSED_MADD4): New.
5604 (ISA_HAS_UNFUSED_MADD4): New.
5605 (ISA_HAS_FUSED_MADDF): New.
5606 (ISA_HAS_FUSED_MADD3): New.
5607 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
5608 (*fma<mode>4_madd3) New.
5609 (*fma<mode>4_madd4) New.
5610 (*fma<mode>4_maddf) New.
5612 (*fms<mode>4_msub3) New.
5613 (*fms<mode>4_msub4) New.
5615 (*fnma<mode>4_nmadd3) New.
5616 (*fnma<mode>4_nmadd4) New.
5618 (*fnms<mode>4_nmsub3) New.
5619 (*fnms<mode>4_nmsub4) New.
5620 (*madd4<mode>) Modify to be unfused only.
5621 (*msub4<mode>) Modify to be unfused only.
5622 (*nmadd4<mode>) Modify to be unfused only.
5623 (*nmsub4<mode>) Modify to be unfused only.
5624 (*madd3<mode>) Remove.
5625 (*msub3<mode>) Remove.
5626 (*nmadd3<mode>) Remove.
5627 (*nmsub3<mode>) Remove.
5628 (*nmadd3<mode>_fastmath) Remove.
5629 (*nmsub3<mode>_fastmath) Remove.
5630 (*nmadd4<mode>_fastmath) Update condition.
5631 (*nmsub4<mode>_fastmath) Update condition.
5633 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
5636 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
5637 alignment attribute, exploring one level down for records and arrays.
5639 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
5641 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
5642 modes for operands 0 and 1. Use SImode for operands 2 and 3.
5643 Copy operand 1 to a temporary if !ext_register_operand. Remove
5644 ancient extract_bit_field workaround.
5645 (*extv<mode>): Rename from *mov<mode>_extv_1.
5646 (*extvqi): Rename from *movqi_extv_1.
5647 (extzv<mode>): Rename from extzv. Use SWI248 modes for
5648 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
5649 to a temporary if !ext_register_operand. Remove ancient
5650 extract_bit_field workaround.
5651 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
5652 (*extzvqi): Rename from *movqi_extzv_2.
5653 (*testqi_ext_3): Remove modes from const_int_operand predicated
5654 operands. Add "n" constraint.
5655 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
5656 operand. Add "J" constraint.
5657 (*btsq, *btrq, *btcq peephole2s): Remove mode from
5658 const_0_to_63 predicated operand.
5659 (regmode): New insn attribute.
5660 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
5661 to nonmemory_operand. Use regmode insn attribute.
5662 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
5663 (*jcc_bt<mode>_mask): Remove mode from operand 3.
5664 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
5665 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
5666 operands. Use "N" constraint instead of "n".
5668 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
5670 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
5672 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
5675 * config/i386/i386.c (iamcu_cost): New.
5676 (m_IAMCU): Likewise.
5677 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
5678 (processor_target_table): Add an entry for "iamcu".
5679 (processor_alias_table): Likewise.
5680 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
5681 (ix86_adjust_cost): Likewise.
5682 (ia32_multipass_dfa_lookahead): Likewise.
5683 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
5684 * config/i386/x86-tune.def: Updated for m_IAMCU.
5686 2015-07-06 Richard Biener <rguenther@suse.de>
5688 PR tree-optimization/66772
5689 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
5690 values are available in the PHI node BB when there are
5691 still unexecutable edges.
5693 2015-07-06 Richard Biener <rguenther@suse.de>
5695 PR tree-optimization/66767
5696 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
5697 Make sure to build the alignment test on a SSA name without
5698 final alignment info valid only if the alignment test
5701 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
5704 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
5705 loop start when inserting LSETUP.
5707 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
5710 * config/i386/i386.c (ix86_option_override_internal): Allow
5711 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
5713 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5715 * read-md.c (decimal_string): Rename to ...
5716 (md_decimal_string): ... this.
5717 (handle_enum): Reflect this.
5719 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
5722 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
5724 2015-07-06 Richard Biener <rguenther@suse.de>
5727 * match.pd: Add missing constraint of y to REAL_CST in
5728 REAL_CST - x CMP y to y - CST CMP x simplification.
5730 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
5732 PR tree-optimization/66757
5733 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
5735 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
5736 Sandra Loosemore <sandra@codesourcery.com>
5738 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
5739 Delete extern declaration.
5740 (gprel_constant_p): Add extern declaration.
5741 * config/nios2/constraints.md ("S"): Use gprel_constant_p
5742 instead of nios2_symbol_ref_in_small_data_p.
5743 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
5744 (nios2_symbol_ref_in_small_data_p): Make static.
5745 (gprel_constant_p): Make non-static.
5747 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
5749 * doc/fragments.texi (Target Fragment): Convert debian.org
5751 * doc/install.texi (Configuration): Ditto.
5753 2015-07-05 Jakub Jelinek <jakub@redhat.com>
5755 PR tree-optimization/66718
5756 * tree-vect-stmts.c (vectorizable_call): Replace uses of
5757 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
5759 PR tree-optimization/66718
5760 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
5761 vectorizable_load, vectorizable_condition): Move vectype,
5762 nunits, ncopies computation after checking what kind of statement
5765 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5767 * target-insns.def (extv, extzv, insv): New targetm instruction
5769 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
5771 * recog.c (simplify_while_replacing): Likewise.
5773 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5775 * target-insns.def (doloop_begin, doloop_end): New targetm
5776 instruction patterns.
5777 * loop-init.c: Include target.h.
5778 (pass_loop2::gate): Use the new targetm patterns instead of
5779 HAVE_*/gen_* interface.
5780 (pass_rtl_doloop::gate): Likewise.
5781 (pass_rtl_doloop::execute): Remove preprocessor condition.
5782 * hw-doloop.c: Build unconditionally.
5783 * loop-doloop.c: Likewise.
5784 (doloop_optimize): Use the new targetm patterns instead of
5785 HAVE_*/gen_* interface.
5786 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
5787 * modulo-sched.c (doloop_register_get): Likewise.
5789 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5791 * target-insns.def (clear_cache): New targetm instruction pattern.
5792 * builtins.c (expand_builtin___clear_cache): Use it instead of
5793 HAVE_*/gen_* interface.
5795 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5797 * target-insns.def (allocate_stack, check_stack, probe_stack)
5798 (probe_stack_address, split_stack_prologue, split_stack_space_check):
5799 New targetm instruction patterns.
5800 * explow.c (allocate_dynamic_stack_space): Use them instead of
5801 HAVE_*/gen_* interface.
5802 (emit_stack_probe): Likewise.
5803 (probe_stack_range): Likewise.
5804 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5806 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5808 * target-insns.def (stack_protect_set, stack_protect_test): New
5809 targetm instruction patterns.
5810 * cfgexpand.c (stack_protect_prologue): Use them instead of
5811 HAVE_*/gen_* interface.
5812 * function.c (stack_protect_epilogue): Likewise.
5814 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5816 * expr.h (gen_move_insn_uncast): Delete.
5817 * expr.c (gen_move_insn_uncast): Delete.
5819 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5821 * target-insns.def (restore_stack_block, restore_stack_function)
5822 (restore_stack_nonlocal, save_stack_block, save_stack_function)
5823 (save_stack_nonlocal): New targetm instruction patterns.
5824 * builtins.c (expand_builtin_apply): Use them instead of
5825 HAVE_*/gen_* interface.
5826 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
5828 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5830 * target-insns.def (trap): New targetm instruction pattern.
5831 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
5833 * explow.c (allocate_dynamic_stack_space): Likewise.
5834 * ifcvt.c (find_if_header): Likewise.
5836 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5838 * target-insns.def (prefetch): New targetm instruction pattern.
5839 * tree-ssa-loop-prefetch.c: Include targeth.
5840 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
5841 of HAVE_*/gen_* interface.
5842 * builtins.c (expand_builtin_prefetch): Likewise.
5843 * toplev.c (process_options): Likewise.
5845 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5847 * target-insns.def (untyped_call, untyped_return): New targetm
5848 instruction patterns.
5849 * builtins.c (expand_builtin_apply): Use them instead of
5850 HAVE_*/gen_* interface.
5851 (result_vector): Define unconditionally.
5853 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5855 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
5856 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
5857 (nonlocal_goto_receiver): New targetm instruction patterns.
5858 * builtins.c (expand_builtin_setjmp_setup): Use them instead
5859 of HAVE_*/gen_* interface.
5860 (expand_builtin_setjmp_receiver): Likewise.
5861 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5862 * except.c (expand_dw2_landing_pad_for_region): Likewise.
5864 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5866 * target.def: Add code_for_* hooks.
5867 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
5868 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
5869 * target-insns.def (casesi, tablejump): New targetm instruction
5871 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
5872 (do_tablejump): Likewise.
5873 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
5874 (expand_sjlj_dispatch_table): Likewise.
5875 * targhooks.c (default_case_values_threshold): Likewise.
5877 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
5879 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
5880 Use rtx_insn * instead of rtx.
5881 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
5882 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
5883 (nios2_call_tls_get_addr): Likewise.
5884 (nios2_emit_expensive_div): Likewise.
5885 (nios2_emit_move_sequence): Change return type to bool.
5886 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
5887 Change return type to bool.
5889 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
5892 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
5894 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
5897 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
5898 of register_operand. Remove constraint.
5900 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
5902 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
5905 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
5907 * attribs.c (decl_attributes): Guard inform with the return value
5908 of the preceding warning.
5910 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
5912 * doc/invoke.texi (moverride): Move to correct section.
5914 2015-07-03 Richard Biener <rguenther@suse.de>
5916 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
5918 (dt_operand::gen_gimple_expr): After valueizing operands
5919 re-canonicalize operand order for commutative tree codes.
5921 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
5924 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
5926 (__crc32w): Likewise.
5927 (__crc32d): Likewise.
5928 (__rdpmc): Likewise.
5929 (__rdtscp): Likewise.
5931 (_rdtscp): Likewise.
5932 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
5935 2015-07-03 Richard Biener <rguenther@suse.de>
5937 * fold-const.c (fold_mathfn_compare): Remove.
5938 (fold_inf_compare): Likewise.
5939 (fold_comparison): Move floating point comparison simplifications...
5940 * match.pd: ... to patterns here. Introduce simple_comparisons
5941 operator list and use it for patterns formerly in fold_comparison.
5943 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
5945 PR tree-optimization/66119
5946 * toplev.c (process_options): Don't set up default values for
5947 the sra_max_scalarization_size_{speed,size} parameters.
5948 * tree-sra (analyze_all_variable_accesses): If no values
5949 have been set for the sra_max_scalarization_size_{speed,size}
5950 parameters, call get_move_ratio to get target defaults.
5952 2015-07-03 Richard Biener <rguenther@suse.de>
5954 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
5955 * match.pd: ... here.
5957 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
5960 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
5961 is not actually the default on FreeBSD.
5963 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5965 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
5967 (CMPGE_8HI): Likewise.
5968 (CMPGE_4SI): Likewise.
5969 (CMPGE_2DI): Likewise.
5970 (CMPGE_U16QI): Likewise.
5971 (CMPGE_U8HI): Likewise.
5972 (CMPGE_U4SI): Likewise.
5973 (CMPGE_U2DI): Likewise.
5974 (CMPLE_16QI): Likewise.
5975 (CMPLE_8HI): Likewise.
5976 (CMPLE_4SI): Likewise.
5977 (CMPLE_2DI): Likewise.
5978 (CMPLE_U16QI): Likewise.
5979 (CMPLE_U8HI): Likewise.
5980 (CMPLE_U4SI): Likewise.
5981 (CMPLE_U2DI): Likewise.
5982 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5983 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
5984 ALTIVEC_BUILTIN_VEC_CMPLE.
5985 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
5986 floating-point vector modes.
5987 (vector_nlt<mode>): New define_expand.
5988 (vector_nltu<mode>): Likewise.
5989 (vector_ngt<mode>): Likewise.
5990 (vector_ngtu<mode>): Likewise.
5992 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5994 PR rtl-optimization/66706
5995 * combine.c (make_compound_operation): If an AND of SUBREG of
5996 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
5998 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
6000 * tree-pass.h (make_pass_ch_vect): New.
6001 * passes.def: Add pass_ch_vect just before pass_if_conversion.
6003 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
6004 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
6005 make_pass_ch_vect): New.
6006 (pass_ch): Extend ch_base.
6008 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
6009 (ch_base::copy_headers): ...here.
6011 2015-07-02 Richard Biener <rguenther@suse.de>
6013 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
6014 * fold-const.c (get_pointer_modulus_and_residue): Remove.
6015 (fold_binary_loc): Implement (T)ptr & CST in terms of
6016 get_pointer_alignment_1.
6017 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
6018 Make sure to build the alignment test on a SSA name without
6019 final alignment info valid only after the prologue.
6021 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
6023 * config/cris/cris.md ("epilogue"): Remove condition.
6024 ("prologue"): Ditto.
6026 2015-07-02 Richard Biener <rguenther@suse.de>
6028 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
6029 parameter to record a condition that is false.
6030 (record_conditions): When recording an extra NE_EXPR that is
6031 true also record a EQ_EXPR that is false.
6033 2015-07-02 Bin Cheng <bin.cheng@arm.com>
6035 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
6036 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
6037 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
6038 (set_iv, find_interesting_uses_address, add_candidate_1): New
6039 argument to alloc_iv.
6040 (find_interesting_uses_op, find_interesting_uses_cond): Don't
6041 duplicate struct iv.
6042 (free_loop_data): Don't free struct iv explicitly.
6043 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
6045 2015-07-01 DJ Delorie <dj@redhat.com>
6047 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
6049 (SUPPORTS_DISCRIMINATOR): Define.
6051 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
6054 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
6055 there are no CALLs in the same pattern.
6057 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6059 PR rtl-optimization/61047
6060 * rtlanal.c (get_initial_register_offset): New function.
6061 (rtx_addr_can_trap_p_1): Check offsets of stack references.
6063 2015-07-01 Richard Biener <rguenther@suse.de>
6065 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
6066 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
6067 ~X CMP C -> X CMP' ~C to ...
6068 * match.pd: ... patterns here.
6070 2015-07-01 Nick Clifton <nickc@redhat.com>
6072 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
6073 a 16-bit value into a 20-bit memory slot.
6075 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6077 * doc/sourcebuild.texi (AArch64-specific attributes): Document
6078 "aarch64_tiny", "aarch64_small", "aarch64_large",
6079 "aarch64_little_endian", "aarch64_big_endian".
6081 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6083 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
6084 Document "aarch64_small_fpic".
6086 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6088 * configure.ac: Add check for aarch64 assembler -fpic relocation
6090 * configure: Regenerate.
6091 * config.in: Regenerate.
6092 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
6093 to -fPIC if not support of -fpic relocation modifier in assembler.
6095 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
6098 * rtl.c (classify_insn): Handle returns in PARALLELs.
6100 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
6103 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
6104 to true if the function is nested and if not optimizing.
6105 (convert_local_omp_clauses): Initialize need_frame to true if the
6106 function contains nested functions and if not optimizing.
6108 2015-07-01 Richard Biener <rguenther@suse.de>
6110 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
6111 (X & Y) ^ Y -> ~X & Y transforms to ...
6112 * match.pd: ... here.
6114 2015-07-01 Richard Biener <rguenther@suse.de>
6116 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
6117 of converts to avoid uninteresting noise from the conversion
6118 simplifying patterns.
6120 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
6122 * config/c6x/c6x.c (try_rename_operands): Do not depend on
6123 gcc_assert evaluating its argument for side-effect.
6125 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
6128 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
6131 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
6133 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
6134 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
6135 (hash_scc): Add this_ref_p and ref_p parameters and pass them
6136 to the inner DFS walk.
6138 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6140 * target-insns.def (jump): New targetm instruction pattern.
6141 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
6142 instead of gen_jump.
6143 (fix_up_crossing_landing_pad): Likewise.
6144 (add_labels_and_missing_jumps): Likewise.
6145 (fix_crossing_conditional_branches): Likewise.
6146 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6147 (force_nonfallthru_and_redirect): Likewise.
6148 * cse.c (cse_insn): Likewise.
6149 * expmed.c (expand_divmod): Likewise.
6150 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
6151 * haifa-sched.c (init_before_recovery): Likewise.
6152 (sched_create_recovery_edges): Likewise.
6153 * ifcvt.c (find_cond_trap): Likewise.
6154 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
6155 (expand_float, expand_fix): Likewise.
6156 * stmt.c (emit_jump): Likewise.
6158 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6160 * defaults.h (HAVE_load_multiple, gen_load_multiple)
6161 (HAVE_store_multiple, gen_store_multiple): Delete.
6162 * target-insns.def (load_multiple, store_multiple): New targetm
6163 instruction patterns.
6164 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
6165 of HAVE_*/gen_* interface.
6167 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6169 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
6170 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
6171 (gen_mem_signal_fence): Delete.
6172 * target-insns.def (mem_signal_fence, mem_thread_fence)
6173 (memory_barrier): New targetm instruction patterns.
6174 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
6176 (expand_mem_signal_fence): Likewise.
6178 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6180 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
6181 * target-insns.def (epilogue, prologue, sibcall_prologue): New
6182 targetm instruction patterns.
6183 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
6185 * calls.c (expand_call): Likewise.
6186 * cfgrtl.c (cfg_layout_finalize): Likewise.
6187 * df-scan.c (df_get_entry_block_def_set): Likewise.
6188 (df_get_exit_block_use_set): Likewise.
6189 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
6190 * final.c (final_start_function): Likewise.
6191 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6192 (reposition_prologue_and_epilogue_notes): Likewise.
6193 * reorg.c (find_end_label): Likewise.
6194 * toplev.c (process_options): Likewise.
6196 2015-06-30 David Malcolm <dmalcolm@redhat.com>
6198 * typed-splay-tree.h: New file.
6200 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
6203 * lra-int.h (lra_substitute_pseudo): Add a parameter.
6204 (lra_substitute_pseudo_within_insn): Ditto.
6205 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
6207 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
6208 to lra_substitute_pseudo.
6209 * lra-lives.c (process_bb_lives): Add an argument to
6210 lra_substitute_pseudo_within_insn call.
6211 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
6212 argument to lra_substitute_pseudo and
6213 lra_substitute_pseudo_within_insn calls.
6214 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
6216 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
6218 * configure: Regenerated.
6220 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
6222 * config.gcc: Support i[34567]86-*-elfiamcu target.
6223 * config/i386/iamcu.h: New.
6224 * config/i386/i386.opt: Add -miamcu.
6225 * doc/invoke.texi: Document -miamcu.
6226 * common/config/i386/i386-common.c (ix86_handle_option): Turn
6227 off x87/MMX/SSE/AVX codegen for -miamcu.
6228 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6229 __iamcu/__iamcu__ for -miamcu.
6230 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
6231 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
6232 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
6233 * config/i386/i386.c (ix86_option_override_internal): Ignore and
6234 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
6235 MCU by default. Default long double to 64-bit for Intel MCU.
6236 Turn on -freg-struct-return for Intel MCU. Issue an error when
6237 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
6239 (function_arg_advance_32): Pass value whose size is no larger
6240 than 8 bytes in registers for Intel MCU.
6241 (function_arg_32): Likewise.
6242 (ix86_return_in_memory): Return value whose size is no larger
6243 than 8 bytes in registers for Intel MCU.
6244 (iamcu_alignment): New function.
6245 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
6247 (ix86_local_alignment): Don't increase alignment for Intel MCU.
6248 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
6251 2015-06-30 Marek Polacek <polacek@redhat.com>
6253 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
6254 both operands of the resulting expression.
6256 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
6257 the final expression with the operand's type and then convert
6258 it to the type of the expression.
6260 2015-06-30 Richard Biener <rguenther@suse.de>
6262 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
6263 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
6264 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
6265 * match.pd: ... to patterns here.
6267 2015-06-30 Richard Biener <rguenther@suse.de>
6269 PR tree-optimization/66704
6270 * tree-vect-data-refs.c (vect_setup_realignment): Use
6271 make_ssa_name for non-SSA name source.
6273 2015-06-30 Jakub Jelinek <jakub@redhat.com>
6276 * omp-low.c (simd_clone_adjust): Handle addressable linear
6277 or uniform parameters or non-gimple type uniform parameters.
6279 2015-06-30 Richard Biener <rguenther@suse.de>
6281 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
6282 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
6283 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
6284 * match.pd: ... here.
6285 Add a few cases of A - B -> A + (-B) when B "easily" negates.
6286 Move (x & y) | x -> x and friends before
6287 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
6289 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
6291 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
6292 -mfix-ut699 is not specified.
6293 (leon3_load): Rename into...
6294 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
6297 2015-06-30 Marek Polacek <polacek@redhat.com>
6299 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
6300 * match.pd: ... here.
6302 2015-06-30 Richard Biener <rguenther@suse.de>
6304 * target-insns.def (canonicalize_funcptr_for_compare): Add.
6305 * fold-const.c (build_range_check): Replace uses of
6306 HAVE_canonicalize_funcptr_for_compare.
6307 (fold_widened_comparison): Likewise.
6308 (fold_sign_changed_comparison): Likewise.
6309 * dojump.c: Include "target.h".
6310 (do_compare_and_jump): Replace uses of
6311 HAVE_canonicalize_funcptr_for_compare and
6312 gen_canonicalize_funcptr_for_compare.
6313 * expr.c (do_store_flag): Likewise.
6315 2015-06-30 Tom de Vries <tom@codesourcery.com>
6317 PR tree-optimization/66652
6318 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
6319 max_loop_iterations to determine if nit + 1 overflows.
6321 2015-06-30 Richard Biener <rguenther@suse.de>
6323 * tree-vrp.c (register_edge_assert_for_2): Also register
6324 asserts for dominating conversion results.
6326 2015-06-30 Bin Cheng <bin.cheng@arm.com>
6328 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
6331 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
6334 * configure.ac: Fix filds and fildq test for 64-bit.
6335 * configure: Regenerated.
6337 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
6339 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
6340 (nvptx_reorg): Here. Keep the non-subreg pieces.
6342 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
6344 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
6345 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
6347 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
6349 * config/i386/i386.md (*jcc_1): Use %! in asm template.
6350 Set attribute "length_nobnd" instead of "length".
6353 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
6355 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
6357 * config/nios2/nios2.c (nios2_delegitimize_address): Make
6358 assert less restrictive.
6360 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6363 * cgraphunit.c (cgraph_node::finalize_function): Do not call
6364 do_warn_unused_parameter.
6365 * function.c (do_warn_unused_parameter): Move from here.
6366 * function.h (do_warn_unused_parameter): Do not declare.
6368 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6371 * gcc.target/arm/armv-sync-comp-swap.c: New.
6372 * gcc.target/arm/armv-sync-op-acquire.c: New.
6373 * gcc.target/arm/armv-sync-op-full.c: New.
6374 * gcc.target/arm/armv-sync-op-release.c: New.
6376 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6379 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
6380 initial acquire barrier with final barrier.
6382 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6385 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
6386 initial acquire barrier with final barrier.
6388 2015-06-29 Richard Henderson <rth@redhat.com>
6390 * config/i386/constraints.md (Bf): New constraint.
6391 * config/i386/i386-c.c (ix86_target_macros): Define
6392 __GCC_ASM_FLAG_OUTPUTS__.
6393 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
6395 * doc/extend.texi (FlagOutputOperands): Document them.
6397 2015-06-29 Jiong Wang <jiong.wang@arm.com>
6399 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
6400 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
6402 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
6403 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
6404 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
6405 (aarch64_symbol_context): Ditto.
6406 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
6407 and use new pattern name.
6408 (aarch64_expand_mov_immediate): Ditto.
6409 (aarch64_print_operand): Ditto.
6410 (aarch64_classify_tls_symbol): Ditto.
6412 2015-06-29 Marek Polacek <polacek@redhat.com>
6413 Marc Glisse <marc.glisse@inria.fr>
6415 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
6416 * match.pd: ... pattern here.
6418 2015-06-29 Tom de Vries <tom@codesourcery.com>
6420 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
6423 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6425 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
6426 feature description, split out the native option, add a link to
6427 the feature documentation, rearrange and slightly rewrite text.
6428 (Aarch64 options, -mcpu): Likewise.
6429 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
6430 +rdma implies Adv. SIMD.
6432 2015-06-29 Marek Polacek <polacek@redhat.com>
6435 * function.c (stack_protect_epilogue): Remove a cast to int.
6436 * doc/invoke.texi: Update -Wswitch-bool description.
6438 2015-06-29 Richard Biener <rguenther@suse.de>
6440 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
6441 * fold-const.c (fold_binary_loc): Move &A - &B simplification
6442 via ptr_difference_const ...
6443 * match.pd: ... here.
6444 When matching (X ^ Y) == Y also match with swapped operands.
6446 2015-06-29 Richard Biener <rguenther@suse.de>
6448 * lto-streamer.h (LTO_major_version): Bump to 5.
6450 2015-06-29 Richard Biener <rguenther@suse.de>
6452 PR tree-optimization/66677
6453 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
6454 STMT_VINFO_VEC_STMT clobbering less strict.
6456 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
6459 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
6460 division, compute max and min when value ranges for dividend and
6461 divisor are available.
6463 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
6464 Sandra Loosemore <sandra@codesourcery.com>
6466 * regrename.h (regrename_do_replace): Change to return bool.
6467 * regrename.c (rename_chains): Check return value of
6469 (regrename_do_replace): Re-validate the modified insns and
6471 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
6472 Update to match rename_chains changes.
6473 * config/c6x/c6x.c (try_rename_operands): Assert that
6474 regrename_do_replace returns true.
6476 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
6478 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
6479 operand 2 here. Use copy_addr_to_reg to copy non-index
6480 register operand 2 to a temporary.
6481 (<mode>_stx): Ditto for operand 1.
6482 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
6483 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
6484 (ix86_store_bounds): Ditto.
6486 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
6488 * print-tree.c (print_node) [TREE_VEC]: Print its length.
6490 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
6492 * gimple.c (gimple_call_set_fndecl): Remove.
6493 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
6494 build1_loc directly instead of build_fold_addr_expr_loc.
6496 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
6498 * hash-map.h (hash_map::traverse): Use the definition of the
6499 Key typedef rather than the typedef itself.
6501 2015-06-26 Martin Jambor <mjambor@suse.cz>
6504 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
6505 NULL instead of calling dump_enabled_p.
6507 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6509 * config/aarch64/aarch64.opt: (override): New.
6510 * doc/invoke.texi (override): Document.
6511 * config/aarch64/aarch64.c (aarch64_flag_desc): New
6512 (aarch64_fusible_pairs): Likewise.
6513 (aarch64_tuning_flags): Likewise.
6514 (aarch64_tuning_override_function): Likewise.
6515 (aarch64_tuning_override_functions): Likewise.
6516 (aarch64_parse_one_option_token): Likewise.
6517 (aarch64_parse_boolean_options): Likewise.
6518 (aarch64_parse_fuse_string): Likewise.
6519 (aarch64_parse_tune_string): Likewise.
6520 (aarch64_parse_one_override_token): Likewise.
6521 (aarch64_parse_override_string): Likewise.
6522 (aarch64_override_options): Parse the -override string if it
6525 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6527 * config/aarch64/aarch64-protos.h (tune_params): Remove
6529 (aarch64_tune_params): Remove const, change to no longer be
6531 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
6532 change to no longer be a pointer, initialize to generic_tunings.
6533 (aarch64_min_divisions_for_recip_mul): Change dereference of
6534 aarch64_tune_params to member access.
6535 (aarch64_reassociation_width): Likewise.
6536 (aarch64_rtx_mult_cost): Likewise.
6537 (aarch64_address_cost): Likewise.
6538 (aarch64_branch_cost): Likewise.
6539 (aarch64_rtx_costs): Likewise.
6540 (aarch64_register_move_cost): Likewise.
6541 (aarch64_memory_move_cost): Likewise.
6542 (aarch64_sched_issue_rate): Likewise.
6543 (aarch64_builtin_vectorization_cost): Likewise.
6544 (aarch64_override_options): Take a copy of the selected tuning
6545 struct in to aarch64_tune_params, rather than just setting
6546 a pointer, change dereferences of aarch64_tune_params to member
6548 (aarch64_override_options_after_change): Change dereferences of
6549 aarch64_tune_params to member access.
6550 (aarch64_macro_fusion_p): Likewise.
6551 (aarch_macro_fusion_pair_p): Likewise.
6552 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
6554 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6556 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
6557 (aarch64_tune_flags): Likewise.
6558 (AARCH64_TUNE_FMA_STEERING): Likewise.
6559 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
6560 to AARCH64_FL_USE_FMA_STEERING_PASS.
6561 (cortex-a57.cortex-a53): Likewise.
6562 (cortex-a72): Use cortexa72_tunings.
6563 (cortex-a72.cortex-a53): Likewise.
6564 (exynos-m1): Likewise.
6565 * config/aarch64/aarch64-protos.h (tune_params): Add
6566 a field: extra_tuning_flags.
6567 * config/aarch64/aarch64-tuning-flags.def: New.
6568 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
6569 (aarch64_extra_tuning_flags): Likewise.
6570 (aarch64_tune_params): Declare here.
6571 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
6572 (cortexa53_tunings): Likewise.
6573 (cortexa57_tunings): Likewise.
6574 (thunderx_tunings): Likewise.
6575 (xgene1_tunings): Likewise.
6576 (cortexa72_tunings): New.
6577 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
6578 (gate): Check against aarch64_tune_params.
6579 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
6582 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6584 * config/aarch64/aarch64-fusion-pairs.def: New.
6585 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
6586 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
6587 aarch64_fusion_pairs.
6588 (AARCH64_FUSE_MOV_MOVK): Likewise.
6589 (AARCH64_FUSE_ADRP_ADD): Likewise.
6590 (AARCH64_FUSE_MOVK_MOVK): Likewise.
6591 (AARCH64_FUSE_ADRP_LDR): Likewise.
6592 (AARCH64_FUSE_CMP_BRANCH): Likewise.
6594 2015-06-26 Jiong Wang <jiong.wang@arm.com>
6596 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
6597 SYMBOL_SMALL_GOT_28K.
6598 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
6599 relocation modifiers.
6600 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
6601 (ldr_got_small_28k_<mode>): New.
6602 (ldr_got_small_28k_sidi): New.
6603 * config/aarch64/iterators.md (got_modifier): New mode iterator.
6604 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
6605 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
6606 SYMBOL_SMALL_GOT_28K.
6607 (aarch64_rtx_costs): Add costs for new instruction sequences.
6608 (initialize_aarch64_code_model): Initialize new model.
6609 (aarch64_classify_symbol): Recognize new model and new symbol classification.
6610 (aarch64_asm_preferred_eh_data_format): Support new model.
6611 (aarch64_load_symref_appropriately): Generate new instruction
6612 sequences for -fpic.
6613 (TARGET_USE_PSEUDO_PIC_REG): New definition.
6614 (aarch64_use_pseudo_pic_reg): New function.
6616 2015-06-26 Jiong Wang <jiong.wang@arm.com>
6618 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
6619 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
6620 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
6621 (aarch64_expand_mov_immediate): Ditto.
6622 (aarch64_print_operand): Ditto.
6623 (aarch64_classify_symbol): Ditto.
6625 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
6627 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
6629 2015-06-26 Bin Cheng <bin.cheng@arm.com>
6632 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
6633 assertion failed. Remove assertion itself.
6635 2015-06-26 Richard Biener <rguenther@suse.de>
6637 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
6638 and -A CMP CST -> A CMP -CST which is redundant with a pattern
6640 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
6641 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
6642 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
6643 * match.pd: ... patterns here.
6645 2015-06-26 Marek Polacek <polacek@redhat.com>
6647 * match.pd ((x | y) & ~(x & y) -> x ^ y,
6648 (x | y) & (~x ^ y) -> x & y): New patterns.
6650 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
6652 * rtl.h (emit): Add an optional boolean parameter to control
6653 whether barriers are emitted.
6654 * emit-rtl.c (emit): Likewise.
6655 * gensupport.c (get_emit_function): Return null rather than "emit".
6656 * genemit.c (gen_emit_seq): Handle the null return value.
6657 Don't emit barriers after the final instruction in the sequence.
6658 * gentarget-def.c (main): Don't emit barriers after the instruction.
6660 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6662 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
6665 2015-06-26 Richard Biener <rguenther@suse.de>
6667 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
6669 2015-06-26 Richard Biener <rguenther@suse.de>
6671 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
6672 irrespective on whether the inner operation has a single use
6673 of both off are constant.
6675 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
6676 Segher Boessenkool <segher@kernel.crashing.org>
6679 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
6680 before doing PUT_MODE or PUT_CODE on operands to avoid
6681 in-place RTX modification.
6683 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
6685 * gentarget-def.c (def_target_insn): Cast return of strtol to
6688 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
6690 * gimple.h (gimple_call_set_fn): Move inline function.
6691 * gimple.c (gimple_call_set_fn): Relocate here.
6693 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
6697 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
6698 the replacement insn will work.
6700 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
6702 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
6705 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
6707 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
6708 * cgraph.h: Include ipa-ref.h and plugin-api.h.
6709 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
6710 (symtab_node::address_can_be_compared_p): Move function.
6711 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
6713 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
6714 * auto-profile.c: Likewise.
6715 * bb-reorder.c: Likewise.
6716 * builtins.c: Likewise.
6717 * calls.c: Likewise.
6718 * cfgexpand.c: Likewise.
6719 * cgraphbuild.c: Likewise.
6720 * cgraphclones.c: Likewise.
6721 * cgraphunit.c: Likewise.
6722 * combine.c: Likewise.
6723 * coverage.c: Likewise.
6724 * data-streamer-in.c: Likewise.
6725 * data-streamer-out.c: Likewise.
6726 * data-streamer.c: Likewise.
6727 * dbxout.c: Likewise.
6728 * dwarf2out.c: Likewise.
6729 * except.c: Likewise.
6731 * final.c: Likewise.
6732 * fold-const.c: Likewise.
6733 * ggc-page.c: Likewise.
6734 * gimple-fold.c: Likewise.
6735 * gimple-iterator.c: Likewise.
6736 * gimple-pretty-print.c: Likewise.
6737 * gimple-streamer-in.c: Likewise.
6738 * gimple-streamer-out.c: Likewise.
6739 * gimple.c: Likewise.
6740 * gimplify.c: Likewise.
6741 * ipa-chkp.c: Likewise.
6742 * ipa-comdats.c: Likewise.
6743 * ipa-cp.c: Likewise.
6744 * ipa-devirt.c: Likewise.
6745 * ipa-icf-gimple.c: Likewise.
6746 * ipa-icf.c: Likewise.
6747 * ipa-inline-analysis.c: Likewise.
6748 * ipa-inline-transform.c: Likewise.
6749 * ipa-inline.c: Likewise.
6750 * ipa-polymorphic-call.c: Likewise.
6751 * ipa-profile.c: Likewise.
6752 * ipa-prop.c: Likewise.
6753 * ipa-pure-const.c: Likewise.
6754 * ipa-ref.c: Likewise.
6755 * ipa-reference.c: Likewise.
6756 * ipa-split.c: Likewise.
6757 * ipa-utils.c: Likewise.
6758 * ipa-visibility.c: Likewise.
6760 * langhooks.c: Likewise.
6761 * lto-cgraph.c: Likewise.
6762 * lto-compress.c: Likewise.
6763 * lto-opts.c: Likewise.
6764 * lto-section-in.c: Likewise.
6765 * lto-section-out.c: Likewise.
6766 * lto-streamer-in.c: Likewise.
6767 * lto-streamer-out.c: Likewise.
6768 * lto-streamer.c: Likewise.
6769 * omp-low.c: Likewise.
6770 * opts-global.c: Likewise.
6771 * passes.c: Likewise.
6772 * predict.c: Likewise.
6773 * print-tree.c: Likewise.
6774 * profile.c: Likewise.
6776 * sanopt.c: Likewise.
6777 * stor-layout.c: Likewise.
6778 * symtab.c: Likewise.
6779 * toplev.c: Likewise.
6780 * trans-mem.c: Likewise.
6781 * tree-cfg.c: Likewise.
6782 * tree-chkp.c: Likewise.
6783 * tree-eh.c: Likewise.
6784 * tree-emutls.c: Likewise.
6785 * tree-inline.c: Likewise.
6786 * tree-nested.c: Likewise.
6787 * tree-parloops.c: Likewise.
6788 * tree-pretty-print.c: Likewise.
6789 * tree-profile.c: Likewise.
6790 * tree-sra.c: Likewise.
6791 * tree-ssa-alias.c: Likewise.
6792 * tree-ssa-live.c: Likewise.
6793 * tree-ssa-loop-ivcanon.c: Likewise.
6794 * tree-ssa-loop-ivopts.c: Likewise.
6795 * tree-ssa-pre.c: Likewise.
6796 * tree-ssa-sccvn.c: Likewise.
6797 * tree-ssa-strlen.c: Likewise.
6798 * tree-ssa-structalias.c: Likewise.
6799 * tree-streamer-in.c: Likewise.
6800 * tree-streamer-out.c: Likewise.
6801 * tree-streamer.c: Likewise.
6802 * tree-switch-conversion.c: Likewise.
6803 * tree-tailcall.c: Likewise.
6804 * tree-vect-data-refs.c: Likewise.
6805 * tree-vect-stmts.c: Likewise.
6806 * tree-vectorizer.c: Likewise.
6809 * ubsan.c: Likewise.
6810 * value-prof.c: Likewise.
6811 * varasm.c: Likewise.
6812 * varpool.c: Likewise.
6813 * config/arm/arm.c: Likewise.
6814 * config/bfin/bfin.c: Likewise.
6815 * config/c6x/c6x.c: Likewise.
6816 * config/cris/cris.c: Likewise.
6817 * config/darwin-c.c: Likewise.
6818 * config/darwin.c: Likewise.
6819 * config/i386/i386.c: Likewise.
6820 * config/i386/winnt.c: Likewise.
6821 * config/microblaze/microblaze.c: Likewise.
6822 * config/mips/mips.c: Likewise.
6823 * config/rs6000/rs6000.c: Likewise.
6824 * config/rx/rx.c: Likewise.
6825 * config/s390/s390.c: Likewise.
6826 * config/tilegx/mul-tables.c: Likewise.
6828 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6830 * config/aarch64/aarch64.c, config/alpha/alpha.c,
6831 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
6832 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
6833 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
6834 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
6835 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6836 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
6837 config/microblaze/microblaze.c, config/mips/mips.c,
6838 config/mmix/mmix.c, config/mn10300/mn10300.c,
6839 config/moxie/moxie.c, config/msp430/msp430.c,
6840 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
6841 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
6842 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
6843 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
6844 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6845 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6846 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
6847 target-def.h include.
6848 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
6850 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6852 * Makefile.in (TARGET_DEF): Add target-insns.def.
6853 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
6854 (build/gentarget-def.o): New rule.
6855 (genprogrtl): Add target-def.
6856 * target-insns.def, gentarget-def.c: New files.
6857 * target.def: Add targetm.have_* and targetm.gen_* hooks,
6858 based on the contents of target-insns.def.
6859 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
6860 (HAVE_return, gen_return): Delete.
6861 * target-def.h: Include insn-target-def.h.
6862 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
6863 instead of direct calls. Rely on them to do the appropriate assertions.
6864 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
6865 (convert_jumps_to_returns): Use targetm interface instead of
6867 (thread_prologue_and_epilogue_insns): Likewise.
6868 * reorg.c (find_end_label, dbr_schedule): Likewise.
6869 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
6870 * shrink-wrap.c (convert_to_simple_return): Likewise.
6871 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
6873 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6875 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
6876 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6877 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
6878 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
6879 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
6880 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6881 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
6882 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
6883 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
6884 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
6885 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
6886 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
6887 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
6888 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6889 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6890 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
6893 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6895 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
6896 (unbounded_int_hashmap_traits::key_type): Likewise.
6897 * hash-map.h (hash_map): Get the key type from the traits.
6898 * hash-traits.h (default_hash_traits): By default, inherit from the
6900 * alias.c (alias_set_traits): Delete.
6901 (alias_set_entry_d::children): Use alias_set_hash as the first
6903 (record_alias_subset): Update accordingly.
6904 * except.c (tree_hash_traits): Delete.
6905 (type_to_runtime_map): Use tree_hash as the first template parameter.
6906 (init_eh): Update accordingly.
6907 * genmatch.c (capture_id_map_hasher): Delete.
6908 (cid_map_t): Use nofree_string_hash as first template parameter.
6909 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
6910 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
6911 Use symbol_compare_hash as the first template parameter in
6913 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
6914 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
6916 * passes.c (pass_registry_hasher): Delete.
6917 (name_to_pass_map): Use nofree_string_hash as the first template
6919 (register_pass_name): Update accordingly.
6920 * sanopt.c (sanopt_tree_map_traits): Delete.
6921 (sanopt_tree_triplet_map_traits): Delete.
6922 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
6924 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
6925 the first template parameter.
6926 * sese.c (rename_map_hasher): Delete.
6927 (rename_map_type): Use tree_ssa_name_hash as the first template
6929 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
6930 (function_summary::m_map): Use map_hash as the first template
6932 (function_summary::release): Update accordingly.
6933 * tree-if-conv.c (phi_args_hash_traits): Delete.
6934 (predicate_scalar_phi): Use tree_operand_hash as the first template
6935 parameter to phi_arg_map.
6936 * tree-inline.h (dependence_hasher): Delete.
6937 (copy_body_data::dependence_map): Use dependence_hash as the first
6939 * tree-inline.c (remap_dependence_clique): Update accordingly.
6940 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
6941 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
6943 (addr_stridxptr): Update accordingly.
6944 * value-prof.c (profile_id_traits): Delete.
6945 (cgraph_node_map): Use profile_id_hash as the first template
6947 (init_node_map): Update accordingly.
6948 * config/alpha/alpha.c (string_traits): Delete.
6949 (machine_function::links): Use nofree_string_hash as the first
6951 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
6952 * config/m32c/m32c.c (pragma_traits): Delete.
6953 (pragma_htab): Use nofree_string_hash as the first template parameter.
6954 (m32c_note_pragma_address): Update accordingly.
6955 * config/mep/mep.c (pragma_traits): Delete.
6956 (pragma_htab): Use nofree_string_hash as the first template parameter.
6957 (mep_note_pragma_flag): Update accordingly.
6958 * config/mips/mips.c (mips16_flip_traits): Delete.
6959 (mflip_mips16_htab): Use nofree_string_hash as the first template
6961 (mflip_mips16_use_mips16_p): Update accordingly.
6962 (local_alias_traits): Delete.
6963 (mips16_local_aliases): Use nofree_string_hash as the first template
6965 (mips16_local_alias): Update accordingly.
6967 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6969 * hash-map-traits.h (default_hashmap_traits): Delete.
6971 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6973 * hash-map-traits.h (unbounded_hashmap_traits): New class.
6974 (unbounded_int_hashmap_traits): Likewise.
6975 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
6977 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6979 * ipa-icf.h (symbol_compare_hash): New class.
6980 (symbol_compare_hashmap_traits): Use it.
6981 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
6982 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
6983 (mem_alloc_description::reverse_mem_map_t): Remove redundant
6984 default_hashmap_traits.
6985 * sanopt.c (sanopt_tree_triplet_hash): New class.
6986 (sanopt_tree_triplet_map_traits): Use it.
6988 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6990 * gengtype-parse.c (require_template_declaration): Allow '+' in
6991 template parameters. Consolidate cases.
6992 * hash-traits.h (int_hash): New class.
6993 * alias.c (alias_set_hash): New structure.
6994 (alias_set_traits): Use it.
6995 * symbol-summary.h (function_summary::map_hash): New class.
6996 (function_summary::summary_hashmap_traits): Use it.
6997 * tree-inline.h (dependence_hash): New class.
6998 (dependence_hasher): Use it.
6999 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
7000 * value-prof.c (profile_id_hash): New class.
7001 (profile_id_traits): Use it.
7003 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7005 * config/mips/mips.c (mips16_flip_traits): Use it.
7006 (local_alias_traits, mips16_local_aliases): Convert from a map of
7007 rtxes to a map of symbol names.
7008 (mips16_local_alias): Update accordingly.
7010 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7012 * hash-traits.h (string_hash, nofree_string_hash): New classes.
7013 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
7014 * passes.c (pass_registry_hasher): Likewise.
7015 * config/alpha/alpha.c (string_traits): Likewise.
7016 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
7017 * config/m32c/m32c.c (pragma_traits): Likewise.
7018 * config/mep/mep.c (pragma_traits): Likewise.
7020 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7022 * tree-hash-traits.h (tree_hash): New class.
7023 * except.c: Include tree-hash-traits.h.
7024 (tree_hash_traits): Use tree_hash.
7026 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7028 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
7029 * sese.c: Include tree-hash-traits.h.
7030 (rename_map_hasher): Use tree_ssa_name_hasher.
7032 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7034 * tree-hash-traits.h (tree_decl_hash): New class.
7035 * tree-ssa-strlen.c: Include tree-hash-traits.h.
7036 (stridxlist_hash_traits): Use tree_decl_hash.
7038 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7040 * tree-hash-traits.h: New file.
7041 (tree_operand_hash): New class.
7042 * sanopt.c: Include tree-hash-traits.h.
7043 (sanopt_tree_map_traits): Use tree_operand_hash.
7044 * tree-if-conv.c: Include tree-hash-traits.h.
7045 (phi_args_hash_traits): Use tree_operand_hash.
7046 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
7047 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
7049 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7051 * hash-map-traits.h: Include hash-traits.h.
7052 (simple_hashmap_traits): New class.
7053 * mem-stats.h (hash_map): Change the default traits to
7054 simple_hashmap_traits<default_hash_traits<Key> >.
7056 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7058 * hash-table.h: Update comments.
7060 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7062 * hash-traits.h (default_hash_traits): New structure.
7063 * hash-set.h (default_hashset_traits): Delete.
7064 (hash_set): Use default_hash_traits<Key> instead of
7065 default_hashset_traits. Delete hash_entry type and use Key directly.
7066 * ipa-devirt.c (pair_traits): Delete.
7067 (default_hash_traits <type_pair>): Override.
7068 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
7069 (odr_types_equivalent_p, add_type_duplicate): Likewise.
7071 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7073 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
7075 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7077 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
7078 (has_is_empty, is_empty_helper): Delete.
7079 (has_mark_deleted, mark_deleted_helper): Delete.
7080 (has_mark_empty, mark_empty_helper): Delete.
7081 (hash_table::is_deleted): Call the Descriptor unconditionally.
7082 (hash_table::is_empty): Likewise.
7083 (hash_table::mark_deleted): Likewise.
7084 (hash_table::mark_empty): Likewise.
7086 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7088 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
7089 redundant typedefs and members.
7090 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
7092 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
7093 * ipa-devirt.c (odr_name_hasher): Likewise.
7094 (polymorphic_call_target_hasher): Likewise.
7095 * ira-costs.c (cost_classes_hasher): Likewise.
7096 * statistics.c (stats_counter_hasher): Likewise.
7097 * trans-mem.c (log_entry_hasher): Likewise.
7098 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
7099 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
7100 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
7101 * var-tracking.c (variable_hasher): Likewise.
7102 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
7103 Remove redundant typedefs and members.
7105 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7107 * hash-traits.h (ggc_cache_hasher): Rename to...
7108 (ggc_cache_remove): ...this and remove typedefs.
7109 (ggc_cache_ptr_hash): New class.
7110 * hash-table.h: Update commentary.
7111 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
7112 rather than ggc_cache_hasher.
7113 (const_wide_int_hasher, reg_attr_hasher): Likewise.
7114 (const_double_hasher, const_fixed_hasher): Likewise.
7115 * function.c (insn_cache_hasher): Likewise.
7116 * trans-mem.c (tm_wrapper_hasher): Likewise.
7117 * tree.h (tree_decl_map_cache_hasher): Likewise.
7118 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
7119 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
7120 * ubsan.c (tree_type_map_cache_hasher): Likewise.
7121 * varasm.c (tm_clone_hasher): Likewise.
7122 * config/i386/i386.c (dllimport_hasher): Likewise.
7123 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
7124 (tree_hasher): Likewise.
7126 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7128 * hash-traits.h (ggc_hasher): Rename to...
7129 (ggc_remover): ...this and remove typedefs.
7130 (ggc_cache_hasher): Update accordingly. Add typedefs.
7131 (ggc_ptr_hash): New class.
7132 * hash-table.h: Update comment.
7133 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
7135 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
7136 (tree_descriptor_hasher): Likewise.
7137 * cgraph.c (function_version_hasher): Likewise.
7138 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
7139 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
7140 (dw_loc_list_hasher, addr_hasher): Likewise.
7141 * function.h (used_type_hasher): Likewise.
7142 * function.c (temp_address_hasher): Likewise.
7143 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
7144 * libfuncs.h (libfunc_hasher): Likewise.
7145 * lto-streamer.h (decl_state_hasher): Likewise.
7146 * optabs.c (libfunc_decl_hasher): Likewise.
7147 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
7148 * varasm.c (section_hasher, object_block_hasher): Likewise.
7149 (const_rtx_desc_hasher): Likewise.
7150 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
7151 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
7153 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7155 * hash-traits.h (free_ptr_hash): New class.
7156 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
7157 rather than typed_free_remove. Remove redudant typedefs.
7158 (external_ref_hasher): Likewise.
7159 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
7160 (ehspec_hasher): Likewise.
7161 * ggc-common.c (saving_hasher): Likewise.
7162 * gimplify.c (gimplify_hasher): Likewise.
7163 * haifa-sched.c (delay_i2_hasher): Likewise.
7164 * loop-invariant.c (invariant_expr_hasher): Likewise.
7165 * loop-iv.c (biv_entry_hasher): Likewise.
7166 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
7167 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
7168 * tree-cfg.c (locus_discrim_hasher): Likewise.
7169 * tree-eh.c (finally_tree_hasher): Likewise.
7170 * tree-into-ssa.c (var_info_hasher): Likewise.
7171 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
7172 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
7173 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
7174 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
7175 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
7176 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
7177 (shared_bitmap_hasher): Likewise.
7178 * tree-ssa-threadupdate.c (redirection_data): Likewise.
7179 * tree-vectorizer.h (peel_info_hasher): Likewise.
7180 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
7181 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
7183 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7185 * hash-table.h: Update comments.
7186 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
7187 (nofree_ptr_hash): New class.
7188 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
7189 than typed_noop_remove. Remove redudant typedefs.
7190 * attribs.c (attribute_hasher): Likewise.
7191 * cfg.c (bb_copy_hasher): Likewise.
7192 * cselib.c (cselib_hasher): Likewise.
7193 * dse.c (invariant_group_base_hasher): Likewise.
7194 * dwarf2cfi.c (trace_info_hasher): Likewise.
7195 * dwarf2out.c (macinfo_entry_hasher): Likewise.
7196 (comdat_type_hasher, loc_list_hasher): Likewise.
7197 * gcse.c (pre_ldst_expr_hasher): Likewise.
7198 * genmatch.c (id_base): Likewise.
7199 * genrecog.c (test_pattern_hasher): Likewise.
7200 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
7201 * haifa-sched.c (delay_i1_hasher): Likewise.
7202 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
7203 * ipa-icf.h (congruence_class_group_hash): Likewise.
7204 * ipa-profile.c (histogram_hash): Likewise.
7205 * ira-color.c (allocno_hard_regs_hasher): Likewise.
7206 * lto-streamer.h (string_slot_hasher): Likewise.
7207 * lto-streamer.c (tree_entry_hasher): Likewise.
7208 * plugin.c (event_hasher): Likewise.
7209 * postreload-gcse.c (expr_hasher): Likewise.
7210 * store-motion.c (st_expr_hasher): Likewise.
7211 * tree-sra.c (uid_decl_hasher): Likewise.
7212 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
7213 (ssa_name_var_hash): Likewise.
7214 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
7215 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
7216 * tree-ssa-pre.c (pre_expr_d): Likewise.
7217 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
7218 * vtable-verify.h (registration_hasher): Likewise.
7219 * vtable-verify.c (vtbl_map_hasher): Likewise.
7220 * config/arm/arm.c (libcall_hasher): Likewise.
7221 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
7222 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
7223 * config/sol2.c (comdat_entry_hasher): Likewise.
7224 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
7225 (print_fold_checksum, fold_checksum_tree): Likewise.
7226 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
7227 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
7228 (fold_build_call_array_loc): Likewise.
7229 * tree-ssa-ccp.c (gimple_htab): Likewise.
7230 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
7231 rather than pointer_type.
7233 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7235 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
7236 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
7238 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7240 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
7241 (ggc_hasher::ggc_mx): Likewise.
7242 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
7243 that duplicate ggc_hasher ones.
7245 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7247 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
7248 (gt_cleare_cache): Check here for deleted and empty entries.
7249 Replace handle_cache_entry with a call to keep_cache_entry.
7250 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
7251 (ggc_cache_hasher::keep_cache_entry): New function.
7252 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
7253 (tm_wrapper_hasher::keep_cache_entry): New function.
7254 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
7255 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
7256 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
7257 (type_cache_hasher::keep_cache_entry): New function.
7258 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
7259 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
7260 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
7261 (tree_type_map_cache_hasher::keep_cache_entry): New function.
7262 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
7263 (tm_clone_hasher::keep_cache_entry): New function.
7264 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
7265 (dllimport_hasher::keep_cache_entry): New function.
7267 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7269 * hash-table.h: Include hash-traits.h.
7270 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
7271 (ggc_cache_hasher): Move to...
7272 * hash-traits.h: ...this new file.
7274 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7276 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
7277 struct cl_optimization.
7278 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
7279 * tree.c (make_node_stat): Allocate cl_optimization struct.
7280 (copy_node_stat): Allocate and copy cl_optimization struct.
7282 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7284 * function.h (struct incoming_args): Move struct.
7285 (pass_by_reference, reference_callee_copied): Remove prototypes.
7286 * emit-rtl.h (struct incoming_args): Relocate struct here.
7287 * calls.h (pass_by_reference, reference_callee_copied): Relocate
7289 * function.c (pass_by_reference, reference_callee_copied): Move.
7290 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
7291 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
7292 * ipa-chkp.c: Include calls.h.
7294 2015-06-25 Andrew Macleod <amacleod@redhat.com>
7296 * alias.h (alias_set_type): Move typedef.
7297 * coretypes.h (alias_set_type): Relocate typedef here.
7298 * rtl.h: Don't include alias.h.
7300 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7302 * cgraph.h (cgraph_rtl_info): Move to rtl.h
7303 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
7305 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
7306 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
7308 * calls.c: Include hard-reg-set.h before rtl.h.
7311 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7312 Vladimir Makarov <vmakarov@redhat.com>
7314 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
7317 2015-06-25 Richard Biener <rguenther@suse.de>
7319 * fold-const.c (fold_binary_loc): Move simplification of
7320 (X <<>> C1) & C2 ...
7321 * match.pd: ... here.
7323 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
7325 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
7327 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7329 * match.pd: Add patterns for vec_conds between 1 and 0.
7331 2015-06-25 Richard Biener <rguenther@suse.de>
7333 * tree-vect-stmts.c (vectorizable_conversion): Do not set
7334 STMT_VINFO_VEC_STMT for SLP.
7335 (vectorizable_store): Likewise.
7336 (vectorizable_load): Likewise.
7337 (vect_transform_stmt): Catch SLP vectorization clobbering
7338 STMT_VINFO_VEC_STMT.
7340 2015-06-25 Richard Biener <rguenther@suse.de>
7342 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
7344 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
7345 cleanup resulting dead code and parameters.
7346 (vect_transform_slp_perm_load): Adjust.
7348 2015-06-25 Nick Clifton <nickc@redhat.com>
7350 * config/bfin/bfin.c (bfin_expand_prologue): Set
7351 current_function_static_stack_size if flag_stack_usage_info is set.
7352 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
7353 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
7354 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7355 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
7357 2015-06-25 Tom de Vries <tom@codesourcery.com>
7359 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
7360 comment that the generated IV is unsigned.
7362 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7365 * config/arm/arm.c (arm_dbx_register_number): Return
7366 DWARF_FRAME_REGISTERS by default.
7368 2015-06-25 Tom de Vries <tom@codesourcery.com>
7370 * dominance.c (calculate_dominance_info): Fix verify_dominators call
7371 argument. Call verify_dominator when reusing dominator info.
7373 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
7376 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
7377 an additional element of the unspec vector. Modify indices
7379 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
7380 * config/sh/sh.c (prepare_move_operands): Pass incremented
7381 const_int to gen_GOTaddr2picreg.
7382 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
7384 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7386 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
7387 Condition on TARGET_FLOAT.
7389 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7391 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
7394 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7396 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
7398 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
7399 aarch64_err_no_fpadvsimd.
7401 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
7402 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
7403 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
7404 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
7405 Turn error into assert, test TARGET_FLOAT.
7406 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
7409 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
7412 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
7414 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
7416 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
7418 2015-06-24 Renlin Li <renlin.li@arm.com>
7420 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
7421 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
7423 2015-06-24 Richard Biener <rguenther@suse.de>
7425 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
7427 (lower_opt_convert): Support lowering of conditional view_convert.
7428 (parser::parse_operation): Likewise.
7429 (parser::parse_for): Likewise.
7431 2015-06-24 Renlin Li <renlin.li@arm.com>
7433 * varasm.c (emit_local): Use unsigned int for align variable.
7435 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7438 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
7439 for negative numbers.
7441 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7443 PR rtl-optimization/66306
7444 * reload.c (find_reloads): Swap the match_dup info for
7445 commutative operands.
7447 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7449 * config/s390/vx-builtins.md
7450 ("vec_scatter_element<mode>_<non_vec_int>")
7451 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
7452 attribute with bhfgq.
7454 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7456 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
7458 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7460 * config/s390/s390-builtin-types.def: Add flag to indicate the
7461 options under which the function type is needed.
7462 * config/s390/s390-builtins.def: Add flag to indicate the options
7463 under which the builtin is enabled.
7464 * config/s390/s390-builtins.h: Add flags parameter to macro
7466 (bflags_for_builtin): New function.
7467 (flags_for_builtin): Renamed to ...
7468 (opflags_for_builtin): ... this.
7469 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
7470 flags_for_builtin to bflags_for_builtin and
7471 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
7472 * config/s390/s390.c: Add initialization of bflags_builtin and
7473 opflags_builtin arrays.
7474 Remove code for flags_builtin.
7475 (s390_init_builtins): Only create builtin function types if one of
7476 their flags is active.
7477 Only create builtins if all of their flags are active.
7478 (s390_expand_builtin): Rename flags_for_builtin to
7479 opflags_for_builtin.
7481 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7483 * config/s390/vecintrin.h: Remove internal builtins.
7485 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7487 * config/s390/s390.c (s390_secondary_reload): Fix check for
7488 GENERAL_REGS register class.
7490 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7492 * config/s390/s390.c (s390_support_vector_misalignment): Call
7493 default implementation for !TARGET_VX.
7495 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7497 * config/s390/s390.c (s390_legitimate_constant_p): Add
7500 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7502 * config/s390/s390.c (s390_vector_abi): New variable definition.
7503 (s390_check_type_for_vector_abi): New function.
7504 (TARGET_ASM_FILE_END): New macro definition.
7505 (s390_asm_file_end): New function.
7506 (s390_function_arg): Call s390_check_type_for_vector_abi.
7507 (s390_gimplify_va_arg): Likewise.
7508 * configure: Regenerate.
7509 * configure.ac: Check for .gnu_attribute Binutils feature.
7511 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
7514 * config/bfin/bfin.c (hwloop_optimize): Initialize
7515 JUMP_LABEL for newly created jump.
7517 2015-06-23 Tristan Gingold <gingold@adacore.com>
7519 * collect-utils.c (collect_wait): Unlink the response file here
7522 (utils_cleanup): ...and here.
7524 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
7526 * df-scan.c: Don't include target-def.h.
7527 * targhooks.c: Likewise.
7528 * config/arm/arm-c.c: Likewise.
7529 * config/i386/i386-c.c: Likewise.
7530 * config/nds32/nds32-cost.c: Likewise.
7531 * config/nds32/nds32-fp-as-gp.c: Likewise.
7532 * config/nds32/nds32-intrinsic.c: Likewise.
7533 * config/nds32/nds32-isr.c: Likewise.
7534 * config/nds32/nds32-md-auxiliary.c: Likewise.
7535 * config/nds32/nds32-memory-manipulation.c: Likewise.
7536 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7537 * config/nds32/nds32-predicates.c: Likewise.
7539 2015-06-23 Richard Biener <rguenther@suse.de>
7541 PR tree-optimization/66636
7542 * tree-vect-stmts.c (vectorizable_store): Properly compute the
7543 def type for further defs for strided stores.
7545 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
7547 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
7548 conditional selects.
7549 (setcc_int<mode>, setcc_float<mode>): Reformat.
7551 2015-06-23 Marek Polacek <polacek@redhat.com>
7553 * match.pd ((x + y) - (x | y) -> x & y,
7554 (x + y) - (x & y) -> x | y): New patterns.
7556 2015-06-23 Ludovic Courtès <ludo@gnu.org>
7559 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
7560 '-dynamic-linker' within %{!shared: ...}.
7562 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
7565 * config/i386/predicates.md (addsub_vm_operator): New predicate.
7566 (addsub_vs_operator): Ditto.
7567 (addsub_vs_parallel): Ditto.
7568 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
7569 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
7570 Put minus RTX before plus and adjust vec_merge selector.
7571 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
7572 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
7573 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
7574 (addsub vec_merge splitters): New combiner splitters.
7575 (addsub vec_select/vec_concat splitters): Ditto.
7577 2015-06-23 Bin Cheng <bin.cheng@arm.com>
7579 PR tree-optimization/66449
7580 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
7581 POINTER_PLUS_EXPR for pointers.
7583 2015-06-23 Alan Modra <amodra@gmail.com>
7585 * rtlanal.c (commutative_operand_precedence): Correct comments.
7586 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
7587 declaration. Return an int. Distinguish REG,REG return from
7589 (struct simplify_plus_minus_op_data): Make local to function.
7590 (simplify_plus_minus): Don't set canonicalized if merely sorting
7591 registers. Avoid packing ops if nothing changes. White space fixes.
7593 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
7595 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
7596 -fdump-ada-spec is passed but not if -fsyntax-only is.
7598 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
7601 * lra-lives.c (process_bb_lives): Check insn copying the same
7602 reload pseudo and don't create a copy for it.
7604 2015-06-22 Tom de Vries <tom@codesourcery.com>
7606 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
7609 2015-06-22 Tom de Vries <tom@codesourcery.com>
7611 * builtins.def (DEF_GOMP_BUILTIN): Test
7612 'flag_tree_parallelize_loops > 1' instead of
7613 'flag_tree_parallelize_loops'. Test flag_cilkplus.
7615 2015-06-22 Tom de Vries <tom@codesourcery.com>
7617 * dominance.c (calculate_dominance_info): Verify dominators if
7620 2015-06-22 Marek Polacek <polacek@redhat.com>
7622 * match.pd ((x ^ y) ^ (x | y) -> x & y,
7623 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
7624 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
7625 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
7627 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
7630 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
7631 cost of embedded comparison.
7633 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7636 * config/rs6000/predicates.md (altivec_register_operand): Permit
7637 virtual stack registers.
7638 (vsx_register_operand): Likewise.
7639 (vfloat_operand): Likewise.
7640 (vint_operand): Likewise.
7641 (vlogical_operand): Likewise.
7643 2015-06-22 Richard Biener <rguenther@suse.de>
7645 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
7646 and single_scalar_iteration_cost members.
7647 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
7648 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
7649 (vect_get_single_scalar_iteration_cost): Remove.
7650 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
7651 Use LOOP_VINFO_SCALAR_ITERATION_COST.
7652 * tree-vect-loop.c (destroy_loop_vec_info): Free
7654 (vect_get_single_scalar_iteration_cost): Compute result into
7655 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
7656 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
7657 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
7658 (vect_estimate_min_profitable_iters): Use them.
7660 2015-06-22 Christian Bruel <christian.bruel@st.com>
7663 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
7664 (TARGET_INSERT_ATTRIBUTES): Define.
7665 (thumb_flipper): New var.
7666 * config/arm/arm.opt (-mflip-thumb): New switch.
7668 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
7669 Martin Liska <mliska@suse.cz>
7672 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
7673 construction of arg_types.
7674 (sem_function::sem_function): Likewise.
7675 (sem_function::~sem_function): Remove destruction of arg_types.
7676 (sem_function::compatible_parm_types_p): New function.
7677 (sem_function::equals_wpa): Reorg matching of return values
7678 and parameter types.
7679 (sem_function::equals_private): Reorg mathcing of argument types.
7680 (sem_function::parse_tree_args): Remove.
7681 * ipa-icf.h (init_wpa): Do not call it.
7682 (parse_tree_args): Remove.
7683 (compatible_parm_types_p): Declare.
7684 (result_type): Remove.
7685 (arg_types): Remove.
7687 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
7690 * ipa-polymorphic-call.c
7691 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
7692 initializing alias oracle; fix formating; set base_alias_set if it
7695 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
7697 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
7698 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
7699 (find_inc): Likewise.
7700 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
7702 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
7703 * df-scan.c (df_swap_refs): Remove.
7704 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
7705 * dominance.c (link_roots): Use std::swap instead of manually swapping.
7706 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
7707 * fold-const.c (fold_relational_const): Likewise.
7708 * genattrtab.c (simplify_test_exp): Likewise.
7709 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
7710 gimple_simplify): Likewise.
7711 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
7712 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
7713 * ipa-devirt.c (add_type_duplicate): Likewise.
7714 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
7715 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
7716 * lra.c (lra_create_copy): Likewise.
7717 * lto-streamer-out.c (DFS::DFS): Likewise.
7718 * modulo-sched.c (get_sched_window): Likewise.
7719 * omega.c (omega_pretty_print_problem): Likewise.
7720 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
7721 * reload1.c (reloads_unique_chain_p): Likewise.
7722 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
7723 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
7725 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
7727 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
7728 predicate_mem_writes): Likewise.
7729 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
7730 * tree-predcom.c (combine_chains): Likewise.
7731 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
7732 refs_may_alias_p_1): Likewise.
7733 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
7734 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
7735 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
7736 number_of_iterations_cond): Likewise.
7737 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
7738 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
7739 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7740 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7741 * tree-vrp.c (extract_range_from_binary_expr_1,
7742 extract_range_from_unary_expr_1): Likewise.
7744 2015-06-20 Marek Polacek <polacek@redhat.com>
7746 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
7748 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
7751 * config/sh/sh.c (prepare_move_operands): Replace subreg
7752 index term with R0 for base and index addressing.
7754 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
7756 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
7758 (movsf_aarch64): Change condition from register_operand to
7759 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
7760 load1. Change type for alternative 7 to store1.
7761 (movdf_aarch64): Likewise.
7763 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
7765 * config/vax/vax.md: Adjust sign/zero extend patterns to
7766 handle SUBREGs in operands[1].
7768 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7770 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
7771 of manually swapping.
7772 (expand_vec_perm_interleave2): Likewise.
7774 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
7776 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
7777 reuse bounds created for abnormal ssa names.
7779 2015-06-19 Jakub Jelinek <jakub@redhat.com>
7781 * config/nvptx/nvptx.md (allocate_stack): Rename to...
7782 (allocate_stack_<mode>): ... this, and add :P on both
7783 match_operand and unspec.
7784 (allocate_stack): New expander.
7786 2015-06-19 Christian Bruel <christian.bruel@st.com>
7790 * config/arm/arm.c (arm_set_current_function): Handle
7791 explicit default options.
7793 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
7795 * config/i386/i386.md (*movsicc_noc_zext): New insn.
7796 (zero-extended cmove with mem peephole2): New pattern.
7797 (cmove with mem peephole2): Merge patterns.
7799 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
7801 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
7803 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
7805 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
7806 * config/mips/mips.md (*madd4<mode>): Ditto.
7807 (*nmadd3<mode>) Ditto.
7808 (*nmadd4<mode>_fastmath): Ditto.
7809 (*nmadd3<mode>_fastmath): Ditto.
7810 (*nmsub4<mode>): Ditto.
7811 (*nmsub3<mode>): Ditto.
7812 (*nmsub4<mode>_fastmath): Ditto.
7813 (*nmsub3<mode>_fastmath): Ditto.
7815 2015-06-18 Michael Matz <matz@suse.de>
7818 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
7819 grouped strided stores.
7820 (vectorizable_load): Don't use the DR from first_stmt in
7821 the non-SLP grouped strided case.
7823 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7826 * function.c (assign_bounds): Add arguments assign_regs,
7827 assign_special, assign_bt.
7828 (assign_parms): For vararg functions handle bounds in BT
7829 and special slots after incoming vararg bounds.
7831 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7834 * cfgexpand.c (expand_return): Handle missing bounds.
7835 (expand_gimple_stmt_1): Likewise.
7836 * tree-chkp.c (chkp_expand_zero_bounds): New.
7837 * tree-chkp.h (chkp_expand_zero_bounds): New.
7839 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7842 * ipa-chkp.c (chkp_maybe_create_clone): Require
7843 functions to be instrumentable.
7844 * tree-chkp.c (chkp_replace_function_pointer): Use
7845 chkp_instrumentable_p instead of attribute check.
7847 2015-06-18 Richard Biener <rguenther@suse.de>
7849 PR tree-optimization/66510
7850 * tree-vect-stmts.c (vectorizable_load): Properly compute the
7851 number of vector loads for SLP permuted loads.
7852 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
7853 check the stride for loop vectorization.
7854 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
7855 vectorization factor.
7856 (vect_analyze_group_access): If the group size is not a power
7857 of two require a epilogue loop.
7858 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
7859 compute and optimizing and alias test pruning after final
7860 vectorization factor computation.
7861 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
7863 (vect_transform_slp_perm_load): Properly compute the original
7864 number of vector load stmts.
7866 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
7868 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
7869 "unlikely character , in @var" warning.
7871 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
7873 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
7874 (ix86_function_arg_advance): Ditto.
7875 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
7877 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
7879 * function.h (struct rtl_data): Remove struct and accessor macros.
7880 * emit-rtl.h (struct rtl_data): Relocate to here.
7881 * Makefile.in (GTFILES): Add emit-rtl.h.
7882 * df-core.c: Include emit-rtl.h.
7883 * genattrtab.c: Likewise.
7884 * genconditions.c: Likewise.
7885 * genpreds.c: Likewise.
7886 * genrecog.c: Likewise.
7887 * regcprop.c: Likewise.
7888 * resource.c: Likewise.
7889 * sched-rgn.c: Likewise.
7890 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7891 * config/i386/winnt.c: Likewise.
7893 2015-06-17 Jakub Jelinek <jakub@redhat.com>
7896 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
7897 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
7898 and has_force_vectorize_loops flags from cfun into
7900 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
7901 if simduid is non-NULL.
7902 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
7903 * passes.def (pass_simduid_cleanup): Add new pass after loop
7905 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
7906 indirection from htab argument's type.
7907 (shrink_simd_arrays): New function.
7908 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
7909 Don't call adjust_simduid_builtins if there are no loops.
7910 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
7911 (pass_simduid_cleanup::execute): New method.
7912 (make_pass_simduid_cleanup): New function.
7914 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
7916 * tree-core.h (tree_target_option): Make opts field a pointer to a
7917 cl_target_option instead of an instance of the struct.
7918 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
7920 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
7922 (copy_node_stat): Allocate and copy struct cl_target_option.
7924 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
7926 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
7927 Remove conditional exposure of prototypes.
7928 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
7929 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
7930 definitions in tree.h with functions.
7931 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
7933 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
7935 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
7937 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
7938 (*cmp<mode>_signed): ... this.
7939 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
7940 (*cmp<mode>_unsigned): ... this. Remove %b.
7942 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
7944 * coretypes.h: Include input.h and as-a.h.
7945 * rtl.h: Include input.h and as-a.h for generator files.
7946 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
7947 * vec.c: Don't include diagnostic-core.h.
7948 * alias.c: Do not include input.h, line-map.h or is-a.h.
7950 * attribs.c: Likewise.
7951 * auto-inc-dec.c: Likewise.
7952 * auto-profile.c: Likewise.
7953 * bb-reorder.c: Likewise.
7954 * bt-load.c: Likewise.
7955 * builtins.c: Likewise.
7956 * caller-save.c: Likewise.
7957 * calls.c: Likewise.
7960 * cfganal.c: Likewise.
7961 * cfgbuild.c: Likewise.
7962 * cfgcleanup.c: Likewise.
7963 * cfgexpand.c: Likewise.
7964 * cfghooks.c: Likewise.
7965 * cfgloop.c: Likewise.
7966 * cfgloop.h: Likewise.
7967 * cfgloopanal.c: Likewise.
7968 * cfgloopmanip.c: Likewise.
7969 * cfgrtl.c: Likewise.
7970 * cgraph.c: Likewise.
7971 * cgraphbuild.c: Likewise.
7972 * cgraphclones.c: Likewise.
7973 * cgraphunit.c: Likewise.
7974 * cilk-common.c: Likewise.
7975 * combine-stack-adj.c: Likewise.
7976 * combine.c: Likewise.
7977 * compare-elim.c: Likewise.
7978 * convert.c: Likewise.
7979 * coverage.c: Likewise.
7980 * cppbuiltin.c: Likewise.
7981 * cprop.c: Likewise.
7983 * cselib.c: Likewise.
7984 * data-streamer-in.c: Likewise.
7985 * data-streamer-out.c: Likewise.
7986 * data-streamer.c: Likewise.
7987 * dbxout.c: Likewise.
7990 * debug.c: Likewise.
7991 * df-core.c: Likewise.
7992 * df-problems.c: Likewise.
7993 * df-scan.c: Likewise.
7996 * diagnostic-core.h: Likewise.
7997 * diagnostic.c: Likewise.
7998 * dojump.c: Likewise.
7999 * dominance.c: Likewise.
8000 * domwalk.c: Likewise.
8001 * double-int.c: Likewise.
8003 * dumpfile.c: Likewise.
8004 * dumpfile.h: Likewise.
8005 * dwarf2asm.c: Likewise.
8006 * dwarf2cfi.c: Likewise.
8007 * dwarf2out.c: Likewise.
8008 * emit-rtl.c: Likewise.
8009 * et-forest.c: Likewise.
8010 * except.c: Likewise.
8011 * explow.c: Likewise.
8012 * expmed.c: Likewise.
8014 * final.c: Likewise.
8015 * fixed-value.c: Likewise.
8016 * fold-const.c: Likewise.
8017 * function.c: Likewise.
8018 * fwprop.c: Likewise.
8019 * gcc-plugin.h: Likewise.
8021 * generic-match-head.c: Likewise.
8022 * ggc-page.c: Likewise.
8023 * gimple-builder.c: Likewise.
8024 * gimple-expr.c: Likewise.
8025 * gimple-fold.c: Likewise.
8026 * gimple-iterator.c: Likewise.
8027 * gimple-low.c: Likewise.
8028 * gimple-match-head.c: Likewise.
8029 * gimple-pretty-print.c: Likewise.
8030 * gimple-ssa-isolate-paths.c: Likewise.
8031 * gimple-ssa-strength-reduction.c: Likewise.
8032 * gimple-streamer-in.c: Likewise.
8033 * gimple-streamer-out.c: Likewise.
8034 * gimple-streamer.h: Likewise.
8035 * gimple-walk.c: Likewise.
8036 * gimple.c: Likewise.
8037 * gimplify-me.c: Likewise.
8038 * gimplify.c: Likewise.
8039 * godump.c: Likewise.
8040 * graph.c: Likewise.
8041 * graphite-blocking.c: Likewise.
8042 * graphite-dependences.c: Likewise.
8043 * graphite-interchange.c: Likewise.
8044 * graphite-isl-ast-to-gimple.c: Likewise.
8045 * graphite-optimize-isl.c: Likewise.
8046 * graphite-poly.c: Likewise.
8047 * graphite-scop-detection.c: Likewise.
8048 * graphite-sese-to-poly.c: Likewise.
8049 * graphite.c: Likewise.
8050 * haifa-sched.c: Likewise.
8051 * hw-doloop.c: Likewise.
8052 * ifcvt.c: Likewise.
8053 * init-regs.c: Likewise.
8054 * input.c: Likewise.
8055 * internal-fn.c: Likewise.
8056 * ipa-chkp.c: Likewise.
8057 * ipa-comdats.c: Likewise.
8058 * ipa-cp.c: Likewise.
8059 * ipa-devirt.c: Likewise.
8060 * ipa-icf-gimple.c: Likewise.
8061 * ipa-icf.c: Likewise.
8062 * ipa-inline-analysis.c: Likewise.
8063 * ipa-inline-transform.c: Likewise.
8064 * ipa-inline.c: Likewise.
8065 * ipa-polymorphic-call.c: Likewise.
8066 * ipa-profile.c: Likewise.
8067 * ipa-prop.c: Likewise.
8068 * ipa-pure-const.c: Likewise.
8069 * ipa-ref.c: Likewise.
8070 * ipa-reference.c: Likewise.
8071 * ipa-split.c: Likewise.
8072 * ipa-utils.c: Likewise.
8073 * ipa-visibility.c: Likewise.
8075 * ira-build.c: Likewise.
8076 * ira-color.c: Likewise.
8077 * ira-conflicts.c: Likewise.
8078 * ira-costs.c: Likewise.
8079 * ira-emit.c: Likewise.
8080 * ira-lives.c: Likewise.
8083 * langhooks.c: Likewise.
8085 * loop-doloop.c: Likewise.
8086 * loop-init.c: Likewise.
8087 * loop-invariant.c: Likewise.
8088 * loop-iv.c: Likewise.
8089 * loop-unroll.c: Likewise.
8090 * lower-subreg.c: Likewise.
8091 * lra-assigns.c: Likewise.
8092 * lra-coalesce.c: Likewise.
8093 * lra-constraints.c: Likewise.
8094 * lra-eliminations.c: Likewise.
8095 * lra-lives.c: Likewise.
8096 * lra-remat.c: Likewise.
8097 * lra-spills.c: Likewise.
8099 * lto-cgraph.c: Likewise.
8100 * lto-compress.c: Likewise.
8101 * lto-opts.c: Likewise.
8102 * lto-section-in.c: Likewise.
8103 * lto-section-out.c: Likewise.
8104 * lto-streamer-in.c: Likewise.
8105 * lto-streamer-out.c: Likewise.
8106 * lto-streamer.c: Likewise.
8108 * mode-switching.c: Likewise.
8109 * modulo-sched.c: Likewise.
8110 * omega.c: Likewise.
8111 * omp-low.c: Likewise.
8112 * optabs.c: Likewise.
8113 * opts-global.c: Likewise.
8115 * passes.c: Likewise.
8116 * plugin.c: Likewise.
8117 * postreload-gcse.c: Likewise.
8118 * postreload.c: Likewise.
8119 * predict.c: Likewise.
8120 * pretty-print.h: Likewise.
8121 * print-rtl.c: Likewise.
8122 * print-tree.c: Likewise.
8123 * profile.c: Likewise.
8125 * realmpfr.c: Likewise.
8126 * recog.c: Likewise.
8128 * reg-stack.c: Likewise.
8129 * regcprop.c: Likewise.
8130 * reginfo.c: Likewise.
8131 * regrename.c: Likewise.
8132 * regstat.c: Likewise.
8133 * reload.c: Likewise.
8134 * reload1.c: Likewise.
8135 * reorg.c: Likewise.
8136 * resource.c: Likewise.
8137 * rtl-chkp.c: Likewise.
8138 * rtl-error.c: Likewise.
8139 * rtlanal.c: Likewise.
8140 * rtlhooks.c: Likewise.
8141 * sanopt.c: Likewise.
8142 * sched-deps.c: Likewise.
8143 * sched-ebb.c: Likewise.
8144 * sched-rgn.c: Likewise.
8145 * sched-vis.c: Likewise.
8146 * sdbout.c: Likewise.
8147 * sel-sched-dump.c: Likewise.
8148 * sel-sched-ir.c: Likewise.
8149 * sel-sched.c: Likewise.
8151 * shrink-wrap.c: Likewise.
8152 * simplify-rtx.c: Likewise.
8153 * stack-ptr-mod.c: Likewise.
8154 * statistics.c: Likewise.
8156 * stor-layout.c: Likewise.
8157 * store-motion.c: Likewise.
8158 * streamer-hooks.c: Likewise.
8159 * stringpool.c: Likewise.
8160 * symtab.c: Likewise.
8161 * target-globals.c: Likewise.
8162 * targhooks.c: Likewise.
8163 * toplev.c: Likewise.
8164 * tracer.c: Likewise.
8165 * trans-mem.c: Likewise.
8166 * tree-affine.c: Likewise.
8167 * tree-browser.c: Likewise.
8168 * tree-call-cdce.c: Likewise.
8169 * tree-cfg.c: Likewise.
8170 * tree-cfgcleanup.c: Likewise.
8171 * tree-chkp-opt.c: Likewise.
8172 * tree-chkp.c: Likewise.
8173 * tree-chrec.c: Likewise.
8174 * tree-complex.c: Likewise.
8175 * tree-data-ref.c: Likewise.
8176 * tree-dfa.c: Likewise.
8177 * tree-diagnostic.c: Likewise.
8178 * tree-dump.c: Likewise.
8179 * tree-eh.c: Likewise.
8180 * tree-emutls.c: Likewise.
8181 * tree-if-conv.c: Likewise.
8182 * tree-inline.c: Likewise.
8183 * tree-into-ssa.c: Likewise.
8184 * tree-iterator.c: Likewise.
8185 * tree-loop-distribution.c: Likewise.
8186 * tree-nested.c: Likewise.
8187 * tree-nrv.c: Likewise.
8188 * tree-object-size.c: Likewise.
8189 * tree-outof-ssa.c: Likewise.
8190 * tree-parloops.c: Likewise.
8191 * tree-phinodes.c: Likewise.
8192 * tree-predcom.c: Likewise.
8193 * tree-pretty-print.c: Likewise.
8194 * tree-profile.c: Likewise.
8195 * tree-scalar-evolution.c: Likewise.
8196 * tree-sra.c: Likewise.
8197 * tree-ssa-address.c: Likewise.
8198 * tree-ssa-alias.c: Likewise.
8199 * tree-ssa-ccp.c: Likewise.
8200 * tree-ssa-coalesce.c: Likewise.
8201 * tree-ssa-copy.c: Likewise.
8202 * tree-ssa-copyrename.c: Likewise.
8203 * tree-ssa-dce.c: Likewise.
8204 * tree-ssa-dom.c: Likewise.
8205 * tree-ssa-dse.c: Likewise.
8206 * tree-ssa-forwprop.c: Likewise.
8207 * tree-ssa-ifcombine.c: Likewise.
8208 * tree-ssa-live.c: Likewise.
8209 * tree-ssa-loop-ch.c: Likewise.
8210 * tree-ssa-loop-im.c: Likewise.
8211 * tree-ssa-loop-ivcanon.c: Likewise.
8212 * tree-ssa-loop-ivopts.c: Likewise.
8213 * tree-ssa-loop-manip.c: Likewise.
8214 * tree-ssa-loop-niter.c: Likewise.
8215 * tree-ssa-loop-prefetch.c: Likewise.
8216 * tree-ssa-loop-unswitch.c: Likewise.
8217 * tree-ssa-loop.c: Likewise.
8218 * tree-ssa-math-opts.c: Likewise.
8219 * tree-ssa-operands.c: Likewise.
8220 * tree-ssa-phiopt.c: Likewise.
8221 * tree-ssa-phiprop.c: Likewise.
8222 * tree-ssa-pre.c: Likewise.
8223 * tree-ssa-propagate.c: Likewise.
8224 * tree-ssa-reassoc.c: Likewise.
8225 * tree-ssa-sccvn.c: Likewise.
8226 * tree-ssa-scopedtables.c: Likewise.
8227 * tree-ssa-sink.c: Likewise.
8228 * tree-ssa-strlen.c: Likewise.
8229 * tree-ssa-structalias.c: Likewise.
8230 * tree-ssa-tail-merge.c: Likewise.
8231 * tree-ssa-ter.c: Likewise.
8232 * tree-ssa-threadedge.c: Likewise.
8233 * tree-ssa-threadupdate.c: Likewise.
8234 * tree-ssa-uncprop.c: Likewise.
8235 * tree-ssa-uninit.c: Likewise.
8236 * tree-ssa.c: Likewise.
8237 * tree-ssanames.c: Likewise.
8238 * tree-stdarg.c: Likewise.
8239 * tree-streamer-in.c: Likewise.
8240 * tree-streamer-out.c: Likewise.
8241 * tree-streamer.c: Likewise.
8242 * tree-switch-conversion.c: Likewise.
8243 * tree-tailcall.c: Likewise.
8244 * tree-vect-data-refs.c: Likewise.
8245 * tree-vect-generic.c: Likewise.
8246 * tree-vect-loop-manip.c: Likewise.
8247 * tree-vect-loop.c: Likewise.
8248 * tree-vect-patterns.c: Likewise.
8249 * tree-vect-slp.c: Likewise.
8250 * tree-vect-stmts.c: Likewise.
8251 * tree-vectorizer.c: Likewise.
8252 * tree-vrp.c: Likewise.
8255 * ubsan.c: Likewise.
8256 * valtrack.c: Likewise.
8257 * value-prof.c: Likewise.
8258 * var-tracking.c: Likewise.
8259 * varasm.c: Likewise.
8260 * varpool.c: Likewise.
8261 * vmsdbgout.c: Likewise.
8262 * vtable-verify.c: Likewise.
8264 * wide-int.cc: Likewise.
8265 * xcoffout.c: Likewise.
8266 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
8267 * common/common-targhooks.c: Likewise.
8268 * config/aarch64/aarch64-builtins.c: Likewise.
8269 * config/aarch64/aarch64.c: Likewise.
8270 * config/alpha/alpha.c: Likewise.
8271 * config/arc/arc.c: Likewise.
8272 * config/arm/aarch-common.c: Likewise.
8273 * config/arm/arm-builtins.c: Likewise.
8274 * config/arm/arm-c.c: Likewise.
8275 * config/arm/arm.c: Likewise.
8276 * config/avr/avr-c.c: Likewise.
8277 * config/avr/avr-log.c: Likewise.
8278 * config/avr/avr.c: Likewise.
8279 * config/bfin/bfin.c: Likewise.
8280 * config/c6x/c6x.c: Likewise.
8281 * config/cr16/cr16.c: Likewise.
8282 * config/cris/cris.c: Likewise.
8283 * config/darwin-c.c: Likewise.
8284 * config/darwin.c: Likewise.
8285 * config/default-c.c: Likewise.
8286 * config/epiphany/epiphany.c: Likewise.
8287 * config/epiphany/mode-switch-use.c: Likewise.
8288 * config/epiphany/resolve-sw-modes.c: Likewise.
8289 * config/fr30/fr30.c: Likewise.
8290 * config/frv/frv.c: Likewise.
8291 * config/ft32/ft32.c: Likewise.
8292 * config/glibc-c.c: Likewise.
8293 * config/h8300/h8300.c: Likewise.
8294 * config/i386/i386-c.c: Likewise.
8295 * config/i386/i386.c: Likewise.
8296 * config/i386/msformat-c.c: Likewise.
8297 * config/i386/winnt-cxx.c: Likewise.
8298 * config/i386/winnt-stubs.c: Likewise.
8299 * config/i386/winnt.c: Likewise.
8300 * config/ia64/ia64-c.c: Likewise.
8301 * config/ia64/ia64.c: Likewise.
8302 * config/iq2000/iq2000.c: Likewise.
8303 * config/lm32/lm32.c: Likewise.
8304 * config/m32c/m32c-pragma.c: Likewise.
8305 * config/m32c/m32c.c: Likewise.
8306 * config/m32r/m32r.c: Likewise.
8307 * config/m68k/m68k.c: Likewise.
8308 * config/mcore/mcore.c: Likewise.
8309 * config/mep/mep-pragma.c: Likewise.
8310 * config/mep/mep.c: Likewise.
8311 * config/microblaze/microblaze-c.c: Likewise.
8312 * config/microblaze/microblaze.c: Likewise.
8313 * config/mips/mips.c: Likewise.
8314 * config/mmix/mmix.c: Likewise.
8315 * config/mn10300/mn10300.c: Likewise.
8316 * config/moxie/moxie.c: Likewise.
8317 * config/msp430/msp430-c.c: Likewise.
8318 * config/msp430/msp430.c: Likewise.
8319 * config/nds32/nds32-cost.c: Likewise.
8320 * config/nds32/nds32-fp-as-gp.c: Likewise.
8321 * config/nds32/nds32-intrinsic.c: Likewise.
8322 * config/nds32/nds32-isr.c: Likewise.
8323 * config/nds32/nds32-md-auxiliary.c: Likewise.
8324 * config/nds32/nds32-memory-manipulation.c: Likewise.
8325 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8326 * config/nds32/nds32-predicates.c: Likewise.
8327 * config/nds32/nds32.c: Likewise.
8328 * config/nios2/nios2.c: Likewise.
8329 * config/nvptx/nvptx.c: Likewise.
8330 * config/pa/pa.c: Likewise.
8331 * config/pdp11/pdp11.c: Likewise.
8332 * config/rl78/rl78-c.c: Likewise.
8333 * config/rl78/rl78.c: Likewise.
8334 * config/rs6000/rs6000-c.c: Likewise.
8335 * config/rs6000/rs6000.c: Likewise.
8336 * config/rx/rx.c: Likewise.
8337 * config/s390/s390-c.c: Likewise.
8338 * config/s390/s390.c: Likewise.
8339 * config/sh/sh-c.c: Likewise.
8340 * config/sh/sh-mem.cc: Likewise.
8341 * config/sh/sh.c: Likewise.
8342 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8343 * config/sh/sh_treg_combine.cc: Likewise.
8344 * config/sol2-c.c: Likewise.
8345 * config/sol2-cxx.c: Likewise.
8346 * config/sol2-stubs.c: Likewise.
8347 * config/sol2.c: Likewise.
8348 * config/sparc/sparc-c.c: Likewise.
8349 * config/sparc/sparc.c: Likewise.
8350 * config/spu/spu-c.c: Likewise.
8351 * config/spu/spu.c: Likewise.
8352 * config/stormy16/stormy16.c: Likewise.
8353 * config/tilegx/mul-tables.c: Likewise.
8354 * config/tilegx/tilegx-c.c: Likewise.
8355 * config/tilegx/tilegx.c: Likewise.
8356 * config/tilepro/mul-tables.c: Likewise.
8357 * config/tilepro/tilepro-c.c: Likewise.
8358 * config/tilepro/tilepro.c: Likewise.
8359 * config/v850/v850-c.c: Likewise.
8360 * config/v850/v850.c: Likewise.
8361 * config/vax/vax.c: Likewise.
8362 * config/visium/visium.c: Likewise.
8363 * config/vms/vms-c.c: Likewise.
8364 * config/vms/vms.c: Likewise.
8365 * config/vxworks.c: Likewise.
8366 * config/winnt-c.c: Likewise.
8367 * config/xtensa/xtensa.c: Likewise.
8369 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
8371 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
8373 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
8375 2015-06-17 Richard Biener <rguenther@suse.de>
8377 PR tree-optimization/66251
8378 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
8379 stmts for SLP strided stores.
8382 2015-05-22 Richard Biener <rguenther@suse.de>
8384 PR tree-optimization/66251
8385 * tree-vect-stmts.c (vectorizable_conversion): Properly
8386 set STMT_VINFO_VEC_STMT even for the SLP case.
8388 2015-05-26 Michael Matz <matz@suse.de>
8391 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
8392 STMT_VINFO_VEC_STMT, also with SLP.
8394 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
8397 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
8398 (*avx_addsubv4df3_1s): Ditto.
8399 (*sse3_addsubv2df3_1): Ditto.
8400 (*sse3_addsubv2df3_1s): Ditto.
8401 (*avx_addsubv8sf3_1): Ditto.
8402 (*avx_addsubv8sf3_1s): Ditto.
8403 (*sse3_addsubv4sf3_1): Ditto.
8404 (*sse3_addsubv4sf3_1s): Ditto.
8406 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
8408 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
8409 (SYSROOT_SUFFIX_SPEC): Update.
8410 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
8411 (STARTFILE_PREFIX_SPEC): Update.
8412 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
8413 (MULTILIB_REQUIRED): New.
8414 (MULTILIB_OSDIRNAMES): New.
8415 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
8416 (MULTILIB_REQUIRED): New.
8417 (MULTILIB_OSDIRNAMES): New.
8419 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
8421 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
8422 * config/aarch64/aarch64-options-extensions.def: Update "fP",
8423 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
8424 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
8425 (AARCH64_FL_PAN): New.
8426 (AARCH64_FL_LOR): New.
8427 (AARCH64_FL_RDMA): New.
8428 (AARCH64_FL_FOR_ARCH8_1): New.
8429 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
8430 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
8432 2015-06-16 Martin Liska <mliska@suse.cz>
8434 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
8435 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
8438 2015-06-16 Richard Biener <rguenther@suse.de>
8440 * tree-vect-stmts.c (vectorizable_store): Adjust.
8441 (vectorizable_load): Likewise.
8442 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8444 (vect_create_data_ref_ptr): Likewise.
8445 (bump_vector_ptr): Adjust.
8447 2015-06-16 Richard Biener <rguenther@suse.de>
8449 * tree-vect-stmts.c (vectorizable_load): Properly start loads
8450 with the first element if this is grouped loads.
8452 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
8454 * config/arm/arm-protos.h (struct tune_params): Rename
8455 log_op_non_sc to log_op_non_short_circuit, and rename enum
8456 values to expand SC to SHORT_CIRCUIT.
8457 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
8458 to LOG_OP_NON_SHORT_CIRCUIT.
8459 (arm_fastmul_tune):Likewise
8460 (arm_strongarm_tune): Likewise.
8461 (arm_xscale_tune): Likewise.
8462 (arm_9e_tune): Likewise.
8463 (arm_marvell_pj4_tune): Likewise.
8464 (arm_v6t2_tune): Likewise.
8465 (arm_cortex_tune): Likewise.
8466 (arm_cortex_a8_tune): Likewise.
8467 (arm_cortex_a7_tune): Likewise.
8468 (arm_cortex_a15_tune): Likewise.
8469 (arm_cortex_a53_tune): Likewise.
8470 (arm_cortex_a57_tune): Likewise.
8471 (arm_xgene1_tune): Likewise.
8472 (arm_cortex_a5_tune): Likewise.
8473 (arm_cortex_a9_tune): Likewise.
8474 (arm_cortex_a12_tune): Likewise.
8475 (arm_v7m_tune): Likewise.
8476 (arm_cortex_m7_tune): Likewise.
8477 (arm_v6m_tune): Likewise.
8478 (arm_fa726te_tune): Likewise.
8480 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
8482 * altivec.md: Delete UNSPEC_VMLADDUHM.
8483 (mulv4si3_p8): New pattern.
8484 (mulv4si3): Use it for POWER8.
8485 (mulv8hi3): Use vmladduhm with zero addend.
8486 (altivec_vmladduhm): Descriptive RTL.
8488 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
8490 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
8491 to use neon_move instead of mov_imm.
8492 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
8493 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
8495 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
8496 aarch64_float_const_zero_rtx_p check before TFmode check.
8497 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
8499 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
8500 code and attributes to match. Change condition from register_operand
8501 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
8502 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
8505 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
8508 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
8511 2015-06-14 Shiva Chen <shiva0217@gmail.com>
8513 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
8514 HOST_WIDE_INT parameter.
8516 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
8519 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
8520 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
8522 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8524 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
8526 * rtl.h (classify_insn): Declare.
8527 * emit-rtl.c (classify_insn): Move to...
8528 * rtl.c: ...here and add generator support.
8529 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
8530 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
8531 * genemit.c (gen_emit_seq): New function.
8532 (gen_expand, gen_split): Use it.
8534 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
8536 * tree.c (make_vector_stat): Fix comment to state that the
8537 function returns a VECTOR_CST.
8539 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
8541 * gensupport.h (add_implicit_parallel): Declare.
8542 * genrecog.c (add_implicit_parallel): Move to...
8543 * gensupport.c (add_implicit_parallel): ...here.
8544 (process_one_cond_exec): Use it.
8545 * genemit.c (gen_insn): Likewise.
8547 2015-06-13 Iain Sandoe <iain@codesourcery.com>
8550 * passes.c (rest_of_decl_compilation): Do not register globals for
8551 early debug if they are declared in built-ins.
8553 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
8555 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
8557 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8559 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
8561 (noce_try_cmove_arith): Likewise.
8562 (noce_get_alt_condition): Likewise.
8564 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8566 * common/config/i386/i386-common.c
8567 (OPTION_MASK_ISA_MWAITX_SET): New.
8568 (ix86_handle_option): Handle mwaitx.
8569 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
8570 (x86_64-*-*): Likewise.
8571 * config/i386/mwaitxintrin.h: New header.
8572 * config/i386/cpuid.h (bit_MWAITX): Define.
8573 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8575 * config/i386/i386.opt (mwaitx): New.
8576 * config/i386/i386-builtin-types.def
8577 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
8578 * config/i386/i386-c.c: Define __MWAITX__ if needed.
8579 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
8581 (ix86_option_override_internal): Handle new option.
8582 (processor_alias_table): Added PTA_MWAITX.
8583 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
8584 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
8585 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
8586 IX86_BUILTIN_MONITORX built-ins.
8587 * config/i386/i386.h (TARGET_MWAITX): New.
8588 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
8590 (mwaitx): New pattern.
8591 (monitorx_<mode>): New pattern.
8592 * config/i386/x86intrin.h: Include mwaitxintrin.h.
8593 * doc/extend.texi: Document monitorx and mwaitx builtins.
8594 * doc/invoke.texi: Document -mmwaitx option.
8596 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
8598 * emit-rtl.c (need_atomic_barrier_p): Mask model with
8599 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
8601 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
8603 * dbxout.c (xcoff_debug_hooks): Provide a function for
8604 register_main_translation_unit hook.
8606 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
8608 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
8609 variants cases from switch.
8610 (rs6000_post_atomic_barrier): Same.
8611 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
8612 (rs6000_expand_atomic_exchange): Same.
8613 (rs6000_expand_atomic_op): Same.
8614 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
8615 SYNC variants cases from switch.
8616 (atomic_load): Same.
8617 (atomic_store): Same.
8619 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
8621 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
8624 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
8627 * dwarf2out.c (check_die): Check for common duplicate attributes.
8628 (add_location_or_const_value_attribute): Do not add duplicate
8630 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
8632 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
8633 (gen_type_die_with_usage): Call check_die.
8634 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
8636 2015-06-11 Jason Merrill <jason@redhat.com>
8638 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
8641 2015-06-11 Marek Polacek <polacek@redhat.com>
8643 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
8645 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
8648 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
8649 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
8650 (*addx_extend_sp32): Fix pasto.
8651 (*subx_extend): Rename into...
8652 (*subx_extend_sp32): ...this.
8653 (*adddi3_extend_sp32): Add earlyclobber.
8654 (*subdi3_insn_sp32): Likewise.
8655 (*subdi3_extend_sp32): Likewise.
8656 (*and_not_di_sp32): Likewise.
8657 (*or_not_di_sp32): Likewise.
8658 (*xor_not_di_sp32): Likewise.
8659 (*negdi2_sp32): Likewise.
8660 (*one_cmpldi2_sp32): Likewise.
8662 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
8664 * debug.h (struct gcc_debug_hooks): Add a
8665 register_main_translation_unit hook.
8666 * debug.c (do_nothing_debug_hooks): Provide a function for this
8668 * dbxout.c (dbx_debug_hooks): Likewise.
8669 * sdbout.c (sdb_debug_hooks): Likewise.
8670 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8671 * dwarf2out.c (main_translation_unit): New global variable.
8672 (dwarf2out_register_main_translation_unit): New function
8673 implementing the new hook.
8674 (dwarf2_debug_hooks): Assign
8675 dwarf2out_register_main_translation_unit to this new hook.
8676 (dwarf2out_init): Associate any main translation unit to
8679 2015-06-11 Marek Polacek <polacek@redhat.com>
8681 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
8683 2015-06-11 Marek Polacek <polacek@redhat.com>
8685 * match.pd: Use single_use throughout.
8687 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8689 * config/arm/arm.c (arm_option_params_internal): When optimising
8690 for speed set max_insns_skipped when arm_restrict_it.
8692 2015-06-11 Christian Bruel <christian.bruel@st.com>
8695 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
8697 (arm_cpu_builtins): New function.
8698 (arm_pragma_target_parse): Call arm_cpu_builtins.
8699 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
8700 (arm_register_target_pragmas): Likewise.
8701 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
8702 Call arm_register_target_pragmas.
8703 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
8704 (arm_pragma_target_parse): Likewise.
8706 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
8708 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
8709 of the second operand.
8711 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
8714 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
8715 to prepare mask operand for AVX512 modes.
8717 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
8720 * doc/md.texi (Machine Constraints): Document that on the PowerPC
8721 if you use a constraint that targets a VSX register, you must use
8722 %x<n> in the template.
8724 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
8726 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
8727 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
8728 (define_insn "trap"): New definition.
8730 2015-06-10 Richard Biener <rguenther@suse.de>
8732 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
8734 (vect_supported_load_permutation_p): ... here. Handle
8735 supportable permutations in reductions.
8736 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
8737 for vectorizing strided group loads.
8739 2015-06-10 Jakub Jelinek <jakub@redhat.com>
8742 * config/i386/i386.c (ix86_split_long_move): For collisions
8743 involving direct tls segment refs, move the UNSPEC_TP possibly
8744 wrapped in ZERO_EXTEND out of the address for lea, to each of
8747 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8749 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
8750 dmb sy. Adjust tabs.
8752 2015-06-10 Tom de Vries <tom@codesourcery.com>
8754 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
8756 2015-06-10 Martin Liska <mliska@suse.cz>
8759 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
8760 all enum values in mem_alloc_origin.
8761 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
8763 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
8764 * bitmap.c (bitmap_register): Likewise.
8765 (dump_bitmap_statistics): Likewise.
8766 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
8767 (ggc_record_overhead): Likewise.
8768 * hash-map.h: Likewise.
8769 * hash-set.h: Likewise.
8770 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
8771 * hash-table.h: Likewise.
8772 * vec.c (vec_prefix::register_overhead): Likewise.
8773 (vec_prefix::release_overhead): Likewise.
8774 (dump_vec_loc_statistics): Likewise.
8776 2015-06-09 Christian Bruel <christian.bruel@st.com>
8779 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
8780 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
8781 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
8782 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
8783 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
8784 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
8785 (arm_valid_target_attribute_p): Likewise.
8786 (arm_set_current_function, arm_can_inline_p): Likewise.
8787 (arm_valid_target_attribute_rec): Likewise.
8788 (arm_previous_fndecl): New variable.
8789 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
8790 (TARGET_CAN_INLINE_P): Define.
8791 (arm_asm_trampoline_template): Emit mode.
8792 (arm_file_start): Don't set unified syntax.
8793 (arm_declare_function_name): Set unified syntax and mode.
8794 (arm_option_override): Init target_option_default_node.
8795 and target_option_current_node.
8796 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
8797 (*call_symbol): Likewise.
8798 * doc/extend.texi: Document ARM/Thumb target attribute.
8799 * doc/invoke.texi: Likewise.
8801 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8804 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8805 PR rtl-optimization/64164
8806 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8807 * tree-ssa-copyrename.c: Removed.
8808 * opts.c (default_options_table): Drop -ftree-copyrename. Add
8809 -ftree-coalesce-vars.
8810 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8811 * common.opt (ftree-copyrename): Ignore.
8812 (ftree-coalesce-inlined-vars): Likewise.
8813 * doc/invoke.texi: Remove the ignored options above.
8814 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8815 * tree-ssa-coalesce.h: ... here.
8816 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8817 headers required by it.
8818 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8819 across variables when flag_tree_coalesce_vars. Check register
8820 use and promoted modes to allow coalescing. Moved to
8821 tree-ssa-coalesce.c.
8822 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8823 with its member functions to tree-ssa-coalesce.c.
8824 (var_map_base_init): Likewise. Renamed to
8825 compute_samebase_partition_bases.
8826 (partition_view_normal): Drop want_bases parameter.
8827 (partition_view_bitmap): Likewise.
8828 * tree-ssa-live.h: Adjust declarations.
8829 * tree-ssa-coalesce.c: Include explow.h.
8830 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8831 default defs at the entry point.
8832 (dump_part_var_map): New.
8833 (compute_optimized_partition_bases): New, called by...
8834 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8835 of compute_samebase_partition_bases. Adjust.
8836 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8837 * cfgexpand.c (leader_merge): New.
8838 (get_rtl_for_parm_ssa_default_def): New.
8839 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8840 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8841 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
8842 redundant MEM attr setting.
8843 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
8845 (expand_one_stack_var): ... this. New wrapper to check and
8846 skip already expanded SSA partitions.
8847 (record_alignment_for_reg_var): New, factored out of...
8848 (expand_one_var): ... this.
8849 (expand_one_ssa_partition): New.
8850 (adjust_one_expanded_partition_var): New.
8851 (expand_one_register_var): Check and skip already expanded SSA
8853 (expand_used_vars): Don't create DECLs for anonymous SSA
8854 names. Expand all SSA partitions, then adjust all SSA names.
8855 (pass::execute): Replace the loops that set
8856 SA.partition_to_pseudo from partition leaders and cleared
8857 DECL_RTL for multi-location variables, and that which used to
8858 rename vars and set attrs, with one that clears DECL_RTL and
8859 checks that PARMs and RESULTs default_defs match DECL_RTL.
8860 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8861 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
8862 * explow.c (promote_ssa_mode): New.
8863 * explow.h (promote_ssa_mode): Declare.
8864 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8865 * function.c: Include cfgexpand.h.
8866 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8867 (use_register_for_parm_decl): Wrapper for the above to
8868 special-case the result_ptr.
8869 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8870 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8872 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8873 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
8874 (assign_parm_setup_block): Prefer SSA-assigned location.
8875 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
8876 if stack_parm is NULL.
8877 (assign_parm_setup_stack): Prefer SSA-assigned location.
8878 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
8879 rtl before testing for pointer bounds. Special-case result_ptr.
8880 (expand_function_start): Maybe reset DECL_RTL of result.
8881 Prefer SSA-assigned location for result and static chain.
8882 Factor out DECL_RESULT and SET_DECL_RTL.
8883 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8884 anonymous SSA names. Use promote_ssa_mode.
8885 (get_temp_reg): Likewise.
8886 (remove_ssa_form): Adjust.
8887 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8888 and get its reg_usage for reg invalidation.
8889 (compute_bb_dataflow): Pass it insn.
8890 (emit_notes_in_bb): Likewise.
8891 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
8892 fail assert on conversion between unsigned types.
8894 2015-06-09 Tom de Vries <tom@codesourcery.com>
8896 PR tree-optimization/65460
8897 * omp-low.c (expand_omp_target): Set parallelized_function on
8898 cgraph_node for child_fn.
8900 2015-06-09 Tom de Vries <tom@codesourcery.com>
8902 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
8903 parallelized_function before add_new_function.
8905 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
8907 * gcc-plugin.h: Move decls to plugin.h and include it.
8908 * plugin.h: Relocate decls from gcc-plugin.h
8909 * ggc-page.c: Include required header files.
8910 * passes.c: Likewise.
8911 * cgraphunit.c: Likewise.
8913 2015-06-09 Tom de Vries <tom@codesourcery.com>
8915 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
8917 2015-06-09 Jason Merrill <jason@redhat.com>
8920 * toplev.c (check_global_declaration): Don't warn about a clone.
8922 2015-06-09 Marek Polacek <polacek@redhat.com>
8924 PR tree-optimization/66299
8925 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
8926 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
8929 2015-06-09 Richard Biener <rguenther@suse.de>
8931 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
8932 (vect_analyze_slp_instance): Instead do not falsely drop
8935 2015-06-09 Richard Biener <rguenther@suse.de>
8938 * match.pd: Handle A % (unsigned)(1 << B).
8940 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
8942 * varasm.c (output_object_block_htab): Remove.
8943 (output_object_block_compare): New.
8944 (output_object_blocks): Sort named object_blocks before outputting
8947 2015-06-09 Richard Biener <rguenther@suse.de>
8949 PR tree-optimization/66419
8950 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
8951 consider GROUP_GAP when detecting a perfect subchain.
8953 2015-06-09 Nick Clifton <nickc@redhat.com>
8955 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
8956 place read only data in the .frodata section.
8958 2015-06-09 Shiva Chen <shiva0217@gmail.com>
8960 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
8961 (atomic_store<mode>): Likewise.
8963 2015-06-09 Richard Biener <rguenther@suse.de>
8965 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
8967 2015-06-09 Richard Biener <rguenther@suse.de>
8970 * tree-inline.c (insert_init_debug_bind): Unshare value.
8972 2015-06-09 Richard Biener <rguenther@suse.de>
8974 PR tree-optimization/66396
8975 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
8976 Rename virtual operands.
8978 2015-06-09 Tom de Vries <tom@codesourcery.com>
8980 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
8981 always return false.
8983 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8985 PR rtl-optimization/64164
8986 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8987 * tree-ssa-copyrename.c: Removed.
8988 * opts.c (default_options_table): Drop -ftree-copyrename. Add
8989 -ftree-coalesce-vars.
8990 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8991 * common.opt (ftree-copyrename): Ignore.
8992 (ftree-coalesce-inlined-vars): Likewise.
8993 * doc/invoke.texi: Remove the ignored options above.
8994 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8995 * tree-ssa-coalesce.h: ... here.
8996 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8997 headers required by it.
8998 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8999 across variables when flag_tree_coalesce_vars. Check register
9000 use and promoted modes to allow coalescing. Moved to
9001 tree-ssa-coalesce.c.
9002 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9003 with its member functions to tree-ssa-coalesce.c.
9004 (var_map_base_init): Likewise. Renamed to
9005 compute_samebase_partition_bases.
9006 (partition_view_normal): Drop want_bases parameter.
9007 (partition_view_bitmap): Likewise.
9008 * tree-ssa-live.h: Adjust declarations.
9009 * tree-ssa-coalesce.c: Include explow.h.
9010 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9011 default defs at the entry point.
9012 (dump_part_var_map): New.
9013 (compute_optimized_partition_bases): New, called by...
9014 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9015 of compute_samebase_partition_bases. Adjust.
9016 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9017 * cfgexpand.c (leader_merge): New.
9018 (get_rtl_for_parm_ssa_default_def): New.
9019 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9020 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9021 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9022 redundant MEM attr setting.
9023 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9025 (expand_one_stack_var): ... this. New wrapper to check and
9026 skip already expanded SSA partitions.
9027 (record_alignment_for_reg_var): New, factored out of...
9028 (expand_one_var): ... this.
9029 (expand_one_ssa_partition): New.
9030 (adjust_one_expanded_partition_var): New.
9031 (expand_one_register_var): Check and skip already expanded SSA
9033 (expand_used_vars): Don't create DECLs for anonymous SSA
9034 names. Expand all SSA partitions, then adjust all SSA names.
9035 (pass::execute): Replace the loops that set
9036 SA.partition_to_pseudo from partition leaders and cleared
9037 DECL_RTL for multi-location variables, and that which used to
9038 rename vars and set attrs, with one that clears DECL_RTL and
9039 checks that PARMs and RESULTs default_defs match DECL_RTL.
9040 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9041 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9042 * explow.c (promote_ssa_mode): New.
9043 * explow.h (promote_ssa_mode): Declare.
9044 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9045 * function.c: Include cfgexpand.h.
9046 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9047 (use_register_for_parm_decl): Wrapper for the above to
9048 special-case the result_ptr.
9049 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9050 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9052 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9053 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9054 (assign_parm_setup_block): Prefer SSA-assigned location.
9055 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
9056 if stack_parm is NULL.
9057 (assign_parm_setup_stack): Prefer SSA-assigned location.
9058 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9059 rtl before testing for pointer bounds. Special-case result_ptr.
9060 (expand_function_start): Maybe reset DECL_RTL of result.
9061 Prefer SSA-assigned location for result and static chain.
9062 Factor out DECL_RESULT and SET_DECL_RTL.
9063 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9064 anonymous SSA names. Use promote_ssa_mode.
9065 (get_temp_reg): Likewise.
9066 (remove_ssa_form): Adjust.
9067 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9068 and get its reg_usage for reg invalidation.
9069 (compute_bb_dataflow): Pass it insn.
9070 (emit_notes_in_bb): Likewise.
9071 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
9072 fail assert on conversion between unsigned types.
9074 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
9077 * tree-inline.c (reset_debug_binding): New.
9078 (reset_debug_bindings): Likewise.
9079 (expand_call_inline): Call it.
9081 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9083 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
9086 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9088 * lto-streamer-out.c (lto_output_location): Stream
9089 reserved locations correctly.
9090 * lto-streamer-in.c (lto_output_location): Likewise.
9092 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
9094 * coretypes.h: Include hash-table.h and hash-set.h for host files.
9095 * ggc.h: Don't include statistics.h>
9096 * hash-map.h: Remove all includes.
9097 * hash-set.h: Likewise.
9098 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
9099 the include list. Remove <new>.
9100 * inchash.h: Remove all includes.
9101 * mem-stats.h: Likewise.
9102 * vec.h: No special processing for generators or ggc.
9103 * alias.c : Adjust include files.
9104 * alloc-pool.c : Likewise.
9105 * alloc-pool.h : Likewise.
9106 * asan.c : Likewise.
9107 * attribs.c : Likewise.
9108 * auto-inc-dec.c : Likewise.
9109 * auto-profile.c : Likewise.
9110 * bb-reorder.c : Likewise.
9111 * bitmap.c : Likewise.
9112 * bitmap.h : Likewise.
9113 * bt-load.c : Likewise.
9114 * builtins.c : Likewise.
9115 * caller-save.c : Likewise.
9116 * calls.c : Likewise.
9117 * ccmp.c : Likewise.
9119 * cfganal.c : Likewise.
9120 * cfgbuild.c : Likewise.
9121 * cfgcleanup.c : Likewise.
9122 * cfgexpand.c : Likewise.
9123 * cfghooks.c : Likewise.
9124 * cfgloop.c : Likewise.
9125 * cfgloop.h : Likewise.
9126 * cfgloopanal.c : Likewise.
9127 * cfgloopmanip.c : Likewise.
9128 * cfgrtl.c : Likewise.
9129 * cgraph.c : Likewise.
9130 * cgraphbuild.c : Likewise.
9131 * cgraphclones.c : Likewise.
9132 * cgraphunit.c : Likewise.
9133 * cilk-common.c : Likewise.
9134 * combine-stack-adj.c : Likewise.
9135 * combine.c : Likewise.
9136 * compare-elim.c : Likewise.
9137 * context.c : Likewise.
9138 * convert.c : Likewise.
9139 * coverage.c : Likewise.
9140 * cppbuiltin.c : Likewise.
9141 * cprop.c : Likewise.
9143 * cselib.c : Likewise.
9144 * data-streamer-in.c : Likewise.
9145 * data-streamer-out.c : Likewise.
9146 * data-streamer.c : Likewise.
9147 * data-streamer.h : Likewise.
9148 * dbxout.c : Likewise.
9151 * debug.c : Likewise.
9152 * df-core.c : Likewise.
9153 * df-problems.c : Likewise.
9154 * df-scan.c : Likewise.
9157 * dojump.c : Likewise.
9158 * dominance.c : Likewise.
9159 * domwalk.c : Likewise.
9160 * double-int.c : Likewise.
9162 * dumpfile.c : Likewise.
9163 * dwarf2asm.c : Likewise.
9164 * dwarf2cfi.c : Likewise.
9165 * dwarf2out.c : Likewise.
9166 * emit-rtl.c : Likewise.
9167 * et-forest.c : Likewise.
9168 * except.c : Likewise.
9169 * except.h : Likewise.
9170 * explow.c : Likewise.
9171 * expmed.c : Likewise.
9172 * expr.c : Likewise.
9173 * final.c : Likewise.
9174 * fixed-value.c : Likewise.
9175 * fold-const.c : Likewise.
9176 * function.c : Likewise.
9177 * fwprop.c : Likewise.
9178 * gcc-plugin.h : Likewise.
9180 * gcse-common.c : Likewise.
9181 * gcse.c : Likewise.
9182 * genattrtab.c : Likewise.
9183 * genautomata.c : Likewise.
9184 * genconditions.c : Likewise.
9185 * genemit.c : Likewise.
9186 * generic-match-head.c : Likewise.
9187 * genextract.c : Likewise.
9188 * gengtype-state.c : Likewise.
9189 * gengtype.c : Likewise.
9190 * genhooks.c : Likewise.
9191 * genmatch.c : Likewise.
9192 * genmodes.c : Likewise.
9193 * genrecog.c : Likewise.
9194 * gensupport.c : Likewise.
9195 * ggc-common.c : Likewise.
9196 * ggc-internal.h : Likewise.
9197 * ggc-none.c : Likewise.
9198 * ggc-page.c : Likewise.
9199 * gimple-builder.c : Likewise.
9200 * gimple-expr.c : Likewise.
9201 * gimple-fold.c : Likewise.
9202 * gimple-iterator.c : Likewise.
9203 * gimple-low.c : Likewise.
9204 * gimple-match-head.c : Likewise.
9205 * gimple-pretty-print.c : Likewise.
9206 * gimple-ssa-isolate-paths.c : Likewise.
9207 * gimple-ssa-strength-reduction.c : Likewise.
9208 * gimple-ssa.h : Likewise.
9209 * gimple-streamer-in.c : Likewise.
9210 * gimple-streamer-out.c : Likewise.
9211 * gimple-streamer.h : Likewise.
9212 * gimple-walk.c : Likewise.
9213 * gimple.c : Likewise.
9214 * gimplify-me.c : Likewise.
9215 * gimplify.c : Likewise.
9216 * godump.c : Likewise.
9217 * graph.c : Likewise.
9218 * graphds.c : Likewise.
9219 * graphite-blocking.c : Likewise.
9220 * graphite-dependences.c : Likewise.
9221 * graphite-interchange.c : Likewise.
9222 * graphite-isl-ast-to-gimple.c : Likewise.
9223 * graphite-optimize-isl.c : Likewise.
9224 * graphite-poly.c : Likewise.
9225 * graphite-scop-detection.c : Likewise.
9226 * graphite-sese-to-poly.c : Likewise.
9227 * graphite.c : Likewise.
9228 * haifa-sched.c : Likewise.
9229 * hard-reg-set.h : Likewise.
9230 * hw-doloop.c : Likewise.
9231 * ifcvt.c : Likewise.
9232 * inchash.c : Likewise.
9233 * incpath.c : Likewise.
9234 * init-regs.c : Likewise.
9235 * input.c : Likewise.
9236 * internal-fn.c : Likewise.
9237 * ipa-chkp.c : Likewise.
9238 * ipa-comdats.c : Likewise.
9239 * ipa-cp.c : Likewise.
9240 * ipa-devirt.c : Likewise.
9241 * ipa-icf-gimple.c : Likewise.
9242 * ipa-icf.c : Likewise.
9243 * ipa-inline-analysis.c : Likewise.
9244 * ipa-inline-transform.c : Likewise.
9245 * ipa-inline.c : Likewise.
9246 * ipa-polymorphic-call.c : Likewise.
9247 * ipa-profile.c : Likewise.
9248 * ipa-prop.c : Likewise.
9249 * ipa-pure-const.c : Likewise.
9250 * ipa-ref.c : Likewise.
9251 * ipa-reference.c : Likewise.
9252 * ipa-split.c : Likewise.
9253 * ipa-utils.c : Likewise.
9254 * ipa-visibility.c : Likewise.
9256 * ira-build.c : Likewise.
9257 * ira-color.c : Likewise.
9258 * ira-conflicts.c : Likewise.
9259 * ira-costs.c : Likewise.
9260 * ira-emit.c : Likewise.
9261 * ira-lives.c : Likewise.
9263 * jump.c : Likewise.
9264 * langhooks.c : Likewise.
9266 * libfuncs.h : Likewise.
9267 * lists.c : Likewise.
9268 * loop-doloop.c : Likewise.
9269 * loop-init.c : Likewise.
9270 * loop-invariant.c : Likewise.
9271 * loop-iv.c : Likewise.
9272 * loop-unroll.c : Likewise.
9273 * lower-subreg.c : Likewise.
9274 * lra-assigns.c : Likewise.
9275 * lra-coalesce.c : Likewise.
9276 * lra-constraints.c : Likewise.
9277 * lra-eliminations.c : Likewise.
9278 * lra-lives.c : Likewise.
9279 * lra-remat.c : Likewise.
9280 * lra-spills.c : Likewise.
9282 * lto-cgraph.c : Likewise.
9283 * lto-compress.c : Likewise.
9284 * lto-opts.c : Likewise.
9285 * lto-section-in.c : Likewise.
9286 * lto-section-out.c : Likewise.
9287 * lto-streamer-in.c : Likewise.
9288 * lto-streamer-out.c : Likewise.
9289 * lto-streamer.c : Likewise.
9290 * lto-streamer.h : Likewise.
9292 * mode-switching.c : Likewise.
9293 * modulo-sched.c : Likewise.
9294 * omega.c : Likewise.
9295 * omp-low.c : Likewise.
9296 * optabs.c : Likewise.
9297 * opts-global.c : Likewise.
9298 * opts.h : Likewise.
9299 * passes.c : Likewise.
9300 * plugin.c : Likewise.
9301 * postreload-gcse.c : Likewise.
9302 * postreload.c : Likewise.
9303 * predict.c : Likewise.
9304 * print-rtl.c : Likewise.
9305 * print-tree.c : Likewise.
9306 * profile.c : Likewise.
9307 * read-md.c : Likewise.
9308 * read-md.h : Likewise.
9309 * read-rtl.c : Likewise.
9310 * real.c : Likewise.
9311 * realmpfr.c : Likewise.
9312 * recog.c : Likewise.
9314 * reg-stack.c : Likewise.
9315 * regcprop.c : Likewise.
9316 * reginfo.c : Likewise.
9317 * regrename.c : Likewise.
9318 * regstat.c : Likewise.
9319 * reload.c : Likewise.
9320 * reload1.c : Likewise.
9321 * reorg.c : Likewise.
9322 * resource.c : Likewise.
9323 * rtl-chkp.c : Likewise.
9326 * rtlanal.c : Likewise.
9327 * rtlhash.c : Likewise.
9328 * rtlhash.h : Likewise.
9329 * rtlhooks.c : Likewise.
9330 * sanopt.c : Likewise.
9331 * sched-deps.c : Likewise.
9332 * sched-ebb.c : Likewise.
9333 * sched-rgn.c : Likewise.
9334 * sched-vis.c : Likewise.
9335 * sdbout.c : Likewise.
9336 * sel-sched-dump.c : Likewise.
9337 * sel-sched-ir.c : Likewise.
9338 * sel-sched-ir.h : Likewise.
9339 * sel-sched.c : Likewise.
9340 * sese.c : Likewise.
9341 * shrink-wrap.c : Likewise.
9342 * shrink-wrap.h : Likewise.
9343 * simplify-rtx.c : Likewise.
9344 * stack-ptr-mod.c : Likewise.
9345 * statistics.c : Likewise.
9346 * stmt.c : Likewise.
9347 * stor-layout.c : Likewise.
9348 * store-motion.c : Likewise.
9349 * stringpool.c : Likewise.
9350 * symtab.c : Likewise.
9351 * target-globals.c : Likewise.
9352 * targhooks.c : Likewise.
9353 * tlink.c : Likewise.
9354 * toplev.c : Likewise.
9355 * tracer.c : Likewise.
9356 * trans-mem.c : Likewise.
9357 * tree-affine.c : Likewise.
9358 * tree-affine.h : Likewise.
9359 * tree-browser.c : Likewise.
9360 * tree-call-cdce.c : Likewise.
9361 * tree-cfg.c : Likewise.
9362 * tree-cfgcleanup.c : Likewise.
9363 * tree-chkp-opt.c : Likewise.
9364 * tree-chkp.c : Likewise.
9365 * tree-chrec.c : Likewise.
9366 * tree-complex.c : Likewise.
9367 * tree-data-ref.c : Likewise.
9368 * tree-dfa.c : Likewise.
9369 * tree-diagnostic.c : Likewise.
9370 * tree-dump.c : Likewise.
9371 * tree-eh.c : Likewise.
9372 * tree-eh.h : Likewise.
9373 * tree-emutls.c : Likewise.
9374 * tree-hasher.h : Likewise.
9375 * tree-if-conv.c : Likewise.
9376 * tree-inline.c : Likewise.
9377 * tree-inline.h : Likewise.
9378 * tree-into-ssa.c : Likewise.
9379 * tree-iterator.c : Likewise.
9380 * tree-loop-distribution.c : Likewise.
9381 * tree-nested.c : Likewise.
9382 * tree-nrv.c : Likewise.
9383 * tree-object-size.c : Likewise.
9384 * tree-outof-ssa.c : Likewise.
9385 * tree-parloops.c : Likewise.
9386 * tree-phinodes.c : Likewise.
9387 * tree-predcom.c : Likewise.
9388 * tree-pretty-print.c : Likewise.
9389 * tree-profile.c : Likewise.
9390 * tree-scalar-evolution.c : Likewise.
9391 * tree-sra.c : Likewise.
9392 * tree-ssa-address.c : Likewise.
9393 * tree-ssa-alias.c : Likewise.
9394 * tree-ssa-ccp.c : Likewise.
9395 * tree-ssa-coalesce.c : Likewise.
9396 * tree-ssa-copy.c : Likewise.
9397 * tree-ssa-copyrename.c : Likewise.
9398 * tree-ssa-dce.c : Likewise.
9399 * tree-ssa-dom.c : Likewise.
9400 * tree-ssa-dse.c : Likewise.
9401 * tree-ssa-forwprop.c : Likewise.
9402 * tree-ssa-ifcombine.c : Likewise.
9403 * tree-ssa-live.c : Likewise.
9404 * tree-ssa-loop-ch.c : Likewise.
9405 * tree-ssa-loop-im.c : Likewise.
9406 * tree-ssa-loop-ivcanon.c : Likewise.
9407 * tree-ssa-loop-ivopts.c : Likewise.
9408 * tree-ssa-loop-manip.c : Likewise.
9409 * tree-ssa-loop-niter.c : Likewise.
9410 * tree-ssa-loop-prefetch.c : Likewise.
9411 * tree-ssa-loop-unswitch.c : Likewise.
9412 * tree-ssa-loop.c : Likewise.
9413 * tree-ssa-math-opts.c : Likewise.
9414 * tree-ssa-operands.c : Likewise.
9415 * tree-ssa-phiopt.c : Likewise.
9416 * tree-ssa-phiprop.c : Likewise.
9417 * tree-ssa-pre.c : Likewise.
9418 * tree-ssa-propagate.c : Likewise.
9419 * tree-ssa-reassoc.c : Likewise.
9420 * tree-ssa-sccvn.c : Likewise.
9421 * tree-ssa-scopedtables.c : Likewise.
9422 * tree-ssa-sink.c : Likewise.
9423 * tree-ssa-strlen.c : Likewise.
9424 * tree-ssa-structalias.c : Likewise.
9425 * tree-ssa-tail-merge.c : Likewise.
9426 * tree-ssa-ter.c : Likewise.
9427 * tree-ssa-threadedge.c : Likewise.
9428 * tree-ssa-threadupdate.c : Likewise.
9429 * tree-ssa-uncprop.c : Likewise.
9430 * tree-ssa-uninit.c : Likewise.
9431 * tree-ssa.c : Likewise.
9432 * tree-ssanames.c : Likewise.
9433 * tree-stdarg.c : Likewise.
9434 * tree-streamer-in.c : Likewise.
9435 * tree-streamer-out.c : Likewise.
9436 * tree-streamer.c : Likewise.
9437 * tree-streamer.h : Likewise.
9438 * tree-switch-conversion.c : Likewise.
9439 * tree-tailcall.c : Likewise.
9440 * tree-vect-data-refs.c : Likewise.
9441 * tree-vect-generic.c : Likewise.
9442 * tree-vect-loop-manip.c : Likewise.
9443 * tree-vect-loop.c : Likewise.
9444 * tree-vect-patterns.c : Likewise.
9445 * tree-vect-slp.c : Likewise.
9446 * tree-vect-stmts.c : Likewise.
9447 * tree-vectorizer.c : Likewise.
9448 * tree-vectorizer.h : Likewise.
9449 * tree-vrp.c : Likewise.
9450 * tree.c : Likewise.
9451 * tsan.c : Likewise.
9452 * ubsan.c : Likewise.
9453 * valtrack.c : Likewise.
9454 * valtrack.h : Likewise.
9455 * value-prof.c : Likewise.
9456 * var-tracking.c : Likewise.
9457 * varasm.c : Likewise.
9458 * varpool.c : Likewise.
9460 * vmsdbgout.c : Likewise.
9461 * vtable-verify.c : Likewise.
9462 * vtable-verify.h : Likewise.
9464 * wide-int.cc : Likewise.
9465 * xcoffout.c : Likewise.
9466 * config/aarch64/aarch64-builtins.c : Likewise.
9467 * config/aarch64/aarch64.c : Likewise.
9468 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
9469 * config/alpha/alpha.c : Likewise.
9470 * config/arc/arc.c : Likewise.
9471 * config/arm/aarch-common.c : Likewise.
9472 * config/arm/arm-builtins.c : Likewise.
9473 * config/arm/arm-c.c : Likewise.
9474 * config/arm/arm.c : Likewise.
9475 * config/avr/avr-c.c : Likewise.
9476 * config/avr/avr-log.c : Likewise.
9477 * config/avr/avr.c : Likewise.
9478 * config/bfin/bfin.c : Likewise.
9479 * config/c6x/c6x.c : Likewise.
9480 * config/cr16/cr16.c : Likewise.
9481 * config/cris/cris.c : Likewise.
9482 * config/darwin-c.c : Likewise.
9483 * config/darwin.c : Likewise.
9484 * config/default-c.c : Likewise.
9485 * config/epiphany/epiphany.c : Likewise.
9486 * config/epiphany/mode-switch-use.c : Likewise.
9487 * config/epiphany/resolve-sw-modes.c : Likewise.
9488 * config/fr30/fr30.c : Likewise.
9489 * config/frv/frv.c : Likewise.
9490 * config/ft32/ft32.c : Likewise.
9491 * config/glibc-c.c : Likewise.
9492 * config/h8300/h8300.c : Likewise.
9493 * config/i386/i386-c.c : Likewise.
9494 * config/i386/i386.c : Likewise.
9495 * config/i386/msformat-c.c : Likewise.
9496 * config/i386/winnt-cxx.c : Likewise.
9497 * config/i386/winnt-stubs.c : Likewise.
9498 * config/i386/winnt.c : Likewise.
9499 * config/ia64/ia64-c.c : Likewise.
9500 * config/ia64/ia64.c : Likewise.
9501 * config/iq2000/iq2000.c : Likewise.
9502 * config/lm32/lm32.c : Likewise.
9503 * config/m32c/m32c-pragma.c : Likewise.
9504 * config/m32c/m32c.c : Likewise.
9505 * config/m32r/m32r.c : Likewise.
9506 * config/m68k/m68k.c : Likewise.
9507 * config/mcore/mcore.c : Likewise.
9508 * config/mep/mep-pragma.c : Likewise.
9509 * config/mep/mep.c : Likewise.
9510 * config/microblaze/microblaze-c.c : Likewise.
9511 * config/microblaze/microblaze.c : Likewise.
9512 * config/mips/mips.c : Likewise.
9513 * config/mmix/mmix.c : Likewise.
9514 * config/mn10300/mn10300.c : Likewise.
9515 * config/moxie/moxie.c : Likewise.
9516 * config/msp430/msp430-c.c : Likewise.
9517 * config/msp430/msp430.c : Likewise.
9518 * config/nds32/nds32-cost.c : Likewise.
9519 * config/nds32/nds32-fp-as-gp.c : Likewise.
9520 * config/nds32/nds32-intrinsic.c : Likewise.
9521 * config/nds32/nds32-isr.c : Likewise.
9522 * config/nds32/nds32-md-auxiliary.c : Likewise.
9523 * config/nds32/nds32-memory-manipulation.c : Likewise.
9524 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
9525 * config/nds32/nds32-predicates.c : Likewise.
9526 * config/nds32/nds32.c : Likewise.
9527 * config/nios2/nios2.c : Likewise.
9528 * config/nvptx/nvptx.c : Likewise.
9529 * config/pa/pa.c : Likewise.
9530 * config/pdp11/pdp11.c : Likewise.
9531 * config/rl78/rl78-c.c : Likewise.
9532 * config/rl78/rl78.c : Likewise.
9533 * config/rs6000/rs6000-c.c : Likewise.
9534 * config/rs6000/rs6000.c : Likewise.
9535 * config/rx/rx.c : Likewise.
9536 * config/s390/s390-c.c : Likewise.
9537 * config/s390/s390.c : Likewise.
9538 * config/sh/sh-c.c : Likewise.
9539 * config/sh/sh-mem.cc : Likewise.
9540 * config/sh/sh.c : Likewise.
9541 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
9542 * config/sh/sh_treg_combine.cc : Likewise.
9543 * config/sol2-c.c : Likewise.
9544 * config/sol2-cxx.c : Likewise.
9545 * config/sol2-stubs.c : Likewise.
9546 * config/sol2.c : Likewise.
9547 * config/sparc/sparc-c.c : Likewise.
9548 * config/sparc/sparc.c : Likewise.
9549 * config/spu/spu-c.c : Likewise.
9550 * config/spu/spu.c : Likewise.
9551 * config/stormy16/stormy16.c : Likewise.
9552 * config/tilegx/mul-tables.c : Likewise.
9553 * config/tilegx/tilegx-c.c : Likewise.
9554 * config/tilegx/tilegx.c : Likewise.
9555 * config/tilepro/mul-tables.c : Likewise.
9556 * config/tilepro/tilepro-c.c : Likewise.
9557 * config/tilepro/tilepro.c : Likewise.
9558 * config/v850/v850-c.c : Likewise.
9559 * config/v850/v850.c : Likewise.
9560 * config/vax/vax.c : Likewise.
9561 * config/visium/visium.c : Likewise.
9562 * config/vms/vms-c.c : Likewise.
9563 * config/vms/vms.c : Likewise.
9564 * config/vxworks.c : Likewise.
9565 * config/winnt-c.c : Likewise.
9566 * config/xtensa/xtensa.c : Likewise.
9568 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9571 * ipa-utils.h (warn_types_mismatch): Update prototype.
9572 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
9574 (type_mismatch_p): New function.
9575 (warn_types_mismatch): Reorg to work better on non-C++ types.
9576 (odr_types_equivalent_p): Add loc1/loc2 parameters.
9577 (add_type_duplicate): Update.
9579 2015-06-08 Tom de Vries <tom@codesourcery.com>
9581 PR rtl-optimization/66444
9582 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
9585 2015-06-08 Richard Biener <rguenther@suse.de>
9587 PR tree-optimization/66422
9588 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
9589 block after inserted gcc_unreachable.
9591 2015-06-08 Nick Clifton <nickc@redhat.com>
9593 * config/rx/rx.c (rx_function_value): Do not promote vector types.
9594 (rx_promote_function_mode): Likewise.
9595 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
9597 2015-06-08 Jakub Jelinek <jakub@redhat.com>
9599 * genattrtab.c (insn_alternatives): Change type from int *
9601 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
9602 (get_attr_value): Change type of num_alt to uint64_t.
9603 (compute_alternative_mask): Change return type from
9604 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
9605 (make_alternative_compare, mk_attr_alt): Change argument type
9606 from int to uint64_t.
9607 (simplify_test_exp): Change type of i from int to uint64_t.
9608 Shift ((uint64_t) 1) instead of 1 up.
9609 (main): Adjust oballocvec first argument from int to uint64_t.
9610 Shift ((uint64_t) 1) instead of 1 up.
9612 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9615 * gdbhooks.py: Import sys.
9616 (intptr): New function. Replace int(...) by intptr(...).
9618 2015-06-08 Richard Biener <rguenther@suse.de>
9620 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
9621 adjustment for gaps at the end of a SLP load group properly.
9622 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
9623 all permutations we can generate.
9624 (vect_transform_slp_perm_load): Use the correct group-size.
9626 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
9628 * genmatch.c (expr::gen_transform): For conditions, guess the type
9629 from the second operand.
9631 2015-06-08 Tom de Vries <tom@codesourcery.com>
9633 PR tree-optimization/66442
9634 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
9635 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
9636 if the loop latch is not a singleton. Use
9637 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
9639 2015-06-08 Marek Polacek <polacek@redhat.com>
9642 * toplev.c (check_global_declaration): Don't warn about artificial
9645 2015-06-08 Tom de Vries <tom@codesourcery.com>
9647 PR tree-optimization/66436
9648 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
9650 * gimplify.c: Add tree-dump.h include.
9651 (gimplify_function_tree): Dump function to gimple dump file.
9652 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
9655 2015-06-08 Tom de Vries <tom@codesourcery.com>
9657 PR tree-optimization/66435
9658 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
9661 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
9663 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
9664 of ptr_type_node to not be ptr_to_node.
9665 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
9666 TREE_TYPE of pointers.
9667 * gimple-expr.c (useless_type_conversion): Reorder the check for
9668 function pointers and TYPE_CANONICAL.
9670 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
9673 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
9674 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
9675 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
9677 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
9678 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
9679 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
9680 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
9681 and non iso if unix2003.
9683 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
9685 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
9687 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
9689 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
9690 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
9691 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
9692 except.c, final.c, function.c, gcse-common.c, genemit.c,
9693 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
9694 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
9695 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
9696 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
9699 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
9701 * combine.c (combine_split_insns): Remove cast.
9702 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
9703 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
9704 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
9705 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
9706 * genemit.c (gen_split): Change return type of generated functions to
9708 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
9709 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
9710 gen_peephole2_* functions.
9711 (print_subroutine, main): Likewise.
9712 * recog.c (peephole2_optimize): Remove cast.
9713 (peep2_next_insn): Promote return type to rtx_insn.
9714 * recog.h (peep2_next_insn): Fix prototype.
9715 * rtl.h (try_split, split_insns): Likewise.
9717 2015-06-06 DJ Delorie <dj@redhat.com>
9719 * config/msp430/msp430.c (msp430_asm_integer): Support addition
9720 and subtraction too.
9722 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
9725 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
9726 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
9727 instead of Snd. Disparage Sid/z alternative with '^'.
9729 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
9731 * dwarf2out.c: Remove deferred_locations*.
9732 (dwarf2_debug_hooks): Add early_finish hook.
9733 Remove global_decl hook.
9734 Add early_global_decl and late_global_decl hook.
9735 New global early_dwarf.
9736 New structure set_early_dwarf.
9737 (output_die): Indicate whether a DIE was generated early
9738 when generating assembly with -dA.
9739 (struct limbo_die_struct): Document created_for field.
9740 Remove file_table_last_lookup.
9741 (remove_AT): Return TRUE if successful.
9742 (remove_child_TAG): Clear die_parent.
9743 (reparent_child): New function abstracted from...
9744 (splice_child_die): ...here.
9745 (new_die): ICE if a DIE ends up in limbo too late.
9747 (defer_location): Remove.
9748 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
9749 (fill_variable_array_bounds): New.
9750 (decl_start_label): Call fill_variable_array_bounds.
9751 (gen_formal_parameter_die): Rewrite to reuse previously generated
9753 (gen_subprogram_die): Same.
9754 (gen_variable_die): Same.
9755 (gen_const_die): Same.
9756 (gen_label_die): Same.
9757 (gen_lexical_block_die): Same.
9758 (decl_will_get_specification_p): New.
9759 (local_function_static): New.
9760 (gen_struct_or_union_type_die): Fill in variable-length fields.
9761 (gen_typedef_die): Fill in variable-length typedefs.
9762 (gen_tagged_type_die): Gracefully return on error_mark_node.
9764 (gen_type_die_with_usage): Handle variable-length types.
9765 Remove duplicate code for ARRAY_TYPE case.
9766 (process_scope_var): Only process imported modules during early
9768 (dwarf2out_early_global_decl): New.
9769 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
9770 (dwarf2out_type_decl): Set early_dwarf while calling
9772 (dwarf2out_decl): Verify that we did not recreate a previously
9774 Do not return on DECL_EXTERNALs in VAR_DECLs.
9775 Abstract some code to local_function_static.
9776 (lookup_filename): Remove use of file_table_last_lookup.
9777 Gracefully exit on missing file_name.
9778 (dwarf2out_finish): Verify limbo list.
9779 Remove deferred_locations_list use.
9780 Move deferred_asm_name and limbo flushing to...
9781 (dwarf2out_early_finish): ...here. New.
9782 (dwarf2out_c_finalize): Remove set of deferred_location_list,
9783 deferred_asm_name, and file_table_last_lookup.
9784 * cgraph.h (referred_to_p): Add default argument.
9785 * cgraphunit.c (referred_to_p): Add and handle include_self
9787 (analyze_functions): Add first_time argument.
9788 Call check_global_declaration for all symbols.
9789 Call late_global_decl for nodes for moribund nodes.
9790 (finalize_compilation_unit): Add new argument to
9792 Call early_global_decl for functions.
9793 Call early_finish debug hook.
9794 * dbxout.c (dbxout_early_global_decl): New.
9795 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
9796 (dbx_debug_hooks): Add new hooks.
9797 (xcoff_debug_hooks): Same.
9798 * debug.c (do_nothing_debug_hooks): Add early_finish field.
9799 Add early and late debug hooks.
9800 Remove global_decl hook.
9801 * debug.h (struct gcc_debug_hooks): Add early_finish,
9802 early_global_decl, and late_global_decl fields.
9803 Remove global_decl field.
9804 Document gcc_debug_hooks.
9805 * gengtype.c (output_typename): Remove.
9806 * godump.c (go_early_global_decl): New.
9807 (go_late_global_decl): New.
9808 (go_global_decl): Remove.
9809 (dump_go_spec_init): Remove global_decl. Add
9810 {early,late}_global_decl.
9811 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
9812 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
9813 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
9814 (write_global_declarations): Remove.
9815 (global_decl_processing): New.
9816 * langhooks.h (struct lang_hooks_for_decls): Remove
9817 final_write_globals field.
9818 Add post_compilation_parsing_cleanups field.
9819 * passes.c (rest_of_decl_compilation): Call early_global_decl.
9820 * sdbout.c: Add early and late_global_decl hooks. Remove
9821 sdbout_global_decl hook.
9822 Add early_finish field for sdb_debug_hooks.
9823 (sdbout_global_decl): Remove.
9824 (sdbout_early_global_decl): New.
9825 (sdbout_late_global_decl): New.
9826 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
9827 * toplev.c (check_global_declaration): Rename from
9828 check_global_declaration_1.
9829 Adapt to use symtab infrastructure.
9830 (check_global_declarations): Remove.
9831 (emit_debug_global_declarations): Remove.
9832 (compile_file): Remove call to final_write_globals langhook.
9833 Run the actual compilation process.
9834 Perform any post compilation parser cleanups.
9835 Generate late debug info.
9836 * toplev.h (check_global_declaration): New.
9837 (check_global_declaration_1): Remove.
9838 (check_global_declarations): Remove.
9839 (write_global_declarations): Remove.
9840 (emit_debug_global_declarations): Remove.
9841 (global_decl_processing): New.
9842 * tree-core.h (struct tree_block): Add DIE field.
9843 * tree.h (BLOCK_DIE): New.
9844 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
9846 (vmsdbgout_early_global_decl): New.
9847 (vmsdbgout_late_global_decl): New.
9848 Add early_finish debug hook field to vmsdbg_debug_hooks.
9849 Remove vmsdbgout_decl to vmsdbgout_function_decl.
9850 Add early and late_global_decl debug hooks.
9852 2015-06-05 Julian Brown <julian@codesourcery.com>
9853 Sandra Loosemore <sandra@codesourcery.com>
9855 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
9856 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
9857 to print-sysroot-suffix.sh script.
9859 2015-06-05 Tom de Vries <tom@codesourcery.com>
9861 merge from gomp4 branch:
9862 2015-05-28 Tom de Vries <tom@codesourcery.com>
9864 PR tree-optimization/65443
9865 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
9866 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
9867 (try_transform_to_exit_first_loop_alt): New function.
9868 (transform_to_exit_first_loop): Use
9869 try_transform_to_exit_first_loop_alt.
9871 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
9873 * builtins.c (expand_builtin_atomic_compare_exchange): Call
9874 emit_cmp_and_jump_insns with the mode of target.
9876 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9878 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
9880 2015-06-04 DJ Delorie <dj@redhat.com>
9882 * config/msp430/msp430.md (movsi_s): New. Special case for
9883 storing a 20-bit symbol into a 32-bit register.
9884 * config/msp430/msp430.c (msp430_subreg): Add support for it.
9885 * config/msp430/predicates.md (msp430_symbol_operand): New.
9887 2015-06-04 Sriraman Tallam <tmsriram@google.com>
9889 * c-family/c-common.c (noplt): New attribute.
9890 (handle_noplt_attribute): New handler.
9891 * calls.c (prepare_call_address): Check for noplt
9893 * config/i386/i386.c (ix86_expand_call): Check
9894 for noplt attribute.
9895 (ix86_nopic_noplt_attribute_p): New function.
9896 (ix86_output_call_insn): Output indirect call for non-pic
9898 * doc/extend.texi (noplt): Document new attribute.
9899 * doc/invoke.texi: Document new attribute.
9901 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
9903 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
9904 real.h, and fixed-value.h when included in host source files.
9905 * double-int.h: Remove redundant #includes listed above.
9906 * fixed-value.h: Likewise.
9908 * wide-int.h: Likewise.
9909 * inchash.h: Likewise.
9910 * rtl.h: Add some include files When included from a generator file.
9911 * target.h: Remove wide-int.h and insn-modes.h from the include list.
9912 * internal-fn.h: Don't include coretypes.h.
9913 * alias.c: Adjust includes for restructured coretypes.h.
9915 * attribs.c: Likewise.
9916 * auto-inc-dec.c: Likewise.
9917 * auto-profile.c: Likewise.
9918 * bb-reorder.c: Likewise.
9919 * bt-load.c: Likewise.
9920 * builtins.c: Likewise.
9921 * caller-save.c: Likewise.
9922 * calls.c: Likewise.
9925 * cfganal.c: Likewise.
9926 * cfgbuild.c: Likewise.
9927 * cfgcleanup.c: Likewise.
9928 * cfgexpand.c: Likewise.
9929 * cfghooks.c: Likewise.
9930 * cfgloop.c: Likewise.
9931 * cfgloop.h: Likewise.
9932 * cfgloopanal.c: Likewise.
9933 * cfgloopmanip.c: Likewise.
9934 * cfgrtl.c: Likewise.
9935 * cgraph.c: Likewise.
9936 * cgraphbuild.c: Likewise.
9937 * cgraphclones.c: Likewise.
9938 * cgraphunit.c: Likewise.
9939 * cilk-common.c: Likewise.
9940 * combine-stack-adj.c: Likewise.
9941 * combine.c: Likewise.
9942 * compare-elim.c: Likewise.
9943 * convert.c: Likewise.
9944 * coverage.c: Likewise.
9945 * cppbuiltin.c: Likewise.
9946 * cprop.c: Likewise.
9948 * cselib.c: Likewise.
9949 * data-streamer-in.c: Likewise.
9950 * data-streamer-out.c: Likewise.
9951 * data-streamer.c: Likewise.
9952 * dbxout.c: Likewise.
9955 * debug.c: Likewise.
9956 * df-core.c: Likewise.
9957 * df-problems.c: Likewise.
9958 * df-scan.c: Likewise.
9961 * dojump.c: Likewise.
9962 * dominance.c: Likewise.
9963 * domwalk.c: Likewise.
9964 * double-int.c: Likewise.
9966 * dumpfile.c: Likewise.
9967 * dwarf2asm.c: Likewise.
9968 * dwarf2cfi.c: Likewise.
9969 * dwarf2out.c: Likewise.
9970 * dwarf2out.h: Likewise.
9971 * emit-rtl.c: Likewise.
9972 * et-forest.c: Likewise.
9973 * except.c: Likewise.
9974 * explow.c: Likewise.
9975 * expmed.c: Likewise.
9977 * final.c: Likewise.
9978 * fixed-value.c: Likewise.
9979 * fold-const.c: Likewise.
9980 * function.c: Likewise.
9981 * fwprop.c: Likewise.
9982 * gcc-plugin.h: Likewise.
9984 * generic-match-head.c: Likewise.
9985 * ggc-page.c: Likewise.
9986 * gimple-builder.c: Likewise.
9987 * gimple-expr.c: Likewise.
9988 * gimple-fold.c: Likewise.
9989 * gimple-iterator.c: Likewise.
9990 * gimple-low.c: Likewise.
9991 * gimple-match-head.c: Likewise.
9992 * gimple-pretty-print.c: Likewise.
9993 * gimple-ssa-isolate-paths.c: Likewise.
9994 * gimple-ssa-strength-reduction.c: Likewise.
9995 * gimple-streamer-in.c: Likewise.
9996 * gimple-streamer-out.c: Likewise.
9997 * gimple-streamer.h: Likewise.
9998 * gimple-walk.c: Likewise.
9999 * gimple.c: Likewise.
10000 * gimplify-me.c: Likewise.
10001 * gimplify.c: Likewise.
10002 * godump.c: Likewise.
10003 * graph.c: Likewise.
10004 * graphite-blocking.c: Likewise.
10005 * graphite-dependences.c: Likewise.
10006 * graphite-interchange.c: Likewise.
10007 * graphite-isl-ast-to-gimple.c: Likewise.
10008 * graphite-optimize-isl.c: Likewise.
10009 * graphite-poly.c: Likewise.
10010 * graphite-scop-detection.c: Likewise.
10011 * graphite-sese-to-poly.c: Likewise.
10012 * graphite.c: Likewise.
10013 * haifa-sched.c: Likewise.
10014 * hooks.h: Likewise.
10015 * hw-doloop.c: Likewise.
10016 * ifcvt.c: Likewise.
10017 * incpath.c: Likewise.
10018 * init-regs.c: Likewise.
10019 * internal-fn.c: Likewise.
10020 * ipa-chkp.c: Likewise.
10021 * ipa-comdats.c: Likewise.
10022 * ipa-cp.c: Likewise.
10023 * ipa-devirt.c: Likewise.
10024 * ipa-icf-gimple.c: Likewise.
10025 * ipa-icf.c: Likewise.
10026 * ipa-inline-analysis.c: Likewise.
10027 * ipa-inline-transform.c: Likewise.
10028 * ipa-inline.c: Likewise.
10029 * ipa-polymorphic-call.c: Likewise.
10030 * ipa-profile.c: Likewise.
10031 * ipa-prop.c: Likewise.
10032 * ipa-pure-const.c: Likewise.
10033 * ipa-ref.c: Likewise.
10034 * ipa-reference.c: Likewise.
10035 * ipa-split.c: Likewise.
10036 * ipa-utils.c: Likewise.
10037 * ipa-visibility.c: Likewise.
10039 * ira-build.c: Likewise.
10040 * ira-color.c: Likewise.
10041 * ira-conflicts.c: Likewise.
10042 * ira-costs.c: Likewise.
10043 * ira-emit.c: Likewise.
10044 * ira-lives.c: Likewise.
10046 * jump.c: Likewise.
10047 * langhooks.c: Likewise.
10049 * loop-doloop.c: Likewise.
10050 * loop-init.c: Likewise.
10051 * loop-invariant.c: Likewise.
10052 * loop-iv.c: Likewise.
10053 * loop-unroll.c: Likewise.
10054 * lower-subreg.c: Likewise.
10055 * lra-assigns.c: Likewise.
10056 * lra-coalesce.c: Likewise.
10057 * lra-constraints.c: Likewise.
10058 * lra-eliminations.c: Likewise.
10059 * lra-lives.c: Likewise.
10060 * lra-remat.c: Likewise.
10061 * lra-spills.c: Likewise.
10063 * lto-cgraph.c: Likewise.
10064 * lto-compress.c: Likewise.
10065 * lto-opts.c: Likewise.
10066 * lto-section-in.c: Likewise.
10067 * lto-section-out.c: Likewise.
10068 * lto-streamer-in.c: Likewise.
10069 * lto-streamer-out.c: Likewise.
10070 * lto-streamer.c: Likewise.
10072 * mode-switching.c: Likewise.
10073 * modulo-sched.c: Likewise.
10074 * omega.c: Likewise.
10075 * omp-low.c: Likewise.
10076 * optabs.c: Likewise.
10077 * opts-global.c: Likewise.
10078 * passes.c: Likewise.
10079 * plugin.c: Likewise.
10080 * postreload-gcse.c: Likewise.
10081 * postreload.c: Likewise.
10082 * predict.c: Likewise.
10083 * print-rtl.c: Likewise.
10084 * print-tree.c: Likewise.
10085 * profile.c: Likewise.
10086 * real.c: Likewise.
10087 * realmpfr.c: Likewise.
10088 * realmpfr.h: Likewise.
10089 * recog.c: Likewise.
10091 * reg-stack.c: Likewise.
10092 * regcprop.c: Likewise.
10093 * reginfo.c: Likewise.
10094 * regrename.c: Likewise.
10095 * regs.h: Likewise.
10096 * regstat.c: Likewise.
10097 * reload.c: Likewise.
10098 * reload1.c: Likewise.
10099 * reorg.c: Likewise.
10100 * resource.c: Likewise.
10101 * rtl-chkp.c: Likewise.
10102 * rtlanal.c: Likewise.
10103 * rtlhooks.c: Likewise.
10104 * sanopt.c: Likewise.
10105 * sched-deps.c: Likewise.
10106 * sched-ebb.c: Likewise.
10107 * sched-rgn.c: Likewise.
10108 * sched-vis.c: Likewise.
10109 * sdbout.c: Likewise.
10110 * sel-sched-dump.c: Likewise.
10111 * sel-sched-ir.c: Likewise.
10112 * sel-sched.c: Likewise.
10113 * sese.c: Likewise.
10114 * shrink-wrap.c: Likewise.
10115 * shrink-wrap.h: Likewise.
10116 * simplify-rtx.c: Likewise.
10117 * stack-ptr-mod.c: Likewise.
10118 * statistics.c: Likewise.
10119 * stmt.c: Likewise.
10120 * stor-layout.c: Likewise.
10121 * store-motion.c: Likewise.
10122 * stringpool.c: Likewise.
10123 * symtab.c: Likewise.
10124 * target-globals.c: Likewise.
10125 * targhooks.c: Likewise.
10126 * toplev.c: Likewise.
10127 * tracer.c: Likewise.
10128 * trans-mem.c: Likewise.
10129 * tree-affine.c: Likewise.
10130 * tree-affine.h: Likewise.
10131 * tree-browser.c: Likewise.
10132 * tree-call-cdce.c: Likewise.
10133 * tree-cfg.c: Likewise.
10134 * tree-cfgcleanup.c: Likewise.
10135 * tree-chkp-opt.c: Likewise.
10136 * tree-chkp.c: Likewise.
10137 * tree-chrec.c: Likewise.
10138 * tree-complex.c: Likewise.
10139 * tree-data-ref.c: Likewise.
10140 * tree-dfa.c: Likewise.
10141 * tree-diagnostic.c: Likewise.
10142 * tree-dump.c: Likewise.
10143 * tree-eh.c: Likewise.
10144 * tree-emutls.c: Likewise.
10145 * tree-if-conv.c: Likewise.
10146 * tree-inline.c: Likewise.
10147 * tree-into-ssa.c: Likewise.
10148 * tree-iterator.c: Likewise.
10149 * tree-loop-distribution.c: Likewise.
10150 * tree-nested.c: Likewise.
10151 * tree-nrv.c: Likewise.
10152 * tree-object-size.c: Likewise.
10153 * tree-outof-ssa.c: Likewise.
10154 * tree-parloops.c: Likewise.
10155 * tree-phinodes.c: Likewise.
10156 * tree-predcom.c: Likewise.
10157 * tree-pretty-print.c: Likewise.
10158 * tree-pretty-print.h: Likewise.
10159 * tree-profile.c: Likewise.
10160 * tree-scalar-evolution.c: Likewise.
10161 * tree-sra.c: Likewise.
10162 * tree-ssa-address.c: Likewise.
10163 * tree-ssa-alias.c: Likewise.
10164 * tree-ssa-ccp.c: Likewise.
10165 * tree-ssa-coalesce.c: Likewise.
10166 * tree-ssa-copy.c: Likewise.
10167 * tree-ssa-copyrename.c: Likewise.
10168 * tree-ssa-dce.c: Likewise.
10169 * tree-ssa-dom.c: Likewise.
10170 * tree-ssa-dse.c: Likewise.
10171 * tree-ssa-forwprop.c: Likewise.
10172 * tree-ssa-ifcombine.c: Likewise.
10173 * tree-ssa-live.c: Likewise.
10174 * tree-ssa-loop-ch.c: Likewise.
10175 * tree-ssa-loop-im.c: Likewise.
10176 * tree-ssa-loop-ivcanon.c: Likewise.
10177 * tree-ssa-loop-ivopts.c: Likewise.
10178 * tree-ssa-loop-manip.c: Likewise.
10179 * tree-ssa-loop-niter.c: Likewise.
10180 * tree-ssa-loop-prefetch.c: Likewise.
10181 * tree-ssa-loop-unswitch.c: Likewise.
10182 * tree-ssa-loop.c: Likewise.
10183 * tree-ssa-loop.h: Likewise.
10184 * tree-ssa-math-opts.c: Likewise.
10185 * tree-ssa-operands.c: Likewise.
10186 * tree-ssa-phiopt.c: Likewise.
10187 * tree-ssa-phiprop.c: Likewise.
10188 * tree-ssa-pre.c: Likewise.
10189 * tree-ssa-propagate.c: Likewise.
10190 * tree-ssa-reassoc.c: Likewise.
10191 * tree-ssa-sccvn.c: Likewise.
10192 * tree-ssa-scopedtables.c: Likewise.
10193 * tree-ssa-sink.c: Likewise.
10194 * tree-ssa-strlen.c: Likewise.
10195 * tree-ssa-structalias.c: Likewise.
10196 * tree-ssa-tail-merge.c: Likewise.
10197 * tree-ssa-ter.c: Likewise.
10198 * tree-ssa-threadedge.c: Likewise.
10199 * tree-ssa-threadupdate.c: Likewise.
10200 * tree-ssa-uncprop.c: Likewise.
10201 * tree-ssa-uninit.c: Likewise.
10202 * tree-ssa.c: Likewise.
10203 * tree-ssanames.c: Likewise.
10204 * tree-stdarg.c: Likewise.
10205 * tree-streamer-in.c: Likewise.
10206 * tree-streamer-out.c: Likewise.
10207 * tree-streamer.c: Likewise.
10208 * tree-switch-conversion.c: Likewise.
10209 * tree-tailcall.c: Likewise.
10210 * tree-vect-data-refs.c: Likewise.
10211 * tree-vect-generic.c: Likewise.
10212 * tree-vect-loop-manip.c: Likewise.
10213 * tree-vect-loop.c: Likewise.
10214 * tree-vect-patterns.c: Likewise.
10215 * tree-vect-slp.c: Likewise.
10216 * tree-vect-stmts.c: Likewise.
10217 * tree-vectorizer.c: Likewise.
10218 * tree-vrp.c: Likewise.
10219 * tree.c: Likewise.
10220 * tsan.c: Likewise.
10221 * ubsan.c: Likewise.
10222 * valtrack.c: Likewise.
10223 * value-prof.c: Likewise.
10224 * var-tracking.c: Likewise.
10225 * varasm.c: Likewise.
10226 * varpool.c: Likewise.
10227 * vmsdbgout.c: Likewise.
10228 * vtable-verify.c: Likewise.
10230 * wide-int-print.cc: Likewise.
10231 * wide-int-print.h: Likewise.
10232 * wide-int.cc: Likewise.
10233 * xcoffout.c: Likewise.
10234 * config/aarch64/aarch64-builtins.c: Likewise.
10235 * config/aarch64/aarch64.c: Likewise.
10236 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10237 * config/alpha/alpha.c: Likewise.
10238 * config/arc/arc.c: Likewise.
10239 * config/arm/aarch-common.c: Likewise.
10240 * config/arm/arm-builtins.c: Likewise.
10241 * config/arm/arm-c.c: Likewise.
10242 * config/arm/arm.c: Likewise.
10243 * config/avr/avr-c.c: Likewise.
10244 * config/avr/avr-log.c: Likewise.
10245 * config/avr/avr.c: Likewise.
10246 * config/bfin/bfin.c: Likewise.
10247 * config/c6x/c6x.c: Likewise.
10248 * config/cr16/cr16.c: Likewise.
10249 * config/cris/cris.c: Likewise.
10250 * config/darwin-c.c: Likewise.
10251 * config/darwin.c: Likewise.
10252 * config/default-c.c: Likewise.
10253 * config/epiphany/epiphany.c: Likewise.
10254 * config/epiphany/mode-switch-use.c: Likewise.
10255 * config/epiphany/resolve-sw-modes.c: Likewise.
10256 * config/fr30/fr30.c: Likewise.
10257 * config/frv/frv.c: Likewise.
10258 * config/ft32/ft32.c: Likewise.
10259 * config/glibc-c.c: Likewise.
10260 * config/h8300/h8300.c: Likewise.
10261 * config/i386/i386-c.c: Likewise.
10262 * config/i386/i386.c: Likewise.
10263 * config/i386/msformat-c.c: Likewise.
10264 * config/i386/winnt-cxx.c: Likewise.
10265 * config/i386/winnt-stubs.c: Likewise.
10266 * config/i386/winnt.c: Likewise.
10267 * config/ia64/ia64-c.c: Likewise.
10268 * config/ia64/ia64.c: Likewise.
10269 * config/iq2000/iq2000.c: Likewise.
10270 * config/lm32/lm32.c: Likewise.
10271 * config/m32c/m32c-pragma.c: Likewise.
10272 * config/m32c/m32c.c: Likewise.
10273 * config/m32r/m32r.c: Likewise.
10274 * config/m68k/m68k.c: Likewise.
10275 * config/mcore/mcore.c: Likewise.
10276 * config/mep/mep-pragma.c: Likewise.
10277 * config/mep/mep.c: Likewise.
10278 * config/microblaze/microblaze-c.c: Likewise.
10279 * config/microblaze/microblaze.c: Likewise.
10280 * config/mips/mips.c: Likewise.
10281 * config/mmix/mmix.c: Likewise.
10282 * config/mn10300/mn10300.c: Likewise.
10283 * config/moxie/moxie.c: Likewise.
10284 * config/msp430/msp430-c.c: Likewise.
10285 * config/msp430/msp430.c: Likewise.
10286 * config/nds32/nds32-cost.c: Likewise.
10287 * config/nds32/nds32-fp-as-gp.c: Likewise.
10288 * config/nds32/nds32-intrinsic.c: Likewise.
10289 * config/nds32/nds32-isr.c: Likewise.
10290 * config/nds32/nds32-md-auxiliary.c: Likewise.
10291 * config/nds32/nds32-memory-manipulation.c: Likewise.
10292 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10293 * config/nds32/nds32-predicates.c: Likewise.
10294 * config/nds32/nds32.c: Likewise.
10295 * config/nios2/nios2.c: Likewise.
10296 * config/nvptx/nvptx.c: Likewise.
10297 * config/pa/pa.c: Likewise.
10298 * config/pdp11/pdp11.c: Likewise.
10299 * config/rl78/rl78-c.c: Likewise.
10300 * config/rl78/rl78.c: Likewise.
10301 * config/rs6000/rs6000-c.c: Likewise.
10302 * config/rs6000/rs6000.c: Likewise.
10303 * config/rx/rx.c: Likewise.
10304 * config/s390/s390-c.c: Likewise.
10305 * config/s390/s390.c: Likewise.
10306 * config/sh/sh-c.c: Likewise.
10307 * config/sh/sh-mem.cc: Likewise.
10308 * config/sh/sh.c: Likewise.
10309 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10310 * config/sh/sh_treg_combine.cc: Likewise.
10311 * config/sol2-c.c: Likewise.
10312 * config/sol2-cxx.c: Likewise.
10313 * config/sol2-stubs.c: Likewise.
10314 * config/sol2.c: Likewise.
10315 * config/sparc/sparc-c.c: Likewise.
10316 * config/sparc/sparc.c: Likewise.
10317 * config/spu/spu-c.c: Likewise.
10318 * config/spu/spu.c: Likewise.
10319 * config/stormy16/stormy16.c: Likewise.
10320 * config/tilegx/mul-tables.c: Likewise.
10321 * config/tilegx/tilegx-c.c: Likewise.
10322 * config/tilegx/tilegx.c: Likewise.
10323 * config/tilepro/mul-tables.c: Likewise.
10324 * config/tilepro/tilepro-c.c: Likewise.
10325 * config/tilepro/tilepro.c: Likewise.
10326 * config/v850/v850-c.c: Likewise.
10327 * config/v850/v850.c: Likewise.
10328 * config/vax/vax.c: Likewise.
10329 * config/visium/visium.c: Likewise.
10330 * config/vms/vms-c.c: Likewise.
10331 * config/vms/vms.c: Likewise.
10332 * config/vxworks.c: Likewise.
10333 * config/winnt-c.c: Likewise.
10334 * config/xtensa/xtensa.c: Likewise.
10335 * common/config/bfin/bfin-common.c: Likewise.
10337 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
10339 * tree.h (tree_code_for_canonical_type_merging): New function.
10340 * tree.c (gimple_canonical_types_compatible_p): Use
10341 tree_code_for_canonical_type_merging..
10343 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10347 * doc/tm.texi: Regenerate.
10348 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
10349 * target.def (TARGET_RELAXED_ORDERING): Likewise.
10350 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
10351 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
10352 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
10353 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
10354 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
10355 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
10356 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
10358 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10360 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
10361 register fma steering pass.
10362 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
10363 AARCH64_TUNE_FMA_STEERING.
10365 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
10367 * tree.c (verify_type_variant): Verify that type and variant is
10369 (gimple_canonical_types_compatible_p): Look for main variants.
10371 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10373 * config.gcc (powerpc*-*-*): Add support for a new configure
10374 option --with-advance-toolchain=<xxx> which overrides using the
10375 default header files, libraries and dynamic linker.
10377 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
10378 specs to support the configure --with-advance-toolchain=<xxx>
10380 (INCLUDE_EXTRA_SPEC): Likewise.
10381 (LINK_OS_EXTRA_SPEC32): Likewise.
10382 (LINK_OK_EXTRA_SPEC64): Likewise.
10383 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
10384 (DYNAMIC_LINKER_PREFIX): Likewise.
10385 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
10387 (GLIBC_DYNAMIC_LINKER32): Likewise.
10388 (GLIBC_DYNAMIC_LINKER64): Likewise.
10389 (LINK_OS_LINUX_SPEC32): Likewise.
10390 (LINK_OS_LINUX_SPEC64): Likewise.
10392 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
10393 configuration option.
10395 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
10398 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
10399 to determine current function ABI.
10400 (ix86_function_value_regno_p): Ditto.
10402 2015-06-03 Martin Liska <mliska@suse.cz>
10404 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
10405 * bitmap.h (struct bitmap_usage): Likewise.
10406 * ggc-common.c (struct ggc_usage): Likewise.
10407 * mem-stats.h (struct mem_location): Likewise.
10408 (struct mem_usage): Likewise.
10409 * vec.c (struct vec_usage): Likewise.
10411 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
10413 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
10416 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
10418 * doc/plugins.texi (enum plugin_event): New event.
10419 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
10420 and PLUGIN_FINISH_FUNCTION.
10421 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
10422 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
10424 2015-06-03 Richard Biener <rguenther@suse.de>
10426 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
10427 compute GROUP_GAP for the first element.
10428 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
10431 2015-06-03 Nick Clifton <nickc@redhat.com>
10433 * config/rl78/rl78-real.md: Add peepholes to avoid a register
10434 copy when calling a function.
10435 * config/rl78/rl78.c (need_to_save): Do not push the frame
10436 pointer in an interrupt handler prologue if it is never used.
10438 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10440 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
10442 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
10444 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
10445 reference when cloning alias node.
10447 2015-06-03 Martin Liska <mliska@suse.cz>
10449 * alloc-pool.h (struct pool_usage): Correct space padding.
10450 * ggc-page.c (ggc_print_statistics): Align columns in a report.
10451 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
10452 * tree.c (dump_tree_statistics): Align columns in a report.
10454 2015-06-03 Martin Liska <mliska@suse.cz>
10456 * alloc-pool.c (allocate_pool_descriptor): Remove.
10457 (struct pool_output_info): Likewise.
10458 (print_alloc_pool_statistics): Likewise.
10459 (dump_alloc_pool_statistics): Likewise.
10460 * alloc-pool.h (struct pool_usage): New struct.
10461 (pool_allocator::initialize): Change usage of memory statistics
10462 to a new interface.
10463 (pool_allocator::release): Likewise.
10464 (pool_allocator::allocate): Likewise.
10465 (pool_allocator::remove): Likewise.
10466 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
10467 for a pool allocator.
10468 * mem-stats.h (struct mem_location): Add new ctor.
10469 (struct mem_usage): Add counter for number of
10471 (mem_alloc_description::register_descriptor): New overload of
10472 * mem-stats.h (mem_location::to_string): New function.
10473 * bitmap.h (struct bitmap_usage): Use this new function.
10474 * ggc-common.c (struct ggc_usage): Likewise.
10477 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
10479 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
10480 of GCC_INSN_FLAGS_H block.
10482 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
10484 * explow.c (plus_constant): Update check after force_const_mem call
10485 to see if the value returned is not a NULL_RTX.
10487 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
10489 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
10490 remove instumentation thunks calling reachable functions.
10491 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
10492 * lto/lto-partition.c (privatize_symbol_name_1): New.
10493 (privatize_symbol_name): Privatize both decl and orig_decl
10494 names for instrumented functions.
10495 * cgraph.c (cgraph_node::verify_node): Add transparent
10496 alias chain check for instrumented node.
10498 2015-06-03 Marek Polacek <polacek@redhat.com>
10502 * tree.c (attribute_value_equal): Handle attribute format.
10503 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
10505 2015-06-03 Richard Biener <rguenther@suse.de>
10507 PR tree-optimization/63916
10508 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10509 Forward-propagate non-invariant addresses by splicing their
10510 reference ops if the result isn't going to be used by PRE.
10511 (vn_reference_lookup_3): Remove pointless assert.
10513 2015-06-03 Richard Biener <rguenther@suse.de>
10515 PR tree-optimization/66375
10516 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
10517 add to the evolution before following SSA edges.
10519 2015-06-03 Bin Cheng <bin.cheng@arm.com>
10521 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
10522 (dump_use, dump_cand, find_induction_variables): Pass new argument
10524 (record_use): Preserve the ssa name information in IV.
10526 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
10528 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
10530 (add_mode_tests): Don't add mode tests if the predicate only
10531 accepts scalar constant integers. Otherwise, allow the mode
10532 of "op" to be VOIDmode if the predicate does accept such integers.
10534 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
10537 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
10538 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
10539 (aarch64_secondary_reload): Likewise
10540 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
10542 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
10545 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
10546 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10549 * cprop.c (try_replace_reg): Check cost of constants before propagating.
10551 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10553 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
10554 provide access to the IBM extended double floating point mode if
10555 long double is IEEE 128-bit floating point.
10556 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
10557 point if long double is the IBM extended double type.
10559 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
10560 enable adding IEEE 128-bit floating point support.
10561 (-mfloat128-software): Likewise.
10562 (-mfloat128-sw): Likewise.
10564 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
10565 128-bit floating point types to occupy any register if
10566 -mlong-double-64. Do not allow use of IFmode/KFmode unless
10567 -mfloat128-software is enabled.
10568 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
10570 (rs6000_option_override_internal): Add -mfloat128-* support.
10571 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
10573 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
10574 and float128 type nodes.
10575 (ieee128_float_type_node): Likewise.
10576 (ibm128_float_type_node): Likewise.
10578 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10581 * config/aarch64/geniterators.sh: Rewrite in awk.
10583 2015-06-02 Martin Liska <mliska@suse.cz>
10585 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
10586 values to avoid -Wmaybe-uninitialized errors.
10588 2015-06-02 Richard Biener <rguenther@suse.de>
10591 * dwarf2out.c (lookup_context_die): New function.
10592 (resolve_addr): Avoid forcing a full DIE for the
10593 target of a DW_TAG_GNU_call_site during late compilation.
10594 Instead create a stub DIE without a type if we have a
10595 context DIE present.
10597 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
10599 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
10601 2015-06-02 Bin Cheng <bin.cheng@arm.com>
10603 PR tree-optimization/48052
10604 * cfgloop.h (struct control_iv): New.
10605 (struct loop): New field control_ivs.
10606 * tree-ssa-loop-niter.c : Include "stor-layout.h".
10607 (number_of_iterations_lt): Set no_overflow information.
10608 (number_of_iterations_exit): Init control iv in niter struct.
10609 (record_control_iv): New.
10610 (estimate_numbers_of_iterations_loop): Call record_control_iv.
10611 (loop_exits_before_overflow): New. Interface factored out of
10612 scev_probably_wraps_p.
10613 (scev_probably_wraps_p): Factor loop niter related code into
10614 loop_exits_before_overflow.
10615 (free_numbers_of_iterations_estimates_loop): Free control ivs.
10616 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
10618 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
10620 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
10621 the target doesn't belong to the current function.
10623 2015-06-02 Marek Polacek <polacek@redhat.com>
10625 PR middle-end/66345
10626 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
10627 get_maxval_strlen does not produce an INTEGER_CST.
10629 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
10631 * config/arc/constraints.md: Use lower-case names in match_code.
10632 * config/mmix/constraints.md: Likewise.
10634 2015-06-02 Richard Biener <rguenther@suse.de>
10636 PR tree-optimization/65961
10637 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
10638 check and clarify dump message.
10639 (vect_build_slp_tree): If all children are built up from scalars
10640 build up the parent from scalars instead.
10641 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
10643 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10646 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
10647 instead of print ... .
10649 2015-06-02 Alan Modra <amodra@gmail.com>
10651 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
10654 2015-06-02 Bin Cheng <bin.cheng@arm.com>
10656 PR tree-optimization/52563
10657 PR tree-optimization/62173
10658 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
10659 (alloc_iv, set_iv): New parameter.
10660 (determine_biv_step): Delete.
10661 (find_bivs): Inline original determine_biv_step. Pass new
10662 argument to set_iv.
10663 (idx_find_step): Use no_overflow information for conversion.
10664 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
10665 resolve_mixers handle folded_casts.
10666 (instantiate_scev_name): Change bool parameter to bool pointer.
10667 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
10668 (instantiate_array_ref, instantiate_scev_not): Ditto.
10669 (instantiate_scev_3, instantiate_scev_2): Ditto.
10670 (instantiate_scev_1, instantiate_scev_r): Ditto.
10671 (instantiate_scev_convert, ): Change parameter. Pass argument
10672 to chrec_convert_aggressive.
10673 (instantiate_scev): Change argument.
10674 (resolve_mixers): New parameter and set it.
10675 (scev_const_prop): New argument.
10676 * tree-scalar-evolution.h (resolve_mixers): New parameter.
10677 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
10679 (chrec_convert): New parameter. Move definition below.
10680 (chrec_convert_aggressive): New parameter and set it. Call
10681 convert_affine_scev.
10682 * tree-chrec.h (chrec_convert): New parameter.
10683 (chrec_convert_aggressive): Ditto.
10685 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
10687 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
10688 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
10689 the LHS of a no-return call if its type has variable size.
10690 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
10691 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
10693 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
10695 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
10696 * config.in: Regenerate.
10698 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
10700 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10701 consecutive accesses within outer-loop with force_vectorize
10702 for references with zero step in inner-loop.
10704 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
10706 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
10707 rather than from gcc/build directory.
10709 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
10712 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
10713 for __sync memory models, emit initial loads and final barriers as
10716 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
10719 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
10720 (aarch64_split_atomic_op): Check for __sync memory models, emit
10721 appropriate initial loads and final barriers.
10723 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
10725 * Makefile.in: Fix gcov dependencies that should
10726 not point to a build folder.
10728 2015-06-01 Richard Biener <rguenther@suse.de>
10731 2015-05-29 Richard Biener <rguenther@suse.de>
10733 PR tree-optimization/66314
10734 * tree-ssa-threadupdate.c (create_block_for_threading): Add
10735 parameter that says which loop the new block belongs to.
10736 (ssa_create_duplicates): Blocks duplicated for the threaded
10737 path belong to the loop of the thread destination.
10739 2015-06-01 Martin Liska <mliska@suse.cz>
10741 * sched-deps.c: Include pool-alloc.h before
10742 cselib.h header file is included.
10744 2015-06-01 Richard Biener <rguenther@suse.de>
10746 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
10749 2015-06-01 Martin Liska <mliska@suse.cz>
10751 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
10752 a function local variable.
10754 2015-06-01 Martin Liska <mliska@suse.cz>
10756 * alloc-pool.c (create_alloc_pool): Remove.
10757 (empty_alloc_pool): Likewise.
10758 (free_alloc_pool): Likewise.
10759 (free_alloc_pool_if_empty): Likewise.
10760 (pool_alloc): Likewise.
10761 (pool_free): Likewise.
10762 * alloc-pool.h: Remove old declarations.
10764 2015-06-01 Martin Liska <mliska@suse.cz>
10766 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
10767 (ira_create_object): Likewise.
10768 (ira_create_allocno): Likewise.
10769 (ira_create_live_range): Likewise.
10770 (copy_live_range): Likewise.
10771 (ira_finish_live_range): Likewise.
10772 (ira_free_allocno_costs): Likewise.
10773 (finish_allocno): Likewise.
10774 (finish_allocnos): Likewise.
10775 (initiate_prefs): Likewise.
10776 (ira_create_pref): Likewise.
10777 (finish_pref): Likewise.
10778 (finish_prefs): Likewise.
10779 (initiate_copies): Likewise.
10780 (ira_create_copy): Likewise.
10781 (finish_copy): Likewise.
10782 (finish_copies): Likewise.
10783 (finish_prefs): Likewise.
10785 2015-06-01 Martin Liska <mliska@suse.cz>
10787 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
10788 (allocate_and_init_ipcp_value): Likewise.
10789 (ipcp_lattice::add_value): Likewise.
10790 (merge_agg_lats_step): Likewise.
10791 (ipcp_driver): Likewise.
10792 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
10793 (ipa_free_all_structures_after_iinln): Likewise.
10794 * ipa-prop.h: Likewise.
10796 2015-06-01 Martin Liska <mliska@suse.cz>
10798 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
10800 (set_hint_predicate): Likewise.
10801 (inline_summary_alloc): Likewise.
10802 (reset_inline_edge_summary): Likewise.
10803 (reset_inline_summary): Likewise.
10804 (set_cond_stmt_execution_predicate): Likewise.
10805 (set_switch_stmt_execution_predicate): Likewise.
10806 (compute_bb_predicates): Likewise.
10807 (estimate_function_body_sizes): Likewise.
10808 (inline_free_summary): Likewise.
10810 2015-06-01 Martin Liska <mliska@suse.cz>
10812 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
10813 (ipa_edge_duplication_hook): Likewise.
10814 (ipa_free_all_structures_after_ipa_cp): Likewise.
10815 (ipa_free_all_structures_after_iinln): Likewise.
10817 2015-06-01 Martin Liska <mliska@suse.cz>
10819 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
10820 (ipa_profile_generate_summary): Likewise.
10821 (ipa_profile_read_summary): Likewise.
10822 (ipa_profile): Likewise.
10824 2015-06-01 Martin Liska <mliska@suse.cz>
10826 * tree-ssa-structalias.c (new_var_info): Use new type-based
10828 (new_constraint): Likewise.
10829 (init_alias_vars): Likewise.
10830 (delete_points_to_sets): Likewise.
10832 2015-06-01 Martin Liska <mliska@suse.cz>
10834 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
10835 (free_strinfo): Likewise.
10836 (pass_strlen::execute): Likewise.
10838 2015-06-01 Martin Liska <mliska@suse.cz>
10840 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
10842 (vn_reference_insert_pieces): Likewise.
10843 (vn_phi_insert): Likewise.
10844 (visit_reference_op_call): Likewise.
10845 (copy_phi): Likewise.
10846 (copy_reference): Likewise.
10847 (process_scc): Likewise.
10848 (allocate_vn_table): Likewise.
10849 (free_vn_table): Likewise.
10851 2015-06-01 Martin Liska <mliska@suse.cz>
10853 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
10855 (add_repeat_to_ops_vec): Likewise.
10856 (get_ops): Likewise.
10857 (maybe_optimize_range_tests): Likewise.
10858 (init_reassoc): Likewise.
10859 (fini_reassoc): Likewise.
10861 2015-06-01 Martin Liska <mliska@suse.cz>
10863 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
10865 (bitmap_set_new): Likewise.
10866 (get_or_alloc_expr_for_constant): Likewise.
10867 (get_or_alloc_expr_for): Likewise.
10868 (phi_translate_1): Likewise.
10869 (compute_avail): Likewise.
10870 (init_pre): Likewise.
10871 (fini_pre): Likewise.
10873 2015-06-01 Martin Liska <mliska@suse.cz>
10875 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
10876 (delete_dep_node): Likewise.
10877 (create_deps_list): Likewise.
10878 (free_deps_list): Likewise.
10879 (sched_deps_init): Likewise.
10880 (sched_deps_finish): Likewise.
10882 2015-06-01 Martin Liska <mliska@suse.cz>
10884 * regcprop.c (free_debug_insn_changes): Use new type-based
10886 (replace_oldest_value_reg): Likewise.
10887 (pass_cprop_hardreg::execute): Likewise.
10889 2015-06-01 Martin Liska <mliska@suse.cz>
10891 * ira-build.c (initiate_cost_vectors): Use new type-based
10893 (ira_allocate_cost_vector): Likewise.
10894 (ira_free_cost_vector): Likewise.
10895 (finish_cost_vectors): Likewise.
10897 2015-06-01 Martin Liska <mliska@suse.cz>
10899 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
10901 (free_sched_pools): Likewise.
10902 * sel-sched-ir.h (_list_alloc): Likewise.
10903 (_list_remove): Likewise.
10905 2015-06-01 Martin Liska <mliska@suse.cz>
10907 * stmt.c (add_case_node): Use new type-based pool allocator.
10908 (expand_case): Likewise.
10909 (expand_sjlj_dispatch_table): Likewise.
10911 2015-06-01 Martin Liska <mliska@suse.cz>
10913 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
10914 (free_bb): Likewise.
10915 (pass_cse_reciprocals::execute): Likewise.
10917 2015-06-01 Martin Liska <mliska@suse.cz>
10919 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
10920 (sra_deinitialize) Likewise.
10921 (create_access_1) Likewise.
10922 (build_accesses_from_assign) Likewise.
10923 (create_artificial_child_access) Likewise.
10925 2015-06-01 Martin Liska <mliska@suse.cz>
10927 * dse.c (get_group_info):Use new type-based pool allocator.
10928 (dse_step0) Likewise.
10929 (free_store_info) Likewise.
10930 (delete_dead_store_insn) Likewise.
10931 (free_read_records) Likewise.
10932 (record_store) Likewise.
10933 (replace_read) Likewise.
10934 (check_mem_read_rtx) Likewise.
10935 (scan_insn) Likewise.
10936 (dse_step1) Likewise.
10937 (dse_step7) Likewise.
10939 2015-06-01 Martin Liska <mliska@suse.cz>
10941 * df-scan.c (struct df_scan_problem_data):Use new type-based
10943 (df_scan_free_internal) Likewise.
10944 (df_scan_alloc) Likewise.
10945 (df_grow_reg_info) Likewise.
10946 (df_free_ref) Likewise.
10947 (df_insn_create_insn_record) Likewise.
10948 (df_mw_hardreg_chain_delete) Likewise.
10949 (df_insn_info_delete) Likewise.
10950 (df_free_collection_rec) Likewise.
10951 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
10952 (df_sort_and_compress_mws) Likewise.
10953 (df_ref_create_structure) Likewise.
10954 (df_ref_record) Likewise.
10956 2015-06-01 Martin Liska <mliska@suse.cz>
10958 * df-problems.c (df_chain_create):Use new type-based pool allocator.
10959 (df_chain_unlink_1) Likewise.
10960 (df_chain_unlink) Likewise.
10961 (df_chain_remove_problem) Likewise.
10962 (df_chain_alloc) Likewise.
10963 (df_chain_free) Likewise.
10964 * df.h (struct dataflow) Likewise.
10966 2015-06-01 Martin Liska <mliska@suse.cz>
10968 * cselib.c (new_elt_list):Use new type-based pool allocator.
10969 (new_elt_loc_list) Likewise.
10970 (unchain_one_elt_list) Likewise.
10971 (unchain_one_elt_loc_list) Likewise.
10972 (unchain_one_value) Likewise.
10973 (new_cselib_val) Likewise.
10974 (cselib_init) Likewise.
10975 (cselib_finish) Likewise.
10977 2015-06-01 Martin Liska <mliska@suse.cz>
10979 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
10980 (sh_reorg) Likewise.
10982 2015-06-01 Martin Liska <mliska@suse.cz>
10984 * cfg.c (initialize_original_copy_tables):Use new type-based
10986 (free_original_copy_tables) Likewise.
10987 (copy_original_table_clear) Likewise.
10988 (copy_original_table_set) Likewise.
10990 2015-06-01 Martin Liska <mliska@suse.cz>
10992 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
10994 (asan_mem_ref_new) Likewise.
10995 (free_mem_ref_resources) Likewise.
10997 2015-06-01 Martin Liska <mliska@suse.cz>
10999 * var-tracking.c (variable_htab_free):Use new type-based
11001 (attrs_list_clear) Likewise.
11002 (attrs_list_insert) Likewise.
11003 (attrs_list_copy) Likewise.
11004 (shared_hash_unshare) Likewise.
11005 (shared_hash_destroy) Likewise.
11006 (unshare_variable) Likewise.
11007 (var_reg_delete_and_set) Likewise.
11008 (var_reg_delete) Likewise.
11009 (var_regno_delete) Likewise.
11010 (drop_overlapping_mem_locs) Likewise.
11011 (variable_union) Likewise.
11012 (insert_into_intersection) Likewise.
11013 (canonicalize_values_star) Likewise.
11014 (variable_merge_over_cur) Likewise.
11015 (dataflow_set_merge) Likewise.
11016 (remove_duplicate_values) Likewise.
11017 (variable_post_merge_new_vals) Likewise.
11018 (dataflow_set_preserve_mem_locs) Likewise.
11019 (dataflow_set_remove_mem_locs) Likewise.
11020 (variable_from_dropped) Likewise.
11021 (variable_was_changed) Likewise.
11022 (set_slot_part) Likewise.
11023 (clobber_slot_part) Likewise.
11024 (delete_slot_part) Likewise.
11025 (loc_exp_insert_dep) Likewise.
11026 (notify_dependents_of_changed_value) Likewise.
11027 (emit_notes_for_differences_1) Likewise.
11028 (vt_emit_notes) Likewise.
11029 (vt_initialize) Likewise.
11030 (vt_finalize) Likewise.
11032 2015-06-01 Martin Liska <mliska@suse.cz>
11034 * ira-color.c (init_update_cost_records):Use new type-based
11036 (get_update_cost_record) Likewise.
11037 (free_update_cost_record_list) Likewise.
11038 (finish_update_cost_records) Likewise.
11039 (initiate_cost_update) Likewise.
11041 2015-06-01 Martin Liska <mliska@suse.cz>
11043 * lra.c (init_insn_regs): Use new type-based pool allocator.
11044 (new_insn_reg) Likewise.
11045 (free_insn_reg) Likewise.
11046 (free_insn_regs) Likewise.
11047 (finish_insn_regs) Likewise.
11048 (init_insn_recog_data) Likewise.
11049 (init_reg_info) Likewise.
11050 (finish_reg_info) Likewise.
11051 (lra_free_copies) Likewise.
11052 (lra_create_copy) Likewise.
11053 (invalidate_insn_data_regno_info) Likewise.
11055 2015-06-01 Martin Liska <mliska@suse.cz>
11057 * lra-lives.c (free_live_range): Use new type-based pool allocator.
11058 (free_live_range_list) Likewise.
11059 (create_live_range) Likewise.
11060 (copy_live_range) Likewise.
11061 (lra_merge_live_ranges) Likewise.
11062 (remove_some_program_points_and_update_live_ranges) Likewise.
11063 (lra_live_ranges_init) Likewise.
11064 (lra_live_ranges_finish) Likewise.
11066 2015-06-01 Martin Liska <mliska@suse.cz>
11068 * et-forest.c (et_new_occ): Use new type-based pool allocator.
11069 (et_new_tree): Likewise.
11070 (et_free_tree): Likewise.
11071 (et_free_tree_force): Likewise.
11072 (et_free_pools): Likewise.
11073 (et_split): Likewise.
11075 2015-06-01 Martin Liska <mliska@suse.cz>
11077 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
11079 * alloc-pool.h (pool_allocator::pool_allocator): New function.
11080 (pool_allocator::release): Likewise.
11081 (inline pool_allocator::release_if_empty): Likewise.
11082 (inline pool_allocator::~pool_allocator): Likewise.
11083 (pool_allocator::allocate): Likewise.
11084 (pool_allocator::remove): Likewise.
11086 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11088 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
11091 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11093 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
11095 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
11096 (arm_macro_fusion_p): Likewise.
11097 (arm_macro_fusion_pair_p): Likewise.
11099 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11101 * config/aarch64/aarch64-protos.h (tune_params): Rename
11102 fuseable_ops to fusible_ops.
11103 * config/aarch64/aarch64.c (generic_tunings): Rename
11104 fuseable_ops to fusible_ops.
11105 (cortexa53_tunings): Likewise.
11106 (cortexa57_tunings): Likewise.
11107 (thunderx_tunings): Likewise.
11108 (xgene1_tunings): Likewise.
11109 (aarch64_macro_fusion_p): Likewise.
11110 (aarch64_macro_fusion_pair_p): Likewise.
11112 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
11114 * config/s390/driver-native.c: New file.
11115 * config/s390/x-native: New file.
11116 * config.host: Add new files for s390.
11117 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
11119 * config.gcc: Likewise.
11120 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
11121 * config/s390/s390-opts.h (enum processor_type): Ditto.
11122 * config/s390/s390.c (s390_option_override): Catch unhandled
11125 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
11128 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
11129 redirection for instrumented calls.
11130 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
11131 (append_compiler_options): Append -fcheck-pointer-bounds.
11132 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
11133 (chkp_redirect_edge): New.
11134 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
11135 (chkp_redirect_edge): New.
11137 2015-06-01 Richard Biener <rguenther@suse.de>
11139 PR tree-optimization/66280
11140 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
11143 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11145 * config/aarch64/aarch64.md
11146 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
11149 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
11151 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
11152 Remove obsolete kludge.
11154 2015-06-01 Richard Biener <rguenther@suse.de>
11156 * tree-ssa-reassoc.c (get_rank): Simplify.
11158 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
11160 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
11161 * configure: Regenerated.
11163 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
11165 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
11166 issue (add space between string literal and macro).
11167 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
11169 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
11171 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
11172 implict or explicit -fPIE or -fpie.
11174 2015-05-30 Mike Frysinger <vapier@gentoo.org>
11176 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
11178 2015-05-28 DJ Delorie <dj@redhat.com>
11180 * expmed.c (extract_bit_field_1): Avoid clobbering a
11181 yet-to-be-used base/index register.
11183 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
11185 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
11186 (alias_stats): Add num_universal.
11187 (alias_set_subset_of): Special case pointers; be ready for NULL
11189 (alias_sets_conflict_p): Special case pointers; be ready for NULL
11191 (init_alias_set_entry): Break out from ...
11192 (record_alias_subset): ... here; propagate new fields;
11193 allocate children only when really needed.
11194 (get_alias_set): Do less generous pointer globbing.
11195 (dump_alias_stats_in_alias_c): Update statistics.
11197 2015-05-30 Alan Modra <amodra@gmail.com>
11199 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
11200 correct block for use of r12.
11201 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
11203 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
11206 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
11209 2015-05-29 Jakub Jelinek <jakub@redhat.com>
11211 PR tree-optimization/66142
11212 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
11213 virtual phis that feed themselves.
11215 2015-05-29 Richard Biener <rguenther@suse.de>
11217 PR tree-optimization/66314
11218 * tree-ssa-threadupdate.c (create_block_for_threading): Add
11219 parameter that says which loop the new block belongs to.
11220 (ssa_create_duplicates): Blocks duplicated for the threaded
11221 path belong to the loop of the thread destination.
11223 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11225 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
11226 to cleanup-saved-temps.
11227 * doc/sourcebuild.texi (Clean up generated test files): Expand
11229 (dg-keep-saved-temps): Document new proc.
11230 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
11231 cleanup-saved-temps): Remove.
11233 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
11235 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
11236 gcc_AC_CHECK_DECLS.
11237 * configure: Regenerate.
11239 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11241 * config/nios2/linux.h (CPP_SPEC): Define.
11243 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11245 * config/microblaze/linux.h (CPP_SPEC): Define.
11247 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11249 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
11250 -pthread is specified.
11252 2015-05-28 Richard Biener <rguenther@suse.de>
11254 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
11255 (vect_fixup_scalar_cycles_with_patterns): Likewise.
11256 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
11257 after pattern recog.
11258 (vect_create_epilog_for_reduction): Properly handle reductions
11260 (vectorizable_reduction): Likewise.
11261 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
11263 (vect_get_constant_vectors): Create the correct number of
11264 initial values for reductions.
11265 (vect_schedule_slp_instance): Handle reduction chains that are
11266 type changing properly.
11267 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
11269 2015-05-28 Richard Biener <rguenther@suse.de>
11271 PR tree-optimization/66142
11272 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
11273 values better in memcpy destination handling. Handle non-aliasing
11276 2015-05-28 Lawrence Velázquez <vq@larryv.me>
11279 * config/darwin-c.c (version_components): New global enum.
11280 (parse_version, version_as_legacy_macro)
11281 (version_as_modern_macro, macosx_version_as_macro): New functions.
11282 (version_as_macro): Remove.
11283 (darwin_cpp_builtins): Use new function.
11285 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
11287 * builtins.c (expand_builtin_acc_on_device): Mark parameters
11288 with ATTRIBUTE_UNUSED.
11290 2015-05-28 Julian Brown <julian@codesourcery.com>
11294 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
11295 sequence for !ACCEL_COMPILER.
11297 2015-05-28 Nick Clifton <nickc@redhat.com>
11299 * config/rx/rx.c (push_regs): New function. Extracts code from...
11300 (rx_expand_prologue): ... here. Use push_regs to push even small
11301 spans of registers.
11302 (pop_regs): New function.
11303 (rx_expand_epilogue): Use pop_regs to pop even small spans of
11306 2015-05-28 Richard Biener <rguenther@suse.de>
11308 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
11310 (SLP_INSTANCE_BODY_COST_VEC): Remove.
11311 (vect_update_slp_costs_according_to_vf): Likewise.
11312 (vect_slp_analyze_operations): Update prototype.
11313 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
11314 vect_update_slp_costs_according_to_vf, adjust.
11315 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
11316 (vect_analyze_slp_cost_1): Likewise.
11317 (vect_analyze_slp_cost): Likewise. Properly deal with
11318 widening reduction ops. Commit body costs.
11319 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
11320 cost for loops from here.
11321 (vect_slp_analyze_operations): But do it from here when
11322 the vectorization factor is known and stmts are analyzed.
11323 (vect_bb_vectorization_profitable_p): Simplify.
11324 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
11325 (vect_update_slp_costs_according_to_vf): Remove.
11327 2015-05-27 Magnus Granberg <zorry@gentoo.org>
11328 H.J. Lu <hongjiu.lu@intel.com>
11330 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
11331 (BUILD_CFLAGS): Likewise.
11332 (BUILD_CXXFLAGS): Likewise.
11333 (LINKER): Add @NO_PIE_FLAG@.
11334 (BUILD_LDFLAGS): Likewise.
11335 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
11336 --enable-default-pie.
11337 * common.opt (fPIE): Initialize to -1.
11339 (no-pie): New option.
11340 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
11341 * configure.ac: Add --enable-default-pie.
11342 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
11343 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
11344 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
11345 * gcc.c (NO_PIE_SPEC): New.
11346 (PIE_SPEC): Likewise.
11347 (NO_FPIE1_SPEC): Likewise.
11348 (FPIE1_SPEC): Likewise.
11349 (NO_FPIE2_SPEC): Likewise.
11350 (FPIE2_SPEC): Likewise.
11351 (NO_FPIE2_SPEC): Likewise.
11352 (FPIE_SPEC): Likewise.
11353 (NO_FPIE_SPEC): Likewise.
11354 (NO_FPIC1_SPEC): Likewise.
11355 (FPIC1_SPEC): Likewise.
11356 (NO_FPIC2_SPEC): Likewise.
11357 (FPIC2_SPEC): Likewise.
11358 (NO_FPIC2_SPEC): Likewise.
11359 (FPIC_SPEC): Likewise.
11360 (NO_FPIC_SPEC): Likewise.
11361 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
11362 (FPIE1_OR_FPIC1_SPEC): Likewise.
11363 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
11364 (FPIE2_OR_FPIC2_SPEC): Likewise.
11365 (NO_FPIE_AND_FPIC_SPEC): Likewise.
11366 (FPIE_OR_FPIC_SPEC): Likewise.
11367 (LD_PIE_SPEC): Likewise.
11368 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
11369 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
11370 * config/darwin.h (PIE_SPEC): Renamed to ...
11371 (DARWIN_PIE_SPEC): This.
11372 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
11373 * config/darwin9.h (PIE_SPEC): Renamed to ...
11374 (DARWIN_PIE_SPEC): This.
11375 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
11376 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
11377 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
11378 FPIE2_OR_FPIC2_SPEC.
11379 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
11380 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
11381 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
11382 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11383 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11384 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11385 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
11386 * config/m32r/m32r.h (ASM_SPEC): Likewise.
11387 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
11388 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11389 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
11390 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
11391 * config/sparc/linux.h (ASM_SPEC): Likewise.
11392 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11393 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
11394 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
11395 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11396 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11397 * config/sparc/sparc.h (ASM_SPEC): Likewise.
11398 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
11399 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
11400 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
11401 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
11402 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
11403 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
11404 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
11405 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
11406 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
11407 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
11408 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
11409 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
11410 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11411 * config/vax/linux.h (ASM_SPEC): Likewise.
11412 * doc/install.texi: Document --enable-default-pie.
11413 * doc/invoke.texi: Document -no-pie.
11414 * config.in: Regenerated.
11415 * configure: Likewise.
11417 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
11419 PR rtl-optimization/66168
11420 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
11421 can_move_invariant_reg.
11423 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
11426 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
11427 REG_EQUAL note when doing insert.
11429 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
11430 instead of "%d" for 'o' operand.
11432 2015-05-27 Nathan Sidwell <nathan@acm.org>
11435 * tree.c (build_pointer_type_for_mode): Canonical type does not
11436 inherit can_alias_all.
11437 (build_reference_type_for_mode): Likewise.
11439 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
11441 * expr.h (array_at_struct_end_p): Move to...
11442 (array_ref_element_size): Likewise.
11443 (component_ref_field_offset): Likewise.
11444 * tree.h (array_ref_element_size): ...here.
11445 (array_at_struct_end_p): Likewise.
11446 (component_ref_field_offset): Likewise.
11447 * expr.c (array_ref_element_size): Move to...
11448 (array_ref_low_bound): Likewise.
11449 (array_at_struct_end_p): Likewise.
11450 (array_ref_up_bound): Likewise.
11451 (component_ref_field_offset): Likewise.
11452 * tree.c (array_ref_element_size): ...here.
11453 (array_ref_low_bound): Likewise.
11454 (array_ref_up_bound): Likewise.
11455 (array_at_struct_end_p): Likewise.
11456 (component_ref_field_offset): Likewise.
11458 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
11459 Szabolcs Nagy <szabolcs.nagy@arm.com>
11461 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
11463 2015-05-27 Jason Merrill <jason@redhat.com>
11466 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
11467 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
11468 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
11470 2015-05-22 Aditya Kumar <hiraditya@msn.com>
11472 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
11475 * statistics.c (statistics_fini_pass): Print pass name.
11477 2015-05-27 Richard Biener <rguenther@suse.de>
11479 PR tree-optimization/66272
11481 2014-08-15 Richard Biener <rguenther@suse.de>
11483 PR tree-optimization/62031
11484 * tree-data-ref.c (dr_analyze_indices): Do not set
11485 DR_UNCONSTRAINED_BASE.
11486 (dr_may_alias_p): All indirect accesses have to go the
11487 formerly DR_UNCONSTRAINED_BASE path.
11488 * tree-data-ref.h (struct indices): Remove
11489 unconstrained_base member.
11490 (DR_UNCONSTRAINED_BASE): Remove.
11492 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
11494 * dwarf2out.c: Remove block_map.
11495 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
11496 (gen_lexical_block_die): Same.
11497 (dwarf2out_function_decl): Remove block_map use.
11498 (dwarf2out_c_finalize): Same.
11499 * tree-core.h (struct tree_block): Add die field.
11500 * tree.h (BLOCK_DIE): New.
11502 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11505 * expr.c (memory_load_overlap): New function.
11506 (emit_push_insn): When pushing partial args to the stack would
11507 clobber the register part load the overlapping part into a pseudo
11508 and put it into the hard reg after pushing. Change return type
11509 to bool. Add bool argument.
11510 * expr.h (emit_push_insn): Change return type to bool.
11512 * calls.c (expand_call): Cancel sibcall optimization when encountering
11513 partial argument on targets with ARGS_GROW_DOWNWARD and
11514 !STACK_GROWS_DOWNWARD.
11515 (emit_library_call_value_1): Update callsite of emit_push_insn.
11516 (store_one_arg): Likewise.
11518 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
11520 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
11522 2015-05-27 Martin Liska <mliska@suse.cz>
11524 * Makefile.in: Add additional dependencies related to memory report
11526 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
11527 * bitmap.c (struct bitmap_descriptor_d): Remove.
11528 (struct loc): Likewise.
11529 (struct bitmap_desc_hasher): Likewise.
11530 (bitmap_desc_hasher::hash): Likewise.
11531 (bitmap_desc_hasher::equal): Likewise.
11532 (get_bitmap_descriptor): Likewise.
11533 (bitmap_register): User new memory descriptor API.
11534 (register_overhead): Likewise.
11535 (bitmap_find_bit): Register nsearches and search_iter statistics.
11536 (struct bitmap_output_info): Remove.
11537 (print_statistics): Likewise.
11538 (dump_bitmap_statistics): Use new memory descriptor.
11539 * bitmap.h (struct bitmap_usage): New class.
11540 * genmatch.c: Extend header file inclusion.
11541 * genpreds.c: Likewise.
11542 * ggc-common.c (struct ggc_usage): New class.
11543 (struct ggc_loc_desc_hasher): Remove.
11544 (ggc_loc_desc_hasher::hash): Likewise.
11545 (ggc_loc_desc_hasher::equal): Likewise.
11546 (struct ggc_ptr_hash_entry): Likewise.
11547 (struct ptr_hash_hasher): Likewise.
11548 (ptr_hash_hasher::hash): Likewise.
11549 (ptr_hash_hasher::equal): Likewise.
11550 (make_loc_descriptor): Likewise.
11551 (ggc_prune_ptr): Likewise.
11552 (dump_ggc_loc_statistics): Use new memory descriptor.
11553 (ggc_record_overhead): Likewise.
11554 (ggc_free_overhead): Likewise.
11555 (final_cmp_statistic): Remove.
11556 (cmp_statistic): Likewise.
11557 (ggc_add_statistics): Liekwise.
11558 (ggc_prune_overhead_list): Likewise.
11559 * hash-map-traits.h: New file.
11560 * hash-map.h (struct default_hashmap_traits): Move the traits to a
11561 separate header file.
11562 * hash-set.h: Pass memory statistics info to ctor.
11563 * hash-table.c (void dump_hash_table_loc_statistics): New function.
11564 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
11565 (hash_table::~hash_table): Register memory release operation.
11566 (hash_table::alloc_entries): Handle memory allocation operation.
11567 (hash_table::expand): Likewise.
11568 * inchash.c (iterative_hash_hashval_t): Move implementation to header
11570 (iterative_hash_host_wide_int): Likewise.
11571 * inchash.h (class hash): Likewise.
11572 * mem-stats-traits.h: New file.
11573 * mem-stats.h: New file.
11574 (mem_location): Add new class.
11575 (mem_usage): Likewise.
11576 (mem_alloc_description): Likewise.
11577 * sese.c: Add new header file inclusision.
11578 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
11580 * tree-sra.c: Add new header file inclusision.
11581 * vec.c (struct vec_descriptor): Remove.
11582 (hash_descriptor): Likewise.
11583 (struct vec_usage): Likewise.
11584 (struct ptr_hash_entry): Likewise.
11585 (hash_ptr): Likewise.
11586 (eq_ptr): Likewise.
11587 (vec_prefix::register_overhead): Use new memory descriptor API.
11588 (vec_prefix::release_overhead): Likewise.
11589 (add_statistics): Remove.
11590 (dump_vec_loc_statistics): Use new memory descriptor API.
11591 * vec.h (struct vec_prefix): Likewise.
11592 (va_heap::reserve): Likewise.
11593 (va_heap::release): Likewise.
11594 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
11596 2015-05-27 Richard Biener <rguenther@suse.de>
11598 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
11599 earlier and remove ??? comment.
11600 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
11601 and got called from loop analysis bail out. Always pass the SLP
11602 node to the vectorizable_* functions.
11603 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
11604 the premature SLP check here.
11605 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
11606 detected SLP stmts.
11607 (vect_detect_hybrid_slp_1): Likewise.
11609 2015-05-26 Jeff Law <law@redhat.com>
11611 * combine.c (find_split_point): Verify that the shift count is a
11612 constant when choosing (plus (ashift ...)) as a split point.
11614 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
11615 No functional changes.
11617 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
11619 * ipa-polymorphic-call.c
11620 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
11621 case when call target is already known.
11623 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
11626 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
11627 take into account the case that operands[1] and operands[2]
11628 are the same register.
11630 2015-05-26 Michael Matz <matz@suse.de>
11632 PR middle-end/66251
11634 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
11636 (vect_create_vectorized_demotion_stmts): Always set
11637 STMT_VINFO_VEC_STMT, also with SLP.
11638 (vectorizable_store): Handle strided group stores.
11640 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11643 * config/aarch64/aarch64.md
11644 (*adds_shift_imm_<mode>): New pattern.
11645 (*subs_shift_imm_<mode>): Likewise.
11646 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
11647 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
11648 (*add_uxt<mode>_shift2): Likewise.
11649 (*add_uxtsi_shift2_uxtw): Likewise.
11650 (*sub_uxt<mode>_shift2): Likewise.
11651 (*sub_uxtsi_shift2_uxtw): Likewise.
11653 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
11655 * config/rs6000/constraints.md (Y, U): Use match_test.
11657 2015-05-26 Christian Bruel <christian.bruel@st.com>
11660 * config/arm/arm.c (arm_option_check_internal)
11661 (arm_option_params_internal): Check opts->target_flags to set macros.
11662 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
11663 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
11664 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
11665 (builtin_define): Replaced with def_or_undef_macro.
11666 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
11667 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
11668 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
11669 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
11670 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
11671 (TARGET_ARM_FEATURE_LDREX_P)
11672 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
11673 * config/arm/arm-c.c (def_or_undef_macro): New function.
11674 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
11676 2015-05-26 Christian Bruel <christian.bruel@st.com>
11678 * c-common.h (builtin_define_with_int_value)
11679 (builtin_define_type_sizeof): Declare.
11680 * c-cppbuiltin.c (builtin_define_with_int_value)
11681 (builtin_define_type_sizeof): Externalize.
11682 (builtin_define_std): Cleanup declaration.
11683 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
11684 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
11685 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
11686 (builtin_define, builtin_assert): New macros.
11688 2015-05-26 Richard Biener <rguenther@suse.de>
11690 PR tree-optimization/66142
11691 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
11692 MEM_REFs for the same base address.
11694 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11697 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
11699 2015-05-26 Jason Merrill <jason@redhat.com>
11701 * configure.ac: Set CXXFLAGS for ISL test.
11702 * configure: Regenerate.
11704 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
11705 strstr and basename.
11706 * configure: Regenerate.
11708 2015-05-26 Richard Biener <rguenther@suse.de>
11710 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
11711 X % C -> X & (C - 1) for C being a power-of two to ...
11712 * match.pd: ... patterns.
11714 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
11716 * match.pd (swapped_tcc_comparison): New operator list.
11717 (-A CMP -B): New simplification.
11718 * fold-const.c (fold_comparison): Remove corresponding code.
11720 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
11722 * caller-save.c (init_caller_save): Base temporary register numbers
11723 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
11724 * cfgloopanal.c (init_set_costs): Likewise.
11725 * dojump.c (prefer_and_bit_test): Likewise.
11726 * expr.c (init_expr_target): Likewise.
11727 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11728 * lower-subreg.c (init_lower_subreg): Likewise.
11729 * postreload.c (reload_cse_regs_1): Likewise.
11731 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
11733 * gensupport.h (compute_test_codes): Declare.
11734 * gensupport.c (compute_predicate_codes): Rename to...
11735 (compute_test_codes): ...this. Generalize error message.
11736 (process_define_predicate): Update accordingly.
11737 * genpreds.c (compute_maybe_allows): Delete.
11738 (add_constraint): Use compute_test_codes to determine whether
11739 something can accept a SUBREG, REG or MEM.
11741 2015-05-26 Torvald Riegel <triegel@redhat.com>
11743 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
11744 'memory model' to align with C++11; fix description of memory orders;
11747 2015-05-26 Richard Biener <rguenther@suse.de>
11749 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
11750 (vect_analyze_loop_operations): ... here. Remove slp parameter,
11751 detect whether we apply SLP. Remove call to
11752 vect_update_slp_costs_according_to_vf.
11753 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
11754 vect_update_slp_costs_according_to_vf from here. Dispatch
11755 to vect_slp_analyze_operations to analyze SLP stmts.
11756 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
11757 unused bb_vec_info parameter, adjust assert.
11758 (vect_slp_analyze_operations): Pass in the slp instance tree
11759 instead of bb_vec_info.
11760 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
11761 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
11763 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
11765 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
11766 Q_REGS. Expand comment.
11767 (REG_CLASS_NAMES): Ditto.
11768 (REG_CLASS_CONTENTS): Ditto.
11770 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
11773 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
11774 when LEGACY_INT_REGNO_P is processed.
11776 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
11778 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
11780 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11782 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
11783 register if not marked dead/unused, before return.
11785 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11788 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
11789 is set; check for assembler name at LTO time.
11790 (type_in_anonymous_namespace): Remove hacks, check that all
11791 anonymous types are called "<anon>"
11792 (odr_type_p): Simplify; add check for "<anon>"
11793 (odr_subtypes_equivalent): Add odr_type_p check.
11794 * tree.c (need_assembler_name_p): Even anonymous namespace needs
11797 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11799 * ipa-utils.h (method_class_type): Remove.
11800 * cgraphunit.c (walk_polymorphic_call_targets): Use
11801 TYPE_METHOD_BASETYPE.
11802 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
11803 on main variants only.
11804 (method_class_type): Remove.
11805 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
11806 (build_type_inheritance_graph): Likewise.
11807 * ipa-icf.c (sem_function::equals_wpa): Likewise.
11808 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
11809 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
11811 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11813 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
11814 is_typedef_decl, typedef_variant_p): Constify.
11815 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
11816 is_typedef_decl, typedef_variant_p): Constify.
11818 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11820 * defaults.h (gen_tablejump): New function.
11821 (HAVE_tablejump): Add default value.
11823 * stmt.c: Likewise.
11825 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11827 * defaults.h (gen_store_multiple): New function.
11828 (HAVE_store_multiple): Add default value.
11829 * expr.c (move_block_from_reg): Adjust.
11831 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11833 * defaults.h (gen_load_multiple): New function.
11834 (HAVE_load_multiple): Add default value.
11835 * expr.c (move_block_to_reg): Adjust.
11837 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11839 * defaults.h (gen_mem_signal_fence): New function.
11840 (HAVE_mem_signal_fence): Add default value.
11841 * optabs.c: Adjust.
11843 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11845 * defaults.h (gen_memory_barrier): New function.
11846 (HAVE_memory_barrier): Add default value.
11847 * optabs.c: Adjust.
11849 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11851 * defaults.h (gen_mem_thread_fence): New function.
11852 (HAVE_mem_thread_fence): Add default definition.
11853 * optabs.c: Adjust.
11855 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11857 * combine.c (find_split_point): Check the value of HAVE_lo_sum
11858 instead of if it is defined.
11859 (combine_simplify_rtx): Likewise.
11860 * lra-constraints.c (process_address_1): Likewise.
11861 * config/darwin.c: Adjust.
11862 * genconfig.c (main): Always define HAVE_lo_sum.
11864 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11866 * genmatch.c (parser::parse_operation): Reject expanding
11867 operator-list inside 'for'.
11869 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11871 * genmatch.c (parser::parse_for): Reject iterator if used as
11874 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11876 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
11877 after end of id-list.
11879 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
11881 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
11882 we do not try to compute canonical type for type that does not need
11884 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
11886 * tree.h (type_with_alias_set_p): New.
11888 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
11890 * tree.c (gimple_canonical_types_compatible_p): Do not compare
11891 function attributes.
11892 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
11894 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
11896 * Makefile.in (check_gcc_parallelize): Delete.
11897 (lang_checks_parallelized): Update comment.
11899 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
11901 PR rtl-optimization/66237
11902 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
11903 location of an "as_a" cast.
11905 2015-05-22 Jeff Law <law@redhat.com>
11907 * config/pa/pa.md (non-canonical shift-add insns): Remove.
11908 (peepholes with non-canonical RTL sources): Remove.
11909 (peepholes for indexed stores of FP regs in integer modes): Match and
11910 generate canonical RTL.
11912 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
11914 PR tree-optimization/63387
11915 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
11916 ((x ord x) & (y ord y) -> (x ord y),
11917 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
11918 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
11919 vectors like scalars.
11921 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
11923 * convert.c (convert_to_integer, convert_to_vector): Include the
11924 types in the error message.
11926 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
11928 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
11931 2015-05-22 Jeff Law <law@redhat.com>
11933 * config/pa/pa.md (integer_indexed_store splitters): Use
11934 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
11935 insns -- adjusting the constant 2nd operand accordingly.
11937 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
11938 (plus (ashift X log2) Y) if it is a split point.
11940 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
11941 out of hppa_legitimize_address to handle both forms of a multiply
11943 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
11944 Always generate the ASHIFT variant as the result is not directly
11945 used in a MEM. Update comments and refactor slightly to improve
11948 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11951 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
11952 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
11953 (aarch64_composite_type_p): Return false if given type and mode are
11954 for a short vector.
11956 2015-05-22 Richard Biener <rguenther@suse.de>
11958 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
11960 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
11961 patterns when determining whether SLP is pure.
11962 (vect_is_slp_reduction): Remove check for pattern stmts.
11963 (vect_is_simple_reduction_1): Remove dead code.
11964 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
11965 (vect_get_and_check_slp_defs): Pass in the stmt number.
11966 Allow the first def in a reduction to be not a pattern stmt when
11967 the rest of the stmts def are patterns.
11968 (vect_build_slp_tree_1): Allow tcc_expression codes like
11969 SAD_EXPR and DOT_PROD_EXPR.
11970 (vect_build_slp_tree): Adjust.
11971 (vect_analyze_slp): Refactor and move BB vect error message ...
11972 (vect_slp_analyze_bb_1): ... here.
11974 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
11976 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
11977 for CSWTCH temporary.
11979 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11981 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
11982 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
11985 2015-05-22 Richard Biener <rguenther@suse.de>
11987 PR tree-optimization/66251
11988 * tree-vect-stmts.c (vectorizable_conversion): Properly
11989 set STMT_VINFO_VEC_STMT even for the SLP case.
11991 2015-05-22 Marek Polacek <polacek@redhat.com>
11993 * doc/extend.texi: Use @pxref instead of @xref.
11995 2015-05-22 hiraditya <hiraditya@msn.com>
11997 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
12000 2015-05-22 Richard Biener <rguenther@suse.de>
12002 PR tree-optimization/65701
12003 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12004 Move peeling cost models into one place. Peel for alignment
12005 for single loads only if an aligned load is cheaper than
12008 2015-05-22 Marek Polacek <polacek@redhat.com>
12011 * doc/extend.texi (Enumerator Attributes): New section.
12012 Document syntax of enumerator attributes.
12014 2015-05-22 Richard Biener <rguenther@suse.de>
12016 * tree-vect-loop.c (get_reduction_op): New function.
12017 (vect_model_reduction_cost): Use it, add reduc_index parameter.
12018 Make ready for BB reductions.
12019 (vect_create_epilog_for_reduction): Use get_reduction_op.
12020 (vectorizable_reduction): Init reduc_index to a valid value.
12021 Adjust vect_model_reduction_cost call.
12022 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
12023 operand for reduction defaults. Add SAD_EXPR support.
12024 Assert we have a neutral op for SLP reductions.
12025 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
12026 walking pattern stmt ops only recurse to SSA names.
12028 2015-05-22 Richard Biener <rguenther@suse.de>
12030 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
12031 assert with guard, remove check on detected reduction.
12032 (vect_recog_sad_pattern): Likewise.
12033 (vect_recog_widen_sum_pattern): Likewise.
12035 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12037 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
12038 __always_inline__ attribute.
12039 (vaesdq_u8): Likewise.
12040 (vaesmcq_u8): Likewise.
12041 (vaesimcq_u8): Likewise.
12042 (vsha1cq_u32): Likewise.
12043 (vsha1mq_u32): Likewise.
12044 (vsha1pq_u32): Likewise.
12045 (vsha1h_u32): Likewise.
12046 (vsha1su0q_u32): Likewise.
12047 (vsha1su1q_u32): Likewise.
12048 (vsha256hq_u32): Likewise.
12049 (vsha256h2q_u32): Likewise.
12050 (vsha256su0q_u32): Likewise.
12051 (vsha256su1q_u32): Likewise.
12052 (vmull_p64): Likewise.
12053 (vmull_high_p64): Likewise.
12055 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12057 * final.c (final_scan_insn): Don't check HAVE_peephole with the
12059 * output.h: Likewise.
12060 * genconfig.c (main): Alwways define HAVE_peephole.
12061 * genpeep.c: Don't emit checks of HAVE_peephole.
12063 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12065 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
12066 check HAVE_conditional_move with the preprocessor.
12068 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12070 * genconfig.c (main): Always define HAVE_conditional_move.
12071 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
12072 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
12075 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12077 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
12078 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
12079 and FRAME_POINTER_REGNUM with the preprocessor.
12081 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12083 * defaults.h: Add default for STACK_PUSH_CODE.
12084 * expr.c: Don't redefine STACK_PUSH_CODE.
12085 * recog.c: Likewise.
12087 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12089 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
12090 sched-deps.c: Use if instead of preprocessor checks with
12091 STACK_GROWS_DOWNWARD.
12093 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12095 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
12097 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
12098 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
12099 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
12100 * doc/tm.texi: Regenerate.
12102 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
12105 * config/i386/constraints.md (Bg): New constraint for GOT memory
12107 * config/i386/i386.md (*call_got_x32): New pattern.
12108 (*call_value_got_x32): Likewise.
12109 * config/i386/predicates.md (GOT_memory_operand): New predicate.
12111 2015-05-21 Jakub Jelinek <jakub@redhat.com>
12113 PR tree-optimization/66233
12114 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
12117 2015-05-21 Jeff Law <law@redhat.com>
12119 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
12120 than MULT for shadd sequences.
12122 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
12124 * alias.c (alias_stats): New static var.
12125 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
12126 (dump_alias_stats_in_alias_c): New function.
12127 * alias.h (dump_alias_stats_in_alias_c): Declare.
12128 * tree-ssa-alias.c (dump_alias_stats): Call it.
12130 2015-05-08 Michael Matz <matz@suse.de>
12132 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
12134 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
12135 (STMT_VINFO_STRIDED_P): ... this.
12136 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
12137 (vect_verify_datarefs_alignment): Likewise.
12138 (vect_enhance_data_refs_alignment): Likewise.
12139 (vect_analyze_data_ref_access): Likewise.
12140 (vect_analyze_data_refs): Accept strided stores.
12141 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
12142 (vect_model_load_cost): Adjust for macro rename.
12143 (vectorizable_mask_load_store): Likewise.
12144 (vectorizable_load): Likewise.
12145 (vectorizable_store): Open code strided stores.
12147 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12149 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
12150 Document sqrt_insn.
12152 2015-05-21 Richard Biener <rguenther@suse.de>
12155 * match.pd: Guard pattern optimzing (int)(float)int
12156 conversions to apply only on GIMPLE.
12158 2015-05-21 Jeff Law <law@redhat.com>
12160 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
12161 multiply-accumulate/shift-add insn generation.
12163 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
12166 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
12167 operands[1] are the same.
12169 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
12171 PR middle-end/66221
12172 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
12173 build_distinct_type_copy to copy bounds.
12175 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
12177 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
12178 Change to unsigned int.
12180 2015-05-20 Jeff Law <law@redhat.com>
12182 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
12183 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
12184 (pa_shadd_constant_p): Allow constants for shadd insns rather
12185 than valid scaling constants for memory addresses.
12186 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
12187 * config/pa/predicates.md (mem_shadd_operand): New predicate.
12188 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
12189 (shift-add insns using ASHIFT): New patterns.
12191 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
12193 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
12195 (fix_up_fall_thru_edges): Likewise.
12196 (fix_crossing_conditional_branches): Likewise. Promote jump targets
12197 from to rtx_insn to rtx_code_label where feasible.
12198 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
12199 gen_move_insn (returned type changed to rtx_insn).
12200 * builtins.c (expand_errno_check): Fix arguments of
12201 do_compare_rtx_and_jump (now expects rtx_code_label).
12202 (expand_builtin_acc_on_device): Likewise.
12203 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
12204 invert_jump (now exprects rtx_jump_insn).
12205 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
12206 (construct_init_block): Use rtx_code_label.
12207 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
12208 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
12209 calling redirect_jump.
12210 (patch_jump_insn): Likewise.
12211 (redirect_branch_edge): Likewise.
12212 (force_nonfallthru_and_redirect): Likewise.
12213 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
12215 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
12216 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
12217 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
12218 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
12219 to store the value retured by gen_label_rtx.
12220 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
12222 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
12223 (split_branches): Fix calls of redirect_jump.
12224 * dojump.c (jumpifnot): Promote argument type from rtx to
12226 (jumpifnot_1): Likewise.
12227 (jumpif): Likewise.
12228 (jumpif_1): Likewise.
12229 (do_jump_1): Likewise.
12230 (do_jump): Likewise. Use rtx_code_label when feasible.
12231 (do_jump_by_parts_greater_rtx): Likewise.
12232 (do_jump_by_parts_zero_rtx): Likewise.
12233 (do_jump_by_parts_equality_rtx): Likewise.
12234 (do_compare_rtx_and_jump): Likewise.
12235 * dojump.h: Update function prototypes.
12236 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
12238 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
12240 (emit_label_before): Likewise.
12241 (emit_jump_insn_after_noloc): Likewise.
12242 (emit_jump_insn_after_setloc): Likewise.
12243 (emit_jump_insn_after): Likewise
12244 (emit_jump_insn_before_setloc): Likewise.
12245 (emit_jump_insn_before): Likewise.
12246 (emit_label_before): Promote return type to rtx_code_label.
12247 (emit_label): Likewise.
12248 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
12249 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
12251 (emit_stack_restore): Likewise.
12252 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
12253 (do_cmp_and_jump): Likewise.
12254 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
12255 from rtx to rtx_code_label.
12256 (gen_move_insn_uncast): New function.
12257 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
12258 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
12259 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
12260 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
12261 invert_jump_1 and redirect_jump_1.
12262 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
12263 do_compare_rtx_and_jump.
12264 (expand_addsub_overflow): Likewise.
12265 (expand_neg_overflow): Likewise.
12266 (expand_mul_overflow): Likewise.
12267 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
12268 return value of gen_move_insn.
12269 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
12270 * loop-doloop.c (add_test): Use rtx_code_label.
12271 (doloop_modify): Likewise.
12272 (doloop_optimize): Likewise.
12273 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
12274 * lra-constraints.c (emit_spill_move): Remove cast of value returned
12276 (inherit_reload_reg): Add cast when calling dump_insn_slim.
12277 (split_reg): Likewise.
12278 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
12280 * optabs.c (expand_binop_directly): Remove casts of values returned by
12282 (expand_unop_direct): Likewise.
12283 (expand_abs): Likewise.
12284 (maybe_emit_unop_insn): Likewise.
12285 (maybe_gen_insn): Promote return type to rtx_insn.
12286 * optabs.h: Update prototype of maybe_gen_insn.
12287 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
12289 * recog.c (struct peep2_insn_data): Promote type of insn field to
12291 (peep2_reinit_state): Use NULL instead of NULL_RTX.
12292 (peep2_attempt): Remove casts of insn in peep2_insn_data.
12293 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
12294 * recog.h (struct insn_gen_fn): Promote return types of function
12295 pointers and operator ().from rtx to rtx_insn.
12296 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
12297 (fill_eager_delay_slots): Likewise.
12298 (relax_delay_slots): Likewise.
12299 (make_return_insns): Likewise.
12300 (dbr_schedule): Likewise.
12301 (optimize_skips): Likewise.
12302 (reorg_redirect_jump): Likewise.
12303 (fill_slots_from_thread): Likewise.
12304 * reorg.h: Update prototypes.
12305 * resource.c (find_dead_or_set_registers): Use dyn_cast to
12306 rtx_jump_insn instead of check. Use it's jump_target method.
12307 * rtl.h (rtx_jump_insn::jump_label): Define new method.
12308 (rtx_jump_insn::jump_target): Define new method.
12309 (rtx_jump_insn::set_jump_target): Define new method.
12310 * rtlanal.c (tablejump_p): Promote type of one local variable.
12311 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
12312 (sched_analyze_insn): Likewise.
12313 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
12314 (print_insn): Likewise.
12315 * stmt.c (label_rtx): Promote return type to rtx_insn.
12316 (force_label_rtx): Likewise.
12317 (jump_target_rtx): Define new function.
12318 (expand_label): Use it, get rid of one cast.
12319 (expand_naked_return): Promote rtx to rtx_code_label.
12320 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
12321 (expand_case): Use rtx_code_label instread of rtx where feasible.
12322 (expand_sjlj_dispatch_table): Likewise.
12323 (emit_case_nodes): Likewise.
12324 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
12325 * store-motion.c (insert_store): Make use of new return type of
12326 gen_move_insn and remove a cast.
12327 (replace_store_insn): Likewise.
12329 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
12331 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
12332 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
12334 2015-05-20 Jeff Law <law@redhat.com>
12336 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
12337 dispose of the jump thread path when the jump threading
12338 opportunity is cancelled.
12340 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
12342 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
12343 when printing the caret character.
12345 2015-05-20 Marek Polacek <polacek@redhat.com>
12347 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
12349 2015-05-20 Marek Polacek <polacek@redhat.com>
12351 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
12352 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
12353 * gimple-fold.c (canonicalize_bool): Likewise.
12354 (same_bool_result_p): Likewise.
12355 * tree-if-conv.c (parse_predicate): Likewise.
12357 2015-05-20 Marek Polacek <polacek@redhat.com>
12359 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
12360 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
12362 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12364 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
12365 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
12368 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
12370 * config/mips/mips.h (micromips_globals): Declare.
12372 2015-05-20 David Malcolm <dmalcolm@redhat.com>
12374 * timevar.def (TV_INITIALIZE_RTL): New.
12375 * toplev.c (initialize_rtl): Use an auto_timevar to account this
12376 function's time to TV_INITIALIZE_RTL.
12378 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
12380 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
12381 gimple_build_nop calls.
12382 (chkp_find_bounds_for_elem): Likewise.
12383 (chkp_get_zero_bounds): Likewise.
12384 (chkp_get_none_bounds): Likewise.
12385 (chkp_get_bounds_by_definition): Likewise.
12386 (chkp_generate_extern_var_bounds): Likewise.
12387 (chkp_get_bounds_for_decl_addr): Likewise.
12388 (chkp_get_bounds_for_string_cst): Likewise.
12390 2015-05-20 Bin Cheng <bin.cheng@arm.com>
12392 PR tree-optimization/65447
12393 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
12394 (dump_use, dump_uses): Support to dump sub use.
12395 (record_use): New parameters to support sub use. Remove call to
12397 (record_sub_use, record_group_use): New functions.
12398 (compute_max_addr_offset, split_all_small_groups): New functions.
12399 (group_address_uses, rewrite_use_address): New functions.
12400 (strip_offset): New declaration.
12401 (find_interesting_uses_address): Call record_group_use.
12402 (add_candidate): New assertion.
12403 (infinite_cost_p): Move definition forward.
12404 (add_costs): Check INFTY cost and return immediately.
12405 (get_computation_cost_at): Clear setup cost and dependent bitmap
12407 (determine_use_iv_cost_address): Compute cost for sub uses.
12408 (rewrite_use_address_1): Rename from old rewrite_use_address.
12409 (free_loop_data): Free sub uses.
12410 (tree_ssa_iv_optimize_loop): Call group_address_uses.
12412 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12413 Jim Wilson <jim.wilson@linaro.org>
12415 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
12416 new fields loadv and storev.
12417 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
12418 Initialize loadv and storev.
12419 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
12420 (cortexa53_extra_costs): Likewise.
12421 (cortexa57_extra_costs): Likewise.
12422 (xgene1_extra_costs): Likewise.
12423 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
12426 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12428 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
12430 (cortexa8_extra_costs): Likewise.
12431 (cortexa5_extra_costs): Likewise.
12432 (cortexa7_extra_costs): Likewise.
12433 (cortexa12_extra_costs): Likewise.
12434 (cortexa15_extra_costs): Likewise.
12435 (v7m_extra_costs): Likewise.
12437 2015-05-20 Jeff Law <law@redhat.com>
12439 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
12440 instead of open-coded version. Also delete the jump thread created
12441 within this function.
12443 2015-05-20 Alan Modra <amodra@gmail.com>
12445 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
12446 stack adjusting insn. Formatting.
12447 (rs6000_emit_prologue): Track stack adjusting insn, and use of
12448 r12. If possible, emit first -fsplit-stack arg pointer insn
12449 before stack adjust. Don't use r12 to save cr if split-stack.
12451 2015-05-20 Alan Modra <amodra@gmail.com>
12453 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
12455 (rs6000_supports_split_stack): New function.
12456 * gcc/config/rs6000/rs6000.c (machine_function): Add
12457 split_stack_arg_pointer.
12458 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
12459 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
12460 rather than virtual_incoming_args_rtx.
12461 (rs6000_va_start): Likewise.
12462 (split_stack_arg_pointer_used_p): New function.
12463 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
12464 (morestack_ref): New var.
12465 (gen_add3_const, rs6000_expand_split_stack_prologue,
12466 rs6000_internal_arg_pointer, rs6000_live_on_entry,
12467 rs6000_split_stack_space_check): New functions.
12468 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
12469 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
12470 (UNSPECV_SPLIT_STACK_RETURN): Define.
12471 (split_stack_prologue, load_split_stack_limit,
12472 load_split_stack_limit_di, load_split_stack_limit_si,
12473 split_stack_return, split_stack_space_check): New expands and insns.
12474 * gcc/config/rs6000/rs6000-protos.h
12475 (rs6000_expand_split_stack_prologue): Declare.
12476 (rs6000_split_stack_space_check): Declare.
12478 2015-05-20 Alan Modra <amodra@gmail.com>
12480 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
12481 (direct_return): Test vrsave_size rather than vrsave_mask.
12482 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
12483 (rs6000_emit_epilogue): Likewise.
12485 2015-05-20 Alan Modra <amodra@gmail.com>
12487 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
12488 when not saving registers.
12489 (debug_stack_info): Adjust to omit printing unused offsets,
12491 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
12494 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12497 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
12498 value_type to const char *.
12500 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
12502 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
12503 to build a biarch toolchain again.
12505 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
12507 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
12508 or implicit declarations.
12509 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
12511 (get_odr_type): Check type has linkage before adding bases.
12512 (register_odr_type): Check that type has linkage before adding it.
12513 (type_known_to_have_no_deriavations_p): Rename to ..
12514 (type_known_to_have_no_derivations_p): This one.
12515 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
12516 (type_known_to_have_no_derivations_p): This one.
12517 * ipa-polymorphic-call.c
12518 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
12521 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
12523 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
12524 (layout_type): Use RECORD_OR_UNION_TYPE_P.
12526 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12528 * config/s390/s390.c (s390_vector_bool_type_p): New function.
12529 (s390_invalid_binary_op): New function.
12530 (TARGET_INVALID_BINARY_OP): Define macro.
12532 2015-05-19 David Sherwood <david.sherwood@arm.com>
12534 * loop-invariant.c (create_new_invariant): Don't calculate address cost
12535 if mode is not a scalar integer.
12536 (get_inv_cost): Increase computational cost for unused invariants.
12538 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12540 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
12541 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
12542 * config/s390/s390-builtin-types.def: New file.
12543 * config/s390/s390-builtins.def: New file.
12544 * config/s390/s390-builtins.h: New file.
12545 * config/s390/s390-c.c: New file.
12546 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
12547 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
12548 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
12549 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
12551 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
12553 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
12554 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
12555 variable definitions.
12556 (s390_const_operand_ok): New function.
12557 (s390_expand_builtin): Rewrite.
12558 (s390_init_builtins): New function.
12559 (s390_handle_vectorbool_attribute): New function.
12560 (s390_attribute_table): Add s390_vector_bool attribute.
12561 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
12562 (s390_branch_condition_mask): Generate masks for new modes.
12563 (s390_expand_vec_compare_cc): New function.
12564 (s390_mangle_type): Add mangling for vector bool types.
12565 (enum s390_builtin): Remove.
12566 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
12568 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
12569 s390_cpu_cpp_builtins.
12570 (REGISTER_TARGET_PRAGMAS): New macro.
12571 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
12572 (insn_cmp mode attribute): Add new CC modes.
12573 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
12574 (lcbb): New pattern definition.
12575 * config/s390/s390intrin.h: Include vecintrin.h.
12576 * config/s390/t-s390: New file.
12577 * config/s390/vecintrin.h: New file.
12578 * config/s390/vector.md: Include vx-builtins.md.
12579 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
12582 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12584 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
12586 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
12587 (s390_select_ccmode): Likewise.
12588 (s390_canonicalize_comparison): Swap operands if necessary.
12589 (s390_expand_vec_compare_scalar): Expand DFmode compare using
12590 single element vector instructions.
12591 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
12592 (s390_branch_condition_mask): Generate CC masks for the new modes.
12593 * config/s390/s390.md (v0, vf, vd): New mode attributes.
12594 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
12595 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
12596 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
12597 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
12598 (*extend<DSF:mode><BFP:mode>2): New insn definition.
12599 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
12600 (extend<DSF:mode><BFP:mode>2): Turn into expander.
12601 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
12602 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
12603 (sqrt<mode>2): Add vector instruction.
12605 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12607 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
12609 * config/s390/predicates.md (const0_operand, constm1_operand)
12610 (constable_operand): Accept vector operands.
12611 * config/s390/s390-modes.def: Add supported vector modes.
12612 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
12613 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
12614 (s390_bytemask_vector_p, s390_expand_vec_strlen)
12615 (s390_expand_vec_compare, s390_expand_vcond)
12616 (s390_expand_vec_init): Add prototypes.
12617 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
12618 (s390_vector_mode_supported_p): New function.
12619 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
12620 (s390_contiguous_bitmask_vector_p): New function.
12621 (s390_bytemask_vector_p): New function.
12622 (s390_split_ok_p): Vector regs don't work either.
12623 (regclass_map): Add VEC_REGS.
12624 (s390_legitimate_constant_p): Handle vector constants.
12625 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
12626 (legitimate_reload_vector_constant_p): New function.
12627 (s390_preferred_reload_class): Handle CONST_VECTOR.
12628 (s390_reload_symref_address): Likewise.
12629 (s390_secondary_reload): Vector memory instructions only support
12630 short displacements. Rename reload*_nonoffmem* to reload*_la*.
12631 (s390_emit_ccraw_jump): New function.
12632 (s390_expand_vec_strlen): New function.
12633 (s390_expand_vec_compare): New function.
12634 (s390_expand_vcond): New function.
12635 (s390_expand_vec_init): New function.
12636 (s390_dwarf_frame_reg_mode): New function.
12637 (print_operand): Handle addresses with 'O' and 'R' constraints.
12638 (NR_C_MODES, constant_modes): Add vector modes.
12639 (s390_output_pool_entry): Handle vector constants.
12640 (s390_hard_regno_mode_ok): Handle vector registers.
12641 (s390_class_max_nregs): Likewise.
12642 (s390_cannot_change_mode_class): New function.
12643 (s390_invalid_arg_for_unprototyped_fn): New function.
12644 (s390_function_arg_vector): New function.
12645 (s390_function_arg_float): Remove size variable.
12646 (s390_pass_by_reference): Handle vector arguments.
12647 (s390_function_arg_advance): Likewise.
12648 (s390_function_arg): Likewise.
12649 (s390_return_in_memory): Vector values are returned in a VR if
12651 (s390_function_and_libcall_value): Handle vector arguments.
12652 (s390_gimplify_va_arg): Likewise.
12653 (s390_call_saved_register_used): Consider the arguments named.
12654 (s390_conditional_register_usage): Disable v16-v31 for non-vec
12656 (s390_preferred_simd_mode): New function.
12657 (s390_support_vector_misalignment): New function.
12658 (s390_vector_alignment): New function.
12659 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
12660 (TARGET_VECTOR_MODE_SUPPORTED_P)
12661 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
12662 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
12663 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
12664 (TARGET_VECTOR_ALIGNMENT): Define target macro.
12665 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
12666 (FIRST_PSEUDO_REGISTER): Increase value.
12667 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
12668 (VECTOR_REG_P): Define macros.
12669 (FIXED_REGISTERS, CALL_USED_REGISTERS)
12670 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
12671 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
12672 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
12673 Add vector registers.
12674 (CANNOT_CHANGE_MODE_CLASS): Call C function.
12675 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
12676 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
12678 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
12679 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
12680 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
12681 (VR*_REGNUM): New constants.
12682 (ALL): New mode iterator.
12683 (INTALL): Remove mode iterator.
12685 (movti): Implement TImode moves for VRs.
12686 Disable TImode splitter for VR targets.
12687 Implement splitting TImode GPR<->VR moves.
12688 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
12689 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
12690 reload<mode>_la_in, reload<mode>_la_out.
12691 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
12692 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
12693 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
12694 (mov<mode> SF SD): Prefer lder, lde for loading.
12695 Add lrl and strl instructions.
12696 Add vector instructions.
12697 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
12698 Call s390_expand_vec_strlen on z13.
12699 (*cc_to_int): Change predicate to nonimmediate_operand.
12700 (addti3): Rename to *addti3. New expander.
12701 (subti3): Rename to *subti3. New expander.
12702 * config/s390/vector.md: New file.
12704 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12706 * common/config/s390/s390-common.c (processor_flags_table): Add
12708 * config.gcc: Add z13.
12709 * config/s390/s390-opts.h (enum processor_type): Add
12710 PROCESSOR_2964_Z13.
12711 * config/s390/s390.c (s390_adjust_priority): Check for
12712 PROCESSOR_2964_Z13.
12713 (s390_reorg): Likewise.
12714 (s390_sched_reorder): Likewise.
12715 (s390_sched_variable_issue): Likewise.
12716 (s390_loop_unroll_adjust): Likewise.
12717 (s390_option_override): Likewise. Default to -mvx when available.
12718 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
12719 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
12720 (TARGET_VX_ABI): Define macros.
12722 (TARGET_DEFAULT): Add MASK_OPT_VX.
12723 * config/s390/s390.md ("cpu" attribute): Add z13.
12724 ("cpu_facility" attribute): Add vec.
12725 * config/s390/s390.opt (processor_type): Add z13.
12726 (mvx): New options.
12727 * doc/invoke.texi: Add z13 option for -march.
12729 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12731 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
12732 mode check to make sure that only scalar integer values are
12735 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
12737 * tree.c (verify_type_variant): Fix #undef.
12738 (gimple_canonical_types_compatible_p): Move here from lto.c
12739 (verify_type): Verify TYPE_CANONICAL compatibility.
12740 * tree.h (gimple_canonical_types_compatible_p): Declare.
12742 2015-05-19 Jakub Jelinek <jakub@redhat.com>
12744 PR middle-end/66199
12745 * tree.h (OMP_TEAMS_COMBINED): Define.
12746 * gimplify.c (enum gimplify_omp_var_data): Add
12747 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
12748 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
12749 (omp_notice_variable): Accept both ORT_TEAMS
12750 and ORT_COMBINED_TEAMS. Don't recurse if
12751 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
12752 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
12754 (omp_no_lastprivate): New function.
12755 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
12756 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
12757 notice_outer and set appropriate bits, otherwise make
12758 sure default(none) combined constructs won't complain.
12759 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
12760 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
12761 omp_no_lastprivate either remove the clause or turn it
12762 into OMP_CLAUSE_PRIVATE.
12763 (gimplify_omp_for): Fix up handling of implicit
12764 lastprivate or linear iterators.
12765 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
12766 ORT_COMBINED_TEAMS.
12767 * omp-low.c (lower_omp_for_lastprivate): For combined
12768 for simd use fd.loop.n2 from the for rather than simd.
12770 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12772 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
12773 instead of gen_rtx_raw_REG.
12774 (cris_expand_epilogue): Likewise.
12775 * config/microblaze/microblaze.c (microblaze_classify_address):
12777 * config/sparc/sparc.md: Likewise.
12779 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
12781 * config/alpha/alpha.c (alpha_legitimize_reload_address)
12782 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
12783 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
12784 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
12785 Use CASE_CONST_SCALAR_INT.
12786 (print_operand) <case 'M'>: Use mode_width_operand to check the
12787 value of the constant.
12788 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
12789 * config/alpha/predicates.md (input_operand): Use general_operand
12790 instead of match_code as operand check.
12791 (symbolic_operand): Use match_code with subexpression digits.
12792 * config/alpha/constraints.md (Q): Ditto.
12794 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12796 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
12798 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12800 * config/s390/s390.c (s390_secondary_reload): Fix check for
12801 load/store relative.
12803 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12805 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
12806 alternative_mask to uint64_t.
12808 2015-05-19 Jakub Jelinek <jakub@redhat.com>
12810 PR tree-optimization/66187
12811 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
12812 Pass TYPE_SIGN to tree_int_cst_min_precision. If
12813 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
12815 2015-05-19 David Malcolm <dmalcolm@redhat.com>
12817 * diagnostic.c (diagnostic_report_current_module): Strengthen
12818 local "new_map" from const line_map * to
12819 const line_map_ordinary *.
12820 * genmatch.c (error_cb): Likewise for local "map".
12821 (output_line_directive): Likewise for local "map".
12822 * input.c (expand_location_1): Likewise for local "map".
12823 Pass NULL rather than &map to
12824 linemap_unwind_to_first_non_reserved_loc, since the value is never
12825 read from there, and the value written back not read from here.
12826 (is_location_from_builtin_token): Strengthen local "map" from
12827 const line_map * to const line_map_ordinary *.
12828 (dump_location_info): Strengthen locals "map" from
12829 line_map *, one to const line_map_ordinary *, the other
12830 to const line_map_macro *.
12831 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
12832 const line_map * to const line_map_macro *.
12833 (maybe_unwind_expanded_macro_loc): Add a call to
12834 linemap_check_macro when writing to the "map" field of the
12836 Introduce local const line_map_ordinary * "ord_map", using it in
12837 place of "map" in the part of the function where we know we have
12838 an ordinary map. Strengthen local "m" from const line_map * to
12839 const line_map_ordinary *.
12841 2015-05-19 Nick Clifton <nickc@redhat.com>
12844 * config/msp430/msp430.md (zero_extendhisi2): Add support for
12845 separate source and destination registers.
12847 2015-05-19 Richard Biener <rguenther@suse.de>
12849 PR tree-optimization/66165
12850 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
12851 for no load permutation.
12853 PR tree-optimization/66185
12854 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
12855 when building the SLP node from scalars.
12857 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
12858 Tristan Gingold <gingold@adacore.com>
12860 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
12861 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
12862 (expand_stack_restore): Call record_new_stack_level.
12863 (expand_stack_save): Do not call do_pending_stack_adjust.
12864 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
12865 * calls.c (expand_call): Call record_new_stack_level for alloca.
12866 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
12867 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
12868 (update_sjlj_context): New global function.
12869 * except.h (update_sjlj_context): Declare.
12870 * explow.c (record_new_stack_level): New global function.
12871 (allocate_dynamic_stack_space): Call record_new_stack_level.
12872 * explow.h (record_new_stack_level): Declare.
12873 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
12874 * cfgrtl.c (duplicate_insn_chain): Likewise.
12876 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12878 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
12879 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
12880 STACK_GROWS_DOWNWARD as normal if.
12881 (expand_call): Likewise.
12883 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
12886 * config/sh/sh.md (*round_int_even): New insn_and_split and
12887 accompanying new unnamed split.
12889 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12891 * bitmap.c (bitmap_set_range): Handle count==1 specially.
12892 (bitmap_clear_range): Likewise.
12893 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
12894 bitmap_set_range unconditionally.
12895 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
12896 * df-scan.c (df_mark_reg): Likewise.
12897 * haifa-sched.c (setup_ref_regs): Likewise.
12898 * sched-rgn.c (update_live_1): Likewise.
12900 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12902 * regs.h (END_HARD_REGNO): Delete.
12903 (END_REGNO): Move to...
12905 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
12906 * caller-save.c (mark_set_regs): Likewise.
12907 * combine.c (move_deaths, distribute_notes): Likewise.
12908 * cse.c (invalidate, invalidate_for_call): Likewise.
12909 * df-scan.c (df_ref_record): Likewise.
12910 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
12911 (record_last_reg_set_info): Likewise.
12912 * reg-stack.c (convert_regs_exit): Likewise.
12913 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
12914 * resource.c (update_live_status): Likewise.
12915 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
12917 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12919 * rtl.h (reg_info): Add an nregs field.
12920 (REG_NREGS): Use it.
12921 (SET_REGNO_RAW): Delete.
12922 (set_regno_raw): New function.
12923 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
12924 (END_REGNO): Redefine in terms of REG_NREGS.
12925 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
12927 * emit-rtl.c (set_mode_and_regno): Likewise.
12928 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
12929 instead of SET_REGNO_RAW.
12931 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12933 * rtl.h (PUT_MODE_RAW): New macro.
12934 (PUT_REG_NOTE_KIND): Use it.
12935 (set_mode_and_regno): Declare.
12936 (gen_raw_REG): Change regno to "unsigned int".
12937 (gen_rtx_REG): Change "unsigned" to "unsigned int".
12938 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
12939 use set_mode_and_regno to change the mode of registers.
12940 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
12941 * emit-rtl.c (set_mode_and_regno): New function.
12942 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
12943 * caller-save.c (reg_save_code): Use set_mode_and_regno.
12944 * expr.c (init_expr_target): Likewise.
12945 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12946 * postreload.c (reload_cse_simplify_operands): Likewise.
12948 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12950 * caller-save.c (init_caller_save): Use word_mode and
12951 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
12952 * expr.c (init_expr_target): Likewise.
12953 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12954 * postreload.c (reload_cse_regs_1): Likewise.
12956 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12958 * rtl.def (REG): Change format to "r".
12959 * rtl.h (rtunion): Remove rt_reg.
12960 (reg_info): New structure.
12961 (rtx_def): Add reg field to main union.
12962 (X0REGATTR): Delete.
12963 (REG_CHECK): New macro.
12964 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
12965 * rtl.c (rtx_format): Document "r".
12966 (rtx_code_size): Handle REG specially.
12967 * gengenrtl.c (special_format): Return true for formats
12969 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
12970 Deal with REG_ATTRS after the field loop.
12971 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
12972 * expmed.c (init_expmed): Call gen_raw_REG instead of
12974 * expr.c (init_expr_target): Likewise.
12975 * regcprop.c (maybe_mode_change): Likewise.
12976 * varasm.c (make_decl_rtl): Likewise.
12977 * final.c (leaf_renumber_regs_insn): Return early after
12979 * genemit.c (gen_exp): Handle 'r' fields.
12980 * genpeep.c (match_rtx): Likewise.
12981 * gensupport.c (subst_pattern_match): Likewise.
12982 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
12983 (alter_constraints, subst_dup): Likewise.
12984 * read-rtl.c (read_rtx_code): Likewise.
12985 * print-rtl.c (print_rtx): Likewise.
12986 * genrecog.c (find_operand, find_matching_operand): Likewise.
12987 (validate_pattern, match_pattern_2): Likewise.
12988 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
12989 (rtx_test::regno_field): New function.
12990 (operator ==, safe_to_hoist_p, transition_parameter_type)
12991 (parameter_type_string, print_parameter_value)
12992 (print_nonbool_test, print_test): Handle new enum values.
12993 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
12994 * lra-constraints.c (operands_match_p): Likewise.
12996 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12998 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
12999 Change type of new_regno to unsigned int.
13000 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
13001 new_regno to unsigned int.
13002 (df_ref_change_reg_with_loc): Remove old_regno parameter.
13003 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
13004 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
13005 (SET_REGNO_RAW): Add space after ",".
13007 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13009 * rtl.h (REG_NREGS): New macro
13010 * alias.c (record_set): Use it.
13011 * cfgcleanup.c (mark_effect): Likewise.
13012 * combine.c (likely_spilled_retval_1): Likewise.
13013 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
13014 (move_deaths, distribute_notes): Likewise.
13015 * cselib.c (cselib_record_set): Likewise.
13016 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
13017 * df-scan.c (df_mark_reg): Likewise.
13018 * dse.c (look_for_hardregs): Likewise.
13019 * dwarf2out.c (reg_loc_descriptor): Likewise.
13020 (multiple_reg_loc_descriptor): Likewise.
13021 * expr.c (write_complex_part, read_complex_part): Likewise.
13022 (emit_move_complex): Likewise.
13023 * haifa-sched.c (setup_ref_regs): Likewise.
13024 * ira-lives.c (mark_hard_reg_live): Likewise.
13025 * lra.c (lra_set_insn_recog_data): Likewise.
13026 * mode-switching.c (create_pre_exit): Likewise.
13027 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
13028 (reload_combine_recognize_pattern): Likewise.
13029 (reload_combine_note_use, move2add_record_mode): Likewise.
13030 (reload_cse_move2add): Likewise.
13031 * reg-stack.c (subst_stack_regs_pat): Likewise.
13032 * regcprop.c (kill_value, copy_value): Likewise.
13033 (copyprop_hardreg_forward_1): Likewise.
13034 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
13035 (build_def_use): Likewise.
13036 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
13037 (deps_analyze_insn): Likewise.
13038 * sched-rgn.c (check_live_1, update_live_1): Likewise.
13039 * sel-sched.c (count_occurrences_equiv): Likewise.
13040 * valtrack.c (dead_debug_insert_temp): Likewise.
13042 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13044 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
13045 * dse.c (note_add_store): Likewise.
13046 * ira-lives.c (mark_hard_reg_dead): Likewise.
13047 * loop-invariant.c (mark_reg_store): Likewise.
13048 (mark_reg_death): Likewise.
13049 * postreload.c (reload_combine): Likewise.
13050 (reload_combine_note_store): Likewise.
13051 (reload_combine_note_use): Likewise.
13052 * recog.c (peep2_reg_dead_p): Likewise.
13054 2015-05-19 Alan Modra <amodra@gmail.com>
13056 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
13057 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
13058 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
13060 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
13061 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
13062 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
13063 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
13065 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
13067 * config/mips/mips.md (JOIN_MODE): New mode iterator.
13068 (join2_load_Store<JOIN_MODE:mode>): New pattern.
13069 (join2_loadhi): Likewise.
13070 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
13071 load-load and store-stores.
13072 * config/mips/mips.opt (mload-store-pairs): New option.
13073 (TARGET_LOAD_STORE_PAIRS): New macro.
13074 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
13075 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
13076 * config/mips/mips.c (mips_load_store_bonding_p): New function.
13078 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
13080 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
13082 * dojump.c (do_compare_rtx_and_jump): Likewise.
13083 * expmed.c (emit_store_flag_1): Likewise.
13084 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
13085 * final.c (sprint_ul): Use std::reverse for reversing a string.
13086 * fold-const.c (extract_muldiv_1): Use std::swap.
13087 * genmodes.c (emit_mode_int_n): Likewise.
13088 * ifcvt.c (dead_or_predicable): Likewise.
13089 * ira-build.c (ira_merge_live_ranges): Likewise.
13090 (swap_allocno_copy_ends_if_necessary): Likewise.
13091 * ira.c (ira_setup_alts): Likewise.
13092 * loop-iv.c (iv_analyze_expr): Likewise.
13093 (implies_p): Likewise.
13094 (canon_condition): Likewise.
13095 * lra-constraints.c (swap_operands): Likewise.
13096 * lra-lives.c (lra_merge_live_ranges): Likewise.
13097 * omega.c (swap): Remove.
13099 (omega_unprotect_1): Use std::swap.
13100 (omega_solve_geq): Likewise.
13101 * optabs.c (expand_binop_directly): Likewise.
13102 (expand_binop): Likewise.
13103 (emit_conditional_move): Likewise.
13104 (emit_conditional_add): Likewise.
13105 * postreload.c (reload_cse_simplify_operands): Likewise.
13106 * reg-stack.c (emit_swap_insn): Likewise.
13107 (swap_to_top): Likewise.
13108 (compare_for_stack_reg): Likewise.
13109 (subst_asm_stack_regs): Likewise.
13110 * reload.c (find_reloads): Likewise.
13111 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
13112 * sel-sched.c (invoke_reorder_hooks): Likewise.
13113 (create_block_for_bookkeeping): Likewise.
13114 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
13115 (lambda_matrix_right_hermite): Use std::swap.
13116 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
13117 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13118 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
13119 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
13120 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
13121 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
13122 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
13123 * tree-vrp.c (compare_ranges): Likewise.
13124 * var-tracking.c (add_with_sets): Likewise.
13125 (vt_find_locations): Likewise.
13127 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
13129 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
13131 (FBSD_ENDFILE_SPEC): Likewise.
13132 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
13133 config/freebsd-spec.h.
13134 (ENDFILE_SPEC): Likewise.
13136 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
13137 Richard Henderson <rth@redhat.com>
13140 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
13141 Check for a memory location that is not a reference (using an AND)
13142 to an unaligned location here.
13143 * config/alpha/predicates.md (normal_memory_operand): Remove.
13145 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
13147 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
13148 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
13150 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
13152 * config/mips/mips.c (micromips_globals): New variable.
13153 (mips_set_compression_mode): Save and reinitialize target-dependent
13154 state for microMIPS.
13156 2015-05-18 Martin Liska <mliska@suse.cz>
13158 * dbgcnt.def: Add new counter.
13159 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
13161 2015-05-18 Martin Liska <mliska@suse.cz>
13163 * dbgcnt.def: Sort counters.
13164 * opts.c (common_handle_option): Do not compile if
13165 -fdbg-cnt-list is enabled.
13167 2015-05-18 Tom de Vries <tom@codesourcery.com>
13169 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
13170 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
13171 address operator to va_list operand.
13172 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
13174 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
13176 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
13177 * config/s390/s390.c (s390_gimplify_va_arg): Same.
13178 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
13180 2015-05-18 Tom de Vries <tom@codesourcery.com>
13182 * tree-ssa-tail-merge.c: Fix whitespace.
13184 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
13186 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
13187 cortex-a17, and cortex-a17.cortex-a7.
13189 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
13192 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
13194 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
13197 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
13198 QImode inner modes for TARGET_AVX512BW. Force mask operand
13199 to a register for AVX512F modes.
13201 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13203 * toplev.c (emit_debug_global_declarations): Do not output debug info
13204 when doing slim LTO objects.
13206 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13208 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
13209 odr_types_equivalent_p): Declare.
13210 (odr_type_p): Use gcc_checking_assert.
13211 (type_in_anonymous_namespace_p) Declare.
13212 (type_with_linkage_p): Declare.
13213 * common.opt (Wlto-type-mismatch): New warning.
13214 * ipa-devirt.c (compound_type_base): New function.
13215 (odr_or_derived_type_p): New function.
13216 (odr_types_equivalent_p): New function.
13217 (add_type_duplicate): Simplify.
13218 (type_with_linkage_p): Add hack to prevent false positives on C types
13219 (type_in_anonymous_namespace_p): Likewise.
13220 * tree.c (need_assembler_name_p): Use type_with_linkage.
13221 * tree.h (type_in_anonymous_namespace_p): Remove.
13222 * doc/invoke.texi (-Wlto-type-mismatch): Document
13224 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13226 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
13227 (verify_type): Verify STRING_FLAG.
13229 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
13232 * tree-pretty-print.c (percent_K_format): Replace locus pointer
13233 with accessor function.
13234 * tree-diagnostic.c (diagnostic_report_current_function): Use
13235 diagnostic_location function.
13236 (maybe_unwind_expanded_macro_loc): Likewise.
13237 (virt_loc_aware_diagnostic_finalizer): Likewise.
13238 (default_tree_printer): Replace locus pointer with accessor function.
13239 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
13240 (diagnostic_set_info_translated): Initialize second location.
13241 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
13242 (diagnostic_show_locus): Handle two locations. Call
13243 diagnostic_print_caret_line.
13244 (diagnostic_print_caret_line): New.
13245 (default_diagnostic_starter): Use diagnostic_location function.
13246 (diagnostic_report_diagnostic): Use diagnostic_location function.
13247 (verbatim): Do not set text.locus.
13248 * diagnostic.h (struct diagnostic_info): Remove location field.
13249 (struct diagnostic_context): Make caret_chars an array of two.
13250 (diagnostic_location): New inline.
13251 (diagnostic_expand_location): Handle two locations.
13252 (diagnostic_same_line): New inline.
13253 (diagnostic_print_caret_line): Declare.
13254 (CARET_LINE_MARGIN): New constant.
13255 * pretty-print.c (pp_printf): Do not set text.locus.
13256 (pp_verbatim): Do not set text.locus.
13257 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
13258 (struct text_info): Replace locus pointer with locations
13259 array. Add accessor functions.
13261 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
13262 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13265 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
13266 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
13267 large constants in register instead of splitting them.
13269 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
13272 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
13273 replacements in memory addresses.
13274 (get_unaligned_address): Ditto.
13276 2015-05-16 James Bowman <james.bowman@ftdichip.com>
13278 * config/ft32/*: New files for FT32 port.
13279 * doc/install.texi: Add FT32 information.
13280 * doc/invoke.texi: Add FT32 information.
13281 * doc/md.texi: Add FT32 information.
13282 * doc/contrib.texi: Self added.
13284 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
13286 PR tree-optimization/64454
13287 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
13288 (-1 - A -> ~A): Remove unnecessary condition.
13290 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
13292 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
13293 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
13294 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
13296 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
13298 * ipa-chkp.h (chkp_wrap_function): New.
13299 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
13300 (chkp_wrap_function_name): New.
13301 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
13302 to get wrapper name.
13303 * lto-cgraph.c: Include ipa-chkp.h.
13304 (input_cgraph_1): Avoid alias chain for wrappers.
13306 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
13308 PR middle-end/66134
13309 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
13310 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
13312 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13314 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
13315 (AARCH64_FL_SLOWMUL): Delete.
13316 (AARCH64_FL_CRC): Redefine to 1<<3.
13317 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
13319 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13321 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
13324 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
13326 * config/alpha/alpha.md (extendqidi2): Use general_operand
13327 instead of some_operand for operand[1] predicate.
13328 (extendhidi2): Ditto.
13329 (cbranchdi4): Use general_operand instead of some_operand
13330 for operand[1] and operands[2] predicates.
13331 (cstoredi4): Ditto.
13332 * config/alpha/predicates.md (some_operand): Remove unused predicate.
13333 (some_ni_operand): Ditto.
13335 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
13337 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
13338 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
13339 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
13340 low part of the constant using alpha_emit_set_const_1.
13341 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
13343 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
13345 * varasm.c (output_constant_pool_1): Pass down alignment from
13346 constant pool entry's descriptor to output_constant_pool_2.
13347 (output_object_block): Add comment prior to call to
13348 output_constant_pool_1.
13350 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
13352 PR rtl-optimization/65862
13353 * target.def (ira_change_pseudo_allocno_class): New hook.
13354 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
13356 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
13357 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
13359 * ira-costs.c (find_costs_and_classes): Call the hook and change
13360 classes when it is necessary.
13361 * doc/tm.texi: Update.
13363 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
13365 * config/i386/i386.md (sibcall_memory): Check that register with
13366 callee address is not also used as one of the arguments, instead
13367 of checking that it is not live after the sibcall.
13368 (sibcall_pop_memory): Ditto.
13369 (sibcall_value_memory): Ditto.
13370 (sibcall_value_pop_memory): Ditto.
13372 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
13374 * generic-match-head.c (types_match): Handle non-types.
13375 * gimple-match-head.c (types_match): Likewise.
13376 * match.pd: Remove unnecessary TREE_TYPE for types_match.
13378 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
13380 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
13381 (csneg3<mode>_insn): Enable expansion of pattern.
13383 2015-05-14 Nick Clifton <nickc@redhat.com>
13385 * config/rl78/rl78.c (rl78_select_section): Select the correct
13386 default section based upon the category of the decl.
13388 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
13390 PR rtl-optimization/30967
13391 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
13392 destination mode for the cost of scc patterns.
13394 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
13396 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
13397 using SWIM248 mode iterator.
13398 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
13399 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
13400 for operand[2] constraint.
13401 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
13403 2015-05-13 Jakub Jelinek <jakub@redhat.com>
13405 PR middle-end/66133
13406 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
13407 make sure it is never noreturn, even when the task body does not
13409 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
13410 right before GIMPLE_OMP_RETURN.
13411 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
13412 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
13413 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
13415 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13417 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
13418 * tree-ssa-math-opts.c: Include params.h
13419 (pow_synth_sqrt_info): New struct.
13420 (representable_as_half_series_p): New function.
13421 (get_fn_chain): Likewise.
13422 (print_nested_fn): Likewise.
13423 (dump_fractional_sqrt_sequence): Likewise.
13424 (dump_integer_part): Likewise.
13425 (expand_pow_as_sqrts): Likewise.
13426 (gimple_expand_builtin_pow): Use above to attempt to expand
13427 pow as series of square roots. Removed now unused variables.
13429 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
13431 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
13432 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
13433 Remove *p0 and *p1 arguments. Rewrite function.
13434 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
13435 (alpha_split_const_mov): Update calls to alpha_extract_integer and
13436 alpha_emit_set_long_const.
13437 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
13438 (alpha_output_mi_thunk_osf): Ditto.
13439 * config/alpha/alpha.md (movti): Do not check operands[1]
13442 2015-05-13 Richard Biener <rguenther@suse.de>
13444 PR tree-optimization/66129
13445 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
13447 (vect_schedule_slp_instance): Fix typo.
13449 2015-05-13 David Malcolm <dmalcolm@redhat.com>
13451 * common.opt (fdump-internal-locations): New option.
13452 * input.c: Include diagnostic-core.h.
13453 (get_end_location): New function.
13454 (write_digit): New function.
13455 (write_digit_row): New function.
13456 (dump_location_range): New function.
13457 (dump_labelled_location_range): New function.
13458 (dump_location_info): New function.
13459 * input.h (dump_location_info): New prototype.
13460 * toplev.c (compile_file): Handle flag_dump_locations.
13462 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
13464 * gimple-expr.h (is_gimple_constant): Reorder.
13465 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
13467 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
13469 * combine.c (simplify_set): When generating a CC set, if the
13470 source already is in the correct mode, do not wrap it in a
13471 compare. Simplify the rest of that code.
13473 2015-05-13 Richard Biener <rguenther@suse.de>
13475 PR tree-optimization/66123
13476 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
13479 2015-05-13 Richard Biener <rguenther@suse.de>
13481 PR middle-end/66110
13482 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
13484 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
13486 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
13488 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
13489 * aclocal.m4: Regenerated with automake-1.11.6.
13491 2015-05-13 Tom de Vries <tom@codesourcery.com>
13493 PR tree-optimization/66010
13494 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
13495 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
13496 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
13497 and rval based on do_deref.
13499 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
13502 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
13503 link time constants into adress expressions and therefore set
13506 2015-05-13 Jakub Jelinek <jakub@redhat.com>
13509 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
13510 Use SWI248 iterator instead of SWI.
13511 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
13512 Use eq_attr "alternative" "0" instead of match_test in
13513 length_immediate attribute computation.
13514 (*mulvhi4, *mulvhi4_1): New define_insns.
13517 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
13518 SIGNED to get precision of non-negative value.
13520 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
13523 * function.c (diddle_return_value_1): Process bounds first.
13524 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
13527 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
13529 PR rtl-optimization/64616
13530 * loop-invariant.c (can_move_invariant_reg): New.
13531 (move_invariant_reg): Call above new function to decide whether
13532 instruction can just be moved, skipping creation of temporary
13535 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
13537 PR target/pr66047.c
13538 * i386.c (ix86_function_sseregparm): Only return -1 if local function
13539 with implied regparm is called from -mno-sse function.
13540 (init_cumulative_args): Output error if ix86_function_sseregparm
13541 return -1 and SSE register would be needed.
13542 (function_arg_advance_32): Likewise.
13543 (function_arg_32): Likewise.
13544 * i386.h (ix86_args): Add decl field.
13546 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
13549 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
13550 inlines across optimization boundary.
13552 2015-05-12 Jason Merrill <jason@redhat.com>
13554 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
13555 string literal and macro name.
13557 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
13559 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
13560 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
13561 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
13563 2015-05-12 David Malcolm <dmalcolm@redhat.com>
13565 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
13566 (-Wmisleading-indentation): New option.
13567 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
13569 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
13571 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
13572 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
13573 (alpha_extract_integer): Ditto.
13574 (alpha_legitimate_constant_p): Ditto.
13575 (alpha_split_tmode_pair): Ditto.
13576 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
13577 (alpha_expand_mov): Ditto.
13578 (print_operand): Remove handling of 'H' modifier.
13579 <case 'm'>: Remove CONST_DOUBLE handling.
13580 (summarize_insn): Handle CONST_WIDE_INT.
13581 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
13583 (movti): Handle CONST_WIDE_INT.
13584 * config/alpha/constraints.md ('H'): Remove constraint definition.
13585 ('G'): Do not match MODE_FLOAT class.
13586 * config/alpha/predicates.md (const0_operand): Also match
13588 (non_add_const_operand): Ditto.
13589 (non_zero_const_operand): Ditto.
13590 (some_operand): Ditto.
13591 (input_operand): Ditto. Handle CONST_WIDE_INT.
13592 (and_operand): Do not match const_double.
13593 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
13595 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
13598 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
13599 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
13600 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
13601 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
13602 is_mm_seq_cst, is_mm_sync): New accessor functions.
13603 * builtins.c (expand_builtin_sync_operation,
13604 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
13605 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
13606 (get_memmodel, expand_builtin_atomic_compare_exchange,
13607 expand_builtin_atomic_load, expand_builtin_atomic_store,
13608 expand_builtin_atomic_clear): Use new accessor routines.
13609 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
13610 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
13611 (maybe_emit_sync_lock_test_and_set): Use new accessors and
13612 MEMMODEL_SYNC_ACQUIRE.
13613 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
13614 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
13615 expand_atomic_store): Use new accessors.
13616 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
13617 * tsan.c (instrument_builtin_call): Update check for memory model beyond
13618 final enum to use MEMMODEL_LAST.
13619 * c-family/c-common.c: Use new accessor for memmodel_base.
13620 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
13622 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
13623 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
13624 mem_thread_fence, *dmb): Likewise.
13625 * config/alpha/alpha.c (alpha_split_compare_and_swap,
13626 alpha_split_compare_and_swap_12): Likewise.
13627 * config/arm/arm.c (arm_expand_compare_and_swap,
13628 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
13629 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
13630 atomic_loaddi): Likewise.
13631 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
13633 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
13634 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
13636 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
13637 atomic_store<mode>, atomic_compare_and_swap<mode>,
13638 atomic_exchange<mode>): Use new accessors.
13639 * config/mips/mips.c (mips_process_sync_loop): Likewise.
13640 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
13641 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
13642 rs6000_post_atomic_barrier): Add new cases.
13643 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
13644 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
13645 (atomic_load<mode>): Add new cases and use new accessors.
13646 (store_quadpti): Add new cases.
13647 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
13649 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
13650 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
13653 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
13655 * ipa-devirt.c (type_with_linkage_p): New function.
13656 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
13658 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
13659 (can_be_name_hashed_p): Simplify.
13660 (hash_odr_name): Check that type has linkage before checking if it is
13662 (types_same_for_odr): Likewise.
13663 (odr_name_hasher::equal): Likewise.
13664 (odr_subtypes_equivalent_p): Likewise.
13665 (warn_types_mismatch): Likewise.
13666 (get_odr_type): Likewise.
13667 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
13668 * ipa-utils.h (odr_type_p): Move offline.
13669 * tree.c (need_assembler_name_p): Fix handling of types
13671 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
13673 2015-05-12 David Malcolm <dmalcolm@redhat.com>
13675 * timevar.c (timevar_enable): Delete in favor of...
13676 (g_timer): New global.
13677 (struct timevar_def): Move to timevar.h inside class timer.
13678 (struct timevar_stack_def): Likewise.
13679 (timevars): Delete global in favor of field "m_timevars" within
13680 class timer in timevar.h
13681 (stack): Likewise, in favor of field "m_stack".
13682 (unused_stack_instances): Likewise, in favor of field
13683 "m_unused_stack_instances".
13684 (start_time): Likewise, in favor of field "m_start_time".
13685 (get_time): Eliminate check for timevar_enable.
13686 (timer::timer): New function, built from part of timevar_init.
13687 (timevar_init): Rewrite idempotency test from using
13688 "timevar_enable" bool to using dynamic allocation of "g_timer".
13689 Move rest of implementation into timer's constructor.
13690 (timevar_push_1): Rename to...
13691 (timer::push): ...this, adding "m_" prefixes to variables that
13692 are now fields of timer.
13693 (timevar_pop_1): Likewise, rename to...
13694 (timer::pop): ...this, and add "m_" prefixes.
13695 (timevar_start): Replace test for "timevar_enable" with one for
13696 "g_timer", and move bulk of implementation to...
13697 (timer::start): ...here, adding "m_" prefixes.
13698 (timevar_stop): Likewise, from here...
13699 (timer::stop): ...to here.
13700 (timevar_cond_start): Likewise, from here...
13701 (timer::cond_start): ...to here.
13702 (timevar_cond_stop): Likewise, from here...
13703 (timer::cond_stop): ...to here.
13704 (validate_phases): Rename to...
13705 (timer::validate_phases): ...this, and add "m_" prefixes. Make
13706 locals "total" and "tv" const.
13707 (timevar_print): Rename to...
13708 (timer::print): ...this, and add "m_" prefixes. Make locals
13709 "total" and "tv" const. Eliminate test for timevar_enable.
13710 * timevar.h (timevar_enable): Eliminate.
13711 (g_timer): New declaration.
13712 (timevar_push_1): Eliminate.
13713 (timevar_pop_1): Eliminate.
13714 (timevar_print): Eliminate.
13715 (class timer): New class.
13716 (timevar_push): Rewrite to use g_timer.
13717 (timevar_pop): Likewise.
13718 * toplev.c (toplev::~toplev): Likewise.
13720 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
13722 * arm-protos.h (arm_sched_autopref): Delete.
13723 (tune_params): Re-organize, use enums for flag values.
13724 (FUSE_OPS): New macro.
13725 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
13726 (ARM_PREFETCH_BENEFICIAL): Likewise.
13727 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
13728 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
13729 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
13730 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
13731 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
13732 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
13733 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
13734 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
13736 (arm_option_override, thumb2_reorg, arm_print_tune_info)
13737 (aarch_macro_fusion_pair_p): Update uses of current_tune.
13738 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
13740 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
13742 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
13745 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
13746 Sandra Loosemore <sandra@codesourcery.com>
13748 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
13750 (REG_CLASS_NAMES): Add "IJMP_REGS".
13751 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
13752 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
13753 use new "c" register constraint.
13754 * config/nios2/constraint.md (c): New register constraint
13755 corresponding to IJMP_REGS.
13757 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13759 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
13760 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
13761 define_splits): Delete, revamp, transmogrify into ...
13762 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
13763 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
13764 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
13767 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13769 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
13770 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
13772 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13774 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
13775 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
13776 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
13777 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
13778 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
13779 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
13780 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
13781 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
13782 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
13783 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
13784 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
13785 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
13786 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
13787 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
13788 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
13789 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
13790 and 30 corresponding splitters): Delete.
13792 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13794 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
13797 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13799 * combine.c (recog_for_combine_1): New function, factored out
13800 from recog_for_combine.
13801 (change_zero_ext): New function.
13802 (recog_for_combine): If recog fails, try again with the pattern
13803 modified by change_zero_ext; if that still fails, restore the
13806 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13808 * combine.c (get_undo_marker): New function.
13809 (undo_to_marker): New function, largely factored out from ...
13810 (undo_all): ... this. Adjust.
13812 2015-05-12 Richard Biener <rguenther@suse.de>
13814 PR tree-optimization/66101
13815 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
13816 fixup if we turn a loop exit edge to a fallthru edge.
13818 2015-05-12 Richard Biener <rguenther@suse.de>
13820 PR tree-optimization/37021
13821 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
13822 (SLP_TREE_TWO_OPERATORS): New define.
13823 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
13824 SLP_TREE_TWO_OPERATORS.
13825 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
13827 (vect_build_slp_tree): Adjust.
13828 (vect_analyze_slp_cost_1): Likewise.
13829 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
13830 emitting two vector stmts and mixing the results.
13832 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
13834 * call.c (print_z_candidates): Remove dead code.
13836 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13838 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
13839 and zEC12_simple_fp.
13840 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
13843 2015-05-12 Tom de Vries <tom@codesourcery.com>
13845 PR tree-optimization/66010
13846 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
13848 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
13849 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
13850 va_lists are passed, and remove corresponding handling.
13851 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
13852 do_deref argument to ifn_va_arg.
13853 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
13856 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13859 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
13860 REG before taking its REGNO.
13862 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
13864 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
13865 rsp->sign_bit_copies and rsp->nonzero_bits into ...
13866 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
13867 present to get more accurate information about the number of sign bit
13868 copies and non zero bits.
13870 2015-05-12 Richard Biener <rguenther@suse.de>
13872 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
13873 do not allow unrolling.
13875 2015-05-11 Richard Henderson <rth@redhat.com>
13877 * config/i386/i386-modes.def (CCP): New.
13878 * config/i386/i386.c (put_condition_code): Handle it.
13879 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
13881 2015-05-11 Richard Henderson <rth@redhat.com>
13883 * target.def (md_asm_clobbers): Replace with...
13884 (md_asm_adjust): this.
13885 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
13886 (TARGET_MD_ASM_ADJUST): New.
13887 * tm.texi: Rebuild.
13888 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
13889 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
13890 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
13892 * cfgexpand.c (check_operand_nalternatives): Accept vector of
13893 constraints instead of lists of outputs and inputs.
13894 (expand_asm_stmt): Save and restore input_location around the
13895 body of the function. Move asm data into vectors instead of
13896 building tree lists. Generate cleanup sequences as needed,
13897 rather than waiting til the end. Use new md_asm_adjust hook.
13899 * config/vxworks.c: Include vec.h before target.h.
13900 * gimple.c: Likewise.
13901 * incpath.c: Likewise.
13902 * mode-switching.c: Likewise.
13904 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
13905 (cris_md_asm_adjust): this.
13906 (TARGET_MD_ASM_CLOBBERS): Remove.
13907 (TARGET_MD_ASM_ADJUST): New.
13908 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
13909 (ix86_md_asm_adjust): this.
13910 (TARGET_MD_ASM_CLOBBERS): Remove.
13911 (TARGET_MD_ASM_ADJUST): New.
13912 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
13913 (mn10300_md_asm_adjust): this.
13914 (TARGET_MD_ASM_CLOBBERS): Remove.
13915 (TARGET_MD_ASM_ADJUST): New.
13916 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
13917 (rs6000_md_asm_adjust): this.
13918 (TARGET_MD_ASM_CLOBBERS): Remove.
13919 (TARGET_MD_ASM_ADJUST): New.
13920 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
13921 (visium_md_asm_adjust): this.
13922 (TARGET_MD_ASM_CLOBBERS): Remove.
13923 (TARGET_MD_ASM_ADJUST): New.
13925 2015-05-11 Richard Henderson <rth@redhat.com>
13927 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
13928 if noutputs is zero.
13929 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
13931 * cfgexpand.c (expand_asm_operands): Merge into...
13932 (expand_asm_stmt): ... here.
13934 * cfgexpand.c (expand_asm_operands): Don't call
13935 resolve_asm_operand_names.
13936 * stmt.c (resolve_asm_operand_names): Clarify block comment.
13938 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
13940 * dwarf2out.c (gen_member_die): Sanity check that we access
13941 TYPE_MAIN_VARIANT for TYPE_METHODS.
13942 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
13943 checking TYPE_METHODS.
13944 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
13946 (build_distinct_type_copy): Clear TYPE_METHODS.
13947 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
13948 (verify_type): Allow TYPE_METHODS to be error_mark_node.
13949 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
13951 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
13953 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
13954 (emit_pattern_before_setloc): Likewise.
13956 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
13958 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
13959 for define_peephole2s.
13960 (get_peephole2_pattern): New function.
13961 (main): Use it. Call validate_pattern.
13963 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13965 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
13966 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
13967 (Last callee saved reg is different for AVR_TINY architecture)
13969 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
13971 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
13972 when looking for memory references.
13974 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
13977 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
13978 via function pointers.
13980 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
13982 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
13983 indirect call by forcing address into a pseudo with -fno-plt.
13984 * common.opt (flag_plt): New option.
13985 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
13986 ([-fno-plt]): Document.
13988 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
13991 * config/rs6000/option-defaults.h: Add space between string literal
13994 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
13996 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
13997 accross ARM targets.
13999 2015-05-11 Christian Bruel <christian.bruel@st.com>
14001 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
14002 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
14004 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
14006 PR rtl-optimization/66076
14007 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
14008 Don't grow the heap array if it is already big enough from a
14009 previous iteration.
14011 2015-05-11 Christian Bruel <christian.bruel@st.com>
14013 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
14014 (is_called_in_ARM_mode): Remove.
14015 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
14016 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
14017 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
14018 arm_declare_function_name.
14020 2015-05-11 Christian Bruel <christian.bruel@st.com>
14022 * config/arm/arm.c (arm_option_override): Reoganized and split into :
14023 (arm_option_params_internal); New function.
14024 (arm_option_check_internal): New function.
14025 (arm_option_override_internal): New function.
14026 (thumb_code, thumb1_code): Remove.
14027 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
14028 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
14029 (thumb_code, thumb1_code): Remove.
14030 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
14032 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
14034 * config/alpha/alpha.c (alpha_emit_set_const_1)
14035 (alpha_emit_set_long_const, alpha_extract_integer)
14036 (alpha_legitimate_constant_p, alpha_split_const_mov)
14037 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
14038 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14039 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
14041 * config/alpha/predicates.md (mode_mask_operand): Do not match
14043 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14044 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
14045 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
14046 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14047 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
14049 2015-05-11 Jakub Jelinek <jakub@redhat.com>
14052 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
14053 default_binds_local_p_2.
14054 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
14055 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
14057 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14059 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
14061 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14063 Patch by Richard Biener
14064 * coverage.c (coverage_obj_init): Delay building of type variant
14065 until the type is finished.
14067 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14069 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
14070 mismatch between C and C++ type; compoare correctly ARG_TYPES
14071 for non-prototypes and output correctly parameter index for METHOD_TYPE.
14072 (odr_types_equivalent_p): Fix wording of warning about attributes;
14073 it is OK to match prototype and non-prototype.
14075 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14077 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
14078 TYPE_ARG_TYPES list.
14079 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
14080 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
14082 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14084 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
14085 * tree.h (is_lang_specific): Constify.
14087 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
14089 PR tree-optimization/64454
14090 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
14093 2015-05-08 Jason Merrill <jason@redhat.com>
14095 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
14096 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
14097 config/darwin.h, config/darwin9.h, config/elfos.h,
14098 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
14099 config/microblaze/microblaze.h, config/mips/mips.h,
14100 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
14101 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
14102 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
14103 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
14104 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
14105 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
14106 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
14107 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
14108 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
14109 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
14110 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
14111 between string literal and macro name.
14113 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14115 * jump.c: Change argument types to rtx_insn *.
14118 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14120 * lra-constraints.c: Change argument type to rtx_insn *.
14122 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14124 * df-problems.c: Change argument type to rtx_insn *.
14126 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14128 * combine.c: Change argument type to rtx_insn *.
14130 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14133 * rtlanal.c: Change argument type to rtx_insn *.
14135 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14137 * sched-deps.c: Change argument types to rtx_insn *.
14138 * sched-int.h: Adjust.
14140 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14142 * dwarf2cfi.c: Change argument type to rtx_insn *.
14144 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14146 * ira.c (decrease_live_ranges_number): Changetype of local
14147 variable to rtx_insn *.
14148 * recog.c: Change argument types to rtx_insn *.
14151 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14153 * reorg.c: Change argument types to rtx_insn *.
14155 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14157 * ira-color.c: Change argument types to rtx_insn *.
14158 * lra-eliminations.c: Likewise.
14161 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14163 * gcse.c: Change argument types to rtx_insn *.
14165 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14167 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
14169 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14171 * emit-rtl.c (emit_debug_insn_before): Change argument type to
14175 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14177 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
14180 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14182 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
14185 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14187 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
14190 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14192 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
14195 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14197 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
14201 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14203 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
14207 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14209 * except.c (can_nonlocal_goto): Change type of argument to
14213 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14215 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
14218 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14220 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
14221 * cfgrtl.c (can_delete_label_p): Adjust.
14224 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14226 * reorg.c (stop_search_p): Change argument to rtx_insn *.
14228 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14230 * except.c (make_reg_eh_region_note): Change argument to
14232 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
14233 * except.h: Adjust.
14235 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14237 * mode-switching.c (commit_mode_sets): Change type of local
14238 variable from rtx to rtx_insn *.
14240 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
14242 * doc/install.texi (--enable-languages): Add missing jit and lto info.
14243 Add ^ to grep command.
14244 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
14245 arg to last gimple_simplify declaration. Add missing gimple_build
14246 declaration for built-in function case with four tree args.
14248 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
14249 Szabolcs Nagy <szabolcs.nagy@arm.com>
14251 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
14252 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
14253 (GNU_USER_DYNAMIC_LINKERN32): Update.
14255 2015-05-08 Richard Biener <rguenther@suse.de>
14257 PR tree-optimization/66036
14258 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14259 Handle strided group loads.
14260 (vect_verify_datarefs_alignment): Likewise.
14261 (vect_enhance_data_refs_alignment): Likewise.
14262 (vect_analyze_group_access): Likewise.
14263 (vect_analyze_data_ref_access): Likewise.
14264 (vect_analyze_data_ref_accesses): Likewise.
14265 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
14266 (vectorizable_load): Likewise.
14268 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
14270 * config/rs6000/rs6000.md: Require operand inequality in one
14273 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
14274 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14276 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
14278 * config/rx/rx.md (movdi, movdf): Likewise.
14279 Likewise for define_peephole2s.
14281 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14283 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
14284 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
14285 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
14286 vtst_u64): Rewrite using gcc vector extensions.
14288 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14290 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
14291 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
14293 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14295 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
14297 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
14299 * config/glibc-stdint.h (OPTION_MUSL): Define.
14300 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
14301 Change the definition based on OPTION_MUSL for 64 bit targets.
14302 * config/linux.h (OPTION_MUSL): Redefine.
14303 * config/alpha/linux.h (OPTION_MUSL): Redefine.
14304 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
14305 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
14307 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
14308 Szabolcs Nagy <szabolcs.nagy@arm.com>
14310 * config.gcc (LIBC_MUSL): New tm_defines macro.
14311 * config/linux.h (OPTION_MUSL): Define.
14312 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
14313 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
14314 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
14315 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
14316 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
14317 * config/linux.opt (mmusl): New option.
14318 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
14319 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
14320 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
14321 * configure: Regenerate.
14323 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
14324 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14327 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
14328 * config/i386/knetbsd-gnu64.h: New file.
14330 2015-05-08 Marek Polacek <polacek@redhat.com>
14333 * doc/invoke.texi: Document -Woverride-init-side-effects.
14335 2015-05-07 Marek Polacek <polacek@redhat.com>
14338 * doc/invoke.texi: Document -Wshift-negative-value.
14340 2015-05-06 Aditya Kumar <hiraditya@msn.com>
14342 * gcov-tool.c (do_merge): Refactore to remove int ret.
14343 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
14344 !type == FUNC to type != FUNC.
14345 * reload.h (struct target_reload): Changee to type of
14346 x_spill_indirect_levels from bool to unsigned char.
14348 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
14350 * rtl.h (always_void_p): New function.
14351 * gengenrtl.c (always_void_p): Likewise.
14352 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
14353 with code foo are always VOIDmode.
14354 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
14355 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
14356 compare-elim.c, config/aarch64/aarch64.c,
14357 config/aarch64/aarch64.md, config/alpha/alpha.c,
14358 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
14359 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
14360 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
14361 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
14362 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
14363 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
14364 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
14365 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
14366 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
14367 config/ia64/vect.md, config/iq2000/iq2000.c,
14368 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
14369 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
14370 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
14371 config/mep/mep.c, config/microblaze/microblaze.c,
14372 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
14373 config/mn10300/mn10300.c, config/msp430/msp430.c,
14374 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
14375 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
14376 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
14377 config/rs6000/altivec.md, config/rs6000/rs6000.c,
14378 config/rs6000/rs6000.md, config/rs6000/vector.md,
14379 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
14380 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
14381 config/sh/sh.md, config/sh/sh_treg_combine.cc,
14382 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
14383 config/spu/spu.md, config/stormy16/stormy16.c,
14384 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
14385 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
14386 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
14387 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
14388 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
14389 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
14390 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
14391 var-tracking.c: Update calls accordingly.
14393 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
14396 PR middle-end/54303
14397 * varasm.c (function_mergeable_rodata_prefix): New function.
14398 (mergeable_string_section): Use it.
14399 (mergeable_constant_section): Use it.
14401 2015-05-07 Jeff Law <law@redhat.com>
14404 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14405 simplifier to narrow arithmetic.
14406 * generic-match-head.c: (types_match, single_use): New functions.
14407 * gimple-match-head.c: (types_match, single_use): New functions.
14409 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14411 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
14414 2015-05-07 Richard Biener <rguenther@suse.de>
14416 PR tree-optimization/66002
14417 * passes.def: Schedule another pass_merge_phi after ifcombine, right
14420 2015-05-07 Marek Polacek <polacek@redhat.com>
14421 Martin Uecker <uecker@eecs.berkeley.edu>
14423 * doc/invoke.texi: Document -fsanitize=bounds-strict.
14424 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
14425 into SANITIZE_NONDEFAULT.
14426 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
14428 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
14431 * config/alpha/alpha.c (alpha_override_options_after_change): New.
14432 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
14433 (alpha_override_options): Move align_loops, align_jumps and
14434 align_functions handling into alpha_override_options_after_change.
14436 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
14437 Chris Jones <chrisj@nvidia.com>
14438 Joshua Conner <jconner@nvidia.com>
14440 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
14441 linking of crtfastmath.o.
14442 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
14444 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
14446 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
14447 (cstore<mode>4_unsigned_imm): New expander.
14448 (cstore<mode>4): Remove empty constraint strings. Use the new
14451 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
14454 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
14457 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
14459 * config/aarch64/geniterators.sh: Use standard BRE in sed.
14461 2015-05-06 Alan Modra <amodra@gmail.com>
14464 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
14465 (UNSPEC_NOP): Define.
14466 (reload_vsx_from_gpr<mode>): Add missing DONE.
14467 (reload_gpr_from_vsx<mode>): Likewise.
14468 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
14469 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
14471 2015-05-06 Christian Bruel <christian.bruel@st.com>
14474 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
14475 align_jumps, align_functions into aarch64_override_options_after_change.
14477 2015-05-06 Richard Biener <rguenther@suse.de>
14479 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
14480 vect_transform_slp_perm_load to check if we support a permutation
14481 for basic-block vectorization.
14483 2015-05-06 Nick Clifton <nickc@redhat.com>
14485 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
14486 used, even if it is not being used as a frame pointer.
14488 2015-05-05 Jason Merrill <jason@redhat.com>
14490 * dwarf2out.c (gen_member_die): Don't emit anything for an
14491 anonymous class constructor.
14493 2015-05-05 David Malcolm <dmalcolm@redhat.com>
14495 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
14496 that it reflects the block structure.
14497 (afdo_propagate_edge): Likewise.
14498 (afdo_calculate_branch_prob): Likewise.
14499 (afdo_annotate_cfg): Likewise.
14500 * cfgcleanup.c (equal_different_set_p): Likewise.
14501 (try_crossjump_to_edge): Likewise.
14502 * cgraph.c (cgraph_node::verify_node): Likewise.
14503 * cgraphunit.c (expand_all_functions): Likewise.
14504 * config/i386/i386.c (ix86_expand_copysign): Likewise.
14505 (exact_dependency_1): Likewise.
14506 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
14507 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
14508 * gensupport.c (process_define_subst): Likewise.
14509 * lto-wrapper.c (merge_and_complain): Likewise.
14510 * tree-if-conv.c (if_convertible_bb_p): Likewise.
14511 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
14512 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
14513 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
14514 * tree-vect-loop.c (vectorizable_reduction): Likewise.
14515 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
14516 * tree-vect-stmts.c (vectorizable_shift): Likewise.
14517 * tree-vrp.c (vrp_finalize): Likewise.
14518 * tree.c (variably_modified_type_p): Likewise.
14520 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
14522 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
14523 on darwin12 and later.
14524 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
14525 file to pass -rdynamic on darwin12 and later.
14526 * config/darwin.opt (rdynamic): Add.
14528 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14530 * doc/extend.texi (C Extensions): Update menu for moved Variable
14531 Attributes and Type Attributes sections.
14533 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14536 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
14537 if rep_8byte stringop strategy was specified for 32-bit target.
14539 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
14542 * config/i386/i386.md (vector convert to float spltiter): Check for
14543 xmm16+, when splitting scalar float conversion.
14544 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
14546 2015-05-05 Nick Clifton <nickc@redhat.com>
14548 * config/msp430/msp430-opts.h (enum msp430_regions): New.
14549 * config/msp430/msp430.c (msp430_override_options): Complain if
14550 -mcode-region or -mdata-region is used on a non MSP430X.
14551 (msp430_section_attr): New function. Checks lower, upper and
14553 (msp430_attribute_table): Add lower, upper and either.
14554 (gen_prefix): New function. Generates a prefix for a section
14556 (msp430_select_section): New function - handles the choice of
14557 section for an object. Takes into account memory region
14558 attributes and options.
14559 (msp430_function_section): Use gen_prefix.
14560 (TARGET_SECTION_TYPE_FLAGS): Define.
14561 (msp430_section_type_flags): New function.
14562 (TARGET_ASM_UNIQUE_SECTION): Define.
14563 (msp430_unique_section): New function.
14564 (msp430_output_aligned_decl_common): New function.
14565 (msp430_do_not_relax_short_jumps): New function.
14566 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
14568 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
14569 * config/msp430/msp430-protos.h
14570 (msp430_do_not_relax_short_jumps): New prototype.
14571 (msp430_output_aligned_decl_common): New prototype.
14572 * config/msp430/msp430.md (length): New attribute.
14573 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
14574 then use a long code sequence for short jumps.
14575 * config/msp430/msp430.opt (mcode-region): New.
14576 (mdata-region): New.
14577 * doc/invoke.texi: Document new options.
14578 * doc/extend.texi: Document new attributes.
14580 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
14582 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
14583 (tune_params): Add field branch_costs.
14584 (aarch64_branch_cost): Declare.
14585 * gcc/config/aarch64.c (generic_branch_cost): New.
14586 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
14587 (cortexa53_tunings): Likewise.
14588 (cortexa57_tunings): Likewise.
14589 (thunderx_tunings): Likewise.
14590 (xgene1_tunings): Likewise.
14591 (aarch64_branch_cost): Define.
14592 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
14594 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14596 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
14597 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
14598 * config/i386/i386.md: Ditto.
14599 * config/i386/winnt.c: Ditto.
14601 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
14603 * doc/extend.texi (__atomic Builtins): Move implementation details
14604 to the end of the description, rewrite opening paragraphs, state
14605 difference with __sync builtins, state C11/C++11 assumptions,
14606 weaken itemized descriptions, add explanation of memory model
14607 behaviour, expand description of compare-exchange, simplify text.
14609 2015-05-05 Renlin Li <renlin.li@arm.com>
14611 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
14613 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
14615 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
14616 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14617 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
14618 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14619 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
14620 * configure: Regenerate.
14621 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
14622 * doc/install.texi (aarch64*-*-*): Document new
14623 --enable-fix-cortex-a53-843419 option.
14624 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
14625 and -mno-fix-cortex-a53-843419 options.
14627 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14630 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
14632 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
14634 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
14635 fix overactive TYPE_MIN_VALUE check and add FIXME for type
14636 compatibility problems.
14638 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
14640 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
14642 (cbranchsi4_reg): New.
14643 * config/microblaze/microblaze.c
14644 (microblaze_expand_conditional_branch_reg): New.
14645 * config/microblaze/microblaze-protos.h
14646 (microblaze_expand_conditional_branch_reg): New prototype.
14648 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
14650 * config/microblaze/microblaze.md (peephole2): New.
14652 2015-05-04 Jeff Law <law@redhat.com>
14655 2015-05-04 Jeff Law <law@redhat.com>
14657 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14658 simplifier to narrow arithmetic.
14659 * generic-match-head.c: (types_match, single_use): New functions.
14660 * gimple-match-head.c: (types_match, single_use): New functions.
14662 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
14665 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
14666 (split_branches): Likewise.
14668 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
14670 * common.opt (fdelete-null-pointer-checks): Init to -1.
14671 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
14672 override flag_delete_null_pointer_checks default.
14673 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
14674 behavior re address zero. Better document target-specific behavior.
14675 (-fisolate-errneous-paths-dereference): Mention relationship to
14676 -fdelete-null-pointer-checks.
14678 2015-05-04 Jakub Jelinek <jakub@redhat.com>
14680 PR tree-optimization/65984
14681 * ubsan.c: Include tree-cfg.h.
14682 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
14683 stmt_could_throw_p test, rename can_throw variable to ends_bb.
14685 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
14687 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
14688 to CONST_DOUBLE_P predicate.
14689 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
14690 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
14691 allow only operands that satisfy standard_sse_constant_p predicate.
14692 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
14693 to CONST_DOUBLE_P predicate.
14695 2015-05-04 Jeff Law <law@redhat.com>
14697 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14698 simplifier to narrow arithmetic.
14699 * generic-match-head.c: (types_match, single_use): New functions.
14700 * gimple-match-head.c: (types_match, single_use): New functions.
14702 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
14704 * config/arm/arm.c: Restore bootstrap.
14706 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
14708 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
14709 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
14710 as CONST_WIDE_INT, not CONST_DOUBLE.
14711 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
14712 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
14713 (ix86_find_base_term): Do not check for CONST_DOUBLE.
14714 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
14715 (ix86_build_signbit_mask): Rewrite using wide ints.
14716 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
14717 (ix86_rtx_costs): Handle CONST_WIDE_INT.
14718 (find_constant): Ditto.
14719 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
14720 using gen_int_mode.
14721 * config/i386/predicates.md (x86_64_immediate_operand)
14722 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
14723 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
14724 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
14725 (const0_operand): Also match const_wide_int.
14726 (constm1_operand): Ditto.
14727 (const1_operand): Ditto.
14729 2015-05-04 Richard Biener <rguenther@suse.de>
14731 PR tree-optimization/65965
14732 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
14733 store groups at gaps.
14735 2015-05-04 Richard Biener <rguenther@suse.de>
14737 PR tree-optimization/65935
14738 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
14739 then make sure to apply that swapping to the IL.
14741 2015-05-04 Jakub Jelinek <jakub@redhat.com>
14743 * Makefile.in (PATCHLEVEL_c): New variable.
14744 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
14745 expand the same way as if DEVPHASE_c was non-empty.
14747 2015-05-04 Kai Tietz <ktietz@redhat.com>
14750 * lto-wrapper.c (run_gcc): Open filename
14753 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
14755 * doc/extend.texi (Variable Attributes, Type Attributes): Move
14756 sections up in file, to immediately after the Function Attributes
14759 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
14761 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
14763 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14765 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
14766 (insert_partition_copy_on_edge): Adjust.
14767 (insert_rtx_to_part_on_edge): Likewise.
14768 (insert_part_to_rtx_on_edge): Likewise.
14770 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14772 * function.c (set_return_jump_label): Change type of argument to
14774 * function.h (set_return_jump_label): Adjust.
14776 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14778 * reload.h (struct reg_equivs_t): Change type of init to
14780 * ira.c (fix_reg_equiv_init): Adjust.
14781 * reload1.c (eliminate_regs_1): Likewise.
14782 (init_eliminable_invariants): Likewise.
14784 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14786 * cselib.c (fp_setter_insn): Take a rtx_insn *.
14787 * cselib.h (fp_setter_insn): Adjust.
14789 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14791 * recog.c (struct validate_replace_src_data): Change type of
14792 insn field to rtx_insn *.
14793 (validate_replace_src_group): Change type of argument to rtx_insn *.
14794 * recog.h (validate_replace_src_group): Adjust.
14796 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14798 * haifa-sched.c: Change the type of some variables to rtx_insn *.
14799 * sched-deps.c: Likewise.
14800 * sched-int.h: Likewise.
14801 * sched-rgn.c: Likewise.
14802 * sel-sched.c: Likewise.
14804 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14807 * config/i386/i386.c: Change the type of some arguments to
14809 * config/arm/arm.c: Likewise.
14811 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14813 * lra-constraints.c: Change type of some arguments to rtx_insn *.
14815 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14817 * regcprop.c (kill_autoinc_value): Change type of argument to
14820 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14822 * genrecog.c (print_subroutine): Adjust.
14823 * recog.c (get_bool_attr_mask_uncached): Likewise.
14824 * recog.h (struct recog_data_d): Change the type of insn to
14827 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14829 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
14831 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14833 * df-problems.c (df_set_note): Change type of argument to
14836 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14838 * builtins.c (expand_builtin_trap): Change type of local
14839 variable to rtx_insn *.
14840 (add_sched_insns_for_speculation): Likewise.
14841 (ix86_emit_save_regs): Likewise.
14842 (get_scratch_register_on_entry): Likewise.
14843 (ix86_emit_restore_reg_using_pop): Likewise.
14844 (ix86_emit_leave): Likewise.
14845 (ix86_emit_restore_regs_using_mov): Likewise.
14846 (ix86_expand_epilogue): Likewise.
14848 (rl78_alloc_physical_registers_umul): Likewise.
14849 * cselib.c (discard_useless_locs): Likewise.
14850 (cselib_invalidate_regno): Likewise.
14851 (cselib_invalidate_mem): Likewise.
14852 * function.c (expand_function_start): Likewise.
14853 (emit_use_return_register_into_block): Likewise.
14854 * gcse.c: Likewise.
14855 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
14856 * ifcvt.c (noce_get_alt_condition): Likewise.
14857 * loop-doloop.c (doloop_condition_get): Likewise.
14858 * lra-constraints.c (inherit_in_ebb): Likewise.
14859 * modulo-sched.c (sms_schedule_by_order): Likewise.
14860 * recog.c (next_insn_tests_no_inequality): Likewise.
14861 * reorg.c (emit_delay_sequence): Likewise.
14862 (update_reg_dead_notes): Likewise.
14863 (fix_reg_dead_note): Likewise.
14864 (fill_slots_from_thread): Likewise.
14865 (delete_computation): Likewise.
14867 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
14869 * doc/extend.texi (Variable Attributes): Add menu and proper
14870 @nodes to subsections. Move Microsoft Windows attributes to
14871 their own subsection.
14872 (Type Attributes): Reorganize introduction to remove duplicate
14873 list of attributes. Add menu and proper @nodes to subsections.
14874 Alphabetize the main table of common attributes.
14876 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
14878 * match.pd: New simplification patterns.
14879 (x + (x & 1)) -> ((x + 1) & ~1)
14880 (x & ~(x & y)) -> ((x & ~y))
14881 (x | ~(x | y)) -> ((x | ~y))
14883 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14885 * target.def (attribute_table): Mention that struct attribute_spec
14886 is defined in tree-core.h rather than tree.h
14887 * doc/tm.texi: Regenerate.
14889 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
14891 * genrecog.c (test): Rename to rtx_test. Update rest of file
14894 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
14896 PR translation/65959
14897 * params.h (DEFPARAM): Rename msgid to nocmsgid.
14899 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
14901 * gcc/config/aarch64/aarch64-protos.h (tune_params):
14902 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
14903 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
14904 Return value depending on target.
14905 (generic_tunings): Initialize new target settings.
14906 (cortexa53_tunings): Likewise.
14907 (cortexa57_tunings): Likewise.
14908 (thunderx_tunings): Likewise.
14909 (xgene1_tunings): Likewise.
14911 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
14913 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
14914 Make Cortex-A53 shift costs more accurate.
14916 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14918 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
14921 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
14923 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
14924 Calculate cost of op0 and op1 in PLUS and MINUS cases.
14926 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14928 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
14929 Add cost of op0 in the compare-with-fpzero case.
14931 2015-04-30 David Malcolm <dmalcolm@redhat.com>
14933 * builtins.c (fold_builtin_1): Remove spurious second
14935 * cgraph.h (symtab_node::get_availability): Likewise.
14936 * opts.c (common_handle_option): Remove spurious second semicolon.
14937 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
14938 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
14940 2015-04-30 Caroline Tice <cmtice@google.com>
14942 PR gcov-profile/65929
14943 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
14944 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
14945 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
14946 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
14947 * doc/tm.texi: Regenerate.
14948 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
14949 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
14950 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
14951 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
14953 2015-04-30 Marek Polacek <polacek@redhat.com>
14955 * varasm.c (handle_cache_entry): Fix logic.
14957 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14959 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
14960 (*extrsi5_insn_uxtw_alt): Likewise.
14961 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
14962 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
14965 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14967 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
14970 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14972 * config/aarch64/aarch64.md
14973 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
14974 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
14975 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
14976 appropriately. Handle alternative EON form.
14978 2015-04-30 Renlin Li <renlin.li@arm.com>
14980 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
14981 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
14983 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
14986 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
14987 -fstrict-aliasing boundaries.
14989 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14991 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
14992 and [SU]MNEGL patterns.
14994 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14996 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
14997 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
14998 combined arithmetic-shift ops. Properly handle all shift and extend
14999 operations that can occur in combination with PLUS/MINUS.
15000 Rename maybe_fma to compound_p.
15001 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
15002 arithmetic and shift operations.
15004 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15006 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
15007 rather than arith_shift cost when costing ADD/MINUS of an
15010 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
15013 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
15016 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
15018 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
15019 are for the same position.
15021 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
15023 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
15025 (vectorize_loops): Use it.
15027 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15029 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
15030 for aggregate types.
15031 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
15032 type to be non_ODR.
15033 * tree.c (need_assembler_name_p): Compute mangled name for
15034 non-fundamental types and integer types.
15036 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
15038 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
15040 * expr.c (expand_expr_real_2): Likewise.
15042 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15044 * tree.c (build_common_builtin_nodes): Do not build
15045 __builtin_alloca_with_align as equivalent of library alloca.
15047 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15049 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
15050 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
15052 * tree.c: Include print-tree.h and ipa-utils.h
15053 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
15054 (free_lang_data_in_cgraph): Call verify_type.
15055 (verify_type_variant): New function.
15056 (verify_type): New function.
15057 * tree.h (verify_type): Declare.
15059 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
15061 * config/mips/mips-cpus.def: (mips4): Change default processor
15062 from PROCESSOR_R8000 to PROCESSOR_R10000.
15064 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
15066 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
15067 la/jalr instead of jal.
15069 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
15072 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
15073 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
15074 (setcc+movzbl peephole2): Check also clobbered reg.
15075 (setcc+andl peephole2): Ditto.
15077 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
15080 * config/nvptx/mkoffload.c (target_ilp32): New variable.
15081 (main): Set it depending on "-foffload-abi=[...]".
15082 (compile_native, main): Use it to pass "-m32" or "-m64" to the
15085 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
15088 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
15089 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
15090 Flip lane index back at assembly time for bigendian.
15092 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
15094 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
15095 * gimplify.c (gimplify_omp_workshare): Use it.
15097 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15099 * Makefile.in (build/genrecog.o): Depend on inchash.h.
15100 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
15102 * genrecog.c: Rewrite most of the code except for the third page.
15104 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15106 * inchash.h, inchash.c: Include bconfig.h for build objects.
15107 * Makefile.in (build/inchash.o): New rule.
15109 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
15112 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
15113 number in type attribute expression.
15115 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15117 * loop-iv.c (canon_condition): Generalize to all types of integer
15120 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
15122 * gimple-walk.c: Prune duplicate or unneeded includes.
15123 (walk_gimple_asm): Only call parse_input_constraint or
15124 parse_output_constraint if their findings are used.
15125 Honour parse_input_constraint and parse_output_constraint
15128 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
15130 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
15132 2015-04-29 Tom de Vries <tom@codesourcery.com>
15134 PR tree-optimization/65893
15135 * passes.def (pass_all_optimizations): Move pass_stdarg to after
15138 2015-04-29 Richard Biener <rguenther@suse.de>
15140 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
15141 compute GROUP_SIZE for basic-block SLP.
15142 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
15143 take into account gaps.
15144 (vect_get_mask_element): Properly reject references to previous
15146 (vect_transform_slp_perm_load): Likewise.
15148 2015-04-29 Christian Bruel <christian.bruel@st.com>
15151 * config/i386/i386.c (ix86_default_align): New function.
15152 (ix86_override_options_after_change): Call ix86_default_align.
15153 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
15154 (ix86_override_options_after_change): New function.
15156 2015-04-28 Jeff Law <law@redhat.com>
15158 * tree-ssa-dom.c (record_equality); Fix comment typos.
15160 2015-04-28 Tom de Vries <tom@codesourcery.com>
15162 PR tree-optimization/65887
15163 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
15165 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
15167 * doc/extend.texi (Declaring Attributes of Functions): Split into
15168 subsections by target. Alphabetize the table of common attributes.
15169 Rewrite some of the introductory text to reflect the new structure.
15170 Update some cross-references to point to the new subsections.
15171 (Attribute Syntax): Put paragraph about "__" naming here. Remove
15172 duplicate copies in the discussion of function, label, and type
15175 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
15178 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
15180 2015-04-28 Jason Merrill <jason@redhat.com>
15183 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
15184 (finalize_type_size): Respect TYPE_USER_ALIGN.
15185 (layout_type) [ARRAY_TYPE]: Likewise.
15187 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
15189 * config/arm/arm.md (*arm_movt): Fix type attribute.
15190 (*cmpsi_shiftsi): Likewise.
15191 (*cmpsi_shiftsi_swp): Likewise.
15192 (*movsicc_insn): Likewise.
15193 (*cond_move): Likewise.
15194 (*if_plus_move): Likewise.
15195 (*if_move_plus): Likewise.
15196 (*if_arith_move): Likewise.
15197 (*if_move_arith): Likewise.
15198 (*if_shift_move): Likewise.
15199 (*if_move_shift): Likewise.
15200 (*arm_movtas_ze): Likewise.
15201 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
15202 redundancy and type attribute.
15203 (*thumb2_movsi_insn): Fix type attribute.
15204 (*thumb2_addsi_short): Likewise.
15205 (thumb2_addsi3_compare0): Likewise.
15206 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
15207 attributes accordingly.
15209 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
15212 * function.c (pad_to_arg_alignment): Add parentheses.
15214 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
15216 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
15217 libgcc/config/frv/elf-lib.h.
15219 2015-04-28 Tom de Vries <tom@codesourcery.com>
15221 * tree-call-cdce.c: Fix example in header comment.
15223 2015-04-28 Richard Biener <rguenther@suse.de>
15225 PR tree-optimization/62283
15226 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
15227 fails fatally and we are vectorizing a basic-block simply
15228 cause the child to be constructed piecewise.
15229 (vect_analyze_slp_cost_1): Adjust.
15230 (vect_detect_hybrid_slp_stmts): Likewise.
15231 (vect_bb_slp_scalar_cost): Likewise.
15232 (vect_get_constant_vectors): For piecewise constructed
15233 constants place them after the last def.
15234 (vect_get_slp_defs): Adjust.
15235 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
15236 externals for basic-block vectorization.
15238 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15241 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
15243 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
15244 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
15245 (AARCH64_TUNE_FMA_STEERING): Likewise.
15246 * config/aarch64/aarch64-cores.def: Set
15247 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
15248 FMUL/FMADD instructions.
15249 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
15250 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
15251 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
15252 * config/aarch64/cortex-a57-fma-steering.h: New file.
15253 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15255 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
15257 * gensupport.c (std_preds): Add missing codes to address_operand entry.
15259 2015-04-28 Richard Biener <rguenther@suse.de>
15261 PR tree-optimization/65851
15262 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
15263 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
15264 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
15265 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
15266 (ccp_visit_phi_node): Adjust.
15267 (evaluate_stmt): For simplifications to SSA names return its
15268 lattice value if that isn't VARYING. Return immediately when
15269 simplified to a constant.
15270 (visit_assignment): Adjust.
15271 (ccp_visit_stmt): Likewise.
15273 2015-04-28 Tom de Vries <tom@codesourcery.com>
15275 PR tree-optimization/65818
15276 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
15279 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15281 * calls.c (save_fixed_argument_area): Don't check
15282 ARGS_GROW_DOWNWARD with the preprocessor.
15283 (restore_fixed_argument_area): Likewise.
15284 (mem_overlaps_already_clobbered_arg_p): Likewise.
15285 (check_sibcall_argument_overlap): Likewise.
15286 (expand_call): Likewise.
15287 (emit_library_call_value_1): Likewise.
15288 (store_one_arg): Likewise.
15289 * function.c (assign_parms): Likewise.
15290 (locate_and_pad_parm): Likewise.
15291 (pad_to_arg_alignment): Likewise.
15292 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15294 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15296 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
15297 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
15298 * calls.c (save_fixed_argument_area): Don't chekc if
15299 ARGS_GROW_DOWNWARD is defined.
15300 (restore_fixed_argument_area): Likewise.
15301 (mem_overlaps_already_clobbered_arg_p): Likewise.
15302 (check_sibcall_argument_overlap): Likewise.
15303 (expand_call): Likewise.
15304 (emit_library_call_value_1): Likewise.
15305 (store_one_arg): Likewise.
15306 * function.c (assign_parms): Likewise.
15307 (locate_and_pad_parm): Likewise.
15308 (pad_to_arg_alignment): Likewise.
15309 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15311 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15313 * defaults.h (gen_epilogue): New function.
15314 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
15316 * cfgrtl.c (cfg_layout_finalize): Likewise.
15317 * df-scan.c: Likewise.
15318 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15319 (reposition_prologue_and_epilogue_notes): Likewise.
15320 * reorg.c (find_end_label): Likewise.
15321 * toplev.c: Likewise.
15323 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15325 * bb-reorder.c (HAVE_return): Don't check if its undefined.
15326 * defaults.h (gen_simple_return): New function.
15327 (gen_simple_return): Likewise.
15328 (HAVE_return): Add default definition to false.
15329 (HAVE_simple_return): Likewise.
15330 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
15331 HAVE_return and HAVE_simple_return are defined.
15332 * function.c (gen_return_pattern): Likewise.
15333 (convert_jumps_to_returns): Likewise.
15334 (thread_prologue_and_epilogue_insns): Likewise.
15335 * reorg.c (find_end_label): Likewise.
15336 (dbr_schedule): Likewise.
15337 * shrink-wrap.c: Likewise.
15338 * shrink-wrap.h: Likewise.
15340 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15342 * defaults.h (EPILOGUE_USES): Add default definition of false.
15343 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
15344 * resource.c (init_resource_info): Likewise.
15346 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15348 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
15350 * dwarf2out.c (field_byte_offset): REmove check if
15351 PCC_BITFIELD_TYPE_MATTERS is defined.
15352 * stor-layout.c (layout_decl): Likewise.
15353 (update_alignment_for_field): Likewise.
15354 (place_field): Likewise.
15356 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15358 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
15360 * regrename.c (check_new_reg_p): Remove check if
15361 HARD_REGNO_RENAME_OK is defined.
15362 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
15364 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15366 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
15367 * cse.c (fold_rtx): Likewise.
15368 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
15369 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
15370 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
15371 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
15372 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
15373 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
15374 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
15375 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
15376 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
15377 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
15379 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
15380 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
15381 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
15382 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
15383 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
15384 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
15385 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
15386 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
15387 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
15388 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
15389 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
15390 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
15391 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
15392 * doc/tm.texi: Regenerate.
15393 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
15394 either true or false.
15396 2015-04-27 Jeff Law <law@redhat.com>
15398 PR tree-optimization/65217
15399 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
15400 of them has a single use, make sure it is the LHS of the implied
15403 2015-04-28 Alan Modra <amodra@gmail.com>
15406 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
15407 (offsettable_ok_by_alignment): Use minimum of decl and toc
15408 pointer alignment. Replace dead code with assertion.
15409 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
15410 case if size exceeds toc pointer alignment.
15411 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
15412 (rs6000_emit_move): Likewise.
15413 * configure.ac: Add linker toc pointer alignment check.
15414 * configure: Regenerate.
15415 * config.in: Regenerate.
15417 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
15419 * config.gcc: Add h8300-*-linux.
15420 * config/h8300/linux.h: New.
15421 * config/h8300/t-linux: New.
15422 * config/h8300/h8300.c (h8300_option_override): Normal mode
15423 is not supported for h8300-*-linux.
15424 (h8300_file_start): Target priority change.
15425 (get_shift_alg): Likewise.
15426 (h8300_shift_need_scratch_p): Likewise.
15427 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
15428 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
15430 2015-04-27 Caroline Tice <cmtice@google.com>
15432 * final.c (final_scan_insn): Output cold_function_name as function
15434 * varasm.c (cold_function_name): Make global.
15435 (assemble_start_function): Re-set cold_function_name.
15436 (assemble_end_function): Output cold partition size.
15437 * varasm.h (cold_function_name): Declare global.
15439 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
15441 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
15442 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
15444 (*movxi_internal_avx512f): Ditto.
15445 (define_split): Check for xmm16+, when splitting scalar float_extend.
15446 (*extendsfdf2_mixed): Use "v" constraint.
15447 (define_split): Check for xmm16+, when splitting scalar float_truncate.
15448 (*truncdfsf_fast_sse): Use "v" constraint.
15449 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
15450 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
15451 (define_peephole2): Check for xmm16+, when converting scalar
15453 (define_peephole2): Check for xmm16+, when converting scalar
15455 (*fop_<mode>_comm_mixed): Use "v" constraint.
15456 (*fop_<mode>_comm_sse): Ditto.
15457 (*fop_<mode>_1_mixed): Ditto.
15458 (*sqrt<mode>2_sse): Ditto.
15459 (*ieee_s<ieee_maxmin><mode>3): Ditto.
15461 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15463 * combine.c (simplify_if_then_else): Use std::swap instead
15464 of manually swapping.
15465 (known_cond): Likewise.
15466 (simplify_comparison): Likewise.
15468 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
15471 * config/rs6000/htm.md: Remove all define_expands.
15472 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
15473 UNSPECV_HTM_TABORTWCI): Remove.
15474 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
15475 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
15476 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
15477 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
15478 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
15479 tabortwci_internal): Remove define_insns.
15480 (tabort<wd>c, tabort<wd>ci): New define_insns.
15481 (tabort): Use gpc_reg_operand.
15482 (tcheck): Remove operand.
15483 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
15484 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
15486 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
15487 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
15488 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
15489 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
15490 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
15491 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
15492 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
15493 (tcheck): Remove builtin argument.
15494 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
15496 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
15497 tabortdc and tabortdci builtins when not in 64-bit mode.
15498 Modify code to handle the loss of the HTM define_expands.
15499 Emit code to copy the CR register to TARGET.
15500 (htm_init_builtins): Modify code to handle the loss of the HTM
15502 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
15503 (RS6000_BTC_64BIT): Likewise.
15504 (RS6000_BTC_CR): New macro.
15505 * doc/extend.texi: Update documentation for htm builtins.
15507 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15509 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
15510 of manually swapping.
15511 (simplify_associative_operation): Likewise.
15512 (simplify_binary_operation): Likewise.
15513 (simplify_plus_minus): Likewise.
15514 (simplify_relational_operation): Likewise.
15515 (simplify_ternary_operation): Likewise.
15517 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
15519 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
15520 (xs_hi_nonmemory_operand): Remove error.
15521 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
15522 general_operand rather than xs_hi_general_operand.
15524 2015-04-27 Richard Biener <rguenther@suse.de>
15526 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
15527 (record_equivalences_from_stmt): Valueize rhs.
15528 (record_equality): Canonicalize x and y order via
15529 tree_swap_operands_p. Do not swap operands for same loop depth.
15531 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
15535 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
15536 Add hint how to use own spec file.
15538 2015-04-27 Jakub Jelinek <jakub@redhat.com>
15540 PR tree-optimization/65875
15541 * tree-vrp.c (update_value_range): If in is_new case setting
15542 old_vr to VR_VARYING, also set new_vr to it. Remove
15543 old_vr->type == VR_VARYING test.
15544 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
15545 SSA_PROP_INTERESTING if update_value_range returned true,
15546 but new range is VR_VARYING.
15548 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
15550 * combine.c (sign_extend_short_imm): New.
15551 (set_nonzero_bits_and_sign_copies): Use above new function for sign
15552 extension of src short immediate.
15553 (reg_nonzero_bits_for_combine): Likewise for tem.
15555 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
15557 * stor-layout.c (self_referential_component_ref_p): New predicate.
15558 (copy_self_referential_tree_r): Use it.
15559 (self_referential_size): Punt for simple operations directly involving
15560 self-referential component references.
15561 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
15563 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
15565 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
15567 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
15569 * vec.h (vec): Make splice arguments const. Update definitions
15572 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
15574 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
15577 2015-04-26 Tom de Vries <tom@codesourcery.com>
15579 PR tree-optimization/65826
15580 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
15582 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
15584 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
15585 (*madd3<mode>): Ditto.
15586 (*msub4<mode>): Ditto.
15587 (*msub3<mode>): Ditto.
15588 (*nmadd4<mode>): Ditto.
15589 (*nmadd3<mode>): Ditto.
15590 (*nmadd4<mode>_fastmath): Ditto.
15591 (*nmadd3<mode>_fastmath): Ditto.
15592 (*nmsub4<mode>): Ditto.
15593 (*nmsub3<mode>): Ditto.
15594 (*nmsub4<mode>_fastmath): Ditto.
15595 (*nmsub3<mode>_fastmath): Ditto.
15597 2015-04-24 Jason Merrill <jason@redhat.com>
15600 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
15601 down when building TYPE_CANONICAL.
15602 (build_pointer_type_for_mode): Likewise.
15604 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
15606 * genrecog.c (validate_pattern): Check matching constraint refers
15607 to a lower numbered operand.
15609 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15612 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
15613 save to independent variables use the Save attribute. This will
15614 allow these options to be modified with the #pragma/attribute
15616 (-mallow-movmisalign): Likewise.
15617 (-mallow-df-permute): Likewise.
15618 (-msched-groups): Likewise.
15619 (-malways-hint): Likewise.
15620 (-malign-branch-targets): Likewise.
15621 (-mvectorize-builtins): Likewise.
15622 (-msave-toc-indirect): Likewise.
15624 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
15625 can be set via the #pragma/attribute target support.
15626 (rs6000_opt_vars): Likewise.
15627 (rs6000_inner_target_options): If VSX was set, also set
15628 -mno-avoid-indexed-addresses.
15630 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15632 * config/arm/iterators.md (shiftable_ops): Rename to...
15633 (SHIFTABLE_OPS): ... This. Update use in comments.
15634 (ior_xor): Rename to...
15635 (IOR_XOR): ... This.
15636 (vqh_ops): Rename to...
15637 (VQH_OPS): ... This.
15638 (vqhs_ops): Rename to...
15639 (VQHS_OPS): ... This.
15640 (rshifts): Rename to...
15641 (RSHIFTS): ... This.
15642 (returns): Rename to...
15643 (RETURNS): ... This.
15644 * config/arm/arm.md: Update uses of the above.
15645 * config/arm/neon.md: Likewise.
15647 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15649 * config.host (case ${host}): Add aarch64*-*-linux case.
15650 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
15651 fields to all the cores.
15652 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
15653 Add MCPU_MTUNE_NATIVE_SPECS.
15654 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
15655 field to all extensions.
15656 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
15657 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
15658 Adjust definition of AARCH64_OPT_EXTENSION.
15659 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
15660 (MCPU_MTUNE_NATIVE_SPECS): Define.
15661 * config/aarch64/driver-aarch64.c: New file.
15662 * config/aarch64/x-arch64: New file.
15663 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
15666 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
15667 Wei Mi <wmi@google.com>
15669 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
15670 * config/i386/i386.c (extract_base_offset_in_addr): New function.
15671 (ix86_operands_ok_for_move_multiple): Ditto.
15672 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
15673 (movlpd/movhpd to movupd peephole2): Ditto.
15675 2015-04-24 Marek Polacek <polacek@redhat.com>
15678 * input.h (from_macro_expansion_at): Define.
15681 * doc/invoke.texi: Update description of -Wlogical-op.
15683 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
15685 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
15686 ternary operator in fprintf and harmonize spacing.
15688 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
15690 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
15691 Mark operand1 commutative.
15693 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
15695 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
15696 input operands in memory.
15697 (*vec_concatv2si_sse4_1): Ditto.
15698 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
15699 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
15701 (vec_extract_hi_v32hi): Ditto.
15702 (vec_extract_hi_v64hi): Ditto.
15703 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
15705 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
15706 Steven Bosscher <steven@gcc.gnu.org>
15708 PR rtl-optimization/34503
15709 * cprop.c (cprop_reg_p): New.
15710 (hash_scan_set): Use above function to check if register can be
15712 (find_avail_set): Return up to two sets, one whose source is a
15713 register and one whose source is a constant. Sets are returned in an
15714 array passed as parameter rather than as a return value.
15715 (cprop_insn): Use a do while loop rather than a goto. Try each of the
15716 sets returned by find_avail_set, starting with the one whose source is
15717 a constant. Use cprop_reg_p to check if register can be propagated.
15718 (do_local_cprop): Use cprop_reg_p to check if register can be
15720 (implicit_set_cond_p): Likewise.
15722 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15724 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
15725 (sem_function::equals): IGNORED_NODES parameter is now unused;
15726 update call of equals_private.
15727 (sem_function::equals_private): Do not call equals_wpa; skip
15728 gimple body matching if there is no body.
15729 (sem_function::init): Add logic to hash tthunk info.
15730 (sem_function::parse): Also parse thunks.
15731 * ipa-icf.h (equals_private): Update declaration.
15733 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15735 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
15736 asterisk from name so this can be generated directly.
15737 (*altivec_stvx_<mode>_internal): Likewise.
15738 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
15739 that this is never called during or after reload/lra.
15740 (rs6000_frame_related): Remove split_reg
15741 argument and logic that references it.
15742 (emit_frame_save): Remove last parameter from call to
15743 rs6000_frame_related.
15744 (rs6000_emit_prologue): Remove last parameter from eight calls to
15745 rs6000_frame_related. Force generation of stvx instruction for
15746 Altivec register saves. Remove split_reg handling, which is no
15748 (rs6000_emit_epilogue): Force generation of lvx instruction for
15749 Altivec register restores.
15751 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15753 * config/rs6000/rs6000.opt (mcrypto): Change option description to
15754 match category changes in ISA 2.07B.
15756 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15758 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
15760 (cmp_op, cmp_type): New code attributes.
15761 (NEON_VCMP, NEON_VACMP): New int iterators.
15762 (cmp_op_unsp): New int attribute.
15763 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
15764 (neon_vceq<mode>): Delete.
15765 (neon_vc<cmp_op><mode>_insn): New pattern.
15766 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
15767 (neon_vcgeu<mode>): Delete.
15768 (neon_vcle<mode>): Likewise.
15769 (neon_vclt<mode>: Likewise.
15770 (neon_vcage<mode>): Likewise.
15771 (neon_vcagt<mode>): Likewise.
15772 (neon_vca<cmp_op><mode>): New define_expand.
15773 (neon_vca<cmp_op><mode>_insn): New pattern.
15774 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
15776 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15778 * tree.h (attribute_value_equal): Declare.
15779 * tree.c (attribute_value_equal): Export.
15781 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15783 * ipa-icf.c (sem_item::compare_attributes): New function.
15784 (sem_item::compare_referenced_symbol_properties): Compare variable
15786 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
15787 (sem_function::param_used_p): New function.
15788 (sem_function::equals_wpa): Fix attribute comparsion; match
15789 parameter type codes; do not compare paremter flags when
15790 they are not used; compare edge flags; compare indirect calls.
15791 (sem_item::update_hash_by_addr_refs): Hash reference type.
15792 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
15793 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
15794 reference use type.
15795 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
15796 * ipa-icf.h (compare_attributes, param_used_p): Declare.
15798 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15800 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
15802 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
15803 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
15804 (sem_item::compare_referenced_symbol_properties): New.
15805 (sem_item::hash_referenced_symbol_properties): New.
15806 (sem_item::compare_cgraph_references): Rename to ...
15807 (sem_item::compare_symbol_references): ... this one; use
15808 compare_referenced_symbol_properties.
15809 (sem_function::equals_wpa): Do not compare
15810 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
15811 DECL_IS_OPERATOR_NEW; compare pointer sizes.
15812 (sem_item::update_hash_by_addr_refs): Call
15813 hash_referenced_symbol_properties.
15814 (sem_item::update_hash_by_local_refs): Cleanup.
15815 (sem_function::merge): Do not mix up symbol properties.
15816 (sem_variable::equals_wpa): Use compare_symbol_references.
15817 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
15818 (sem_item::hash_referenced_symbol_properties): New.
15819 (sem_item::compare_symbol_references): New.
15820 (sem_item::compare_cgraph_references): Remove.
15822 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
15825 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
15826 Emit size of local.
15828 2015-04-23 Nick Clifton <nickc@redhat.com>
15830 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
15831 ATTRIBUTE_UNUSED to x parameter.
15832 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
15834 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15836 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
15837 TARGET_CRYPTO to TARGET_P8_VECTOR>
15838 (crypto_vpermxor_<mode>): Likewise.
15839 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
15840 (BU_CRYPTO_3A): Likewise.
15841 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
15842 (BU_CRYPTO_OVERLOAD_3A): New #define.
15843 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
15844 (VPMSUMH): Likewise.
15845 (VPMSUMW): Likewise.
15846 (VPMSUMD): Likewise.
15847 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
15848 (VPERMXOR_V4SI): Likewise.
15849 (VPERMXOR_V8HI): Likewise.
15850 (VPERMXOR_V16QI): Likewise.
15851 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
15852 BU_CRYPTO_OVERLOAD_2A.
15853 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
15854 BU_CRYPTO_OVERLOAD_3A.
15855 * config/rs6000/rs6000.opt (mcrypto): Change description of
15858 2015-04-23 Richard Biener <rguenther@suse.de>
15860 * passes.def: Remove copy propagation passes run directly after CCP.
15861 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
15863 (ccp_visit_phi_node): Rework to handle first executable edge
15866 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
15868 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
15869 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
15870 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
15871 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
15872 (thumb_legimitimize_reload_address): Remove.
15873 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
15875 (thumb_legimitimize_reload_address): Remove.
15877 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15879 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
15881 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15883 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
15885 (store_multiple): Likewise.
15887 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15889 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
15890 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
15891 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
15892 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
15893 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
15894 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
15895 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
15896 Specify issue_rate value.
15897 (arm_issue_rate): Look up issue rate from tuning structs. Remove
15898 large switch statement.
15899 (arm_marvell_pj4_tune): New struct.
15900 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
15903 2015-04-23 Richard Biener <rguenther@suse.de>
15905 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
15906 (vect_find_last_store_in_slp_instance): Rename to ...
15907 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
15908 (vect_analyze_slp_cost_1): Use vector_load for constant defs
15909 and vec_construct for external defs when estimating prologue cost.
15910 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
15911 Compute costs here only when vectorizing loops.
15912 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
15913 have been determined.
15914 (vect_schedule_slp_instance): Simplify vectorized code placement
15915 and prepare for in-BB external defs.
15916 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
15917 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
15918 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
15920 (vect_model_load_cost): Likewise.
15921 (vectorizable_store): Instead add it here.
15922 (vectorizable_load): Likewise.
15923 (vect_is_simple_use): Dump def type textually.
15925 2015-04-23 Richard Biener <rguenther@suse.de>
15927 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
15928 * cfgloop.c (verify_loop_structure): Verify the root loop node.
15929 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
15930 instead of get_eh_region_from_lp_number.
15931 * loop-init.c (fix_loop_structure): If we removed a loop, reset
15934 2015-04-23 Anton Blanchard <anton@samba.org>
15936 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
15937 need for -mprofile-kernel to save LR to stack.
15939 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15941 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
15943 (insn_is_swappable_p): Return 1 for a convert from double to
15944 single precision when all of its uses are splats of BE element
15947 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15949 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
15951 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15954 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
15955 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
15956 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
15958 (rs6000_builtin_mask_for_load): Return 0 for targets with
15959 efficient unaligned VSX accesses so that the vectorizer will use
15960 direct unaligned loads.
15961 (rs6000_builtin_support_vector_misalignment): Always return true
15962 for targets with efficient unaligned VSX accesses.
15963 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
15964 stores on targets with efficient unaligned VSX accesses is almost
15965 always the same as the cost of an aligned load or store, so model
15967 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
15968 unaligned vectors if we have efficient unaligned VSX accesses.
15969 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
15970 undocumented option.
15972 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15975 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
15977 * config.gcc (LIBC_MUSL): New tm_defines macro.
15978 * config/linux.h (OPTION_MUSL): Define.
15979 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
15980 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
15981 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
15983 * config/linux.opt (mmusl): New option.
15984 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
15985 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
15987 * configure: Regenerate.
15989 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
15991 * config.gcc (LIBC_MUSL): New tm_defines macro.
15992 * config/linux.h (OPTION_MUSL): Define.
15993 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
15994 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
15995 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
15997 * config/linux.opt (mmusl): New option.
15998 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
15999 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
16001 * configure: Regenerate.
16003 2015-04-22 Yury Gribov <y.gribov@samsung.com>
16005 * doc/invoke.texi (-fsanitize-sections): Update description.
16006 * asan.c (set_sanitized_sections): Parse incoming arg.
16007 (section_sanitized_p): Support wildcards.
16009 2015-04-22 Tom de Vries <tom@codesourcery.com>
16011 PR tree-optimization/65823
16012 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
16013 equality between ap_copy and ap.
16015 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16018 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
16020 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16023 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
16025 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16028 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
16029 remove already contained t-files.
16031 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16033 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
16034 Remove unneeded forward declarations.
16035 (suitable_for_tail_call_opt_p): Commentary typo fix.
16037 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16039 * varasm.c (emit_bss): Remove redundant guard.
16041 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16043 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
16045 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16047 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
16049 2015-04-22 Hale Wang <hale.wang@arm.com>
16050 Terry Guo <terry.guo@arm.com>
16052 PR rtl-optimization/64818
16053 * combine.c (can_combine_p): Don't combine user-specified
16054 register if it is in an asm input.
16056 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
16059 * passes.def (early_optimizations): Add pass_dse.
16061 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16063 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
16064 * reorg.c (redundant_insn): Remove ifdef
16065 INSN_REFERENCES_ARE_DELAYED.
16066 * resource.c (mark_referenced_resources): Likewise.
16068 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16070 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
16071 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
16072 * resource.c (mark_set_resources): Likewise.
16074 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16076 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
16077 * cfgcleanup.c (flow_find_cross_jump): Likewise.
16078 (flow_find_head_matching_sequence): Likewise.
16079 (try_head_merge_bb): Likewise.
16080 * combine.c (can_combine_p): Likewise.
16081 (try_combine): Likewise.
16082 (distribute_notes): Likewise.
16083 * df-problems.c (can_move_insns_across): Likewise.
16084 * final.c (final): Likewise.
16085 * gcse.c (insert_insn_end_basic_block): Likewise.
16086 * ira.c (find_moveable_pseudos): Likewise.
16087 * reorg.c (try_merge_delay_insns): Likewise.
16088 (fill_simple_delay_slots): Likewise.
16089 (fill_slots_from_thread): Likewise.
16090 * sched-deps.c (sched_analyze_2): Likewise.
16092 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16094 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
16095 PIC_OFFSET_TABLE_REGNUM.
16097 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16099 * alias.c (init_alias_target): Remove ifdef
16100 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
16101 * df-scan.c (df_insn_refs_collect): Likewise.
16102 (df_get_regular_block_artificial_uses): Likewise.
16103 (df_get_eh_block_artificial_uses): Likewise.
16104 (df_get_entry_block_def_set): Likewise.
16105 (df_get_exit_block_use_set): Likewise.
16106 * emit-rtl.c (gen_rtx_REG): Likewise.
16107 * ira.c (ira_setup_eliminable_regset): Likewise.
16108 * reginfo.c (init_reg_sets_1): Likewise.
16109 * regrename.c (rename_chains): Likewise.
16110 * reload1.c (reload): Likewise.
16111 (eliminate_regs_in_insn): Likewise.
16112 * resource.c (mark_referenced_resources): Likewise.
16113 (init_resource_info): Likewise.
16115 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16117 * defaults.h (MASK_RETURN_ADDR): New definition.
16118 * except.c (expand_builtin_extract_return_addr): Remove ifdef
16121 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16123 * defaults.h (RETURN_ADDR_OFFSET): New definition.
16124 * except.c (expand_builtin_extract_return_addr): Remove ifdef
16125 RETURN_ADDR_OFFSET.
16126 (expand_builtin_frob_return_addr): Likewise.
16128 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16130 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
16131 (try_redirect_by_replacing_jump): Likewise.
16132 (rtl_tidy_fallthru_edge): Likewise.
16133 * combine.c (insn_a_feeds_b): Likewise.
16134 (find_split_point): Likewise.
16135 (simplify_set): Likewise.
16136 * cprop.c (cprop_jump): Likewise.
16137 * cse.c (cse_extended_basic_block): Likewise.
16138 * df-problems.c (can_move_insns_across): Likewise.
16139 * function.c (emit_use_return_register_into_block): Likewise.
16140 * haifa-sched.c (sched_init): Likewise.
16141 * ira.c (find_moveable_pseudos): Likewise.
16142 * loop-invariant.c (find_invariant_insn): Likewise.
16143 * lra-constraints.c (curr_insn_transform): Likewise.
16144 * postreload.c (reload_combine_recognize_const_pattern):
16146 * reload.c (find_reloads): Likewise.
16147 * reorg.c (delete_scheduled_jump): Likewise.
16148 (steal_delay_list_from_target): Likewise.
16149 (steal_delay_list_from_fallthrough): Likewise.
16150 (redundant_insn): Likewise.
16151 (fill_simple_delay_slots): Likewise.
16152 (fill_slots_from_thread): Likewise.
16153 (delete_computation): Likewise.
16154 * sched-rgn.c (add_branch_dependences): Likewise.
16156 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16158 * genconfig.c (main): Always define HAVE_cc0.
16159 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
16161 * cfgcleanup.c (flow_find_cross_jump): Likewise.
16162 (flow_find_head_matching_sequence): Likewise.
16163 (try_head_merge_bb): Likewise.
16164 * cfgrtl.c (rtl_merge_blocks): Likewise.
16165 (try_redirect_by_replacing_jump): Likewise.
16166 (rtl_tidy_fallthru_edge): Likewise.
16167 * combine.c (do_SUBST_MODE): Likewise.
16168 (insn_a_feeds_b): Likewise.
16169 (combine_instructions): Likewise.
16170 (can_combine_p): Likewise.
16171 (try_combine): Likewise.
16172 (find_split_point): Likewise.
16174 (simplify_set): Likewise.
16175 (distribute_notes): Likewise.
16176 * cprop.c (cprop_jump): Likewise.
16177 * cse.c (cse_extended_basic_block): Likewise.
16178 * df-problems.c (can_move_insns_across): Likewise.
16179 * final.c (final): Likewise.
16180 (final_scan_insn): Likewise.
16181 * function.c (emit_use_return_register_into_block): Likewise.
16182 * gcse.c (insert_insn_end_basic_block): Likewise.
16183 * haifa-sched.c (sched_init): Likewise.
16184 * ira.c (find_moveable_pseudos): Likewise.
16185 * loop-invariant.c (find_invariant_insn): Likewise.
16186 * lra-constraints.c (curr_insn_transform): Likewise.
16187 * optabs.c (prepare_cmp_insn): Likewise.
16188 * postreload.c (reload_combine_recognize_const_pattern):
16190 * reload.c (find_reloads): Likewise.
16191 (find_reloads_address_1): Likewise.
16192 * reorg.c (delete_scheduled_jump): Likewise.
16193 (steal_delay_list_from_target): Likewise.
16194 (steal_delay_list_from_fallthrough): Likewise.
16195 (try_merge_delay_insns): Likewise.
16196 (redundant_insn): Likewise.
16197 (fill_simple_delay_slots): Likewise.
16198 (fill_slots_from_thread): Likewise.
16199 (delete_computation): Likewise.
16200 (relax_delay_slots): Likewise.
16201 * sched-deps.c (sched_analyze_2): Likewise.
16202 * sched-rgn.c (add_branch_dependences): Likewise.
16204 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16206 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
16207 that is trivially ded on non cc0 targets.
16208 (simplify_set): Likewise.
16209 (mark_used_regs_combine): Likewise.
16210 * cse.c (new_basic_block): Likewise.
16211 (fold_rtx): Likewise.
16212 (cse_insn): Likewise.
16213 (cse_extended_basic_block): Likewise.
16214 (set_live_p): Likewise.
16215 * rtlanal.c (canonicalize_condition): Likewise.
16216 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
16218 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16220 * conditions.h: Define macros even if HAVE_cc0 is undefined.
16221 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
16222 * final.c: Likewise.
16223 * jump.c: Likewise.
16224 * recog.c: Likewise.
16225 * recog.h: Declare functions even when HAVE_cc0 is undefined.
16226 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
16228 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16230 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
16231 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
16232 * builtins.c (expand_builtin): Remove check if
16233 EH_RETURN_DATA_REGNO is defined.
16234 * df-scan.c (df_bb_refs_collect): Likewise.
16235 (df_get_exit_block_use_set): Likewise.
16236 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
16237 * ira-lives.c (process_bb_node_lives): Likewise.
16238 * lra-lives.c (process_bb_lives): Likewise.
16240 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
16242 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
16243 FIRST_PSEUDO_REG): New.
16244 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
16245 (ARG_POINTER_REGNUM): Define to ARGP_REG.
16246 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
16247 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
16248 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
16249 (FIRST_INT_REG): New.
16250 (LAST_INT_REG): New.
16251 (FIRST_*_REG): Define using *_REG.
16252 (LAST_*_REG): Ditto.
16253 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
16254 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
16255 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
16257 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16259 * expmed.c: (synth_mult): Only assume overlapping
16260 shift with previous steps in alg_sub_t_m2 case.
16262 2015-04-21 Richard Biener <rguenther@suse.de>
16264 PR tree-optimization/65650
16265 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
16266 transitions involving copies.
16267 (set_lattice_value): Adjust for copy lattice state.
16268 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
16269 if that doesn't dominate the merge point.
16270 (bit_value_unop): Adjust what we treat as varying mask.
16271 (bit_value_binop): Likewise.
16272 (bit_value_assume_aligned): Likewise.
16273 (evaluate_stmt): When we simplified to a SSA name record a copy
16274 instead of dropping to varying.
16275 (visit_assignment): Simplify.
16277 * gimple-match.h (gimple_simplify): Add another callback.
16278 * gimple-fold.c (fold_stmt_1): Adjust caller.
16279 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
16280 for the 2nd callback.
16281 * gimple-match-head.c (gimple_simplify): Add a callback that is
16282 used to valueize the stmt operands and use it that way.
16284 2015-04-21 Richard Biener <rguenther@suse.de>
16286 PR tree-optimization/65788
16287 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
16289 2015-04-21 Richard Biener <rguenther@suse.de>
16291 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
16292 vec_construct cost by vec_stmt_cost.
16294 2015-04-21 Richard Biener <rguenther@suse.de>
16296 * cfghooks.h (create_basic_block): Replace with two overloads
16297 for RTL and GIMPLE.
16298 (split_block): Likewise.
16299 * cfghooks.c (split_block): Rename to ...
16300 (split_block_1): ... this.
16301 (split_block): Add two type-safe overloads for RTL and GIMPLE.
16302 (split_block_after_labels): Call split_block_1.
16303 (create_basic_block): Rename to ...
16304 (create_basic_block_1): ... this.
16305 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
16306 (create_empty_bb): Call create_basic_block_1.
16307 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
16308 split_block_after_labels.
16309 * omp-low.c (expand_parallel_call): Likewise.
16310 (expand_omp_target): Likewise.
16311 (simd_clone_adjust): Likewise.
16312 * tree-chkp.c (chkp_get_entry_block): Likewise.
16313 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
16314 create_basic_block overload.
16315 (cgraph_node::expand_thunk): Likewise.
16316 * tree-cfg.c (make_blocks): Likewise.
16317 (handle_abnormal_edges): Likewise.
16318 * tree-inline.c (copy_bb): Likewise.
16320 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16322 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
16324 (*xor_one_cmplsidi3_ze): Likewise.
16326 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
16328 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
16329 use df_remove_problem rather than manually removing problems, leaving
16330 holes in df->problems_in_order[].
16332 2015-04-21 Tom de Vries <tom@codesourcery.com>
16334 PR tree-optimization/65802
16335 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
16337 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16339 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
16341 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
16342 at '.'. Assert that there's enough space for everything.
16344 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
16346 PR tree-optimization/64950
16348 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
16351 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
16354 2015-04-20 Shiva Chen <shiva0217@gmail.com>
16356 PR rtl-optimization/64916
16357 * cfgcleanup.c (values_equal_p): New function.
16358 (can_replace_by): Use it.
16360 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
16363 * doc/invoke.texi ([-Wnarrowing]): Update.
16365 2015-04-20 Jeff Law <law@redhat.com>
16367 PR tree-optimization/65658
16368 * tree-ssa-threadupdate.c (redirection_block_p): Remove
16369 redundant test for GIMPLE_ASSIGN in last change.
16371 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
16373 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
16374 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
16375 (legitimize_tls_address): Ditto.
16376 (ix86_expand_move): Ditto.
16377 (ix86_expand_binary_operator): Remove reload_in_progress checks.
16378 (ix86_expand_unary_operator): Ditto.
16379 * config/i386/predicates.md (index_register_operand): Ditto.
16381 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
16383 * reorg.c (try_merge_delay_insns): Improve correctness checking
16384 for targets with multiple delay slots.
16386 2015-04-20 Jeff Law <law@redhat.com>
16388 PR tree-optimization/65658
16389 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
16392 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
16394 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
16395 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
16398 2015-04-20 Jakub Jelinek <jakub@redhat.com>
16401 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
16403 2015-04-20 Richard Biener <rguenther@suse.de>
16405 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
16406 * gimple-fold.c (gimple_build_valueize): New function.
16407 (gimple_build): Always use gimple_build_valueize as valueize hook.
16409 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
16412 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
16413 and overwrite variable parts if <= 1/2 the elements are variable.
16415 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
16417 PR rtl-optimization/65805
16418 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
16419 Don't use difference of offset and previous offset if
16420 update_sp_offset is non-zero.
16421 (eliminate_regs_in_insn): Ditto.
16422 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
16423 lra_eliminate_regs_1 call.
16424 * lra-constraints.c (get_equiv_with_elimination): Ditto.
16426 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
16428 * hash-table.h: Remove version of hash_table that stored value_type *.
16429 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
16430 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
16431 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
16432 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
16433 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
16434 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
16435 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
16436 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
16437 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
16438 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
16439 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
16440 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
16441 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
16442 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
16443 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
16444 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
16446 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16447 Jakub Jelinek <jakub@redhat.com>
16450 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
16451 subsequent SH_NONE operand does not overwrite an existing *special
16453 (adjust_extract): Handle case where a vec_extract operation is
16454 wrapped in a PARALLEL.
16456 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
16459 * config/i386/i386.c (ix86_binds_local_p): Define only if
16460 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
16462 2015-04-17 Jeff Law <law@redhat.com>
16464 PR tree-optimization/47679
16465 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
16466 * tree-ssa-scopedtables.c: New file.
16467 * tree-ssa-scopedtables.h: New file.
16468 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
16469 (const_and_copies): Change name/type.
16470 (record_const_or_copy): Move into tree-ssa-scopedtables.c
16471 (record_const_or_copy_1): Similarly.
16472 (restore_vars_to_original_value): Similarly.
16473 (pass_dominator::execute): Create and destroy const_and_copies table.
16474 (thread_across_edge): Update passing of const_and_copies.
16475 (record_temporary_equivalence): Use method calls rather than
16476 manipulating const_and_copies directly.
16477 (record_equality, cprop_into_successor_phis): Similarly.
16478 (dom_opt_dom_walker::before_dom_children): Similarly.
16479 (dom_opt_dom_walker::after_dom_children): Similarly.
16480 (eliminate_redundant_computations): Similarly.
16481 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
16482 (record_temporary_equivalence): Likewise.
16483 (invalidate_equivalences): Likewise.
16484 (record_temporary_equivalences_from_phis): Update due to type
16485 change of const_and_copies. Use method calls rather than
16486 manipulating the stack directly.
16487 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
16488 (thread_through_normal_block, thread_across_edge): Likewise.
16489 (thread_across_edge): Likewise.
16490 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
16491 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
16493 (identify_jump_threads): Update due to type change of equiv_stack.
16494 (finalize_jump_threads): Delete the equiv_stack when complete.
16496 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
16498 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
16499 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
16500 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
16502 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
16505 * config.gcc: Exit with a comment when we do not have a major version
16506 number for the FreeBSD target.
16508 2015-04-17 Jakub Jelinek <jakub@redhat.com>
16511 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
16512 maybe_allows_mem bitfields.
16513 (maybe_allows_none_start, maybe_allows_none_end,
16514 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
16515 maybe_allows_mem_end): New variables.
16516 (compute_maybe_allows): New function.
16517 (add_constraint): Use it to initialize maybe_allows_reg and
16518 maybe_allows_mem fields.
16519 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
16520 is_address constraints such that those that allow neither mem nor
16521 reg come first, then those that only allow reg but not mem, then
16522 those that only allow mem but not reg, then the rest.
16523 (write_allows_reg_mem_function): New function.
16524 (write_tm_preds_h): Call it.
16525 * stmt.c (parse_output_constraint, parse_input_constraint): Use
16526 the generated insn_extra_constraint_allows_reg_mem function
16527 instead of always setting *allows_reg = true; *allows_mem = true;
16528 for unknown extra constraints.
16530 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
16533 * output.h (default_binds_local_p_3): New.
16534 * varasm.c (default_binds_local_p_3): Make it public. Take an
16535 argument to indicate if common symbol may be local. If common
16536 symbol may be local, treat non-external variable as defined
16538 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
16539 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
16540 * config/i386/i386.c (ix86_binds_local_p): New.
16541 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
16542 ix86_binds_local_p.
16544 2015-04-17 Jakub Jelinek <jakub@redhat.com>
16547 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
16548 trying mem_loc_descriptor on XEXP (rtl, 0).
16550 2015-04-17 Martin Liska <mliska@suse.cz>
16552 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
16553 Release symbol_compare_collection.
16554 * ipa-reference.c: Add TODO that a vector should be released.
16556 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
16559 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
16560 to new AVR-LibC file layout (bug #44574).
16561 (*avrlibc_devicelib): Same.
16562 * config/avr/avr-mcus.def: Adjust comments.
16563 * config/avr/avr.opt (nodevicelib): Adjust help.
16565 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
16567 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
16569 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
16572 * gimplify.c (gimplify_init_constructor): Always emit a
16573 side-effecting constructor.
16575 2015-04-17 Tom de Vries <tom@codesourcery.com>
16577 PR tree-optimization/64950
16578 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
16579 in cfun->curr_properties.
16580 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
16581 if we generate an IFN_VA_ARG.
16582 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
16583 function if PROP_gimple_lva is not set in src function.
16585 2015-04-17 Tom de Vries <tom@codesourcery.com>
16586 Michael Matz <matz@suse.de>
16588 PR tree-optimization/64950
16589 * gimple-iterator.c (update_modified_stmts): Remove static.
16590 * gimple-iterator.h (update_modified_stmts): Declare.
16591 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
16592 (gimplify_va_arg_internal): New function.
16593 (gimplify_va_arg_expr): Use IFN_VA_ARG.
16594 * gimplify.h (gimplify_va_arg_internal): Declare.
16595 * internal-fn.c (expand_VA_ARG): New unreachable function.
16596 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
16597 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
16598 (expand_ifn_va_arg): New function.
16599 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
16600 (pass_stdarg::execute): Call expand_ifn_va_arg.
16601 (pass_data_lower_vaarg): New pass_data.
16602 (pass_lower_vaarg): New gimple_opt_pass.
16603 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
16604 (make_pass_lower_vaarg): New function.
16605 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
16606 properties_required field.
16607 * passes.def (all_passes): Add pass_lower_vaarg.
16608 * tree-pass.h (PROP_gimple_lva): Add define.
16609 (make_pass_lower_vaarg): Declare.
16611 2015-04-17 Tom de Vries <tom@codesourcery.com>
16613 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
16614 * calls.c (call_expr_flags): Same.
16616 2015-04-17 Tom de Vries <tom@codesourcery.com>
16618 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
16619 (pass_stdarg::execute): ... here.
16621 2015-04-17 Tom de Vries <tom@codesourcery.com>
16622 Michael Matz <matz@suse.de>
16624 * tree-cfg.c (make_blocks_1): Factor out of ...
16625 (make_blocks): ... here.
16626 (make_edges_bb): Factor out of ...
16627 (make_edges): ... here.
16628 (gimple_find_sub_bbs): New function.
16629 * tree-cfg.h (gimple_find_sub_bbs): Declare.
16631 2015-04-17 Tom de Vries <tom@codesourcery.com>
16633 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
16635 2015-04-17 Yury Gribov <y.gribov@samsung.com>
16637 * asan.c (set_sanitized_sections): New function.
16638 (section_sanitized_p): Ditto.
16639 (asan_protect_global): Optionally sanitize user-defined
16641 * asan.h (set_sanitized_sections): Declare new function.
16642 * common.opt (fsanitize-sections): New option.
16643 * doc/invoke.texi (-fsanitize-sections): Document new option.
16644 * opts-global.c (handle_common_deferred_options): Handle new
16647 2015-04-17 Jakub Jelinek <jakub@redhat.com>
16650 * dwarf2out.c (loc_list_from_tree): Return NULL
16651 for DEBUG_EXPR_DECL.
16653 2015-04-17 Christian Bruel <christian.bruel@st.com>
16655 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
16658 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16660 * ira-color.c (setup_left_conflict_sizes_p): Do not process
16661 node itself when computing left conflict subnode size.
16663 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
16665 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
16666 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
16667 *fop_<mode>_1_sse using enabled attribute. Use
16668 register_mixssei387nonimm_operand operand 1 predicate. Change
16669 alternative 3 constraints from "x" to "v".
16671 2015-04-16 Richard Biener <rguenther@suse.de>
16673 PR tree-optimization/65774
16674 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
16675 bit-value tracking on.
16677 2015-04-16 Richard Biener <rguenther@suse.de>
16679 PR tree-optimization/64277
16680 * tree-vrp.c (check_array_ref): Fix anti-range handling,
16681 simplify upper bound handling.
16682 (search_for_addr_array): Simplify.
16683 (check_array_bounds): Handle ADDR_EXPRs here.
16684 (check_all_array_refs): Simplify.
16686 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
16688 * config/i386/i386.c (print_reg): Rewrite function.
16690 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16692 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
16693 Invert the condition.
16695 2015-04-16 Renlin Li <renlin.li@arm.com>
16697 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
16698 simplifications for UNSIGNED_FLOAT.
16700 2015-04-16 Nick Clifton <nickc@redhat.com>
16702 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
16704 (enum rl78_cpu_type): New.
16705 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
16706 (umulhi3_shift_virt): Remove m constraint from operand 1.
16707 (umulqihi3_virt): Likewise.
16708 * config/rl78/rl78.c (rl78_option_override): Add code to process
16709 -mcpu and -mmul options.
16710 (rl78_alloc_physical_registers): Add code to handle divhi and
16711 divsi valloc attributes.
16712 (set_origin): Likewise.
16713 * config/rl78/rl78.h (RL78_MUL_G14): Define.
16714 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
16715 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
16717 (ASM_SPEC): Pass -mcpu on to assembler.
16718 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
16719 (mulqi3_rl78): Likewise.
16720 (mulhi3_g13): Likewise.
16721 (mulhi3): Generate the G13 or G14 versions of the insn directly.
16722 (mulsi3): Likewise.
16723 (mulhi3_g14): Add clobbers of AX and BC.
16724 (mulsi3_g14): Likewise.
16725 (mulsi3_g13): Likewise.
16726 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
16727 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
16728 * config/rl78/rl78.opt (mmul): Initialise value to
16730 (mcpu): New option.
16731 (m13, m14, mrl78): New option aliases.
16732 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
16733 (MULTILIB_DIRNAMES): Add g13 and g14.
16734 * doc/invoke.texi: Document -mcpu and -mmul options.
16736 2015-04-16 Richard Biener <rguenther@suse.de>
16738 * tree-ssa-ccp.c (likely_value): See if we have operands that
16739 are marked as never simulate again and return CONSTANT in this
16741 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
16742 not have any operands that will be simulated again as
16743 not being simulated again.
16745 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
16747 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
16748 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
16749 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
16751 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
16753 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
16754 *float<SWI48:mode><MODEF:mode>2_sse.
16755 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
16757 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
16760 2015-04-15 Tom de Vries <tom@codesourcery.com>
16763 * function.c (push_dummy_function): New function.
16764 (init_dummy_function_start): Use push_dummy_function.
16765 (pop_dummy_function): New function. Factored out of ...
16766 (expand_dummy_function_end): ... here.
16767 * function.h (push_dummy_function, pop_dummy_function): Declare.
16768 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
16769 pop_dummy_function.
16770 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
16772 2015-04-15 Jeff Law <law@redhat.com>
16774 PR tree-optimization/47679
16775 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
16776 need for forward declaration in upcoming changes.
16777 (record_conditions, record_edge_info): Likewise.
16779 PR rtl-optimization/42522
16780 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
16781 SIGN_EXTRACT as a whole object rather than simplifying
16784 2015-04-15 Jakub Jelinek <jakub@redhat.com>
16787 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
16788 and GIMPLE_PREDICT use break instead of return true. For
16789 GIMPLE_EH_DISPATCH, compare dispatch region.
16791 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
16793 * doc/extend.texi (__sync Builtins): Simplify some text. Update
16794 details about the implementation. Make clear preference for
16795 __atomic builtins. Reduce possibility of future change.
16797 2015-04-15 Nick Clifton <nickc@redhat.com>
16799 * config/rx/rx.opt (mallow-string-insns): New option.
16800 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
16801 builtin if string instructions are denied.
16802 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
16803 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
16805 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
16806 * config/rx/rx.md (movstr): Enable pattern only if string
16807 instructions are allowed.
16808 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
16809 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
16810 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
16811 (MULTILIB_DIRNAMES): Add no-strings.
16812 * doc/invoke.texi: Document -mno-allow-string-insns.
16814 2015-04-15 Alan Modra <amodra@gmail.com>
16818 PR middle-end/36043
16819 * calls.c (load_register_parameters): Don't load past end of
16820 mem unless suitably aligned.
16822 2015-04-15 Nick Clifton <nickc@redhat.com>
16824 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
16825 decrement instruction as being frame related.
16826 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
16828 If zero extending a function address enclose the operation in
16830 (rl78_preferred_reload_class): New function.
16831 (TARGET_PREFERRED_RELOAD_CLASS): Define.
16832 * config/rl78/rl78.md: Remove useless constraints in expanders.
16833 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
16834 (mulhi3_rl78): Likewise.
16835 (mulhi3_g13): Likewise.
16836 (mulsi3_rl78): Likewise.
16837 (es_addr): Move to before the multiply patterns.
16839 2015-04-15 Alan Modra <amodra@gmail.com>
16841 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
16842 and sequence_stack. Add seq.
16843 (seq_stack): Delete.
16844 * function.c (prepare_function_start): Don't access x_last_insn.
16845 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
16846 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
16847 * emit_rtl.c (start_sequence, push_topmost_sequence,
16848 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
16849 sequence accessors.
16850 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
16851 remove_insn): Likewise. Simplify.
16852 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
16853 and pop_topmost_sequence.
16854 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
16856 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
16858 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
16861 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
16864 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
16866 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
16867 (LEGACY_INT_REGNO_P): Ditto.
16868 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
16869 (ANY_MASK_REG_P): Remove.
16870 (BND_REG_P): Rename from ANY_BND_REG_P.
16871 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
16872 legacy integer registers. Do not handle MMX_REG_P in a special way.
16873 Merge 64byte and 32byte SSE handling.
16875 2015-04-14 Nick Clifton <nickc@redhat.com>
16877 * expr.c (expand_assignment): Force an address offset computation
16878 into a register before changing its mode.
16879 (expand_expr_real_1): Likewise.
16881 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
16883 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
16884 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
16885 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
16886 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
16887 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
16888 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
16889 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
16890 and __aarch64_vget_lane_any.
16892 2015-04-14 Jakub Jelinek <jakub@redhat.com>
16894 PR rtl-optimization/65761
16895 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
16896 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
16898 2015-04-14 Richard Biener <rguenther@suse.de>
16900 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
16901 (graphite_can_represent_scev): Use POINTER_TYPE_P.
16903 2015-04-14 Richard Biener <rguenther@suse.de>
16905 PR tree-optimization/65758
16906 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
16908 (ccp_lattice_meet): Likewise.
16909 (bit_value_unop): Likewise.
16910 (bit_value_binop): Likewise.
16911 (bit_value_assume_aligned): Likewise.
16913 2015-04-14 Christian Bruel <christian.bruel@st.com>
16915 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
16918 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
16920 PR tree-optimization/63387
16921 * match.pd ((x unord x) | (y unord y) -> (x unord y),
16922 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
16924 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
16926 * config/i386/predicates.md (any_QIreg_operand): Rename from
16927 q_regs_operand. Do not process subregs.
16928 (QIreg_operand): Use QI_REGNO_P predicate.
16929 (ext_QIreg_operand): Ditto.
16930 (ext_register_operand): Ditto.
16931 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
16932 (AND splitters): Ditto.
16933 (AND with -65536 splitter): Add SWI48 mode for operand 0.
16934 (AND with -256 splitter): Use any_QIreg_operand predicate and
16935 SWI248 mode for operand 0.
16936 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
16937 mode for operand 0.
16938 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
16940 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
16942 * doc/plugins.texi: Rewrite first introductory paragraph.
16944 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16946 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
16947 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
16949 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16951 * ipa-profie.c (ipa_profile): Check number of parameters
16952 and possible polymorphic call targets before
16955 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
16957 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
16958 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
16960 2015-04-13 Richard Biener <rguenther@suse.de>
16962 PR tree-optimization/65204
16963 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
16964 takens for bit-CCP.
16966 2015-04-13 Richard Biener <rguenther@suse.de>
16969 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
16970 and cond_not_taken_branch_cost to 4 and 2.
16971 (bdver2_cost): Likewise.
16972 (bdver3_cost): Likewise.
16973 (bdver4_cost): Likewise.
16975 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16977 * hash-table.h (hash_table constructor): Add mem stats.
16978 (alloc_entries): Likewise.
16980 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16982 * ipa-cp.c (ipcp_driver): Relase prev_edge.
16983 * passes.c (execute_one_pass): Only add transform if pass has one.
16985 2015-04-12 Joseph Myers <joseph@codesourcery.com>
16987 * config/i386/i386.c (ix86_option_override_internal): Don't set
16988 -fprefetch-loop-arrays if optimizing for size.
16990 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16991 Gerald Pfeifer <gerald@pfeifer.com>
16993 * doc/contrib.texi (Contributors): Add Martin Jambor and
16996 2015-04-12 Jakub Jelinek <jakub@redhat.com>
16998 * BASE-VER: Set to 6.0.0.
17000 PR tree-optimization/65747
17001 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
17002 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
17004 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
17006 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
17007 sentence. Improve grammar.
17009 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
17011 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
17013 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
17016 * ipa-inline-transform.c (speculation_removed): Remove static var.
17017 (check_speculations): New function.
17018 (clone_inlined_nodes): Do not check spculations.
17019 (inline_call): Call check_speculations.
17020 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
17021 consider non-invariants.
17023 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
17024 Martin Liska <mliska@suse.cz>
17027 * ipa-icf.c (sem_item::compare_cgraph_references): function and
17028 variable can not match.
17029 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
17030 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
17032 2015-04-11 Jakub Jelinek <jakub@redhat.com>
17034 PR tree-optimization/65735
17035 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
17036 Remove visited_phis argument, add visited_bbs, avoid recursing into the
17037 same bb rather than just into the same phi node.
17038 (thread_through_normal_block): Adjust caller.
17040 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
17042 * doc/contrib.texi (Contributors): Add Ira Rosen.
17044 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
17046 * gcov.c (find_source): Fix miswording in error message.
17047 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
17048 (ix86_expand_sse_comi_round): Fix typo in error message.
17050 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
17052 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
17054 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
17056 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
17058 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
17061 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
17062 Print bad_spills_num and insn_pseudos_num.
17064 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17067 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
17068 when creating +1 values for SImode.
17070 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
17073 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
17076 2015-04-10 Jakub Jelinek <jakub@redhat.com>
17077 Iain Sandoe <iain@codesourcery.com>
17080 * configure: Regenerate.
17082 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
17085 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
17087 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
17089 * doc/contrib.texi (Contributors): Add John Marino.
17091 2015-04-09 Jakub Jelinek <jakub@redhat.com>
17093 PR tree-optimization/65709
17094 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
17095 TREE_TYPE (TREE_TYPE (t)).
17097 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
17100 * lra-int.h (lra_bad_spill_regno_start): New.
17101 * lra.c (lra_bad_spill_regno_start): New.
17102 (lra): Set up lra_bad_spill_regno_start. Set up
17103 lra_constraint_new_regno_start unconditionally.
17104 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
17107 2015-04-09 Marek Polacek <polacek@redhat.com>
17108 Jakub Jelinek <jakub@redhat.com>
17110 PR middle-end/65554
17111 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
17112 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
17115 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
17117 PR rtl-optimization/65693
17118 * combine.c (is_parallel_of_n_reg_sets): Move outside of
17121 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
17124 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
17125 device specs file if "device-specs%s" didn't resolve to a path.
17127 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
17130 * config/i386/i386.c (fixup_modeless_constant): New.
17131 (ix86_expand_args_builtin): Fixup modeless constant operand.
17132 (ix86_expand_round_builtin): Ditto.
17133 (ix86_expand_special_args_builtin): Ditto.
17134 (ix86_expand_builtin): Ditto.
17136 2015-04-09 Jakub Jelinek <jakub@redhat.com>
17139 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
17140 any pow2 integer in between 2 and 0x80000000U inclusive.
17142 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
17144 PR rtl-optimization/65693
17145 * combine.c (is_parallel_of_n_reg_sets): Change first argument
17146 from an rtx_insn * to an rtx.
17147 (try_combine): Adjust both callers. Use it once more.
17149 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17151 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
17152 (chkp_make_static_const_bounds): Search existing
17153 symbol by assembler name. Use make_decl_one_only.
17154 (chkp_get_zero_bounds_var): Remove node search which
17155 is now performed in chkp_make_static_const_bounds.
17156 (chkp_get_none_bounds_var): Likewise.
17158 2015-04-08 Michael Witten <mfwitten@gmail.com>
17160 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
17163 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17165 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
17167 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
17169 * doc/extend.texi (__sync Builtins): Fix grammar.
17171 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17173 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
17175 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17177 * varasm.c (emit_local): Move definition of align.
17179 2015-04-08 Julian Brown <julian@codesourcery.com>
17181 * config/nvptx/mkoffload.c (process): Support variable mapping.
17183 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
17185 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
17187 (alpha_write_one_linkage): Correct typo.
17189 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17191 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
17193 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
17195 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
17197 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17199 * tree-chkp.h (chkp_insert_retbnd_call): New.
17200 * tree-chkp.c (chkp_insert_retbnd_call): New.
17201 * ipa-split.c (insert_bndret_call_after): Remove.
17202 (split_function): Use chkp_insert_retbnd_call.
17203 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
17204 bounds for instrumented functions.
17206 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
17209 * calls.c (initialize_argument_information): When producing tail
17210 call also turn SSA_NAMES passed by references to original PARM_DECLs
17212 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
17215 * lra-remat.c (do_remat): Process input and non-input insn
17216 registers separately.
17218 2015-04-07 Jakub Jelinek <jakub@redhat.com>
17221 * valtrack.c (debug_lowpart_subreg): New function.
17222 (dead_debug_insert_temp): Use it.
17224 PR middle-end/65680
17225 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
17226 into signed HOST_WIDE_INT the same as negative bit_offset.
17228 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
17230 * ipa-comdats.c (ipa_comdats): Visit all thunks
17231 to set proper comdat group.
17233 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17236 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
17237 on constants for NEON VSTRUCT modes.
17239 2015-04-07 Jakub Jelinek <jakub@redhat.com>
17240 Iain Sandoe <iain@codesourcery.com>
17243 * configure: Regenerate.
17245 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
17248 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
17249 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
17250 that LFD is used to load double constants instead of LFS. Add
17251 defaults for all costs structures. Add comments for missing
17252 initialization fields.
17253 (size32_cost): Likewise.
17254 (size64_cost): Likewise.
17255 (rs64a_cost): Likewise.
17256 (mpccore_cost): Likewise.
17257 (ppc403_cost): Likewise.
17258 (ppc405_cost): Likewise.
17259 (ppc440_cost): Likewise.
17260 (ppc476_cost): Likewise.
17261 (ppc601_cost): Likewise.
17262 (ppc603_cost): Likewise.
17263 (ppc604_cost): Likewise.
17264 (ppc604e_cost): Likewise.
17265 (ppc620_cost): Likewise.
17266 (ppc630_cost): Likewise.
17267 (ppccell_cost): Likewise.
17268 (ppc750_cost): Likewise.
17269 (ppc7450_cost): Likewise.
17270 (ppc8540_cost): Likewise.
17271 (ppce300c2c3_cost): Likewise.
17272 (ppce500mc_cost): Likewise.
17273 (ppce500mc64_cost): Likewise.
17274 (ppce5500_cost): Likewise.
17275 (ppce6500_cost): Likewise.
17276 (titan_cost): Likewise.
17277 (power4_cost): Likewise.
17278 (power6_cost): Likewise.
17279 (power7_cost): Likewise.
17280 (power8_cost): Likewise.
17281 (ppca2_cost): Likewise.
17282 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
17284 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
17285 instead of XXLOR to copy SFmode to clear out dirty bits created
17286 when SFmode denormals are generated.
17287 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
17288 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
17290 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
17292 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
17293 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
17294 * config/aarch64/aarch64-tune.md: Regenerate.
17296 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
17298 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
17299 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
17300 * config/arm/arm-cores.def (exynos-m1): New core.
17301 * config/arm/arm-tune.md: Regenerate.
17302 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
17303 * config/arm/bpabi.h: Likewise.
17305 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
17307 * ipa-cp (set_single_call_flag): Remove too
17308 restrictive assert.
17310 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
17312 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
17313 GOMP_offload_unregister from the destructor.
17315 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
17317 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
17318 flags for instrumentation thunk.
17319 (chkp_produce_thunks): Likewise.
17321 2015-04-05 Martin Liska <mliska@suse.cz>
17324 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
17325 has computed data structure.
17326 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
17328 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
17330 * invoke.texi (inline-unit-growth): Increase growth to 20%
17331 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
17333 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
17336 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
17338 (lra_rematerialization_iter): New.
17339 * lra.c (lra): Initialize lra_rematerialization_iter.
17340 Stop updating lra_constraint_new_regno_start after switching of
17341 inheritance and rematerialization.
17342 * lra-remat.c (lra_rematerialization_iter): New.
17343 (lra_remat): Add printing pass iteration. Do rematerialization
17344 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
17346 2015-04-04 Richard Biener <rguenther@suse.de>
17348 PR tree-optimization/64909
17349 PR tree-optimization/65660
17350 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
17351 to take a cost vector for scalar iteration cost.
17352 (vect_get_single_scalar_iteration_cost): Likewise.
17353 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
17354 Compute the scalar iteration cost into a cost vector.
17355 (vect_get_known_peeling_cost): Use the scalar cost vector to
17356 account for the cost of the peeled iterations.
17357 (vect_estimate_min_profitable_iters): Likewise.
17358 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
17361 2015-04-04 Alan Modra <amodra@gmail.com>
17365 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
17366 0.0 constant unless TARGET_VSX.
17367 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
17370 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17373 * ipa-inline-transform.c (inline_call): Skip sanity check to work
17376 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17379 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
17380 speculative indirect edges to avoid ordering issue.
17382 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17385 * ipa-inline.c (edge_badness): Add combined size to the denominator.
17387 2015-04-03 Jakub Jelinek <jakub@redhat.com>
17389 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
17390 TYPE_ARTIFICIAL on the .omp_data* types.
17392 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17394 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
17395 instrumentation thunks.
17397 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17399 * config/i386/i386.c (ix86_expand_call): Avoid nested
17400 PARALLEL in returned call value.
17402 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17404 * lto-cgraph.c (input_cgraph_1): Always link instrumented
17405 assembler name with original one.
17407 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17409 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
17411 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17413 Revert parts of r216820.
17414 * config/i386/i386.md (movqi_internal): Correct type calculation
17415 for alternatives 3 and 5.
17417 2015-04-02 Jakub Jelinek <jakub@redhat.com>
17419 PR preprocessor/61977
17420 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
17421 predefine __vector/__bool/__pixel macros nor context sensitive
17422 macros for CLK_ASM.
17423 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
17425 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
17427 * config/pa/pa.c (pa_output_move_double): Directly handle register
17428 indexed memory operand. Simplify handling of scaled register indexed
17431 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17434 * config/i386/linux-common.h (MPX_SPEC): New.
17435 (CHKP_SPEC): Add MPX_SPEC.
17436 * doc/invoke.texi (-fcheck-pointer-boudns): Document
17437 possible issues with '-z bndplt' support in linker.
17439 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17441 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
17442 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
17443 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
17444 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
17445 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
17447 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
17449 * config/i386/sync.md (UNSPEC_MOVA): Remove.
17450 (atomic_load<mode>): Change operand 0 predicate to
17451 nonimmediate_operand and fix up the destination when needed.
17453 (atomic_loaddi_fpu): Use UNSPEC_LDA.
17454 (atomic_store<mode>): Change operand 1 predicate to
17455 nonimmendate_operand and move the source to register when needed.
17457 (atomic_store<mode>_1): Use UNSPEC_STA.
17458 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
17459 Fix moves from memory operand. Use UNSPEC_STA.
17461 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
17463 * expmed.c (strict_volatile_bitfield_p): Check that the access will
17464 not cross a MODESIZE boundary.
17465 (store_bit_field, extract_bit_field): Added assertions in the
17466 strict volatile bitfields code path.
17468 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
17471 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
17472 Increase args array size by one to avoid buffer overflow.
17474 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
17476 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
17478 * ipa-inline.c (edge_badness): Add wrapper penalty.
17479 (sum_callers): Move up.
17480 (inline_small_functions): Set single_caller.
17481 * ipa-inline.h (inline_summary): Add single_caller.
17482 * ipa-split.c (split_function): Set split_part.
17483 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
17484 * cgraph.h (cgraph_node): Add split_part.
17486 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
17489 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
17490 Do not split operands 0 and operands 2 to halfmode.
17491 (atomic_compare_and_swap<mode>): Update for
17492 atomic_compare_and_swap<dwi>_doubleword changes.
17494 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
17496 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
17497 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
17498 no caching is done.
17500 2015-03-31 Martin Liska <mliska@suse.cz>
17503 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
17504 has already filled up function summary.
17505 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
17507 2015-03-31 Richard Biener <rguenther@suse.de>
17509 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
17512 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
17514 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
17516 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
17517 (s390_asm_output_function_label): Adapt to new signature of
17518 s390_function_num_hotpatch_hw
17519 Optimise the code generating assembler output.
17520 Add comments to assembler file.
17522 2015-03-31 Richard Biener <rguenther@suse.de>
17524 PR middle-end/65626
17525 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
17526 of the noreturn call so it is last and cleanup_control_flow_bb
17527 can do the CFG part.
17529 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
17532 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
17533 same_comdat_group for external symbols.
17534 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
17535 infinite same_comdat_group traversal loop.
17537 2015-03-31 Jakub Jelinek <jakub@redhat.com>
17540 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
17541 automatically to $headers.
17543 2015-03-30 Jakub Jelinek <jakub@redhat.com>
17546 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
17547 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
17549 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
17551 * ipa-prop.c (param_type_may_change_p): Likewise.
17552 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
17553 (remove_unused_scope_block_p): Add in_ctor_dtor_block
17554 argument. Before inlining, preserve
17555 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
17556 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
17558 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
17560 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17563 * ipa-inline.c (edge_badness): Base denominator on callee's
17566 2015-03-27 Martin Jambor <mjambor@suse.cz>
17569 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
17570 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
17571 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
17572 node_calling_single_call.
17573 * ipa-cp.c (count_callers): New function.
17574 (set_single_call_flag): Likewise.
17575 (initialize_node_lattices): Count callers and set single_flag_call if
17577 (incorporate_penalties): New function.
17578 (good_cloning_opportunity_p): Use it, dump new flags.
17579 (propagate_constants_topo): Set node_within_scc flag if appropriate.
17580 * doc/invoke.texi (ipa-cp-recursion-penalty,
17581 ipa-cp-single-call-pentalty): Document.
17583 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17586 * symtab.c (symtab_node::get_partitioning_class): Register vars
17588 * varpool.c (symbol_table::output_variables) Do not assemble unefined
17589 decls for non-symbols.
17591 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
17594 * output.h (default_binds_local_p_2): New.
17595 * varasm.c (default_binds_local_p_2): Renamed to ...
17596 (default_binds_local_p_3): This. Don't return true on protected
17597 data symbol if protected data may be external.
17598 (default_binds_local_p): Use default_binds_local_p_3.
17599 (default_binds_local_p_1): Likewise.
17600 (default_binds_local_p_2): New.
17601 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
17602 default_binds_local_p_2 if TARGET_MACHO is undefined.
17604 2015-03-27 Jakub Jelinek <jakub@redhat.com>
17607 * config/i386/i386.c (legitimize_pic_address): If base
17608 is SYMBOL_REF or LABEL_REF using %rip addressing, force
17609 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
17611 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17614 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
17617 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17620 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
17621 of optimized out indirect call.
17622 (redirect_to_unreachable): Always build symbol table node for
17623 BUILT_IN_UNREACHABLE
17625 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
17628 * ira-costs.c (record_reg_classes): Process all constraint string
17631 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
17633 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
17637 * config/c6x/constraints.md (S3): New constraint.
17638 * config/c6x/c6x.md (real_jump): Use it.
17640 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17642 PR middle-end/65595
17643 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
17644 do redirection if the call is not optimized out.
17646 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
17649 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
17650 (fchkp-check-incomplete-type): Add LTO.
17651 (fchkp-zero-input-bounds-for-main): Likewise.
17652 (fchkp-first-field-has-own-bounds): Likewise.
17653 (fchkp-narrow-bounds): Likewise.
17654 (fchkp-narrow-to-innermost-array): Likewise.
17655 (fchkp-use-static-bounds): Likewise.
17656 (fchkp-use-static-const-bounds): Likewise.
17657 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
17659 2015-03-27 Marek Polacek <polacek@redhat.com>
17661 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
17663 2015-03-27 Marek Polacek <polacek@redhat.com>
17666 * ubsan.c (ubsan_create_edge): New function.
17667 (instrument_bool_enum_load): Call it.
17668 (instrument_nonnull_arg): Likewise.
17669 (instrument_nonnull_return): Likewise.
17670 (instrument_object_size): Likewise.
17672 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17674 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
17677 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17680 * lto-streamer.h (class lto_location_cache): New.
17681 (struct data_in): Add location_cache.
17682 (lto_input_location): Update prototype.
17683 (stream_input_location_now): New.
17684 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
17685 pointer to location.
17686 (stream_input_location): Update.
17687 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
17688 (warn_odr): Apply location cache before warning.
17689 (lto_input_location): Update prototype.
17690 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
17691 Use stream_input_location_now.
17692 * lto-streamer-in.c (lto_location_cache::current_cache): New static
17694 (lto_location_cache::cmp_loc): New function.
17695 (lto_location_cache::apply_location_cache): New function.
17696 (lto_location_cache::accept_location_cache): New function.
17697 (lto_location_cache::revert_location_cache): New function.
17698 (lto_location_cache::input_location): New function.
17699 (lto_input_location): Do location caching.
17700 (stream_input_location_now): New function.
17701 (input_eh_region, input_struct_function_base): Use
17702 stream_input_location_now.
17703 (lto_data_in_create): use new.
17704 (lto_data_in_delete): Use delete.
17705 * tree-streamer-in.c (unpack_ts_block_value_fields,
17706 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
17707 lto_input_ts_exp_tree_pointers): Update for cached location api.
17709 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17712 * passes.def: Add pass_nothrow.
17713 * ipa-pure-const.c: (pass_data_nothrow): New.
17714 (pass_nothrow): New.
17715 (pass_nothrow::execute): New.
17716 (make_pass_nothrow): New.
17717 * tree-pass.h (make_pass_nothrow): Declare.
17719 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17721 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
17722 edge to change by speculation resolution or redirection.
17723 (edge_set_predicate): Likewise.
17724 (inline_summary_t::duplicate): Likewise.
17725 (remap_edge_summaries): Likewise.
17727 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17729 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
17731 (can_inline_edge_p): Relax option matching for always inline functions.
17733 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
17736 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
17737 Check operand 4 and operand 0 for equality.
17738 (avx512f_vextract<shuffletype>32x4_1_maskm):
17739 Check operand 6 and operand 0 for equality.
17740 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
17742 (vec_extract_hi_<mode>_maskm): Ditto.
17744 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17746 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
17747 dead calls back to live.
17748 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
17750 (cgraph_node::verify_node): ... here; verify only callee edges,
17752 * cif-code.def (CILK_SPAWN): New code.
17754 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17756 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
17757 (edge_set_predicate): Use it to mark unreachable edges.
17758 (inline_summary_t::duplicate): Remove unnecesary code.
17759 (remap_edge_summaries): Likewise.
17760 (dump_inline_summary): Report contains_cilk_spawn.
17761 (compute_inline_parameters): Compute contains_cilk_spawn.
17762 (inline_read_section, inline_write_summary): Stream
17763 contains_cilk_spawn.
17764 * ipa-inline.c (can_inline_edge_p): Do not touch
17765 DECL_STRUCT_FUNCTION that may not be available;
17766 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
17767 remove check for callee_fun->can_throw_non_call_exceptions and
17768 replace it by optimization attribute check; check for flag_exceptions.
17769 * ipa-inline-transform.c (inline_call): Maintain
17770 DECL_FUNCTION_PERSONALITY
17771 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
17773 2015-03-26 Jakub Jelinek <jakub@redhat.com>
17775 PR tree-optimization/65551
17776 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
17777 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
17779 2015-03-26 Richard Biener <rguenther@suse.de>
17781 PR middle-end/65555
17782 * tree-cfg.c (verify_gimple_call): Do not require a call to
17783 have no LHS if it wasn't recognized as control altering yet.
17785 2015-03-26 Jakub Jelinek <jakub@redhat.com>
17787 PR tree-optimization/64715
17788 * passes.def: Add another instance of pass_object_sizes before ccp1.
17789 * tree-object-size.c (pass_object_sizes::execute): In
17790 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
17791 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
17792 __bos result and the computed constant. Remove redundant
17793 checks, obsoleted by gimple_call_builtin_p test.
17795 * var-tracking.c (variable_tracking_main_1): Don't track
17796 variables for targetm.no_register_allocation targets.
17798 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
17800 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
17801 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
17803 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
17806 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
17807 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
17808 0.0 is correctly setup.
17809 (extenddftf2_internal): Likewise.
17811 2015-03-25 Sebastian Pop <s.pop@samsung.com>
17813 PR tree-optimization/65177
17814 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
17816 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
17817 edges not adjacent on the path to the original code.
17819 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
17822 * doc/install.texi (Building a native compiler): Document new
17823 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
17824 configuration assumes that the host supports the linker plugin.
17826 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
17829 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
17830 chain for generated call.
17832 2015-03-25 Richard Biener <rguenther@suse.de>
17834 * passes.c (pass_manager::execute_early_local_passes): Guard
17835 execution of pass_chkp_instrumentation_passes with
17836 flag_check_pointer_bounds.
17837 (pass_chkp_instrumentation_passes::gate): Likewise.
17839 2015-03-25 Martin Liska <mliska@suse.cz>
17841 PR tree-optimization/65538
17842 * symbol-summary.h (function_summary::~function_summary):
17843 Relese memory for allocated summaries.
17844 (function_summary::release): New function.
17846 2015-03-25 Jakub Jelinek <jakub@redhat.com>
17849 * lto-streamer-out.c (DFS::worklist): New struct.
17850 (DFS::worklist_vec): New data member.
17851 (DFS::next_dfs_num): Remove.
17852 (DFS::DFS): Rewritten using worklist instead of recursion,
17853 using most of code from DFS::DFS_write_tree.
17854 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
17855 pass it to DFS_write_tree calls.
17856 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
17857 quick initial checks push it into worklist_vec and return.
17859 2015-03-25 Richard Biener <rguenther@suse.de>
17861 PR middle-end/65519
17862 * genmatch.c (expr::gen_transform): Re-write to avoid
17863 using gimple_build.
17865 2015-03-25 Bin Cheng <bin.cheng@arm.com>
17867 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
17869 2015-03-25 Bin Cheng <bin.cheng@arm.com>
17871 * config/arm/arm.opt (print_tune_info): New option.
17872 * config/arm/arm.c (arm_print_tune_info): New function.
17873 (arm_file_start): Call arm_print_tune_info.
17874 * config/arm/arm-protos.h (struct tune_params): Add comment.
17875 * doc/invoke.texi (@item -mprint-tune-info): New item.
17876 (-mtune): mention it in ARM Option Summary.
17878 2015-03-25 DJ Delorie <dj@redhat.com>
17880 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
17883 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
17884 Martin Liska <mliska@suse.cz>
17886 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
17887 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
17888 (sem_item::add_type): New function.
17889 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
17890 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
17891 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
17892 (sem_function::equals_wpa): Fix typo.
17893 * ipa-icf.h (sem_item::add_type): New function.
17894 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
17897 2015-03-24 Jakub Jelinek <jakub@redhat.com>
17899 PR tree-optimization/65533
17900 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
17901 with swapped operands, call vect_free_slp_tree on
17902 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
17905 2015-03-24 Richard Biener <rguenther@suse.de>
17907 PR middle-end/65517
17908 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
17909 for fixup if necessary.
17911 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
17913 * doc/extend.texi (Function Attributes): Add @cindex entries
17914 for all attributes and regularize their format. Delete text
17915 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
17916 information about "eightbit_data", "tiny_data", and "model"
17917 variable attributes to the Variable Attributes section. Fix
17918 some obvious typos and copy-editing issues.
17919 (Variable Attributes, Type Attributes): Likewise add/fix
17920 @cindex entries for all attributes.
17922 2015-03-23 Jakub Jelinek <jakub@redhat.com>
17925 * tree-chkp.c (chkp_build_returned_bound): Ignore
17926 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
17928 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
17931 * config/sh/predicates.md (simple_mem_operand,
17932 displacement_mem_operand): Add test for reg.
17933 (short_displacement_mem_operand): Test for displacement_mem_operand
17934 before invoking sh_disp_addr_displacement.
17935 * config/sh/constraints.md (Sdd, Sra): Simplify.
17936 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
17937 Remove redundant displacement_mem_operand tests.
17939 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
17942 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
17943 the same -mmcu=MCU more than once.
17945 2015-03-23 Jakub Jelinek <jakub@redhat.com>
17948 * ipa-devirt.c: Remove duplicate demangle.h include.
17951 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
17953 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
17954 REG_POINTER on *destptr after adjusting it for prologue size.
17957 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
17958 ultimate_alias_target ()->order ints instead of
17959 ultimate_alias_target () pointers.
17961 2015-03-23 Richard Biener <rguenther@suse.de>
17963 PR tree-optimization/65518
17964 * tree-vect-stmts.c (vectorizable_load): Reject single-element
17965 interleaving cases we generate absymal code for.
17967 2015-03-23 Richard Biener <rguenther@suse.de>
17969 PR tree-optimization/65494
17970 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
17972 (vect_analyze_slp_instance): But do that here, always and once.
17974 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17976 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
17977 adding T or multiplying by T+1 and subracting T.
17979 2015-03-22 Jeff Law <law@redhat.com>
17981 PR rtl-optimization/64317
17982 * Makefile.in (OBJS): Add gcse-common.c
17983 * gcse.c: Include gcse-common.h
17984 (struct modify_pair_s): Move structure definition to gcse-common.h
17985 (compute_transp): Move function to gcse-common.c.
17986 (canon_list_insert): Similarly.
17987 (record_last_mem_set_info): Break out some code and put it into
17988 gcse-common.c. Call into the new common code.
17989 (compute_local_properties): Pass additional arguments to compute_transp.
17990 * postreload-gcse.c: Include gcse-common.h and df.h
17991 (modify_mem_list_set, blocks_with_calls): New variables.
17992 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
17993 (get_bb_avail_insn): Pass in the expression index too.
17994 (alloc_mem): Allocate memory for the new bitmaps and lists.
17995 (free_mem): Free memory for the new bitmaps and lists.
17996 (insert_expr_in_table): Record a bitmap index for each entry we
17998 (record_last_mem_set_info): Call into common code in gcse-common.c.
17999 (get_bb_avail_insn): If no available insn was found in the requested
18000 BB. If BB has a single predecessor, see if the expression is
18001 transparent in BB and available in that single predecessor.
18002 (compute_expr_transp): New wrapper for compute_transp.
18003 (eliminate_partially_redundant_load): Pass expression's bitmap_index
18004 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
18005 (gcse_after_reload_main): If there are elements in the hash table,
18006 then compute transparency for all the elements in the hash table.
18007 * gcse-common.h: New file.
18008 * gcse-common.c: New file.
18010 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
18012 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
18014 (System Headers): Likewise.
18016 (Traditional macros): Likewise.
18017 (Invocation): Likewise.
18018 (Option Index): Likewise.
18019 * doc/cppopts.texi (-M): Likewise.
18020 (-finput-charset): Likewise.
18021 (--help): Likewise.
18022 * doc.invoke.texi (AVR Options): Likewise.
18023 (V850 Options): Likewise.
18025 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
18028 * ipa-devirt.c: Include demangle.h
18029 (odr_type_d): Add field rtti_broken.
18030 (odr_subtypes_equivalent_p): Do not require name to match.
18031 (compare_virtual_tables): Fix typo; if type already has ODR violation,
18032 bypass the tests; be ready for function referneces in vtables that are
18033 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
18034 (warn_odr): Give up for nameless types.
18035 (warn_types_mismatch): Report mismatch in mangled names;
18036 report mismatch in anonymous namespaces; look into component types to
18037 give useful error; report when mismatch is dragged in from other ODR
18039 (odr_types_equivalent_p): Match types for being polymorphic; avoid
18040 duplicated diagnostics.
18041 (add_type_duplicate): Reorder checks so more informative ones come
18042 first; fix typo; do not output "the extra base is defined here" when
18044 (BINFO_N_BASE_BINFOS): Relax sanity check.
18046 2015-03-22 Martin Liska <mliska@suse.cz>
18047 Jakub Jelinek <jakub@redhat.com>
18049 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
18050 masks that can potentially include a builtin.
18051 (ix86_add_new_builtins): Introduce fast filter for isa values
18052 that cannot trigger builtin inclusion.
18054 2015-03-22 Martin Liska <mliska@suse.cz>
18056 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
18057 (sem_item::update_hash_by_local_refs): Likewise.
18058 (sem_variable::get_hash): Empty line is fixed.
18059 (sem_item_optimizer::execute): Include adding of hash references.
18060 (sem_item_optimizer::update_hash_by_addr_refs): New function.
18061 (sem_item_optimizer::build_hash_based_classes): Use local hash.
18062 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
18063 (sem_item::update_hash_by_local_refs): Likewise.
18065 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18068 * ipa-comdats.c (enqueue_references): Walk through thunks.
18069 (ipa_comdats): Likewise.
18070 (set_comdat_group_1): New function.
18072 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18075 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
18078 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
18079 Gerald Pfeifer <gerald@pfeifer.com>
18081 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
18083 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
18084 Sandra Loosemore <sandra@codesourcery.com>
18086 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
18087 function parameter declaration.
18088 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
18089 Update arguments to nios2_adjust_call_address().
18090 (sibcall_internal): Rename from *sibcall.
18091 (sibcall_value_internal): Rename from *sibcall_value.
18092 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
18093 (nios2_large_got_address): Add target temp reg parameter.
18094 (nios2_got_address): Adjust call to nios2_large_got_address, add
18095 force_reg around it.
18096 (nios2_load_pic_address): Add target temp reg parameter, replace call
18097 to nios2_got_address with corresponding code.
18098 (nios2_legitimize_constant_address): Update call to
18099 nios2_load_pic_address.
18100 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
18101 to use temp reg for PIC loading purposes.
18102 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
18103 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
18104 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
18106 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18108 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
18109 usage of "the @option{...}".
18110 (-Wopenmp-simd): Likewise.
18111 (-fsanitize-recover): Likewise.
18112 (-fsanitize-undefined-trap-on-error): Likewise.
18114 (tracer-dynamic-coverage-feedback): Likewise.
18115 (reorder-block-duplicate-feedback): Likewise.
18116 (loop-unroll-jam-size): Likewise.
18119 (-mabs=legacy): Likewise.
18120 (-mupper-regs-df): Likewise.
18121 (-mupper-regs-sf): Likewise.
18122 (-mpointers-to-nested-functions): Likewise.
18124 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18126 * doc/extend.texi (Cilk Plus Builtins): Add markup.
18128 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18130 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
18131 additional index entries and cross-references.
18132 (-fchkp-check-incomplete-type): Likewise.
18133 (-fchkp-first-field-has-own-bounds): Likewise.
18134 (-fchkp-narrow-to-innermost-array): Likewise.
18135 (-fchkp-use-fast-string-functions): Likewise.
18136 (-fchkp-use-nochk-string-functions): Likewise.
18137 (-fchkp-use-static-const-bounds): Likewise.
18138 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
18139 (-fchkp-instrument-marked-only): Likewise.
18140 (-fchkp-use-wrappers): Likewise.
18141 (-static-libmpx): Likewise.
18142 (-static-libmpxwrappers): Likewise.
18143 * doc/extend.texi (bnd_legacy): Likewise.
18144 (bnd_instrument): Likewise.
18145 (bnd_variable_size): Likewise.
18146 (Pointer Bounds Checker builtins): Likewise.
18148 2015-03-21 Tom de Vries <tom@codesourcery.com>
18150 PR tree-optimization/65458
18151 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
18152 * cgraph.h (cgraph_node): Add parallelized_function field.
18153 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
18154 (input_overwrite_node): Read parallelized_function field.
18155 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
18156 parallelized_function on cgraph_node for child_fn.
18157 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
18158 Remove include of gt-tree-parloops.h.
18159 (parallelized_functions): Remove static variable.
18160 (parallelized_function_p): Rewrite using parallelized_function field of
18162 (create_loop_fn): Remove adding to parallelized_functions.
18163 * Makefile.in (GTFILES): Remove tree-parloops.c
18165 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
18167 PR rtl-optimization/64366
18168 * lra.c (lra_update_insn_regno_info): Consider regs in
18169 CALL_INSN_FUNCTION_USAGE memory.
18171 2015-03-20 Richard Biener <rguenther@suse.de>
18173 PR middle-end/64715
18174 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
18175 for type comparison and gcc_checking_assert.
18176 (chrec_fold_plus_poly_poly): Likewise.
18177 (chrec_fold_multiply_poly_poly): Likewise.
18178 (chrec_convert_1): Likewise.
18179 * gimplify.c (gimplify_expr): Remove premature folding of
18180 &X + CST to &MEM[&X, CST].
18182 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18184 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
18186 (ipa_inline): Recompute inline_failed codes.
18187 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
18188 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
18191 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
18193 PR rtl-optimization/60851
18194 * recog.c (constrain_operands): Accept a pseudo register before reload
18195 for LRA enabled targets.
18197 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
18200 * config/rs6000/predicates.md (easy_fp_constant): Remove special
18201 -ffast-math handling that kept non-0 constants live in the RTL
18202 until reload. Remove logic testing the number of instructions it
18203 took to create a constant in a GPR that was never used, due to a
18204 test for soft-float earlier.
18205 (memory_fp_constant): Delete, no longer used.
18207 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
18208 alternatives for loading non-0 constants into GPRs for hard
18209 floating point that is no longer needed due to changes in
18210 easy_fp_constant. Add support for loading 0.0 into GPRs.
18211 (mov<mode>_hardfloat32): Likewise.
18212 (mov<mode>_hardfloat64): Likewise.
18213 (mov<mode>_64bit_dm): Likewise.
18214 (movtd_64bit_nodm): Likewise.
18215 (pre-reload move FP constant define_split): Delete define_split,
18216 since it is no longer used.
18217 (extenddftf2_internal): Remove GHF constraints that are not valid
18220 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
18222 PR rtl-optimization/63491
18223 * lra-constraints.c (check_and_process_move): Use src instead of
18224 sreg. Remove some dead code.
18226 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
18229 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
18230 (sem_variable::merge): Likewise.
18232 2015-03-19 Martin Liska <mliska@suse.cz>
18235 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
18236 all fields of cgraph_thunk_info.
18238 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
18240 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
18241 clone instrumented thunks.
18243 2015-03-19 Richard Biener <rguenther@suse.de>
18246 2015-03-10 Richard Biener <rguenther@suse.de>
18248 PR middle-end/63155
18249 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
18250 * tree-ssa-coalesce.c: Include timevar.h.
18251 (attempt_coalesce): Handle graph being NULL.
18252 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
18253 Split out abnormal coalescing to ...
18254 (perform_abnormal_coalescing): ... this function.
18255 (coalesce_ssa_name): Perform abnormal coalescing without computing
18257 (verify_ssa_coalescing_worker): New function.
18258 (verify_ssa_coalescing): Likewise.
18260 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18261 Jakub Jelinek <jakub@redhat.com>
18264 * tsan.c (instrument_gimple): Clear tail call flag on
18267 2015-03-19 Jakub Jelinek <jakub@redhat.com>
18270 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
18271 call in the return bb.
18272 (find_split_points): Add RETURN_BB argument, don't call
18274 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
18275 if true append TSAN_FUNC_EXIT internal call after the call to
18276 the split off function.
18277 (execute_split_functions): Call find_return_bb here.
18278 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
18279 Adjust find_split_points and split_function calls.
18281 2015-03-18 DJ Delorie <dj@redhat.com>
18283 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
18284 (iorqi3_virt): Likewise.
18286 2015-03-18 Tom de Vries <tom@codesourcery.com>
18288 * tree-parloops.c (parallelize_loops): Make static.
18289 * tree-parloops.h (parallelize_loops): Remove extern declaration.
18291 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
18293 PR middle-end/64491
18295 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
18297 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
18298 condition would be removed due to undefined behaviour.
18300 2015-03-18 Martin Liska <mliska@suse.cz>
18303 * cgraph.c (cgraph_node::get_create): Remove unnecessary
18304 xstrdup_for_dump wrapper.
18305 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
18307 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
18308 with xstrdup_for_dump.
18309 (sem_variable::equals): Likewise.
18310 (sem_item_optimizer::read_section): Use symtab_node::name instead of
18312 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
18313 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
18314 symtab_node::asm_name with xstrdup_for_dump.
18315 (congruence_class::dump): Use symtab_node::name instead of
18317 * ipa-icf.h (symtab_node::name): Remove.
18318 (symtab_node::asm_name): Likewise.
18320 2015-03-18 Jakub Jelinek <jakub@redhat.com>
18322 PR tree-optimization/65450
18323 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
18325 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
18326 it instead of duplicate_ssa_name_ptr_info.
18329 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
18331 2015-03-18 Richard Biener <rguenther@suse.de>
18333 * tree-data-ref.h (struct access_matrix): Remove.
18334 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
18335 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
18336 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
18337 (am_vector_index_for_loop): Likewise.
18338 (struct data_reference): Remove access_matrix member.
18339 (DR_ACCESS_MATRIX): Remove.
18340 (lambda_vector_new): Add comment.
18341 (lambda_matrix_new): Use XOBNEWVEC.
18343 2015-03-18 Richard Biener <rguenther@suse.de>
18345 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
18346 (pass_ch::execute): Cleanup the CFG only if we did sth.
18347 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
18349 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18351 * expmed.c (synth_mult): Use std::swap instead of manually
18352 swapping algorithms.
18354 2015-03-18 Jakub Jelinek <jakub@redhat.com>
18357 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
18359 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
18362 * config/avr/avr.opt (-nodevicelib): New option.
18363 * doc/invoke.texi (AVR Options): Document it.
18364 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
18365 libgcc.a, libc.a, libm.a.
18366 * config/avr/specs.h: Same.
18367 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
18368 which don't (directly) depend on the device. Print more help.
18369 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
18370 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
18371 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
18373 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
18374 for specs file name.
18375 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
18376 * config/avr/avr-mcus.def: Adjust initializers and comments.
18378 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
18380 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
18381 DECL_ONE_ONLY to check if decl is one only.
18382 * ipa-split.c (consider_split): Limit splitt of one only functions.
18384 2015-03-16 Jakub Jelinek <jakub@redhat.com>
18386 PR tree-optimization/65427
18387 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
18389 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
18391 2015-03-16 Marek Polacek <polacek@redhat.com>
18393 * cgraph.h (add_new_static_var): Remove declaration.
18394 * varpool.c (add_new_static_var): Remove function.
18396 2015-03-16 Jakub Jelinek <jakub@redhat.com>
18398 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
18399 instead of vec<tree> * with vec_alloc and release for args.
18402 PR middle-end/65431
18403 * omp-low.c (delete_omp_context): Only splay_tree_delete
18404 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
18405 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
18407 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
18410 * cfgexpand.c (align_base): New function.
18411 (alloc_stack_frame_space): Call it.
18412 (expand_stack_vars): Align prev_frame to be sure
18413 data->asan_vec elements aligned properly.
18415 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
18417 PR middle-end/65409
18418 * expr.c (store_field): Do not do a direct block copy if the source is
18419 a PARALLEL with BLKmode.
18421 2015-03-16 Tom de Vries <tom@codesourcery.com>
18423 PR middle-end/65414
18425 2015-03-12 Tom de Vries <tom@codesourcery.com>
18427 PR rtl-optimization/64895
18428 * lra-lives.c (check_pseudos_live_through_calls): Use
18429 actual_call_used_reg_set instead of call_used_reg_set, if available.
18431 2015-03-16 Alan Modra <amodra@gmail.com>
18434 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
18435 Modify Z->r bswapdi splitter to use dest in place of scratch.
18436 In r->Z and Z->r bswapdi splitter rename word_high, word_low
18437 to word1, word2 and rearrange logic to suit.
18438 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
18439 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
18440 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
18441 Add one '?' on r->r. Modify Z->r splitter to avoid need for
18444 2015-03-14 Jakub Jelinek <jakub@redhat.com>
18446 PR tree-optimization/65369
18447 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
18448 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
18449 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
18451 PR tree-optimization/65418
18452 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
18453 are casts in the first PLUS_EXPR operand, ensure tbias and
18454 *totallowp are in the inner type.
18456 PR rtl-optimization/65401
18457 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
18458 argument. If true, adjust_address_nv of x with big-endian
18459 correction for the mode widening to GET_MODE (y).
18460 (make_field_assignment): Don't do MEM mode widening here.
18461 Use MEM_P instead of GET_CODE == MEM.
18463 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
18465 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
18466 the external decls.
18468 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18471 * config/arm/arm.c (arm_gen_constant, AND case): Use
18472 ARM_SIGN_EXTEND when constructing AND mask.
18474 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18476 * graph.c (print_graph_cfg): Make function names visible and append
18477 parenthesis to it. Also make groups of basic blocks belonging to the
18478 same function visible.
18480 2015-03-12 Richard Biener <rguenther@suse.de>
18482 PR middle-end/44563
18483 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
18484 to avoid quadratic behavior with inline expansion splitting blocks.
18485 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
18486 with the successor if the predecessor will be merged with it.
18487 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
18488 entry block with its successor.
18490 2015-03-13 Richard Biener <rguenther@suse.de>
18492 PR middle-end/44563
18493 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
18494 (cleanup_tree_cfg_1): Do not call it.
18495 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
18496 (fixup_noreturn_call): Mark the stmt as control altering.
18497 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
18499 (pass_data_fixup_cfg): Produce a dump file.
18500 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
18501 (need_noreturn_fixup): New global.
18502 (pass_dominator::execute): Fixup queued noreturn calls.
18503 (optimize_stmt): Queue calls that became noreturn for fixup.
18504 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
18505 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
18506 (el_to_fixup): New global.
18507 (eliminate_dom_walker::before_dom_childre): Queue calls that
18508 became noreturn for fixup.
18509 (eliminate): Fixup queued noreturn calls.
18510 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
18511 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
18512 (substitute_and_fold_dom_walker::before_dom_children): Queue
18513 alls that became noreturn for fixup.
18514 (substitute_and_fold): Fixup queued noreturn calls.
18516 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
18518 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
18519 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
18520 are building; for methods check ODR type of class they belong to if
18521 they may lead to a polymorphic call.
18522 (sem_function::compare_polymorphic_p): Be bit smarter about testing
18523 when function may lead to a polymorphic call.
18524 (sem_function::compare_type_list): Remove.
18525 (sem_variable::equals): Update use of compatible_types_p.
18526 (sem_variable::parse_tree_refs): Remove.
18527 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
18529 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
18531 (func_checker::compatible_polymorphic_types_p): Break out from ...
18532 (unc_checker::compatible_types_p): ... here.
18533 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
18535 (unc_checker::compatible_types_p): Update.
18536 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
18539 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18541 PR rtl-optimization/65235
18542 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
18543 When first element of vec_concat is const_int, calculate its size
18544 using second element.
18546 2015-03-12 Richard Biener <rguenther@suse.de>
18548 PR middle-end/65270
18549 * fold-const.c (operand_equal_p): Fix ordering of resetting
18550 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
18552 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
18554 * config/s390/s390.c (s390_reorg): Move code to output nops after label
18556 (s390_asm_output_function_label): Likewise.
18557 * config/s390/s390.c (s390_asm_output_function_label):
18558 Fix function label alignment with -mhtopatch.
18559 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
18560 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
18561 ("nop_2_byte"): New define_insn.
18562 ("nop_4_byte"): Likewise.
18563 ("nop_6_byte"): Likewise.
18564 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
18565 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
18567 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
18570 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
18573 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
18576 * toplev.c (process_options): Restrict Pointer Bounds Checker
18577 usage with Address Sanitizer.
18579 2015-03-12 Richard Biener <rguenther@suse.de>
18581 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
18583 * omp-low.c (expand_omp_taskreg): Split block before removing
18585 (expand_omp_target): Likewise.
18586 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
18587 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
18588 stmt to split_block.
18590 2015-03-12 Tom de Vries <tom@codesourcery.com>
18592 PR rtl-optimization/64895
18593 * lra-lives.c (check_pseudos_live_through_calls): Use
18594 actual_call_used_reg_set instead of call_used_reg_set, if available.
18596 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
18598 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
18599 (cgraph_node::remove): Likewise.
18600 (cgraph_node::get_untransformed_body): Likewise.
18601 * varpool.c (varpool_node::remove): Likewise.
18602 (varpool_node::get_constructor): Add sanity check.
18604 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
18606 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
18608 (-fabi-compat-version): Likewise.
18609 (-ffriend-injection): Likewise.
18610 (-Wdeclaration-after-statement): Likewise.
18611 (-fomit-frame-pointer): Likewise.
18612 (-ftree-coalesce-inlined-vars): Likewise.
18613 (-fvisibility=): Likewise.
18614 * doc/extend.texi (Typeof): Likewise.
18615 (Zero Length): Likewise.
18616 (Escaped Newlines): Likewise.
18617 (Compound Literals): Likewise.
18618 (Function Attributes): Likewise.
18619 (Label Attributes): Likewise.
18620 (Type Attributes): Likewise.
18621 (Function Names): Likewise.
18622 (Other Builtins): Likewise.
18623 (Function Specific Option Pragmas): Likewise.
18624 (C++ Interface): Likewise.
18626 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
18628 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
18630 2015-03-11 Marek Polacek <polacek@redhat.com>
18632 PR tree-optimization/65388
18633 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
18635 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
18638 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
18639 * configure: Regenerate.
18640 * config.in: Regenerate.
18641 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
18642 [-mn-flash]: Document it.
18643 [__AVR_ARCH__]: Document avrtiny.
18645 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
18646 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
18647 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
18649 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18651 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
18653 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18656 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
18657 allow reloads of PLUS in floating point/VSX registers.
18659 2015-03-11 Junmo Park <junmoz.park@samsung.com>
18661 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
18662 crypto_sha256_fast.
18663 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
18665 2015-03-11 Richard Biener <rguenther@suse.de>
18667 PR tree-optimization/65310
18668 * tree-sra.c (build_ref_for_offset): Also preserve larger
18671 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
18673 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
18675 2015-03-10 Jakub Jelinek <jakub@redhat.com>
18678 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
18680 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
18682 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
18684 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
18685 (sem_function::equals_wpa): ... here.
18687 2015-03-10 Marek Polacek <polacek@redhat.com>
18688 Jakub Jelinek <jakub@redhat.com>
18691 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
18692 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
18695 2015-03-10 Jakub Jelinek <jakub@redhat.com>
18698 * config/rs6000/t-linux: For powerpc64* target set
18699 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
18701 2015-03-10 Richard Biener <rguenther@suse.de>
18703 PR middle-end/44563
18704 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
18705 for redirect_all_calls.
18707 2015-03-10 Marek Polacek <polacek@redhat.com>
18709 * gdbinit.in (pcfun): Define and document.
18711 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
18713 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
18714 of libgomp-plugin.h.
18715 (find_target_compiler): Support a case when the path to gcc is
18716 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
18717 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
18718 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
18720 (main): Use GCC_INSTALL_NAME as target_driver_name.
18721 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
18723 (mkoffload.o): Remove obsolete include path and defines.
18724 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
18726 2015-03-10 Richard Biener <rguenther@suse.de>
18728 PR middle-end/63155
18729 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
18730 * tree-ssa-coalesce.c: Include timevar.h.
18731 (attempt_coalesce): Handle graph being NULL.
18732 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
18733 Split out abnormal coalescing to ...
18734 (perform_abnormal_coalescing): ... this function.
18735 (coalesce_ssa_name): Perform abnormal coalescing without computing
18737 (verify_ssa_coalescing_worker): New function.
18738 (verify_ssa_coalescing): Likewise.
18740 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
18743 * config.gcc (extra_options) [avr]: Remove.
18744 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
18745 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
18746 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
18748 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
18749 (-mmcu=): Add Var and MissingArgError properties.
18751 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
18752 * config/avr/t-multilib: Regenerate.
18753 * config/avr/specs.h: New file.
18754 * config/avr/driver-avr.c: New file.
18755 * config/avr/genopt.sh: Remove file.
18756 * config/avr/avr-tables.opt: Remove file.
18757 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
18758 * config/avr/avr-c.c: Same.
18759 * avr-arch.h: Same.
18760 (avr_current_device): Remove proto.
18761 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
18762 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
18763 (EXTRA_SPEC_FUNCTIONS): Define.
18764 (avr_devicespecs_file): New specs function proto.
18765 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
18766 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
18767 (avr_current_device): Remove definition and usage.
18768 (avr_set_core_architecture): New static function.
18769 (avr_option_override): Use it.
18770 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
18771 (mcu_name): New static array.
18772 (comparator, avr_archs_str, avr_mcus_str): New static functions.
18773 (avr_inform_devices, avr_inform_core_architectures): New functions.
18774 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
18775 (avrlibc.h) [WITH_AVRLIBC]: Include.
18776 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
18777 (print_mcu): Rewrite from scratch.
18778 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
18779 Forward to avr-specific specs defined in device-specs file.
18780 * config/avr/t-avr (driver-avr.o): New rule.
18781 (avr-devices.o): Depend on avr-arch.h.
18782 (avr-mcus): No more depend on avr-tables.opt.
18783 (avr-tables.opt): Remove rule.
18784 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
18786 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18788 * c-family/c.opt (fchkp-use-wrappers): New.
18789 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
18790 (chkp_wrap_function): New.
18791 (chkp_build_instrumented_fndecl): Support wrapped
18793 * doc/invoke.texi (-fcheck-pointer-bounds): New.
18794 (-fchkp-check-incomplete-type): New.
18795 (-fchkp-first-field-has-own-bounds): New.
18796 (-fchkp-narrow-bounds): New.
18797 (-fchkp-narrow-to-innermost-array): New.
18798 (-fchkp-optimize): New.
18799 (-fchkp-use-fast-string-functions): New.
18800 (-fchkp-use-nochk-string-functions): New.
18801 (-fchkp-use-static-bounds): New.
18802 (-fchkp-use-static-const-bounds): New.
18803 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
18804 (-fchkp-check-read): New.
18805 (-fchkp-check-write): New.
18806 (-fchkp-store-bounds): New.
18807 (-fchkp-instrument-calls): New.
18808 (-fchkp-instrument-marked-only): New.
18809 (-fchkp-use-wrappers): New.
18810 (-static-libmpx): New.
18811 (-static-libmpxwrappers): New.
18813 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18815 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
18816 (CHKP_SPEC): Add wrappers library.
18817 * c-family/c.opt (static-libmpxwrappers): New.
18819 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18821 * config/i386/linux-common.h (LIBMPX_LIBS): New.
18822 (LIBMPX_SPEC): New.
18824 * gcc.c (CHKP_SPEC): New.
18825 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
18826 * c-family/c.opt (static-libmpx): New.
18828 2015-03-10 Richard Biener <rguenther@suse.de>
18830 PR middle-end/44563
18831 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
18833 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
18834 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
18835 (cgraph_add_edge_to_call_site_hash): Likewise.
18836 (cgraph_node::get_edge): Likewise.
18837 (cgraph_edge::set_call_stmt): Likewise.
18838 (cgraph_edge::remove_caller): Likewise.
18840 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
18842 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
18843 (callee_saved_gpr_regs_size): ... this.
18844 (callee_saved_regs_first_regno): Rename to ...
18845 (callee_saved_first_gpr_regno): ... this.
18846 (callee_saved_regs_last_regno) Rename to ...
18847 (callee_saved_last_gpr_regno): ... this.
18848 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
18850 (nds32_initial_elimination_offset): Likewise.
18851 (nds32_expand_prologue): Likewise.
18852 (nds32_expand_epilogue): Likewise.
18853 (nds32_expand_prologue_v3push): Likewise.
18854 (nds32_expand_epilogue_v3pop): Likewise.
18855 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
18856 Adjust renamed variables.
18857 (nds32_output_stack_pop): Likewise.
18859 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
18861 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
18864 2015-03-10 Jakub Jelinek <jakub@redhat.com>
18866 PR rtl-optimization/65321
18867 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
18869 * var-tracking.c (use_narrower_mode): Likewise.
18871 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
18873 PR tree-optimization/65355
18874 * varasm.c (notice_global_symbol): Do not produce RTL.
18875 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
18877 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
18878 check for section anchors.
18880 2015-03-10 Alan Modra <amodra@gmail.com>
18883 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
18884 to be single-arch by default. Set cpu_is_64bit for powerpc64
18885 given --with-cpu=native.
18886 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
18887 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
18889 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
18890 rs6000_isa_flags rather than TARGET_64BIT.
18892 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
18893 Kaz Kojima <kkojima@gcc.gnu.org>
18895 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
18897 2015-03-09 Jakub Jelinek <jakub@redhat.com>
18900 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
18901 on a TREE_BINFO, instead use BINFO_TYPE.
18903 2015-03-09 Richard Biener <rguenther@suse.de>
18905 PR middle-end/65270
18906 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
18907 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
18908 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
18909 of that. When comparing dereferences compare alignment.
18910 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
18912 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
18914 * ipa-inline-analysis.c (check_callers): Check
18915 node->can_remove_if_no_direct_calls_and_refs_p.
18916 (growth_likely_positive): Reorganize to call
18917 can_remove_if_no_direct_calls_p later.
18918 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
18919 will_be_removed_from_program_if_no_direct_calls_p): Add
18920 will_inline parameter.
18921 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
18922 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
18923 Handle inliner case correctly.
18925 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
18927 PR tree-optimization/63743
18928 * cfgexpand.c (reorder_operands): Also reorder if only second operand
18929 had its definition forwarded by TER.
18931 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
18934 * ipa-utils.h (types_odr_comparable): Add strict argument.
18935 * ipa-devirt.c: Fix whitespace;
18936 (odr_hasher): Remove.
18937 (odr_name_hasher, odr_vtable_hasher): New hashers.
18938 (can_be_name_hashed_p): New predicate.
18939 (hash_type_name): remove.
18940 (hash_odr_name): New.
18941 (odr_name_hasher::hash): new.
18942 (can_be_vtable_hashed_p): New.
18943 (hash_odr_vtable): New.
18944 (odr_vtable_hasher::hash): New.
18945 (types_same_for_odr): Add strict parameter.
18946 (types_odr_comparable): Likewise.
18947 (odr_name_hasher::equal): New.
18948 (odr_vtable_hasher::equal): New.
18949 (odr_name_hasher::remove): New.
18950 (odr_hash_type): Change to hash_table<odr_name_hasher>.
18951 (odr_vtable_hash_type): New.
18952 (odr_vtable_hash): New.
18953 (odr_subtypes_equivalent_p): Do strict comparsion.
18954 (add_type_duplicate): Merge type names; cleanup; avoid type
18956 (register_odr_type): Initialize vtable hash.
18957 (build_type_inheritance_graph): Likewise
18958 (get_odr_type): Reorg to use two hashes.
18959 (dump_possible_polymorphic_call_targets): Move sanity check after debug
18961 (ipa_devirt): Dump type_inheritance_graph.
18962 (types_same_for_odr): Add strict mode.
18964 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
18967 * cgraph.h (symtab_node): Add definition_alignment,
18968 can_increase_alignment_p and increase_alignment.
18969 * symtab.c (symtab_node::can_increase_alignment_p,
18970 increase_alignment_1, symtab_node::increase_alignment,
18971 symtab_node::definition_alignment): New.
18972 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
18973 can_increase_alignment_p.
18974 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
18975 * tree-vect-stmts.c (ensure_base_align): Likewise.
18976 * varasm.c (function_section_1): Use definition_alignment.
18977 (assemble_start_function): Likewise.
18978 (emit_local): likewise.
18979 (build_constant_desc): Likewsie.
18980 (output_constant_def_contents): Likewise.
18981 (place_block_symbol): Likewise.
18982 (output_object_block): Likewise.
18984 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
18987 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
18988 when outputting debug.
18990 2015-03-07 Marek Polacek <polacek@redhat.com>
18991 Martin Uecker <uecker@eecs.berkeley.edu>
18994 * doc/invoke.texi: Update description of -fsanitize=bounds.
18996 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
18998 * tree-ssa-phiopt.c (neg_replacement): Remove.
18999 (tree_ssa_phiopt_worker): Remove negate optimization.
19001 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19004 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
19006 2015-03-06 Richard Biener <rguenther@suse.de>
19008 PR middle-end/64928
19009 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
19010 and liveout_obstack members.
19011 (calculate_live_on_exit): Remove.
19012 (calculate_live_ranges): Change declaration.
19013 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
19014 (new_tree_live_info): Adjust.
19015 (calculate_live_ranges): Delete livein when not wanted.
19016 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
19017 Deal with partly deleted live info.
19018 (loe_visit_block): Remove temporary bitmap by using
19019 bitmap_ior_and_compl_into.
19020 (live_worklist): Adjust accordingly.
19021 (calculate_live_on_exit): Make static.
19022 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
19023 we do not need livein.
19025 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
19027 * real.c (real_from_string): Fix typo in assertion.
19029 2015-03-06 Alex Velenko <alex.velenko@arm.com>
19031 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
19034 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19036 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
19038 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
19041 * lra-assigns.c (find_hard_regno_for): Rename to
19042 find_hard_regno_for_1. Add a new parameter.
19043 (find_hard_regno_for): New function using find_hard_regno_for_1.
19045 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
19047 PR rtl-optimization/65067
19048 * expmed.c (store_bit_field, extract_bit_field): Reworked the
19049 strict volatile bitfield handling.
19051 2015-03-05 Martin Liska <mliska@suse.cz>
19054 * ipa-icf.c (sem_variable::equals): Compare variables types.
19056 2015-03-05 Richard Henderson <rth@redhat.com>
19059 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
19060 correctly check weak symbol binding.
19062 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
19064 PR middle-end/65315
19065 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
19068 2015-03-05 Martin Liska <mliska@suse.cz>
19070 * ipa-inline.c (inline_small_functions): Set default value to
19071 prevent warning during bootstrap.
19072 * tree.h: Add pragma guard that ignores false positives during
19075 2015-03-05 Richard Biener <rguenther@suse.de>
19077 PR tree-optimization/65310
19078 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19079 Properly preserve alignment of the base of the access.
19081 2015-03-05 Richard Biener <rguenther@suse.de>
19084 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
19085 Compare dependence info.
19087 2015-03-05 Richard Biener <rguenther@suse.de>
19089 PR middle-end/65233
19090 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
19092 (walk_ssa_copies): Revert last chage. Instead do not walk
19093 SSA names registered for SSA update.
19095 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19098 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
19099 vtable references for their containing type.
19100 (sem_function::equals_wpa): Compare TYPE_RESTRICT
19101 and type attributes.
19103 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
19105 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
19106 before negating it.
19107 * stor-layout.c (finalize_record_size): Revert latest change.
19109 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
19111 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
19113 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19115 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
19116 for correct comdat handling.
19117 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
19119 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
19120 (used_from_object_file_p_worker): Remove.
19121 (cgraph_node::only_called_directly_or_alised): Add
19122 used_from_object_file_p.
19123 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
19124 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
19125 can_remove_if_no_direct_calls_and_refs_p.
19127 2015-03-04 Nick Clifton <nickc@redhat.com>
19129 * config/rl78/rl78.h (enum reg_class): Remove real registers from
19130 General register class.
19131 * config/rl78/rl78-real.md: Replace general register constraints
19132 with real+virtual register constraints.
19134 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19136 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
19137 from checking for -mhtm option.
19139 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19141 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
19142 (struct ipa_sra_check_caller_data): Add has_thunk field.
19143 (ipa_sra_check_caller): Check for thunk.
19144 (ipa_sra_preliminary_function_checks): Give up on function with
19146 (ipa_early_sra): Use call_for_symbol_and_aliases.
19148 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
19151 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
19152 called for __stack_chk_guard symbol.
19154 2015-03-03 DJ Delorie <dj@redhat.com>
19156 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
19158 (*addhi3_real): Likewise.
19159 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
19160 pattern to match incrementing memory.
19161 * config/rl78/predicates.md (rl78_1_2_operand): New.
19162 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
19163 it's the same and only mem.
19164 (rl78_alloc_physical_registers_op2): If there's effectively only
19165 one MEM, transcode it into HL.
19166 (rl78_far_p): Reject addresses that aren't legitimate.
19168 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
19170 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
19173 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
19175 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
19177 Implement call0 ABI for xtensa
19178 * config/xtensa/constraints.md ("a" constraint): Include stack
19179 pointer in case of call0 ABI.
19180 ("q" constraint): Make empty in case of call0 ABI.
19181 ("D" constraint): Include stack pointer in case of call0 ABI.
19182 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
19183 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
19185 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
19187 (xtensa_regno_to_class): Make it a local variable in the
19188 function xtensa_regno_to_class.
19189 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
19190 macro, function prototype and implementation.
19191 (reg_nonleaf_alloc_order): Make it a local variable in the
19192 function order_regs_for_local_alloc.
19193 (xtensa_conditional_register_usage): New function.
19194 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
19195 (xtensa_valid_move): Allow direct moves to stack pointer
19196 register in call0 ABI.
19197 (xtensa_setup_frame_addresses): Only spill register windows in
19199 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
19200 call0 ABI respectively.
19201 (xtensa_function_arg_1): Only mark a7 register for copying in
19203 (xtensa_call_save_reg): New function.
19204 (compute_frame_size): Add space for callee saved register
19205 storage to the frame size in call0 ABI.
19206 (xtensa_expand_prologue): Generate code to set up stack frame
19207 and save callee-saved registers in call0 ABI.
19208 (xtensa_expand_epilogue): New function.
19209 (xtensa_set_return_address): New function.
19210 (xtensa_return_addr): Calculate return address in call0 ABI.
19211 (xtensa_builtin_saveregs): Only mark a7 register for copying and
19212 emit copying code in windowed ABI.
19213 (order_regs_for_local_alloc): Add preferred register allocation
19214 order for non-leaf function in call0 ABI.
19215 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
19216 (xtensa_asm_trampoline_template): Add trampoline generation for
19218 (xtensa_trampoline_init): Add trampoline initialization for
19220 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
19222 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
19223 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
19224 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
19225 ABI call-used registers.
19226 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
19227 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
19229 (REG_CLASS_CONTENTS): Include all registers into the preferred
19230 reload registers set, adjust the set in the
19231 xtensa_conditional_register_usage.
19232 (xtensa_regno_to_class): Drop variable declaration.
19233 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
19235 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
19237 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
19238 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
19239 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
19240 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
19241 location in call0 ABI.
19242 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
19243 stack adjustment size when handling exception.
19244 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
19245 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
19247 ("return" pattern): Generate ret.n/ret in call0 ABI.
19248 ("epilogue" pattern): Expand epilogue.
19249 ("nonlocal_goto" pattern): Use default in call0 ABI.
19250 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
19251 emit eh_set_a0_* depending on ABI.
19252 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
19253 ("eh_set_a0_call0", "blockage"): New patterns.
19255 2015-03-03 Martin Liska <mliska@suse.cz>
19258 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
19260 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19263 * config/rs6000/rs6000-tables.opt: Regenerate table.
19265 2015-03-03 Renlin Li <renlin.li@arm.com>
19267 * doc/md.texi (@item ^): Change ? into ^.
19269 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
19271 * doc/tm.texi: Regenerated.
19273 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
19275 * builtins.c (expand_builtin_return_addr): Add
19276 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
19277 surrounding #ifdef.
19278 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
19280 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
19282 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
19284 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
19287 2015-03-03 Martin Jambor <mjambor@suse.cz>
19288 Eric Botcazou <ebotcazou@adacore.com>
19290 * tree-sra.c (ipa_sra_check_caller_data): New type.
19291 (has_caller_p): Removed.
19292 (ipa_sra_check_caller): New function.
19293 (ipa_sra_preliminary_function_checks): Use it.
19295 2015-03-03 Martin Liska <mliska@suse.cz>
19297 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
19298 instead of if branch.
19300 2015-03-03 Martin Liska <mliska@suse.cz>
19303 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
19305 2015-03-23 Jeff Law <law@redhat.com>
19307 PR tree-optimization/65241
19308 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
19309 hash table if INSERT is true.
19311 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19314 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
19316 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19319 * config/avr/avr.c (context.h, tree-pass.h): Include them.
19320 (avr_pass_data_recompute_notes): New static variable.
19321 (avr_pass_recompute_notes): New class.
19322 (avr_register_passes): New static function.
19323 (avr_option_override): Call it.
19325 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19327 Fix various problems with specs file generation.
19330 * config.gcc (extra_gcc_objs) [avr]: Remove.
19331 * config/avr/driver-avr.c: Remove file.
19332 * config/avr/t-avr (driver-avr.o): Remove rule.
19333 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
19334 INCLUDES to build. Depend on TM_H.
19335 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
19336 build warnings. Fix non-matching types and non-existing %-codes.
19338 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
19339 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
19340 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
19341 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
19342 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
19343 (LIBGCC_SPEC): Remove definitions.
19345 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
19347 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
19348 to create a register in testing mode.
19350 2015-03-03 Martin Liska <mliska@suse.cz>
19351 Jan Hubicka <hubicka@ucw.cz>
19354 * cgraph.c (cgraph_node::has_thunk_p): New function.
19355 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
19356 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
19357 (sem_function::merge): Assert is changed.
19359 2015-03-03 Martin Liska <mliska@suse.cz>
19360 Martin Jambor <mjambor@suse.cz>
19363 * ipa-icf.c (sem_item_optimizer::execute): Change function
19364 return value to boolean.
19365 (sem_item_optimizer::merge_classes): Likewise.
19366 (ipa_icf_driver): Return TODO_remove_functions in case there's
19367 a merge operation processed.
19368 * ipa-icf.h: Change function return value to boolean.
19370 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19373 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
19374 processor type for 64-bit little endian PowerPC.
19376 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
19377 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
19378 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
19379 printing built-in mask so it does not pass NULL pointers.
19381 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
19384 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
19387 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
19388 !ISA_HAS_FP_CONDMOVE.
19390 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
19392 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
19395 2015-03-02 Ulrich Drepper <drepper@gmail.com>
19397 * doc/invoke.texi (Options for Code Generation Conventions):
19398 Fix URL of DSO paper.
19400 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19403 * ipa-inline.c (check_callers): Looks for recursion.
19404 (inline_to_all_callers): Give up on uninlinable or recursive edges.
19405 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
19406 summary of inline clones.
19407 (do_estimate_growth_1): Fix recursion check.
19409 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19412 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
19415 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19416 Aldy Hernandez <aldyh@redhat.com>
19419 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
19420 when checking TYPE_BINFO.
19422 2015-03-02 Richard Biener <rguenther@suse.de>
19425 * ipa-icf-gimple.c: Include builtins.h.
19426 (func_checker::compare_memory_operand): Compare base alignment.
19428 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
19431 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
19432 are never passed by reference.
19434 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
19437 * tree-chkp.c (chkp_check_lower): Don't check against
19438 zero bounds for already instrumented functions.
19439 (chkp_check_upper): Likewise.
19440 (chkp_fini): Clean pass local data to avoid wrong reusage.
19442 2015-02-28 Martin Liska <mliska@suse.cz>
19443 Jan Hubicka <hubicka@ucw.cz>
19445 * ipa-icf.c (sem_variable::equals): Improve debug output;
19446 get variable constructor.
19447 (sem_variable::parse): Do not filter out too early; give up on
19448 volatile and register vars.
19449 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
19451 * ipa-icf.h (sem_variable::init): Do not set ctor.
19452 (sem_variable::ctor): Remove.
19454 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
19456 PR middle-end/65233
19457 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
19459 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19461 * ipa-icf.c: Include stor-layout.h
19462 (sem_function::compare_cgraph_references): Rename to ...
19463 (sem_item::compare_cgraph_references): ... this one.
19464 (sem_variable::equals_wpa): New function
19465 (sem_variable::equals): Do not check stuff already verified by
19467 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
19468 * ipa-icf.h (sem_item): Add compare_cgraph_references.
19469 (sem_function): Remove compare_cgraph_references.
19470 (sem_variable): Turns equals_wpa into non-inline.
19472 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19474 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
19475 (sem_item::add_expr): New function.
19476 (sem_function::hash_stmt): Handle operands of most statements.
19477 (sem_variable::get_hash): Hash the actual constructor.
19478 * ipa-icf.h (sem_item): Add add_expr.
19479 (sem_function): Update prototype of hash_stmt
19481 2015-02-28 Martin Liska <mliska@suse.cz>
19482 Jan Hubicka <hubicka@ucw.cz>
19485 * ipa-icf-gimple.c (func_checker::compare_function_decl):
19487 (func_checker::compare_variable_decl): Skip symtab vars.
19488 (func_checker::compare_cst_or_decl): Update.
19489 * ipa-icf.c (sem_function::parse): Do not consider aliases.
19490 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
19491 use correct symtab predicates.
19492 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
19493 (sem_variable::parse): Update comment.
19494 (sem_item_optimizer::build_graph): Consider ultimate aliases
19497 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19499 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
19502 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19504 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
19505 (sem_variable::merge) Likewise.
19507 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19509 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
19510 target; also match flag_ipa_devirt.
19512 2015-03-01 Martin Liska <mliska@suse.cz>
19513 Jan Hubicka <hubicka@ucw.cz>
19515 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
19516 Validate variable alignment.
19517 * ipa-icf.c (sem_function::equals_private): Be more precise
19518 about non-common function attributes.
19519 (sem_variable::equals): Likewise.
19521 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19524 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
19525 across COMDAT group boundary.
19527 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19530 * ipa-icf.c (clear_decl_rtl): New function.
19531 (sem_function::merge): Clear RTL before forming alias.
19532 (sem_variable::merge): Clear RTL before forming alias.
19534 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19537 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
19539 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
19541 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
19544 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19546 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
19547 a typo in the description.
19549 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19552 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
19553 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
19554 * lra-constraints.c: Include "params.h".
19555 (EBB_PROBABILITY_CUTOFF): Use
19556 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
19557 (lra_inheritance): Use '<' instead of '<=' for
19558 EBB_PROBABILITY_CUTOFF.
19559 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
19562 2015-02-27 Martin Liska <mliska@suse.cz>
19564 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
19565 vector length condition.
19567 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
19569 * doc/extend.texi (x86 transactional memory intrinsics):
19570 Reorganize discussion of _xbegin. Clarify that the return
19571 value is a bit mask. Expand example and move to end of section.
19573 2015-02-26 Jakub Jelinek <jakub@redhat.com>
19574 Aldy Hernandez <aldyh@redhat.com>
19576 PR rtl-optimization/65220
19577 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
19579 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19582 * lra-remat.c (update_scratch_ops): New.
19583 (do_remat): Call it.
19584 * lra.c (lra_register_new_scratch_op): New. Take code from ...
19585 (remove_scratches): ... here.
19586 * lra-int.h (lra_register_new_scratch_op): New prototype.
19588 2015-02-27 Marek Polacek <polacek@redhat.com>
19591 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
19592 -Wformat-signedness anymore.
19594 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19596 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
19598 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
19600 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19602 * config/s390/s390.c (enum s390_builtin):
19603 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
19604 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
19605 (s390_init_builtins): Generate new builtin functions.
19606 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
19607 (s390_sfpc, s390_efpc): New pattern definitions.
19609 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19611 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
19612 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
19613 (s390_builtin_decls): New array.
19614 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
19615 (s390_builtin_decl): New function.
19616 (TARGET_BUILTIN_DECL): Define macro.
19618 2015-02-27 Richard Biener <rguenther@suse.de>
19620 PR middle-end/63175
19621 * builtins.c (get_object_alignment_2): Make sure to re-apply
19622 the ANDed mask after recursing to its operand gets us a new
19623 misalignment bit position.
19625 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
19626 Martin Liska <mliska@suse.cz>
19629 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
19630 Use address_matters_p.
19631 (redirect_all_callers, set_addressable): New functions.
19632 (sem_function::merge): Reorganize and fix merging issues.
19633 (sem_variable::merge): Likewise.
19634 (sem_variable::compare_sections): Remove.
19635 * common.opt (fmerge-all-constants, fmerge-constants): Remove
19637 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
19639 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
19641 (address_matters_1): New function.
19642 (symtab_node::address_matters_p): New function.
19643 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
19644 check for merged flag.
19645 * cgraph.h (address_matters_p): Declare.
19646 (symtab_node::address_taken_from_non_vtable_p): Remove.
19647 (symtab_node::address_can_be_compared_p): New method.
19648 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
19649 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
19651 (comdat_can_be_unshared_p_1) Use address_matters_p.
19652 (update_vtable_references): Fix formating.
19653 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
19654 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
19655 * cgraphclones.c: Preserve merged and icf_merged flags.
19657 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
19659 * doc/extend.texi (Function Attributes): Fix spelling and typos.
19660 (Label Attributes): Likewise.
19661 (Cilk Plus Builtins): Likewise.
19662 (ARC SIMD Built-in Functions): Likewise.
19663 (ARM C Language Extensions (ACLE)): Likewise.
19664 (PowerPC Built-in Functions): Likewise.
19665 (PowerPC Hardware Transactional Memory Built-in Functions):
19668 2015-02-26 Jakub Jelinek <jakub@redhat.com>
19670 PR tree-optimization/65216
19671 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
19672 new stmt and new SSA_NAME for lhs whenever the arguments have
19673 changed and weren't just swapped. Fix comment typo.
19675 PR tree-optimization/65215
19676 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
19677 for PDP endian targets.
19678 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
19679 Fix up formatting issues.
19680 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
19681 size is smaller than the original, adjust MEM_REF offset by the
19682 difference of sizes. Use is_gimple_mem_ref_addr instead of
19683 is_gimple_min_invariant test to avoid adding address temporaries.
19685 2015-02-26 Martin Liska <mliska@suse.cz>
19686 Jan Hubicka <hubicka@ucw.cz>
19689 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
19690 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
19691 (sem_item_optimizer::process_cong_reduction): Include division by
19692 sensitive references.
19693 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
19694 * ipa-ref.c (ipa_ref::address_matters_p): New function.
19695 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
19697 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
19700 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
19702 * config/avr/avr.c: Same.
19703 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
19704 Refuse any constant address not in 0..0xbf.
19705 * config/avr/avr.md (*mov<mode>, *movsf): Remove
19706 tiny_valid_direct_memory_access_range from insn conditions.
19707 (mov<mode>): Don't special-case expansion of avrtiny addresses.
19709 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
19712 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
19713 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
19714 * config/sh/predicates.md (const_logical_operand): New predicate.
19715 * config/sh/sh.md: Add new peephole2 patterns.
19717 2015-02-26 Marek Polacek <polacek@redhat.com>
19720 * ipa-inline.c (early_inliner): Recompute inline parameters.
19722 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19725 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
19726 instructions with TImode operands are included in the analysis.
19728 2015-02-26 Sebastian Pop <s.pop@samsung.com>
19730 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
19731 of an EDGE_FSM_THREAD.
19733 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19735 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
19737 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
19740 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
19742 2015-02-26 Sebastian Pop <s.pop@samsung.com>
19744 PR tree-optimization/65048
19745 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
19746 (thread_through_all_blocks): Call valid_jump_thread_path.
19747 Remove invalid FSM jump-thread paths.
19749 2015-02-26 Jakub Jelinek <jakub@redhat.com>
19751 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
19752 (ipa_write_optimization_summaries): Likewise.
19753 * tree-streamer.h: Include data-streamer.h.
19754 (streamer_mode_table): Declare extern variable.
19755 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
19756 * lto-streamer-out.c (lto_output_init_mode_table,
19757 lto_write_mode_table): New functions.
19758 (produce_asm_for_decls): Call lto_write_mode_table when streaming
19760 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
19761 (lto_create_simple_input_block): Add mode_table argument to the
19762 lto_input_block constructors.
19763 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
19765 * data-streamer-in.c (string_for_index): Likewise.
19766 * ipa-inline-analysis.c (inline_read_section): Likewise.
19767 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
19768 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
19769 * lto-streamer-in.c (lto_read_body_or_constructor,
19770 lto_input_toplevel_asms): Likewise.
19771 (lto_input_mode_table): New function.
19772 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
19773 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
19774 Use bp_pack_machine_mode.
19775 * real.h (struct real_format): Add name field.
19776 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
19777 (class lto_input_block): Add mode_table member.
19778 (lto_input_block::lto_input_block): Add mode_table_ argument,
19779 initialize mode_table.
19780 (struct lto_file_decl_data): Add mode_table field.
19781 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
19782 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
19783 unpack_ts_decl_common_value_fields,
19784 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
19785 * tree-streamer.c (streamer_mode_table): New variable.
19786 * real.c (ieee_single_format, mips_single_format,
19787 motorola_single_format, spu_single_format, ieee_double_format,
19788 mips_double_format, motorola_double_format,
19789 ieee_extended_motorola_format, ieee_extended_intel_96_format,
19790 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
19791 ibm_extended_format, mips_extended_format, ieee_quad_format,
19792 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
19793 decimal_single_format, decimal_double_format, decimal_quad_format,
19794 ieee_half_format, arm_half_format, real_internal_format): Add name
19796 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
19798 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
19801 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
19802 reordering for selective scheduling.
19804 2015-02-26 Terry Guo <terry.guo@arm.com>
19806 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
19807 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
19808 (arm_arch_no_volatile_ce): Declare new global variable.
19809 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
19810 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
19811 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
19812 (TARGET_NO_VOLATILE_CE): New macro.
19813 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
19814 volatile memory access in IT block
19816 2015-02-25 Kai Tietz <ktietz@redhat.com>
19818 PR tree-optimization/61917
19819 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
19820 that reduc_def_stmt is null.
19822 2015-02-25 Martin Liska <mliska@suse.cz>
19824 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
19825 hard register variables.
19827 2015-02-25 Kai Tietz <ktietz@redhat.com>
19830 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
19831 (symtab::noninterposable_alias): Likewise.
19833 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
19836 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
19838 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
19840 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
19843 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
19844 as split condition; force split via '#' in output pattern.
19846 2015-02-25 Richard Biener <rguenther@suse.de>
19847 Kai Tietz <ktietz@redhat.com>
19849 PR tree-optimization/61917
19850 * tree-vect-loop.c (vectorizable_reduction): Allow
19851 vect_internal_def without reduction to exit graceful.
19853 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
19856 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
19857 only with NONDEBUG_INSN_P.
19859 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
19861 Use variadic macros with avr-log.c.
19863 * config/avr/avr-protos.h (avr_vdump): New prototype.
19864 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
19865 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
19866 * config/avr/avr-log.c: Adjust comments.
19867 (avr_vdump): New function.
19868 (avr_vadump): Pass caller as 2nd argument instead of format string.
19869 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
19870 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
19872 2015-02-25 Jakub Jelinek <jakub@redhat.com>
19875 * target.def (target_option_stream_in): New target hook.
19876 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
19877 targetm.target_option.post_stream_in if non-NULL.
19878 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
19879 * doc/tm.texi: Updated.
19880 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
19882 (TARGET_OPTION_POST_STREAM_IN): Redefine.
19884 2015-02-24 Jeff Law <law@redhat.com>
19887 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
19888 of operand 0 and operand 2.
19889 (zero_cost_loop_end, loop_end): Similarly.
19891 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
19893 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
19896 2015-02-24 DJ Delorie <dj@redhat.com>
19898 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
19899 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
19900 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
19901 instead of hardcoding SImode.
19903 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
19905 * omp-low.c (create_omp_child_function): Tag entrypoint
19906 functions with a special attribute.
19908 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
19911 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
19913 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
19915 PR rtl-optimization/65123
19916 * lra-remat.c (operand_to_remat): Check hard regs in insn
19919 2015-02-24 Nick Clifton <nickc@redhat.com>
19921 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
19924 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
19927 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
19928 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
19929 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
19930 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
19931 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
19932 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
19933 (BUILT_IN_GOACC_PARALLEL): Specify as
19934 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
19935 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
19936 * builtin-types.def
19937 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
19938 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
19939 Remove function types.
19940 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
19941 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
19942 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
19943 New function types.
19945 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
19947 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
19949 2015-02-24 Jakub Jelinek <jakub@redhat.com>
19951 PR tree-optimization/65170
19952 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
19953 if val[1] < 0, clear also val[2] and return 3.
19955 2015-02-24 Alan Modra <amodra@gmail.com>
19958 * config/rs6000/rs6000.c (get_memref_parts): Only return true
19959 when *base is a reg. Handle nested plus addresses. Simplify
19962 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
19964 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
19965 use natural alignment when optimizing for size.
19967 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
19970 * config/sh/sh.md (movsicc_true+3): Remove peephole.
19971 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
19972 * config/sh/sh.c (replace_n_hard_rtx): Remove.
19974 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
19977 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
19978 too big for a wide_int. Implement missing wrapping operation.
19980 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
19983 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
19984 instead of const_int 4294901760.
19986 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
19988 * config/avr/t-avr: Fix typo in comment.
19990 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
19992 * doc/rtl.texi (fma): Clarify documentation.
19994 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
19997 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
19998 over input_location.
20000 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
20002 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
20003 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
20004 restrict alignments to absolute_biggest_alignment.
20005 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
20007 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
20008 * doc/tm.texi: Regenerate.
20009 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
20011 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
20014 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
20016 2015-02-20 Richard Biener <rguenther@suse.de>
20018 PR tree-optimization/65136
20019 * tree-ssa-propagate.c: Include cfgloop.h.
20020 (replace_phi_args_in): Avoid replacing loop latch edge PHI
20021 arguments with constants.
20023 2015-02-20 Jakub Jelinek <jakub@redhat.com>
20024 Martin Liska <mliska@suse.cz>
20027 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
20028 don't try to create_thunk if stdarg_p. If
20029 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
20030 redirect_callers if possible.
20031 (sem_item_optimizer::execute): Call unregister_hooks here...
20032 (ipa_icf_driver): ... instead of here.
20034 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20036 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
20037 Mark operand 0 as earlyclobber in 2nd alternative.
20038 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
20039 Write negated shift amount into QI lowpart operand 0 and use it
20041 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20043 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
20045 * cgraph.h (clone_function_name_1): Declare.
20046 * cgraphclones.c (clone_function_name_1): New function.
20047 (clone_function_name): Use it.
20048 * lto-partition.c: Include "stringpool.h".
20049 (must_not_rename, maybe_rewrite_identifier)
20050 (validize_symbol_for_target): New static functions.
20051 (privatize_symbol_name): Use must_not_rename.
20052 (promote_symbol): Call validize_symbol_for_target.
20053 (lto_promote_cross_file_statics): Likewise.
20054 (lto_promote_statics_nonwpa): Likewise.
20056 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
20059 * config/avr/avr.md (pushhi_insn): New insn.
20060 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
20062 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
20063 Jakub Jelinek <jakub@redhat.com>
20065 * tree-streamer.c (preload_common_nodes): Don't preload
20066 TI_VA_LIST* for offloading.
20067 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
20070 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
20072 * config/pa/pa.c (pa_emit_move_sequence): Always force
20073 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
20076 * config/pa/pa.c (pa_reloc_rw_mask): New function.
20077 (TARGET_ASM_RELOC_RW_MASK): Define.
20078 (pa_cannot_force_const_mem): Revert previous change.
20080 2015-02-19 Martin Jambor <mjmabor@suse.cz>
20081 Jan Hubicka <hubicka@ucw.cz>
20084 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
20085 across jump functions.
20087 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
20089 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
20091 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
20093 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
20095 2015-02-19 Richard Henderson <rth@redhat.com>
20097 PR middle-end/65074
20098 * varasm.c (default_binds_local_p_2): Don't test node->definition;
20099 test DECL_EXTERNAL independent of symtab_node.
20101 2015-02-19 Jakub Jelinek <jakub@redhat.com>
20104 * varpool.c (varpool_node::get_constructor): Return early
20105 if this->lto_file_data is NULL.
20107 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20109 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
20110 (rank_for_schedule_debug): Update.
20111 (ready_sort): Make static. Move sorting logic to ...
20112 (ready_sort_debug, ready_sort_real): New static functions.
20113 (schedule_block): Sort both debug insns and real insns in preparation
20114 for ready list trimming. Improve debug output.
20115 * sched-int.h (ready_sort): Remove global declaration.
20117 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
20119 * ipa-icf.c (sem_function::equals_private): Adjust.
20120 (sem_function::bb_dict_test): Take a vec<int> * instead of
20122 * ipa-icf.h (bb_dict_test): Likewise.
20124 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20126 PR gcov-profile/64634
20127 * tree-eh.c (frob_into_branch_around): Fix up typos
20128 in function comment.
20129 (lower_catch): Put eh_seq resulting from EH lowering of
20130 the cleanup sequence after the cleanup rather than before it.
20132 2015-02-18 Tom de Vries <tom@codesourcery.com>
20134 * common.opt (fstdarg-opt): New option.
20135 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
20136 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
20137 (@item -fstdarg-opt): New item.
20139 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
20142 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
20143 for common symbols.
20145 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20147 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
20149 (ALL_HOST_OBJS): Add mkoffload.o.
20150 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
20152 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
20154 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
20155 (compare_virtual_tables): Be smarter about skipping typeinfos;
20156 do sane output on virtual table table mismatch.
20157 (warn_odr): Be ready for forward declarations of enums;
20158 output sane info on base mismatch and virtual table mismatch.
20159 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
20160 when only one type is polymorphic.
20161 (get_odr_type): Fix hashtable corruption.
20162 (dump_odr_type): Dump mangled names.
20164 2015-02-18 Richard Biener <rguenther@suse.de>
20166 PR tree-optimization/65063
20167 * tree-predcom.c (determine_unroll_factor): Return 1 if we
20168 have replaced looparound PHIs.
20170 2015-02-18 Martin Liska <mliska@suse.cz>
20172 * lto-streamer.c (lto_streamer_init): Encapsulate
20173 streamer_check_handled_ts_structures with checking macro.
20175 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20178 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
20179 section if !implicit_section.
20180 (cgraph_node::create_version_clone_with_body): Likewise.
20181 * trans-mem.c (ipa_tm_create_version): Likewise.
20183 2015-02-18 Richard Biener <rguenther@suse.de>
20185 PR tree-optimization/62217
20186 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
20189 2015-02-18 Marek Polacek <polacek@redhat.com>
20192 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
20193 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
20194 is in range [-16K, -1]. Don't issue run-time error if
20195 (ptr > ptr + offset).
20197 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
20199 * doc/install.texi (nvptx-*-none): New section.
20200 * doc/invoke.texi (Nvidia PTX Options): Likewise.
20201 * config/nvptx/nvptx.opt: Update.
20203 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
20204 (access_check): New functions, copied from
20205 config/i386/intelmic-mkoffload.c.
20206 (main): For non-installed testing, look in all COMPILER_PATHs for
20209 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
20211 2015-02-18 Andrew Pinski <apinski@cavium.com>
20212 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
20214 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
20215 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
20217 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
20219 * ipa-visibility.c (function_and_variable_visibility): Only
20220 check locality if node is not already local.
20221 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
20222 call_for_symbol_and_aliases instead of
20223 call_for_symbol_thunks_and_aliases.
20224 (ipa_inline): Likewise.
20225 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20226 first walk aliases.
20227 * ipa.c (symbol_table::remove_unreachable_nodes): Use
20228 call_for_symbol_and_aliases.
20229 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
20230 (ipa_propagate_frequency_1): Use it; use opt_for_fn
20231 (ipa_propagate_frequency): Update.
20232 (ipa_profile): Add opt_for_fn gueards.
20234 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
20236 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
20237 * doc/invoke.texi (SH options): Document it.
20238 * config/sh/sh.c (sh_insn_length_adjustment): Check
20239 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
20241 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
20243 * common.opt (fipa-cp-alignment): New.
20244 * ipa-cp.c (ipcp_store_alignment_results): Check
20245 flag_ipa_cp_alignment.
20246 * opts.c (default_options_table): Enable -fipa-cp-alignment for
20248 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
20249 * doc/invoke.texi: Document -fipa-cp-alignment.
20251 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
20254 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
20255 to nil. Adjust comments.
20257 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
20259 * ipa-visibility.c (function_and_variable_visibility): Only
20260 check locality if node is not already local.
20261 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
20262 call_for_symbol_and_aliases instead of
20263 call_for_symbol_thunks_and_aliases.
20264 (ipa_inline): Likewise.
20265 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20266 first walk aliases.
20267 * ipa.c (symbol_table::remove_unreachable_nodes): Use
20268 call_for_symbol_and_aliases.
20269 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
20270 (ipa_propagate_frequency_1): Use it; use opt_for_fn
20271 (ipa_propagate_frequency): Update.
20272 (ipa_profile): Add opt_for_fn guards.
20274 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
20276 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
20277 skipping of "strange" tokens.
20279 2015-02-17 Jeff Law <law@redhat.com>
20281 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
20284 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
20286 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
20287 as forcing a HARD_DEP between instructions, thereby
20288 disallowing rewriting to break dependencies.
20290 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
20292 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
20293 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
20294 variables in boundary that have no inlitalizer encoded and are
20296 * varasm.c (default_binds_local_p_2): External definitions do not
20297 count as definitions here.
20299 2015-02-16 Jeff Law <law@redhat.com>
20301 PR tree-optimization/64823
20302 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
20304 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
20305 threading through blocks with PHIs, but no statements.
20306 (thread_through_normal_block): Distinguish between blocks where
20307 we did not process all the statements and blocks with no statements.
20309 2015-02-16 Jakub Jelinek <jakub@redhat.com>
20310 James Greenhalgh <james.greenhalgh@arm.com>
20313 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
20314 section if not linkonce. Fix up formatting.
20315 (cgraph_node::create_version_clone_with_body): Copy section.
20316 * trans-mem.c (ipa_tm_create_version): Likewise.
20318 2015-02-16 Richard Biener <rguenther@suse.de>
20320 PR tree-optimization/65077
20321 * tree-ssa-structalias.c (get_constraint_for_1): Handle
20322 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
20323 (find_func_aliases): Allow float values to carry pointers again.
20325 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
20327 * doc/install.texi (Specific): Reorder targets list to put
20328 aarch64 in alphabetical order. Add a link to aarch64*-*-*
20331 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
20332 David Edelsohn <dje.gcc@gmail.com>
20335 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
20336 mapping class to external variable or function reference.
20337 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
20340 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
20343 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
20344 ASM_WEAKEN_DECL if defined.
20346 2015-02-16 Richard Biener <rguenther@suse.de>
20349 * varasm.c (default_file_start): For LTO produced units
20350 emit <artificial> as file directive.
20352 2015-02-16 Richard Biener <rguenther@suse.de>
20354 PR tree-optimization/63593
20355 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
20356 stmts and releasing SSA names until...
20357 (execute_pred_commoning): ... after processing all chains.
20359 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
20362 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
20363 external functions.
20365 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
20367 * doc/bugreport.texi: Adjust section titles throughout the file
20368 to use "Title Case".
20369 * doc/extend.texi: Likewise.
20370 * doc/gcov.texi: Likewise.
20371 * doc/implement-c.texi: Likewise.
20372 * doc/implement-cxx.texi: Likewise.
20373 * doc/invoke.texi: Likewise.
20374 * doc/objc.texi: Likewise.
20375 * doc/standards.texi: Likewise.
20376 * doc/trouble.texi: Likewise.
20378 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
20380 * cgraph.h (symtab_node::has_aliases_p): Simplify.
20381 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
20382 * tree.c (lookup_binfo_at_offset): Make static.
20383 (get_binfo_at_offset): Do not shadow offset; add explanatory
20386 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
20388 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
20389 for all floading point loads and stores except those using a register
20391 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
20394 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
20396 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
20397 (do_estimate_growth_1): Record if any uninlinable edge was seen.
20398 (estimate_growth): Handle uninlinable edges correctly.
20399 (check_callers): New.
20400 (growth_likely_positive): Handle aliases correctly.
20402 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
20404 * ipa-chkp.c: Use iterate_direct_aliases.
20405 * symtab.c (resolution_used_from_other_file_p): Move inline.
20406 (symtab_node::create_reference): Fix formating.
20407 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
20408 (symtab_node::iterate_reference): Move inline.
20409 (symtab_node::iterate_referring): Move inline.
20410 (symtab_node::iterate_direct_aliases): Move inline.
20411 (symtab_node::used_from_object_file_p_worker): Inline into ...
20412 (symtab_node::used_from_object_file_p): ... this one; move inline.
20413 (symtab_node::call_for_symbol_and_aliases): Move inline;
20414 use iterate_direct_aliases.
20415 (symtab_node::call_for_symbol_and_aliases_1): New method.
20416 (cgraph_node::call_for_symbol_and_aliases): Move inline;
20417 use iterate_direct_aliases.
20418 (cgraph_node::call_for_symbol_and_aliases_1): New method.
20419 (varpool_node::call_for_node_and_aliases): Rename to ...
20420 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
20421 use iterate_direct_aliases.
20422 (varpool_node::call_for_symbol_and_aliases_1): New method.
20423 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
20424 (ipa_discover_readonly_nonaddressable_var): Update.
20425 * ipa-devirt.c: Fix formating.
20426 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
20428 (cgraph_node::call_for_symbol_and_aliases): Move inline.
20429 (cgraph_node::call_for_symbol_and_aliases_1): New function..
20430 * cgraph.h (used_from_object_file_p_worker): Remove.
20431 (resolution_used_from_other_file_p): Move inline.
20432 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
20433 (symtab_node::iterate_reference): Move inline.
20434 (symtab_node::iterate_referring): Move inline.
20435 (symtab_node::iterate_direct_aliases): Move inline.
20436 (symtab_node::used_from_object_file_p_worker): Inline into ...
20437 (symtab_node::used_from_object_file_p): Move inline.
20438 * tree-emutls.c (ipa_lower_emutls): Update.
20439 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
20440 (varpool_node::call_for_node_and_aliases): Remove.
20442 2015-02-14 Jakub Jelinek <jakub@redhat.com>
20444 PR tree-optimization/62209
20445 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
20446 op == range->exp, insert seq and gimplified code after labels
20447 instead of after the phi.
20449 2015-02-13 Jeff Law <law@redhat.com>
20452 Revert my change for tree-optimization/64823.
20454 2015-02-13 Jakub Jelinek <jakub@redhat.com>
20456 PR tree-optimization/65053
20457 * tree-ssa-phiopt.c (value_replacement): When moving assign before
20458 cond, either reset VR on lhs or set it to phi result VR.
20460 2015-02-13 Jeff Law <law@redhat.com>
20462 PR tree-optimization/64823
20463 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
20464 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
20465 threading through blocks with PHIs, but no statements.
20466 (thread_through_normal_block): Distinguish between blocks where
20467 we did not process all the statements and blocks with no statements.
20469 PR rtl-optimization/47477
20470 * match.pd (convert (plus/minus (convert @0) (convert @1): New
20471 simplifier to narrow arithmetic.
20473 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
20476 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
20477 polymorphic call info when type is not known to be preserved.
20479 2015-02-13 Maritn Jambor <mjambor@suse.cz>
20482 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
20483 (inline_call): Use it.
20485 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
20487 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
20488 GOMP_DEVICE_NVIDIA_PTX.
20490 2015-02-13 Jakub Jelinek <jakub@redhat.com>
20493 * stmt.c (emit_case_nodes): Use void_type_node instead of
20494 NULL_TREE as LABEL_DECL type.
20496 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
20498 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
20500 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
20501 symbolic references to data to be forced to constant memory on the
20504 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
20506 PR tree-optimization/65002
20507 * tree-cfg.c (pass_data_fixup_cfg): Don't update
20509 * tree-sra.c (some_callers_have_no_vuse_p): New.
20510 (ipa_early_sra): Reject functions whose callers
20511 assume function is read only.
20513 2015-02-13 Richard Biener <rguenther@suse.de>
20516 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
20517 for LTO produced CUs.
20519 2015-02-13 Bin Cheng <bin.cheng@arm.com>
20521 PR tree-optimization/64705
20522 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
20523 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
20524 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
20525 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
20526 expand_simple_operations.
20528 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
20529 Richard Henderson <rth@redhat.com>
20532 * cgraphunit.c (cgraph_node::finalize_function): Set definition
20533 before notice_global_symbol.
20534 (varpool_node::finalize_decl): Likewise.
20535 * varasm.c (default_binds_local_p_2): Rename from
20536 default_binds_local_p_1, add weak_dominate argument. Use direct
20537 returns instead of assigning to local variable. Unify varpool and
20538 cgraph paths via symtab_node. Reject undef weak variables before
20539 testing visibility. Reorder tests for simplicity.
20540 (default_binds_local_p): Use default_binds_local_p_2.
20541 (default_binds_local_p_1): Likewise.
20542 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
20544 (default_elf_asm_output_external): Emit visibility when specified.
20546 2015-02-13 Alan Modra <amodra@gmail.com>
20548 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
20549 code setting up r11 for out-of-line fp restore.
20551 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
20553 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
20554 (muser-mode): Likewise.
20556 2015-02-13 Alan Modra <amodra@gmail.com>
20558 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
20559 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
20561 2015-02-12 David Howells <dhowells@redhat.com>
20563 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
20565 * tree-ssa-uninit.c (dump_predicates): Likewise.
20566 * opts.c (print_filtered_help): Likewise.
20568 2015-02-12 Jakub Jelinek <jakub@redhat.com>
20570 * dwarf2out.c (output_die): Use "%s", name instead of name to
20571 avoid -Wformat-security warning.
20573 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
20574 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20575 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
20576 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20578 2015-02-12 Jason Merrill <jason@redhat.com>
20580 * common.opt (-flifetime-dse): New.
20582 2015-02-12 Jakub Jelinek <jakub@redhat.com>
20585 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
20587 PR tree-optimization/65014
20588 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
20589 use original second operand of arg0 or arg1 instead of
20590 that adjusted by STRIP_NOPS.
20592 2015-02-11 Jeff Law <law@redhat.com>
20595 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
20596 that needs to be queued, just queue it for a single cycle.
20598 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
20600 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
20601 bodies of thunks; comment on why.
20602 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
20603 symbols are extern.
20605 2015-02-11 Richard Henderson <rth@redhat.com>
20608 * tree-eh.c (mark_reachable_handlers): Mark source and destination
20609 regions of __builtin_eh_copy_values.
20611 2015-02-11 Jakub Jelinek <jakub@redhat.com>
20613 PR middle-end/65003
20614 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
20615 ultimate alias is MEM with SYMBOL_REF satisfying
20616 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
20617 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
20619 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
20621 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
20622 "diagnostic-core.h".
20623 (main): Initialize progname, and call diagnostic_initialize.
20625 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
20626 instead of __OPENMP_TARGET__.
20628 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
20629 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
20630 hard-coding PTX_ID.
20632 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
20634 * doc/sourcebuild.texi (pie_enabled): Document.
20636 2015-02-11 Martin Liska <mliska@suse.cz>
20639 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
20640 a return value for call to a function that is noreturn.
20642 2015-02-11 Richard Biener <rguenther@suse.de>
20645 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
20648 2015-02-11 Andrew Pinski <apinski@cavium.com>
20651 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
20652 Change the first argument type to size_type_node and add another
20654 (aarch64_simd_expand_builtin): Handle the new argument to
20655 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
20656 print an out when the first two arguments are not
20657 nonzero integer constants.
20658 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
20659 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
20661 2015-02-11 Jakub Jelinek <jakub@redhat.com>
20664 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
20665 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
20666 (ix86_set_current_function): Rewritten.
20667 (ix86_add_new_builtins): Temporarily clear current_target_pragma
20668 when creating builtin fndecls.
20670 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
20673 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
20675 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
20676 have no comdat group.
20677 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
20678 (lto_output_varpool_node): Always output alias info.
20679 (output_refs): Output refs of boundary aliases, too.
20680 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
20681 (output_symtab): Output call eges in thunks in boundary.
20682 (get_alias_symbol): Remove.
20683 (input_node, input_varpool_node): Do not special case weakrefs.
20684 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
20685 alias and thunks targets in the boundary; do not take removed symbols
20686 from their comdat groups.
20687 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
20688 (cgraph_node::global_info): Remove.
20689 (cgraph_node::rtl_info): Look through aliases and thunks.
20690 * cgrpah.h (global_info): Remove.
20691 (non_local_p): Remove.
20693 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
20694 Sandra Loosemore <sandra@codesourcery.com>
20696 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
20697 to inline asm. List dialects in proper order.
20699 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
20700 Sandra Loosemore <sandra@codesourcery.com>
20702 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
20704 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
20706 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
20707 modified) reference to Solaris.
20709 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
20711 * doc/extend.texi (Extended Asm): Fix typos.
20713 2015-02-10 Jakub Jelinek <jakub@redhat.com>
20716 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
20718 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
20721 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
20722 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
20723 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
20724 * config/sh/constraints.md (Ara, Add): New constraints.
20725 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
20727 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
20728 atomic_mem_operand_0. Don't use force_reg on the memory address.
20729 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
20730 Sra constraint. Convert to insn_and_split. Add workaround for
20732 (atomic_compare_and_swap<mode>_hard): Copy to
20733 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
20734 Use atomic_mem_operand_0 predicate.
20735 (atomic_compare_and_swap<mode>_soft_gusa,
20736 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
20737 AraAdd constraints.
20738 (atomic_compare_and_swap<mode>_soft_tcb,
20739 atomic_compare_and_swap<mode>_soft_imask,
20740 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
20741 atomic_mem_operand_0 predicate and SraSdd constraints.
20742 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
20744 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
20745 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
20746 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
20747 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
20748 force_reg on the memory address.
20749 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
20750 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
20751 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
20752 atomic_mem_operand_1 predicate and Sra constraint.
20753 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
20754 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
20755 Use atomic_mem_operand_1 predicate.
20756 (atomic_<fetchop_name><mode>_hard): Copy to
20757 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
20758 Use atomic_mem_operand_1 predicate.
20759 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
20760 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
20761 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
20762 insn_and_split. Use atomic_mem_operand_1 predicate.
20763 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
20764 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
20765 Use atomic_mem_operand_1 predicate.
20766 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
20767 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
20768 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
20769 in generated insn with original mem operand before emitting the insn.
20770 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
20771 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
20772 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
20773 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
20774 Use atomic_mem_operand_1 predicate and AraAdd constraints.
20775 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
20776 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
20777 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
20778 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
20779 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
20780 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
20781 atomic_not_fetch<mode>_soft_tcb,
20782 atomic_<fetchop_name>_fetch<mode>_soft_imask,
20783 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
20784 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
20785 Use atomic_mem_operand_1 predicate and SraSdd constraints.
20787 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
20789 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
20790 and 3 earlyclobber operands.
20792 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
20794 * common.opt (fstack-reuse): Mark as optimization.
20796 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
20799 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
20801 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
20803 PR tree-optimization/64326
20804 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
20806 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
20808 PR gcov-profile/61889
20809 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
20811 2015-02-10 Richard Biener <rguenther@suse.de>
20813 PR tree-optimization/64995
20814 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
20815 value we use is final.
20816 (visit_reference_op_store): Always valueize op.
20817 (visit_use): Properly valueize vuses.
20819 2015-02-10 Richard Biener <rguenther@suse.de>
20821 PR tree-optimization/64909
20822 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
20823 pass a scalar-stmt count estimate to the cost model.
20824 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
20826 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
20828 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
20829 enabled by default together with var-tracking.
20831 2015-02-10 Nick Clifton <nickc@redhat.com>
20833 * config/rl78/rl78.c: Remove DIV attribute code accidentally
20834 included in previous rl78 commit.
20836 2015-02-10 Richard Biener <rguenther@suse.de>
20838 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
20839 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
20840 return the bitpack.
20842 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
20844 PR gcov-profile/61889
20845 * config.in: regenerate.
20846 * configure.in: Likewise.
20847 * configure.ac: Check for ftw.h.
20848 * gcov-tool.c: Check for ftw.h before using nftw.
20850 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
20853 * ipa-visibility.c (update_visibility_by_resolution_info): Only
20854 assert when not in lto mode.
20856 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20858 * ira-color.c (setup_left_conflict_sizes_p): Simplify
20859 initialization/assignment of conflict_size.
20861 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
20864 * ipa-cp.c (gather_caller_stats): Skip thunks.
20865 (propagate_constants_topo): Skip aliases.
20867 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
20870 * config/sh/sh.c (sh_option_override): Don't change
20871 -freorder-blocks-and-partition to -freorder-blocks even when
20872 unwinding is enabled.
20873 (sh_can_follow_jump): Return false if the followee jump is
20874 a crossing jump when -freorder-blocks-and-partition is specified.
20875 * config/sh/sh.md (*jump_compact_crossing): New insn.
20877 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
20878 Kaz Kojima <kkojima@gcc.gnu.org>
20881 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
20882 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
20883 (sh_can_redirect_branch): Rename to ...
20884 (sh_can_follow_jump): ... this. Constify argument types.
20885 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
20886 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
20887 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
20888 * doc/tm.texi: Regenerate.
20890 2015-02-09 Jakub Jelinek <jakub@redhat.com>
20893 * builtins.c (expand_builtin): Call targetm.expand_builtin
20894 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
20896 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20899 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
20901 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20904 * ipa-icf.c (set_local): New function.
20905 (sem_function::merge): Use it.
20907 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20909 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
20910 (add_type_duplicate): Fix comparison of BINFOs.
20912 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20914 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
20915 on getting VOID pointer.
20917 2015-02-09 Jakub Jelinek <jakub@redhat.com>
20920 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
20923 2015-02-09 Richard Biener <rguenther@suse.de>
20925 * genmatch.c (replace_id): Copy expr_type.
20927 2015-02-09 Richard Biener <rguenther@suse.de>
20929 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
20930 (streamer_write_tree_bitfields): Declare.
20931 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
20932 properly unpack padding.
20933 (unpack_value_fields): Inline ...
20934 (streamer_read_tree_bitfields): ... here.
20935 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
20936 and properly add padding bits.
20937 (streamer_pack_tree_bitfields): Fold into ...
20938 (streamer_write_tree_bitfields): ... this new function,
20939 exposing the bitpack object.
20940 * lto-streamer-out.c (lto_write_tree_1): Call
20941 streamer_write_tree_bitfields.
20943 2015-02-09 Richard Biener <rguenther@suse.de>
20945 PR tree-optimization/54000
20946 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
20947 (struct ivopts_data): Add loop_loc member.
20948 (tree_ssa_iv_optimize_loop): Dump loop location.
20949 (create_new_ivs): Likewise, also dump number of IVs generated.
20951 2015-02-09 Martin Liska <mliska@suse.cz>
20953 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
20954 just if not yet registered.
20955 (ipa_icf_generate_summary): Register callgraph hooks.
20957 2015-02-08 Andrew Pinski <apinski@cavium.com>
20959 * config/aarch64/aarch64.c (gty_dummy): Delete.
20961 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20964 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
20965 (cgraph_node::local_p): Remove thunk related FIXME.
20967 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20970 * i386.c (ix86_function_regparm): Look through aliases to see if callee
20971 is local and optimized.
20972 (ix86_function_sseregparm): Likewise; also use target's SSE math
20973 settings; error out instead of silently generating wrong code
20975 (init_cumulative_args): Look through aliases.
20977 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20980 * ipa-split.c (execute_split_functions): Split if function has aliases.
20982 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20985 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
20986 aliases before trying to expand it.
20987 (cgraph_node::expand_thunk): Fix formating.
20989 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
20991 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
20992 (Using Assembly Language with C): Expand introduction.
20993 (Basic Asm): Copy-edit. Add more information about uses of
20995 (Extended Asm): Copy-edit. Document new escape syntax and
20997 (Global Reg Vars): Copy-edit.
20998 (Local Reg Vars): Likewise.
21000 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
21004 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
21005 (DBX_CONTIN_CHAR): Define.
21007 2015-02-06 Sebastian Pop <s.pop@samsung.com>
21008 Brian Rzycki <b.rzycki@samsung.com>
21010 PR tree-optimization/64878
21011 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
21012 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
21013 Stop recursion at loop phi nodes after having visited a loop phi node.
21015 2015-02-06 Jakub Jelinek <jakub@redhat.com>
21017 * toplev.c (process_options): Change flag_ipa_ra before creating
21018 optimization_{default,current}_node.
21021 * cgraphunit.c (cgraph_node::expand_thunk): If
21022 restype is not is_gimple_reg_type nor the thunk_fndecl
21023 returns aggregate_value_p, set restmp to a temporary variable
21024 instead of resdecl.
21026 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
21028 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
21030 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21033 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
21034 add a general secondary reload handler for SDmode, unless we have
21035 both read/write support for SDmode.
21037 2015-02-06 Jakub Jelinek <jakub@redhat.com>
21039 PR middle-end/64937
21040 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
21041 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
21042 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
21043 1 before, push it to abstract_vec.
21044 (dwarf2out_abstract_function): Adjust caller. Don't call
21045 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
21046 DECL_ABSTRACT_P flags for all abstract_vec elts.
21048 2015-02-06 Renlin Li <renlin.li@arm.com>
21050 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
21052 * tree-ssa.c (execute_update_addresses_taken): Likewise.
21054 2015-02-06 Jeff Law <law@redhat.com>
21057 * config/h8300/h8300.c (push): New argument "in_prologue".
21058 Pass "in_prologue" along to "F".
21059 (h8300_push_pop): Corresponding changes.
21060 (h8300_expand_prologue): Likewise.
21061 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
21063 2015-02-06 Jakub Jelinek <jakub@redhat.com>
21065 PR rtl-optimization/64957
21067 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
21068 IOR rather than for AND.
21070 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
21073 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
21074 of shift-add and (add + shift) operations. Rename local variable.
21076 2015-02-05 Jeff Law <law@redhat.com>
21079 * config/h8300/constraints.md (U): Correctly dectect
21080 "eightbit_data" memory addresses.
21081 * config/h8300/h8300.c (eightbit_constant_address_p): Also
21082 handle (const (plus (symbol_ref (x)))) where x is declared
21083 as an 8-bit data memory address.
21084 * config/h8300/h8300.md (call, call_value): Correctly detect
21085 "funcvec" functions.
21088 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
21089 24 to 28 bits for the H8/300.
21091 2015-02-06 Alan Modra <amodra@gmail.com>
21094 * config/rs6000/rs6000.c (chain_already_loaded): New function.
21095 (rs6000_call_aix): Use it.
21097 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
21099 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
21102 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
21104 * config/h8300/constraints.md ("U" constraint): Use strict
21105 variant of REG_OK_FOR_BASE_P after reload has started.
21107 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
21109 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
21110 define to zero if !TARGET_NEON.
21111 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
21113 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21114 Trevor Saunders <tsaunders@mozilla.com>
21117 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
21119 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21122 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
21123 when removing varpool nodes.
21125 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21128 * varpool.c (varpool_node::remove): Fix order of variables.
21130 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21133 * ipa-inline.c (inline_small_functions): Fix ordering issue between
21134 speculation resolution and key updates.
21136 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21138 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
21139 about not letting any speculative edges unupdated.
21141 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21144 * gcov-io.c (gcov_var): Export.
21146 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21148 PR middle-end/64922
21149 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
21150 edges that become speculative.
21152 2015-02-04 Jakub Jelinek <jakub@redhat.com>
21154 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
21155 or DW_LANG_Fortran08.
21156 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
21158 (gen_compile_unit_die): Handle "GNU Fortran2003" and
21159 "GNU Fortran2008" language strings.
21160 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
21161 * langhooks.h (lang_GNU_Fortran): New prototype.
21162 * langhooks.c (lang_GNU_Fortran): New function.
21163 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
21166 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
21168 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
21169 (RTX_OK_FOR_OLO10_P): Likewise.
21171 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
21173 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
21175 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21177 PR middle-end/64922
21178 * gimple.c: Include gimple-ssa.h.
21179 (maybe_remove_unused_call_args): New function.
21180 * gimple.h (maybe_remove_unused_call_args): Declare.
21181 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
21182 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
21183 * gimple-fold.c (gimple_fold_call): Likewise.
21185 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
21187 PR rtl-optimization/64905
21188 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
21189 pointer alignment if it isn't needed.
21191 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
21193 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
21194 cortex-a72.cortex-a53.
21195 * config/aarch64/aarch64-tune.md: Regenerate.
21196 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
21198 2015-02-04 Nick Clifton <nickc@redhat.com>
21200 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
21203 2015-02-04 Jakub Jelinek <jakub@redhat.com>
21205 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
21206 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
21207 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
21209 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
21210 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
21211 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
21212 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
21213 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
21214 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
21215 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
21216 * tree-core.h (enum built_in_function): In between
21217 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
21218 for builtins that use DEF_BUILTIN_CHKP macro.
21220 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
21223 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
21224 operands for tcc_comparison exprs. Fix typos.
21227 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
21228 of two XORs that have an intervening AND or IOR.
21231 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
21232 simplification of XOR of AND to not allocate new rtx before
21233 committing to a simplification.
21235 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21237 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
21238 manual swaps in all peepholes.
21240 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21242 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
21243 of manual swapping implementation.
21244 (aarch64_expand_vec_perm_const_1): Likewise.
21246 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
21248 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
21249 (generic_addrcost_table): Remove NAMED_PARAM.
21250 (cortexa57_addrcost_table): Likewise.
21251 (xgene1_addrcost_table): Likewise.
21252 (generic_regmove_table): Likewise.
21253 (cortexa53_regmove_table): Likewise.
21254 (xgene1_regmove_table): Likewise.
21255 (generic_vector_table): Likewise.
21256 (cortexa57_vector_table): Likewise.
21257 (xgene1_vector_table): Likewise.
21258 (generic_tunings): Likewise.
21259 (cortexa53_tunings): Likewise.
21260 (cortexa57_tunings): Likewise.
21261 (xgene1_tunings): Likewise.
21263 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
21265 * config/arm/arm-cores.def: Add cortex-a72 and
21266 cortex-a72.cortex-a53.
21267 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
21268 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
21269 * config/arm/arm-tune.md: Regenerate.
21270 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
21271 "cortex-a72.cortex-a53".
21272 * doc/invoke.texi (ARM Options/-mtune): Likewise.
21274 2015-02-04 Nick Clifton <nickc@redhat.com>
21277 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
21279 (nonimmediate_di_operand): Likewise.
21281 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
21282 prefixes of known F5 using MSP430 MCUs.
21284 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21286 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
21287 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
21288 instead of __builtin_sqrt.
21290 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
21292 * varasm.c (do_assemble_alias): Follow transparent alias
21294 (default_assemble_visibility): Follow transparent alias
21295 chain for decl name.
21297 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
21299 PR middle-end/62103
21300 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
21301 to compute size of referenced value in the constant case.
21303 2015-02-03 Jakub Jelinek <jakub@redhat.com>
21305 PR rtl-optimization/64756
21306 * cse.c (invalidate_dest): New function.
21307 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
21308 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
21309 invalidate and do not record it.
21311 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
21314 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
21315 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
21316 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
21317 atomic_nand<mode>_soft_tcb): New insns.
21318 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
21319 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
21320 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
21321 Split into atomic_not_fetchsi_hard if operands[0] is unused.
21322 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
21323 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
21324 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
21325 atomic_not<mode>_hard if operands[0] is unused.
21326 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
21327 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
21328 if operands[0] is unused.
21329 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
21330 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
21331 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
21332 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
21334 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
21335 into atomic_not<mode>_soft_tcb if operands[0] is unused.
21336 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
21337 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
21338 if operands[0] is unused.
21339 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
21340 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
21341 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
21342 atomic_nand_fetchsi_hard if operands[0] is unused.
21343 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
21344 atomic_nand<mode>_hard if operands[0] is unused.
21345 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
21346 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
21347 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
21348 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
21349 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
21350 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
21351 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
21352 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
21353 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
21354 atomic_not<mode>_hard if operands[0] is unused.
21355 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
21356 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
21358 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
21359 into atomic_not<mode>_soft_tcb if operands[0] is unused.
21360 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
21361 atomic_nand<mode>_hard if operands[0] is unused.
21362 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
21363 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
21365 2015-02-03 David Malcolm <dmalcolm@redhat.com>
21368 * Makefile.in (GCC_OBJS): Add gcc-main.o.
21369 * gcc-main.c: New file, containing "main" taken from gcc.c.
21370 * gcc.c (do_self_spec): Free decoded_options.
21371 (class driver): Move declaration to gcc.h.
21372 (main): Move declaration and implementation to new file
21374 (driver_get_configure_time_options): New function.
21375 * gcc.h (class driver): Move this declaration here, from
21377 (driver_get_configure_time_options): New declaration.
21379 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
21381 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
21382 cross-module inlining.
21383 * cgraph.h (cgraph_node): Add flag merged.
21384 * ipa-icf.c (sem_function::merge): Maintain it.
21386 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
21388 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
21389 instead of OBJECT_P.
21391 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
21394 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
21395 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
21396 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
21397 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
21399 2015-02-03 Jakub Jelinek <jakub@redhat.com>
21402 * combine.c (reg_n_sets_max): New variable.
21403 (can_change_dest_mode, reg_nonzero_bits_for_combine,
21404 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
21405 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
21406 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
21407 (rest_of_handle_combine): Initialize reg_n_sets_max.
21409 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
21411 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
21412 if some always_inline was inlined, apply changes before inlining
21415 2015-02-02 David Malcolm <dmalcolm@redhat.com>
21418 * config/arm/arm.c (arm_option_override): Set
21419 arm_selected_arch/cpu/tune to NULL on entry.
21421 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
21422 Andrew Pinski <pinskia@gcc.gnu.org>
21423 Jakub Jelinek <jakub@gcc.gnu.org>
21426 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
21427 integer typing for small model. Use IN_RANGE.
21429 2015-02-02 Richard Biener <rguenther@suse.de>
21431 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
21432 * tree-vrp.c (vrp_valueize_1): Likewise.
21434 2015-02-02 Alan Modra <amodra@gmail.com>
21436 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
21437 than mem for toc_restore.
21438 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
21439 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
21440 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
21442 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
21445 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
21446 explicit default options.
21448 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
21451 * ipa-utils.c (ipa_merge_profiles): Add release argument.
21452 * ipa-icf.c (sem_function::merge): Do not release body when merging.
21453 * ipa-utils.h (ipa_merge_profiles): Update prototype.
21455 2015-02-01 Jakub Jelinek <jakub@redhat.com>
21458 * cfgexpand.c (deep_ter_debug_map): New variable.
21459 (avoid_deep_ter_for_debug): New function.
21460 (expand_debug_expr): If TERed SSA_NAME is in
21461 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
21462 instead of trying to expand SSA_NAME's def stmt.
21463 (expand_debug_locations): When expanding debug bind
21464 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
21465 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
21467 (pass_expand::execute): Call avoid_deep_ter_for_debug on
21468 all debug bind stmts. Delete deep_ter_debug_map after
21469 expand_debug_location if non-NULL and clear it.
21471 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
21474 * config/sh/sync.md (atomic_fetch_notsi_hard,
21475 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
21476 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
21477 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
21478 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
21479 atomic_not_fetch<mode>_soft_imask): New insns.
21481 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21483 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
21484 (rank_for_schedule_debug): Split from ...
21485 (rank_for_schedule): ... this.
21486 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
21487 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
21489 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
21491 * doc/md.texi (Machine Constraints): Alphabetize table by target.
21492 * doc/extend.texi (x86 Variable Attributes): Move section to
21493 correct alphabetization after renaming.
21494 (x86 Type Attributes): Likewise.
21495 (Target Builtins): Re-alphabetize menu.
21496 (x86 Built-in Functions): Move section to correct alphabetization
21498 (x86 transactional memory intrinsics): Likewise.
21499 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
21500 and x86 Windows Options in table and menu.
21501 (x86 Options): Move section to correct alphabetization after
21503 (x86 Windows Options): Likewise.
21505 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
21507 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
21508 preferred names of the architecture and its 32- and 64-bit
21510 * doc/invoke.texi: Likewise.
21511 * doc/md.texi: Likewise.
21513 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
21516 * config/i386/predicates.md (address_no_seg_operand): Reject
21517 non-CONST_INT_P operands in invalid mode.
21519 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
21521 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
21522 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
21523 * config/i386/predicates.md (address_no_seg_operand): Call
21524 address_operand with VOIDmode.
21525 (vsib_address_operand): Ditto.
21526 (address_mpx_no_base_operand): Ditto.
21527 (address_mpx_no_index_operand): Ditto.
21529 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
21532 * lra-constraints.c (original_subreg_reg_mode): New.
21533 (simplify_operand_subreg): Try to simplify subreg of const. Use
21534 original_subreg_reg_mode for it.
21535 (swap_operands): Update original_subreg_reg_mode.
21536 (curr_insn_transform): Set up original_subreg_reg_mode.
21538 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
21541 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
21543 (process_alt_operands): Use it.
21544 (curr_insn_transform): Check the optional reload pseudo class is
21547 2015-01-30 Joseph Myers <joseph@codesourcery.com>
21549 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
21550 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
21552 * toplev.h (init_asm_output): Update comment on use of
21553 UNKNOWN_LOCATION with fatal_error.
21554 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
21555 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
21556 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
21557 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
21558 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
21559 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
21560 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
21561 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
21562 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
21563 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
21564 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
21565 fatal_error changed to pass input_location as first argument.
21567 2015-01-30 Martin Liska <mliska@suse.cz>
21569 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
21570 in #pragma GCC diagnostic guards.
21572 2015-01-30 Richard Biener <rguenther@suse.de>
21574 PR tree-optimization/64829
21575 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
21576 not add a widening conversion pattern but hand off extra
21577 widenings to callers.
21578 (vect_recog_widen_mult_pattern): Handle extra widening produced
21579 by vect_handle_widen_op_by_const.
21580 (vect_recog_widen_shift_pattern): Likewise.
21581 (vect_pattern_recog_1): Remove excess vertical space in dumping.
21582 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21583 (vect_init_vector_1): Likewise.
21584 (vect_get_vec_def_for_operand): Likewise.
21585 (vect_finish_stmt_generation): Likewise.
21586 (vectorizable_load): Likewise.
21587 (vect_analyze_stmt): Likewise.
21588 (vect_is_simple_use): Likewise.
21590 2015-01-29 Jeff Law <law@redhat.com>
21592 * combine.c (try_combine): Fix typo in comment.
21594 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
21597 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
21598 (rs6000_stack_info): Add assert.
21599 (rs6000_output_savres_externs): New function, split off from...
21600 (rs6000_output_function_prologue): ... here. Do not call it for
21603 2015-01-29 Jeff Law <law@redhat.com>
21606 * combine.c (try_combine): If I0 is a memory load and I3 a store
21607 to a related address, increase the "goodness" of doing a 4-insn
21608 combination with I0-I3.
21609 (make_field_assignment): Handle SUBREGs in the ior+and case.
21611 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
21613 PR tree-optimization/64746
21614 * tree-if-conv.c (mask_exists): New function.
21615 (predicate_mem_writes): Save created mask with given size for further
21617 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
21618 (ifcvt_repair_bool_pattern): Collect all statements that are root
21619 of bool pattern and use iterative algorithm to remove multiple uses
21620 of predicates, display number of required iterations.
21622 2015-01-29 Richard Biener <rguenther@suse.de>
21624 PR tree-optimization/64853
21625 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
21626 stmt will get simulated again.
21627 * tree-ssa-ccp.c (valueize_op_1): Likewise.
21629 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21631 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
21632 return_in_pc. Remove redundant assignments.
21633 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
21634 (arm_expand_epilogue): Don't compare boolean with true in if condition.
21636 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
21638 * config/i386/i386.c (ix86_mode_after): Make static.
21640 2015-01-29 Richard Biener <rguenther@suse.de>
21642 PR tree-optimization/64844
21643 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
21644 dump cost model analysis.
21645 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21646 Do not register adjusted load/store costs here.
21648 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
21649 Uros Bizjak <ubizjak@gmail.com>
21651 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
21652 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
21653 using x86_use_pseudo_pic_reg.
21654 * config/i386/i386.c (ix86_conditional_register_usage): Remove
21655 support for fixed PIC register.
21656 (ix86_use_pseudo_pic_reg): Not static any more.
21658 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
21660 PR middle-end/64805
21661 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
21662 to avoid error in cgraph node verification.
21664 2015-01-29 Marek Polacek <polacek@redhat.com>
21666 * doc/standards.texi: Reflect that the default for C is gnu11.
21668 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
21671 * reorg.c (switch_text_sections_between_p): New function.
21672 (relax_delay_slots): Call it when testing if the jump insn
21673 is removable. Use targetm.can_follow_jump when testing if
21674 the conditional branch can follow an unconditional jump.
21676 2015-01-27 Caroline Tice <cmtice@google.com>
21678 Committing VTV Cywin/Ming patch for Patrick Wollgast
21679 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
21680 if -fvtable-verify=preinit/std is used.
21681 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
21682 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
21683 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
21684 if -fvtable-verify=preinit/std is used.
21685 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
21686 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
21687 if -fvtable-verify=preinit/std is used.
21688 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
21689 * config/i386/mingw32.h (LIB_SPEC): Likewise.
21690 * varasm.c (assemble_variable): Add code to properly set the comdat
21691 section and name for the .vtable_map_vars section in case the
21692 target is PE or COFF.
21694 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
21697 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
21698 make sane BB profile.
21699 (cgraph_node::expand_thunk): Make sane BB profile.
21700 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
21701 * cgraph.h (init_lowered_empty_function): Update prototype.
21702 * config/i386/i386.c (make_resolver_func): Update call.
21703 * predict.c (gate): Disable branch prediction pass if
21704 profile is already there.
21706 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
21708 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
21709 * opth-gen.awk: Likewise.
21710 * common.opt: Mark flag_fp_contract_mode as Optimization.
21712 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
21714 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
21715 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
21717 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
21720 * config/sh/predicates.md (atomic_arith_operand,
21721 atomic_logical_operand): Remove.
21722 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
21723 (atomic_arith_operand_0): New predicate.
21724 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
21725 Use atomic_arith_operand_0 for input values.
21726 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
21727 atomic_compare_and_swap<mode>_soft_gusa,
21728 atomic_compare_and_swap<mode>_soft_tcb,
21729 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
21730 arith_reg_operand instead of register_operand.
21731 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
21732 atomic_arith_operand_0 for newval input.
21733 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
21734 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
21735 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
21736 arith_reg_operand instead of register_operand.
21737 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
21738 fetchop_predicate_1, fetchop_constraint_1_llcs,
21739 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
21740 fetchop_constraint_1_imask): New code iterator attributes.
21741 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
21742 register_operand. Use fetchop_predicate_1.
21743 (atomic_fetch_<fetchop_name>si_hard,
21744 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
21745 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
21746 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
21747 and arith_reg_operand instead of register_operand. Use
21748 fetchop_predicate_1, fetchop_constraint_1_gusa.
21749 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
21750 and arith_reg_operand instead of register_operand. Use
21751 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
21753 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
21754 and arith_reg_operand instead of register_operand. Use
21755 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
21757 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
21758 register_operand. Use atomic_logical_operand_1.
21759 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
21760 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
21761 arith_reg_operand instead of register_operand.
21762 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
21763 Use arith_reg_dest and arith_reg_operand instead of register_operand.
21764 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
21765 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
21766 register_operand. Use fetchop_predicate_1.
21767 (atomic_<fetchop_name>_fetchsi_hard,
21768 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
21769 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21770 fetchop_constraint_1_llcs.
21771 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
21772 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21773 fetchop_constraint_1_gusa.
21774 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
21775 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21776 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
21777 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
21778 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21779 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
21780 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
21781 register_operand. Use atomic_logical_operand_1.
21782 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
21783 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
21784 arith_reg_operand instead of register_operand.
21785 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
21786 arith_reg_operand instead of register_operand. Use logical_operand
21787 and K08. Adjust asm sequence to allow R0 usage.
21788 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
21789 arith_reg_operand instead of register_operand. Use logical_operand
21792 2015-01-28 Jakub Jelinek <jakub@redhat.com>
21795 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
21796 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
21797 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
21798 only get_full_len HOST_WIDE_INTs from get_val () array rather than
21799 all bits in *val_wide.
21801 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
21803 * varpool.c (tls_model_names): Fix names.
21804 (varpool_node::dump): Dump tls- prefix for tls models.
21806 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
21807 Bernd Schmidt <bernds@codesourcery.com>
21808 Nathan Sidwell <nathan@codesourcery.com>
21810 * config/nvptx/mkoffload.c: New file.
21811 * config/nvptx/t-nvptx: Add build rules for it.
21812 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
21813 (extra_programs): Add mkoffload.
21814 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
21816 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
21818 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
21820 PR middle-end/64809
21821 * cfgexpand.c (reorder_operands): Skip debug gimples.
21823 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
21825 PR tree-optimization/64277
21826 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
21827 range info when possible to refine estimation.
21829 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
21831 PR tree-optimization/64718
21832 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
21833 be a 16bit unsigned integer when n->range is 16.
21834 (bswap_replace): Convert src to that type if necessary for all bswap
21835 sizes. Fix rotation right notation in nearby comment. Use bswap_type
21836 set in pass_optimize_bswap::execute ().
21838 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
21840 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
21841 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
21842 integer and floating point variants.
21843 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
21845 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
21847 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
21848 for all vector modes.
21850 2015-01-28 Jakub Jelinek <jakub@redhat.com>
21853 * doc/sourcebuild.texi (comdat_group): Document.
21855 2015-01-28 Terry Guo <terry.guo@arm.com>
21857 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
21859 2015-01-27 David Malcolm <dmalcolm@redhat.com>
21861 * toplev.c (print_version): Add param "show_global_state", and
21862 only print GGC and plugin information if it is true.
21863 (init_asm_output): Pass in "true" for the new param when calling
21865 (process_options): Likewise.
21866 (toplev::main): Likewise.
21867 * toplev.h (print_version): Add new param to decl.
21869 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
21873 * tree.c (lookup_binfo_at_offset): New function.
21874 (get_binfo_at_offset): Use it.
21876 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
21879 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
21880 on vtable being vtable.
21882 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
21884 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
21885 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
21886 -mhotpatch= option.
21887 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
21888 -mno-hotpatch options. Change syntax of -mhotpatch= option.
21889 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
21891 (s390_hotpatch_trampoline_halfwords_max): Renamed.
21892 (s390_hotpatch_hw_max): New name.
21893 (s390_hotpatch_trampoline_halfwords): Renamed.
21894 (s390_hotpatch_hw_before_label): New name.
21895 (get_hotpatch_attribute): Removed.
21896 (s390_hotpatch_hw_after_label): New name.
21897 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
21899 (s390_attribute_table): Ditto.
21900 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
21901 (s390_function_num_hotpatch_hw): New name.
21902 Remove special handling of inline functions and hotpatching.
21903 Return number of nops before and after the function label.
21904 (s390_can_inline_p): Removed.
21905 (s390_asm_output_function_label): Emit a configurable number of nops
21906 after the function label.
21907 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
21908 (TARGET_CAN_INLINE_P) Removed.
21909 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
21911 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21912 Jiong Wang <jiong.wang@arm.com>
21914 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
21916 (cb<optab><mode>1): Likewise.
21917 * config/aarch64/iterators.md (bcond): New define_code_attr.
21919 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21921 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
21924 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21926 * config/s390/s390.c (s390_register_move_cost): Increase costs for
21929 2015-01-27 Richard Biener <rguenther@suse.de>
21931 * tree-vrp.c (update_value_range): Intersect the range with
21932 old recorded SSA name range information.
21934 2015-01-27 Nick Clifton <nickc@redhat.com>
21936 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
21937 BC, DE and HL registers directly, not via AX.
21938 When decrementing the stack pointer by a large amount, transfer SP
21939 into AX and perform the subtraction there.
21940 (rl78_expand_epilogue): Perform the inverse of the above
21943 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21945 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
21947 2015-01-27 Jakub Jelinek <jakub@redhat.com>
21948 Yury Gribov <y.gribov@samsung.com>
21951 * ubsan.c (ubsan_source_location): Refactor code.
21952 (ubsan_type_descriptor): Update type size. Refactor code.
21954 2015-01-27 Richard Biener <rguenther@suse.de>
21956 PR tree-optimization/56273
21957 PR tree-optimization/59124
21958 PR tree-optimization/64277
21959 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
21960 from the first VRP pass.
21962 2015-01-27 Jakub Jelinek <jakub@redhat.com>
21965 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
21966 handle the first argument in the same loop as all the other arguments.
21968 PR rtl-optimization/61058
21969 * jump.c (cleanup_barriers): Update basic block boundaries
21970 if BLOCK_FOR_INSN is non-NULL on PREV.
21972 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
21974 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
21975 bounds narrowing, already instrumented calls and calls to
21976 not instrumentable functions.
21978 2015-01-27 Jakub Jelinek <jakub@redhat.com>
21980 PR tree-optimization/64807
21981 * wide-int.cc (wi::divmod_internal): Clear
21982 b_dividend[dividend_blocks_needed].
21984 2015-01-26 DJ Delorie <dj@redhat.com>
21986 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
21987 volatile memory references.
21989 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
21992 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
21994 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
21995 shifts if it already fits into K08.
21997 2015-01-26 Jakub Jelinek <jakub@redhat.com>
22000 * ipa-inline.c (inline_small_functions): Print "unknown" even
22001 if edge->call_stmt is non-NULL, but has builtins or unknown
22004 PR middle-end/64421
22005 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
22006 with asterisk, skip the first character.
22008 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
22011 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
22014 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
22017 * config/i386/i386.md (*movdi_internal): Also check operand 0
22018 to determine TYPE_LEA operand.
22019 (*movsi_internal): Ditto.
22021 2015-01-26 Jakub Jelinek <jakub@redhat.com>
22023 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
22024 OPTION_MASK_QUAD_MEMORY_ATOMIC.
22026 2015-01-26 Renlin Li <renlin.li@arm.com>
22028 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
22030 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
22033 2015-01-26 Richard Biener <rguenther@suse.de>
22035 PR middle-end/64764
22036 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
22037 combining two BIT_AND_EXPR predicates.
22039 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
22042 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
22044 2015-01-26 Terry Guo <terry.guo@arm.com>
22046 * config/arm/arm.c (arm_file_start): Update the assignment of
22047 Tag_ABI_HardFP_use.
22049 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
22051 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
22053 config/arm/arm.md: Include the new Cortex-A57 model.
22054 (generic_sched): Don't use generic_sched when tuning for
22057 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
22058 Uros Bizjak <ubizjak@gmail.com>
22060 * config/i386/i386.c (get_builtin_code_for_version): Add
22061 support for BMI and BMI2 multiversion functions.
22063 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22065 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
22066 (extract_bit_field): Likewise.
22067 (extract_low_bits): Likewise.
22068 (expand_mult): Likewise.
22069 (expand_mult_highpart_adjust): Likewise.
22071 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
22073 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
22074 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
22075 * config/i386/i386.c (processor_model): Add
22076 M_INTEL_COREI7_BROADWELL.
22077 (arch_names_table): Add "broadwell".
22079 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
22088 * config/sh/sh-protos.h
22089 (sh_extending_set_of_reg::can_use_as_unextended_reg,
22090 sh_extending_set_of_reg::use_as_unextended_reg,
22091 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
22092 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
22093 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
22094 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
22095 (sh_treg_insns): New class.
22096 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
22097 (scope_counter): New class.
22098 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
22099 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
22100 sh_extending_set_of_reg::can_use_as_unextended_reg,
22101 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
22102 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
22103 sh_split_treg_set_expr): New functions.
22104 (addsubcosts): Handle treg_set_expr.
22105 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
22106 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
22107 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
22108 (sh_insn_operands_modified_between_p): Make non-static.
22109 * config/sh/predicates.md (zero_extend_movu_operand): Allow
22110 simple_mem_operand in addition to displacement_mem_operand.
22111 (zero_extend_operand): Don't allow zero_extend_movu_operand.
22112 (treg_set_expr, treg_set_expr_not_const01,
22113 arith_reg_or_treg_set_expr): New predicates.
22114 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
22115 arith_or_int_operand instead of logical_operand. Convert to
22116 insn_and_split. Try to optimize constant operand in splitter.
22117 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
22118 (*tstqi_t_zero): Delete.
22119 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
22120 (tstsi_t_and_not): Delete.
22121 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
22122 Convert to insn_and_split.
22123 (unnamed split, tstsi_t_zero_extract_xor,
22124 tstsi_t_zero_extract_subreg_xor_little,
22125 tstsi_t_zero_extract_subreg_xor_big): Delete.
22126 (*tstsi_t_shift_mask): New insn_and_split.
22127 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
22128 to recombine with surrounding insns when splitting.
22129 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
22130 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
22131 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
22132 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
22133 (*cbranch_div0s: Delete.
22134 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
22135 Try to recombine with surrounding insns when splitting. Add operand
22137 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
22138 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
22139 *addc_r_r_msb, *addc_2r_msb): Delete.
22140 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
22142 (*addc_negreg_t): New insn_and_split.
22143 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
22144 Try to recombine with surrounding insns when splitting.
22145 Add operand order variants.
22146 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
22147 insn_and_split patterns.
22148 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
22149 surrounding insns when splitting.
22150 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
22151 (*rotcl): Likewise. Add zero_extract variant.
22152 (*ashrsi2_31): New insn_and_split.
22153 (*negc): Convert to insn_and_split. Use treg_set_expr.
22154 (*zero_extend<mode>si2_disp_mem): Update comment.
22155 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
22157 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
22158 with surrounding insns when splitting.
22159 (any_treg_expr_to_reg): New insn_and_split.
22160 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
22161 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
22162 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
22163 *zero_extract_2): New single bit zero extract patterns.
22164 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
22165 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
22166 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
22167 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
22169 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
22170 register_operand for set source.
22172 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
22174 * i386.opt (prefetch_sse): New targetsave.
22175 * i386.c (ix86_function_specific_save): Save prefetch_sse.
22176 (ix86_function_specific_restore): Restore prefetch_sse and initialize
22177 ix86_cost/ix86_tune_cost.
22179 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22181 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
22182 Support the JIT by using 0 as the language type.
22184 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
22187 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
22188 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
22189 (mark_regno_live, process_bb_lives): Pass new parameter value to
22190 make_hard_regno_born.
22192 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22194 PR rtl-optimization/63637
22195 PR rtl-optimization/60663
22196 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
22197 if elt->cost is MAX_COST for ASM_OPERANDS.
22198 (find_sets_in_insn): Fix up comment typo.
22199 (cse_insn): Don't set src_volatile for all non-volatile
22200 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
22201 or with "memory" clobber. Set elt->cost to MAX_COST
22202 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
22203 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
22205 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
22207 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
22210 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
22212 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
22213 libgcc/config/i386/elf-lib.h.
22215 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22218 * gcc.c (print_configuration): Don't print a blank line at the end
22220 (run_attempt): ... but here unstead.
22222 PR middle-end/64734
22223 * omp-low.c (scan_sharing_clauses): Don't ignore
22224 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
22225 on target data/update constructs.
22227 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
22230 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
22231 (DEBUG_RELOAD): Removed define.
22232 (m32c_limit_reload_class): Enable traces with if DEBUG0.
22233 (m32c_function_arg): Added a type cast.
22234 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
22235 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
22236 * config/m32c/bitops.md (andqi3_16): Likewise.
22237 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
22238 (push_a01_l): Likewise.
22240 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22243 * main.c (main): Construct toplev instances with init_signals=true.
22244 * toplev.c (general_init): Add param "init_signals", and use it to
22245 conditionalize the calls to signal and host_hooks.extra_signals.
22246 (toplev::toplev): Add param "init_signals".
22247 (toplev::main): When invoking general_init, pass m_init_signals
22248 to control whether signal-handlers are installed.
22249 * toplev.h (toplev::toplev): Add param "init_signals".
22250 (toplev::m_init_signals): New field.
22252 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22255 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
22256 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
22257 latter may be affected by the former (e.g. on i686).
22259 2015-01-23 Martin Liska <mliska@suse.cz>
22261 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
22262 false positive during profiledbootstrap.
22264 2015-01-23 Tom de Vries <tom@codesourcery.com>
22267 * lto-opts.c (lto_write_options): Output non-explicit conservative
22269 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
22270 (append_compiler_options): Pass -fopenacc through.
22272 2015-01-23 Tom de Vries <tom@codesourcery.com>
22275 * lto-opts.c (lto_write_options): Output non-explicit conservative
22277 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
22278 (append_compiler_options): Pass -fopenmp through.
22280 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22283 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
22286 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
22287 * diagnostic.def (DK_ICE_NOBT): New kind.
22288 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
22289 like DK_ICE, but never print backtrace.
22290 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
22291 (internal_error_no_backtrace): New function.
22292 * gcc.c (execute): Use internal_error_no_backtrace instead of
22295 2015-01-22 Jeff Law <law@redhat.com>
22298 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
22299 improve code density for small immediate to memory case.
22300 (insv): Better handle bitfield assignments when the field is
22301 being set to all ones.
22302 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
22305 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22306 Jakub Jelinek <jakub@redhat.com>
22308 PR middle-end/64729
22309 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
22310 for !TARGET_LIBC_PROVIDES_SSP version and
22311 -fstack-protector-{all,strong,explicit} otherwise.
22312 * config/freebsd.h (LINK_SSP_SPEC): Handle
22313 -fstack-protector-{strong,explicit}.
22315 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
22316 H.J. Lu <hongjiu.lu@intel.com>
22319 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
22322 2015-01-22 Wei Mi <wmi@google.com>
22324 PR rtl-optimization/64557
22325 * dse.c (record_store): Call get_addr for mem_addr.
22326 (check_mem_read_rtx): Likewise.
22328 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
22330 * fold-const.c (const_binop): Add early return for non-tcc_binary.
22332 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
22334 * toplev.c (init_local_tick): Process the failure when read
22335 fails for random_seed.
22337 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
22338 'pretty_name' to avoid memory overflow.
22340 2015-01-22 Richard Biener <rguenther@suse.de>
22342 PR middle-end/64728
22343 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
22344 abnormal coalescing on undefined SSA names.
22346 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
22350 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
22352 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
22354 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
22356 PR middle-end/63325
22357 * fold-const.c (fold_checksum_tree): Don't include value of
22358 expr->decl_with_vis.symtab_node in the checksum.
22360 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22362 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
22364 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
22367 * gcc.c (insert_comments): New function.
22368 (try_generate_repro): Call it.
22369 (append_text): Removed.
22371 2015-01-22 Richard Biener <rguenther@suse.de>
22373 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
22374 with IL incompatible options. Properly honor user optimize
22377 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
22379 PR rtl-optimization/64682
22380 * combine.c (distribute_notes): When moving a death note for
22381 a register that is set in the new I2, make sure to put it
22382 before that new I2.
22384 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
22386 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
22387 not TARGET_DEFAULT.
22389 2015-01-21 Jakub Jelinek <jakub@redhat.com>
22392 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
22393 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
22394 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
22397 * doc/invoke.texi (-fsanitize=vptr): Document.
22399 PR rtl-optimization/62078
22400 * dse.c: Include cfgcleanup.h.
22401 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
22402 anything call purge_all_dead_edges and cleanup_cfg at the end
22405 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
22407 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
22410 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
22412 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
22415 2015-01-21 David Sherwood <david.sherwood@arm.com>
22416 Tejas Belagod <Tejas.Belagod@arm.com>
22418 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
22419 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
22420 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
22423 2015-01-21 David Sherwood <david.sherwood@arm.com>
22424 Tejas Belagod <Tejas.Belagod@arm.com>
22426 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
22427 (aarch64_reverse_mask): New decls.
22428 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
22429 (insn_count): New mode_attr.
22430 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
22431 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
22432 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
22433 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
22434 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
22435 (aarch64_simd_st4): New patterns.
22436 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
22437 (aarch64_reverse_mask): New functions.
22439 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
22441 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
22443 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
22444 addressing modes for BE.
22445 (aarch64_print_operand): Add 'R' specifier.
22446 (aarch64_simd_disambiguate_copy): Delete.
22447 (aarch64_simd_emit_reg_reg_move): New function.
22448 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
22449 in define_splits for structural moves.
22450 (mov<mode>): Use less restrictive predicates.
22451 (*aarch64_mov<mode>): Simplify and only allow for LE.
22452 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
22454 2015-01-21 Alan Hayward <alan.hayward@arm.com>
22456 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
22458 2015-01-21 Richard Henderson <rth@redhat.com>
22461 * ccmp.c (used_in_cond_stmt_p): Remove.
22462 (expand_ccmp_expr): Don't use it.
22464 2015-01-21 Nick Clifton <nickc@redhat.com>
22466 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
22469 2015-01-21 Richard Biener <rguenther@suse.de>
22471 PR middle-end/64313
22472 * tree-core.h (builtin_info, builtin_info_type): Turn from
22473 an object with two arrays into an array of an object with
22474 decl and two flags, implicit_p and declared_p.
22475 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
22476 set_builtin_decl, set_builtin_decl_implicit_p,
22477 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
22478 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
22479 * builtins.c (builtin_info): Adjust.
22480 * gimplify.c (gimplify_addr_expr): References to builtins
22481 that have been declared by the user makes them eligible for
22482 use by the compiler. Call set_builtin_decl_implicit_p on them.
22484 2015-01-20 Jeff Law <law@redhat.com>
22487 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
22488 allow pc-relative addresses in operand predicates or constraints.
22490 2015-01-21 Bin Cheng <bin.cheng@arm.com>
22492 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
22493 neon on aarch32 processors for stringops.
22495 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22498 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
22500 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22503 * ipa-inline.c: Include lto-streamer.h
22504 (report_inline_failed_reason): Output source file differences and
22505 flags on optimization/target node mismatch.
22506 (can_inline_edge_p): Consider caller to be the outer inline function;
22507 be less restrictive about matching opimize and optimize_size attributes.
22508 (inline_account_function_p): Break out from ...
22509 (inline_small_functions): ... here.
22510 * ipa-inline-transform.c (clone_inlined_nodes): Use
22511 inline_account_function_p.
22512 (inline_call): Use optimize attribution; use inline_account_function_p.
22513 (inline_transform): Use opt_for_fn.
22514 * ipa-inline.h (inline_account_function_p): Declare.
22516 2015-01-20 Jakub Jelinek <jakub@redhat.com>
22519 * dwarf2out.c (decl_piece_node): Don't put bitsize into
22520 mode if bitsize <= 0.
22521 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
22522 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
22523 sizes and positions.
22525 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
22527 * config/nios2/nios2.c (nios2_asm_file_end): Implement
22528 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
22530 (TARGET_ASM_FILE_END): Define.
22532 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22534 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
22535 (struct tune_params): Use the enum.
22536 * arm.c (arm_*_tune): Update.
22537 (arm_option_override): Update.
22539 2015-01-20 Richard Biener <rguenther@suse.de>
22542 * ipa-reference.c (add_static_var): Inline ...
22543 (analyze_function): ... here after splitting out from ...
22544 (is_proper_for_analysis): ... this.
22546 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
22549 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
22550 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
22551 replace the conditional with it's true branch.
22552 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
22553 (arm_lra_p): Remove.
22555 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
22557 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
22559 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22561 * config/tilegx/mul-tables.c: Move symtab.h include after
22562 coretypes.h include.
22563 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
22564 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
22565 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
22566 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
22567 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
22569 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
22573 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
22575 PR rtl-optimization/64081
22576 * loop-iv.c (def_pred_latch_p): New function.
22577 (latch_dominating_def): Allow specific cases with non-single
22579 (iv_get_reaching_def): Likewise.
22580 (check_complex_exit_p): New function.
22581 (check_simple_exit): Use check_complex_exit_p to allow certain cases
22582 with exits not executing on any iteration.
22584 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22587 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
22588 to set branch cost.
22590 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22593 * i386.c (gate): Check flag_expensive_optimizations and
22595 (ix86_option_override_internal): Drop optimize_size condition
22596 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
22597 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
22598 MASK_PREFER_AVX128.
22599 (ix86_avx256_split_vector_move_misalign,
22600 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
22601 * sse.md (all uses of TARGET_PREFER_AVX128): Add
22602 optimize_insn_for_speed_p check.
22604 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
22606 * config/mips/mips.h (FP_ASM_SPEC): New define.
22607 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
22610 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
22613 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
22614 nullptr for insn when reaching the first insn.
22615 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
22616 (sh_insn_operands_modified_between_p): Add nullptr check.
22617 (sh_find_extending_set_of_reg): Fix log message. Don't accept
22618 sign extending mem load if the insn contains any UNSPEC or
22621 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22623 * params.def (inline-unit-growth): Drop to 15%.
22624 * invoke.texi (inline-unit-growth): Document change.
22626 2015-01-19 Martin Liska <mliska@suse.cz>
22629 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
22630 function for second argument of OBJ_TYPE_REF.
22632 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22635 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
22636 whether function is an alias.
22638 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22640 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
22643 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
22645 PR rtl-optimization/64671
22646 * lra-remat.c (operand_to_remat): Don't consider jump and call
22649 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
22652 * config/rs6000/default64.h: Include rs6000-cpus.def.
22653 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
22654 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
22655 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
22657 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
22659 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
22660 pseudo-op to specify assembler dialect.
22662 2015-01-19 Martin Liska <mliska@suse.cz>
22665 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
22666 Handle safe potentially removed nodes during filtering.
22668 2015-01-19 Martin Liska <mliska@suse.cz>
22670 * doc/extend.texi (no_icf): Add new attribute description.
22671 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
22672 where the pass attempts to merge a function with no_icf attribute.
22674 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22677 * doc/md.texi (ARM Options): Document register constraints.
22679 2015-01-19 Jiong Wang <jiong.wang@arm.com>
22680 Andrew Pinski <apinski@cavium.com>
22683 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
22684 (ashl<mode>3): Don't expand if operands[2] is not constant.
22686 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22689 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
22690 Match xor-and-xor RTL pattern.
22692 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
22694 PR rtl-optimization/64081
22695 * loop-iv.c (def_pred_latch_p): New function.
22696 (latch_dominating_def): Allow specific cases with non-single
22698 (iv_get_reaching_def): Likewise.
22699 (check_complex_exit_p): New function.
22700 (check_simple_exit): Use check_complex_exit_p to allow certain cases
22701 with exits not executing on any iteration.
22703 2015-01-19 Jakub Jelinek <jakub@redhat.com>
22705 * common.opt (fgraphite): Fix a typo.
22707 2015-01-19 Felix Yang <felix.yang@huawei.com>
22709 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
22711 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
22712 uminp, smax_nanp, smin_nanp): New builtins.
22713 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
22714 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
22715 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
22716 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
22717 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
22718 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
22719 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
22720 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
22721 vpminnms_f32): Rewrite using builtin functions.
22723 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
22726 * omp-low.c (offload_symbol_decl): Remove variable.
22727 (get_offload_symbol_decl): Remove function.
22728 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
22729 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
22730 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
22731 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
22732 BUILT_IN_GOACC_UPDATE don't pass it at all.
22734 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
22736 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
22739 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
22741 * ipa-chkp.c (chkp_produce_thunks): Add early param
22742 to split thunks production into two passes. Keep
22743 'always_inline' function bodies after the first pass.
22744 (pass_data_ipa_chkp_early_produce_thunks): New.
22745 (pass_ipa_chkp_early_produce_thunks): New.
22746 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
22747 chkp_produce_thunks signature.
22748 (make_pass_ipa_chkp_early_produce_thunks): New.
22749 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
22750 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
22751 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
22753 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
22755 * cgraph.c (cgraph_node::dump): Dump profile flags.
22757 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
22760 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
22761 reg appear first in the parallel.
22763 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
22765 * ipa-reference.c (set_reference_optimization_summary,
22766 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
22768 (ignore_module_statics): New static var.
22769 (propagate_bits): If ipa-reference is disabled, do not look into local
22771 (analyze_function): Disable analysis when ipa_reference is disabled.
22772 (generate_summary): Do not dump when reference is disabled;
22773 collect vars accessed from functions with ipa-reference disabled.
22774 (get_read_write_all_from_node): When ipa-reference is disabled, use the
22776 (gate): Enable for LTO.
22777 (ignore_edge_p): New function.
22778 (propagate): Skip functions w/o ipa-reference analysis.
22779 * optc-save-gen.awk: Handle optimize_debug correctly.
22780 * opth-gen.awk: Likewise.
22781 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
22782 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
22783 fira-share-save-slots, fira-share-spill-slots,
22784 fmodulo-sched-allow-regmoves, fpartial-inlining,
22785 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
22786 ftracer, ftree-parallelize-loops, fassociative-math,
22787 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
22789 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
22790 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
22792 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
22795 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
22798 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
22800 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
22802 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
22804 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
22805 Remove duplicate option listings.
22807 2015-01-18 Felix Yang <felix.yang@huawei.com>
22809 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
22810 (autofdo_source_profile::get_callsite_total_count,
22811 function_instance::get_function_instance_by_decl,
22812 string_table::get_index, string_table::get_index_by_decl,
22813 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
22814 Fix comment typos. Reformatting and minor code rearrangement.
22816 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22818 * config/rs6000/rs6000.md (probe_stack): Delete.
22819 (probe_stack_address): New.
22821 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22823 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
22824 to test for 32-bit ABIs, not !TARGET_POWERPC64.
22826 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22828 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
22829 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
22830 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
22832 (rs6000_libcall_value): Use the new function.
22834 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
22836 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
22838 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
22840 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
22841 implement a more precise life analysis for it during backward scan.
22843 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
22845 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
22847 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
22849 PR rtl-optimization/52773
22850 * calls.c (emit_library_call_value): When pushing arguments use
22851 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
22852 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
22853 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
22855 2015-01-17 Jeff Law <law@redhat.com>
22857 PR rtl-optimization/32790
22858 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
22859 not ZERO_EXTEND in SET_DESTs.
22861 2015-01-17 Alan Modra <amodra@gmail.com>
22863 * cprop.c (do_local_cprop): Revert last change.
22865 2015-01-16 DJ Delorie <dj@redhat.com>
22866 Nick Clifton <nickc@redhat.com>
22868 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
22869 (addhi3_real): Likewise. Fix [HL+0] syntax.
22870 (subqi3_real): Likewise.
22871 (subhi3_real): Likewise.
22872 (cbranchqi4_real): Likewise. Allow saddr,#imm.
22873 (cbranchhi4_real): Likewise.
22874 (cbranchhi4_real_inverted): Likewise.
22875 (cbranchsi4_real_lt): Likewise.
22876 (cbranchsi4_real_ge): Likewise.
22877 (cbranchsi4_real_ge): Likewise.
22878 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
22879 (sub<mode>3_virt): Likewise.
22880 (cbranchqi4_virt): Likewise.
22881 (cbranchhi4_virt): Likewise.
22882 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
22883 always use '[reg+imm]' even when imm is zero.
22884 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
22885 (rl78_general_operand): New.
22886 (rl78_nonimmediate_operand): New.
22887 (rl78_nonfar_operand): Use them.
22888 (rl78_nonfar_nonimm_operand): Likewise.
22889 (rl78_stack_based_mem): Fix.
22890 * config/rl78/constraints.md (Ibqi): New.
22895 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
22896 (iorqi3): Likewise.
22897 (xorqi3): Likewise.
22898 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
22900 * config/rl78/constrains (Qs8): New constraint.
22901 * config/rl78/rl78.c (rl78_flags_already_set): New function.
22902 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
22903 * config/rl78/rl78-real.md (update_Z): New attribute.
22904 Update patterns to set it.
22905 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
22906 shorter compare and branch sequence can be used.
22907 (cbranchhi4_real): Likewise.
22908 (cbranchhi4_real_inverted): Likewise.
22910 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
22911 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
22913 * config/rl78/rl78.c (rl78_get_name_encoding): New.
22914 (rl78_option_override): Allow -mes0 only if C.
22915 (characterize_address): Support subregs of symbol_refs.
22916 (rl78_addr_space_address_mode): Move. Add __near.
22917 (rl78_far_p): Likewise.
22918 (rl78_addr_space_pointer_mode): Likewise.
22919 (rl78_as_legitimate_address): Likewise.
22920 (rl78_addr_space_subset_p): Likewise.
22921 (rl78_addr_space_convert): Likewise.
22922 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
22923 symbols with -mes0.
22924 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
22926 (rl78_alloc_physical_registers_op1): Change logic to prefer
22927 symbol[BC] addressing.
22928 (frodata_section): New.
22929 (rl78_asm_init_sections): Initialize it.
22930 (rl78_select_section): Put __far readonly symbols in .frodata.
22931 (rl78_make_type_far): New.
22932 (rl78_insert_attributes): Force all readonly symbols to be
22934 (rl78_asm_out_integer): New.
22935 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
22936 * config/rl78/rl78.opt (-mes0): New.
22938 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
22939 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
22940 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
22941 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
22942 (rl78_saddr_p): New.
22943 (rl78_output_aligned_common): New.
22944 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
22945 (rl78_handle_saddr_attribute): New.
22946 (rl78_handle_naked_attribute): New.
22947 (rl78_attribute_table): Add saddr.
22948 (rl78_print_operand_1): Don't print '!' on saddr operands.
22949 (rl78_print_operand_1): Strip encodings.
22951 (rl78_strip_name_encoding): New.
22952 (rl78_attrlist_to_encoding): New.
22953 (rl78_encode_section_info): New.
22954 (rl78_asm_init_sections): New.
22955 (rl78_select_section): New.
22956 (rl78_output_labelref): New.
22957 (rl78_output_aligned_common): New.
22958 (rl78_asm_out_integer): New.
22959 (rl78_asm_ctor_dtor): New.
22960 (rl78_asm_constructor): New.
22961 (rl78_asm_destructor): New.
22963 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
22964 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
22965 (transcode_memory_rtx): Update.
22966 (rl78_expand_epilogue): Use A_REG instead of 0.
22968 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22970 * config/arm/arm-protos.h (struct tune_params): New field
22971 sched_autopref_queue_depth.
22972 * config/arm/arm.c (sched-int.h): Include header.
22973 (arm_first_cycle_multipass_dfa_lookahead_guard,)
22974 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
22975 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
22976 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
22977 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
22978 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
22979 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
22980 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
22981 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
22982 * config/arm/t-arm (arm.o): Update.
22983 * haifa-sched.c (update_insn_after_change): Update.
22984 (rank_for_schedule): Use auto-prefetcher model, if requested.
22985 (autopref_multipass_init): New static function.
22986 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
22987 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
22988 variable for debug dumps.
22989 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
22990 (autopref_multipass_dfa_lookahead_guard): New global function that
22991 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
22992 (init_h_i_d): Update.
22993 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
22994 * sched-int.h (enum autopref_multipass_data_status): New const enum.
22995 (autopref_multipass_data_): Structure for auto-prefetcher data.
22996 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
22997 (struct _haifa_insn_data:autopref_multipass_data): New field.
22998 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
22999 (autopref_multipass_dfa_lookahead_guard): Declare.
23001 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23003 * rtlanal.c (get_base_term): Handle SCRATCH.
23005 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23007 * config/aarch64/aarch64.c
23008 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
23009 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
23011 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
23012 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
23014 2015-01-17 Alan Modra <amodra@gmail.com>
23016 * cprop.c (do_local_cprop): Disallow replacement of fixed
23019 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23022 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
23025 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
23027 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
23028 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
23030 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23032 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
23033 * config/arm/thumb1.md: ... Here.
23035 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23037 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
23038 TImode for TARGET_32BIT.
23040 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23042 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
23043 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
23045 (rs6000_abi_word_mode): New function.
23047 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23049 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
23050 instead of UNITS_PER_WORD to describe the size of stack slots.
23052 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23054 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
23055 as rs6000_promote_function_mode. Move comment to there.
23056 (rs6000_promote_function_mode): New function.
23058 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23060 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
23061 -mpowerpc64 is active.
23063 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
23065 PR middle-end/64353
23066 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
23069 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
23071 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
23072 introduced in revision 219724.
23074 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23075 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23078 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
23079 destination is not a GP reg.
23080 (*movdi_aarch64): Likewise.
23082 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
23085 * config/rs6000/default64.h: Revert ISA change.
23087 2015-01-16 Richard Biener <rguenther@suse.de>
23089 PR middle-end/64614
23090 * tree-ssa-uninit.c: Include tree-cfg.h.
23091 (MAX_SWITCH_CASES): New define.
23092 (convert_control_dep_chain_into_preds): Handle switch statements.
23093 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
23094 (normalize_one_pred_1): Do not split bit-manipulations.
23097 2015-01-16 Richard Biener <rguenther@suse.de>
23099 PR tree-optimization/64568
23100 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
23101 complex load rewriting for TARGET_MEM_REFs.
23103 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
23105 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
23107 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
23110 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
23112 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
23113 (aarch64_lra_p): Remove.
23115 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
23118 * ipa-chkp.h (chkp_instrumentable_p): New.
23119 * ipa-chkp.c: Include tree-inline.h.
23120 (chkp_instrumentable_p): New.
23121 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
23122 Fix processing of not instrumentable functions.
23123 (chkp_versioning): Use chkp_instrumentable_p. Warn about
23124 not instrumentable functions.
23125 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
23126 chkp_instrumentable_p.
23127 * tree-inline.h (copy_forbidden): New.
23128 * tree-inline.c (copy_forbidden): Not static anymore.
23130 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23132 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
23135 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
23137 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
23138 type OP_OUT to OP_INOUT.
23140 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
23142 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
23143 (high x) y) to y if x and y have the same base.
23145 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
23147 * config/arm/cortex-a57.md: New.
23148 * config/aarch64/aarch64.md: Include it.
23149 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
23150 * config/aarch64/aarch64-tune.md: Regenerate.
23152 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
23155 * ccmp.c (expand_ccmp_next): New function.
23156 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
23157 and compare insn sequence.
23158 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
23159 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
23160 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
23161 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
23162 (*ccmp_ior): Changed to ccmp_ior<mode>.
23163 (cmp<mode>): New pattern.
23164 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
23166 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
23168 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
23170 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
23171 _mm256_bsrli_epi128): New.
23172 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
23174 2015-01-15 Jiong Wang <jiong.wang@arm.com>
23176 * expmed.c (store_bit_field_using_insv): Improve warning message.
23177 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
23179 2015-01-15 Jiong Wang <jiong.wang@arm.com>
23181 PR rtl-optimization/64011
23182 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
23183 there is partial overflow.
23185 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23187 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
23189 (nds32_expand_epilogue_v3pop): Likewise.
23190 * config/nds32/nds32.md (sibcall): Define this for sibling call
23192 (sibcall_register): Likewise.
23193 (sibcall_immediate): Likewise.
23194 (sibcall_value): Likewise.
23195 (sibcall_value_register): Likewise.
23196 (sibcall_value_immediate): Likewise.
23197 (sibcall_epilogue): Likewise.
23198 (epilogue): Pass false to indicate this is not a sibcall epilogue.
23199 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
23200 (nds32_expand_epilogue_v3pop): Likewise.
23202 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23204 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
23205 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
23206 (return_internal): New.
23207 (return): Define this named pattern.
23208 (simple_return): Define this named pattern.
23209 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
23210 pattern instead of unspec_volatile_func_return.
23211 (nds32_expand_epilogue_v3pop): Likewise.
23212 (nds32_can_use_return_insn): New function.
23214 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23216 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
23217 * config/nds32/nds32.md (pop25return): New.
23218 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
23219 pop25return pattern.
23221 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23223 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
23224 -mforbid-fp-as-gp, and -mex9 options.
23226 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23228 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
23229 remove -mgp-direct option.
23231 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23233 * doc/invoke.texi (--param early-inlining-insns): Update default value.
23234 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
23236 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23238 * ipa-inline.c (inline_small_functions): Work around hints
23241 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
23244 * doc/invoke.texi (Option Summary): Document new Nios II
23246 (Nios II Options): Likewise.
23247 * config/nios2/nios2.opt: Add -mgpopt= option support.
23248 Modify existing -mgpopt and -mno-gpopt options to be aliases.
23249 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
23250 * config/nios2/nios2.c (nios2_option_override): Adjust
23251 -mgpopt defaulting.
23252 (nios2_in_small_data_p): Return true for explicit small data
23253 sections even with -G0.
23254 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
23257 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23260 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
23262 (inline_call): Fix removal of aliases.
23264 2015-01-15 Jakub Jelinek <jakub@redhat.com>
23266 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
23267 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
23268 * opts.c (common_handle_option): Add -fsanitize=vptr.
23269 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
23270 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
23271 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
23272 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
23273 (ubsan_expand_vptr_ifn): New prototype.
23274 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
23275 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
23276 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
23277 expand_LOOP_VECTORIZED): Make argument nameless, remove
23279 (expand_UBSAN_VPTR): New function.
23280 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
23282 (UBSAN_VPTR): New internal function.
23283 * sanopt.c (tree_map_traits): Renamed to ...
23284 (sanopt_tree_map_traits): ... this.
23285 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
23286 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
23287 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
23288 (maybe_optimize_ubsan_vptr_ifn): New function.
23289 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
23290 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
23292 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
23293 internal calls like pure functions for aliasing, even when they
23294 have other side-effects that prevent making them ECF_PURE.
23295 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
23296 (ubsan_expand_vptr_ifn): New function.
23298 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
23300 PR rtl-optimization/64110
23301 * stmt.c (parse_output_constraint): Process '^' and '$'.
23302 (parse_input_constraint): Ditto.
23303 * lra-constraints.c (process_alt_operands): Process the new
23305 * ira-costs.c (record_reg_classes): Process the new constraint
23307 * genoutput.c (indep_constraints): Add '^' and '$'.
23308 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
23309 * doc/md.texi: Add description of the new constraints.
23311 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
23312 Bernd Schmidt <bernds@codesourcery.com>
23313 Cesar Philippidis <cesar@codesourcery.com>
23314 James Norris <jnorris@codesourcery.com>
23315 Tom de Vries <tom@codesourcery.com>
23316 Ilmir Usmanov <i.usmanov@samsung.com>
23317 Dmitry Bocharnikov <dmitry.b@samsung.com>
23318 Evgeny Gavrin <e.gavrin@samsung.com>
23319 Jakub Jelinek <jakub@redhat.com>
23321 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
23322 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23323 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23324 New function types.
23325 * builtins.c: Include "gomp-constants.h".
23326 (expand_builtin_acc_on_device): New function.
23327 (expand_builtin, is_inexpensive_builtin): Handle
23328 BUILT_IN_ACC_ON_DEVICE.
23329 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
23331 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
23333 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
23334 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
23335 i386/intelmic-offload.h.
23336 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
23337 to libgomp and its dependencies.
23338 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
23339 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
23340 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
23341 * config/ia64/hpux.h (LIB_SPEC): Likewise.
23342 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
23343 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
23344 * doc/generic.texi: Update for OpenACC changes.
23345 * doc/gimple.texi: Likewise.
23346 * doc/invoke.texi: Likewise.
23347 * doc/sourcebuild.texi: Likewise.
23348 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
23349 GF_OMP_FOR_KIND_OACC_LOOP.
23350 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
23351 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
23352 GF_OMP_TARGET_KIND_OACC_UPDATE,
23353 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
23355 * gimple.c: Update comments for OpenACC changes.
23356 * gimple.def: Likewise.
23357 * gimple.h: Likewise.
23358 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
23359 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
23360 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
23361 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
23362 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
23364 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
23365 * gimplify.c: Include "gomp-constants.h".
23366 Update comments for OpenACC changes.
23367 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
23368 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
23369 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
23370 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
23371 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
23372 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
23373 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
23374 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
23375 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
23377 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
23378 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
23379 OMP_CLAUSE_SET_MAP_KIND.
23380 (gimplify_oacc_cache): New function.
23381 (gimplify_omp_for): Handle OACC_LOOP.
23382 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
23384 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
23385 OACC_EXIT_DATA, OACC_UPDATE.
23386 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
23387 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
23388 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
23389 (gimplify_body): Consider flag_openacc next to flag_openmp.
23390 * lto-streamer-out.c: Include "gomp-constants.h".
23391 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
23392 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
23393 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
23394 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
23395 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
23396 (BUILT_IN_ACC_ON_DEVICE): New builtins.
23397 * omp-low.c: Include "gomp-constants.h".
23398 Update comments for OpenACC changes.
23399 (struct omp_context): Add reduction_map, gwv_below, gwv_this
23401 (extract_omp_for_data, use_pointer_for_field, install_var_field)
23402 (new_omp_context, delete_omp_context, scan_sharing_clauses)
23403 (create_omp_child_function, scan_omp_for, scan_omp_target)
23404 (check_omp_nesting_restrictions, lower_reduction_clauses)
23405 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
23406 Update for OpenACC changes.
23407 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
23408 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
23409 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
23410 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
23411 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
23412 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
23414 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
23415 Handle GF_OMP_FOR_KIND_OACC_LOOP.
23416 (expand_omp_target, lower_omp_target): Handle
23417 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
23418 GF_OMP_TARGET_KIND_OACC_UPDATE,
23419 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
23420 GF_OMP_TARGET_KIND_OACC_DATA.
23421 (pass_expand_omp::execute, execute_lower_omp)
23422 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
23424 (offload_symbol_decl): New variable.
23425 (oacc_get_reduction_array_id, oacc_max_threads)
23426 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
23427 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
23428 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
23429 (oacc_gimple_assign, oacc_initialize_reduction_data)
23430 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
23432 (is_targetreg_ctx): Remove function.
23433 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
23434 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
23435 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
23436 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
23437 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
23438 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
23439 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
23440 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
23441 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
23442 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
23443 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
23444 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
23445 * tree-core.h: Update comments for OpenACC changes.
23446 (enum omp_clause_map_kind): Remove.
23447 (struct tree_omp_clause): Change type of map_kind member from enum
23448 omp_clause_map_kind to unsigned char.
23449 * tree-inline.c: Update comments for OpenACC changes.
23450 * tree-nested.c: Likewise. Include "gomp-constants.h".
23451 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
23452 (convert_tramp_reference_stmt, convert_gimple_call): Update for
23453 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
23454 OMP_CLAUSE_SET_MAP_KIND.
23455 * tree-pretty-print.c: Include "gomp-constants.h".
23456 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
23457 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
23458 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
23459 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
23460 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
23461 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
23462 instead of OMP_CLAUSE_MAP_*.
23463 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
23464 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
23465 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
23466 * tree-streamer-in.c: Include "gomp-constants.h".
23467 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
23468 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
23469 * tree-streamer-out.c: Include "gomp-constants.h".
23470 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
23472 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
23473 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
23474 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
23475 * tree.c (omp_clause_num_ops): Update accordingly.
23476 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
23478 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
23479 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
23480 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
23481 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
23482 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
23483 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
23484 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
23485 (OMP_CLAUSE_SET_MAP_KIND): New macro.
23486 * varpool.c (varpool_node::get_create): Consider flag_openacc next
23488 * config/i386/intelmic-offload.h: New file.
23489 * config/nvptx/offload.h: Likewise.
23491 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23493 * explow.h: Remove duplicate contents.
23494 * dojump.h: Likewise.
23496 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
23498 * arm.c (arm_xgene_tune): Add default initializer for instruction
23501 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23505 * ipa.c (symbol_table::remove_unreachable_nodes):
23506 Do not put abstract origins into boundary.
23508 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
23510 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
23511 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
23513 2015-01-15 Steve Ellcey <sellcey@mips.com>
23515 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
23516 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
23517 builtins.def, and chkp-builtins.def.
23519 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
23521 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
23524 2015-01-15 Richard Biener <rguenther@suse.de>
23526 PR tree-optimization/61743
23527 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
23528 information on PHIs for some simple cases.
23530 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23532 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
23534 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
23535 * config/arm/arm-cores.def (xgene1): New entry.
23536 * config/arm/arm-tables.opt: Regenerate.
23537 * config/arm/arm-tune.md: Regenerate.
23538 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
23540 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
23542 * tree-if-conv.c: Include hash-map.h.
23543 (aggressive_if_conv): New variable.
23544 (fold_build_cond_expr): Add simplification of non-zero condition.
23545 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
23546 destination block is not always executed.
23547 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
23548 than two predecessors if AGGRESSIVE_IF_CONV is true.
23549 (if_convertible_stmt_p): Fix commentary.
23550 (all_preds_critical_p): New function.
23551 (has_pred_critical_p): New function.
23552 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
23553 BB can have more than two predecessors and all incoming edges can be
23555 (predicate_bbs): Skip predication for loop exit block, use build2_loc
23556 to compute predicate for true edge.
23557 (find_phi_replacement_condition): Delete this function.
23558 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
23559 Allow interchange PHI arguments if EXTENDED is false.
23560 Change check that block containing reduction statement candidate
23561 is predecessor of phi-block since phi may have more than two arguments.
23562 (phi_args_hash_traits): New helper structure.
23563 (struct phi_args_hash_traits): New type.
23564 (phi_args_hash_traits::hash): New function.
23565 (phi_args_hash_traits::equal_keys): New function.
23566 (gen_phi_arg_condition): New function.
23567 (predicate_scalar_phi): Add handling of phi nodes with more than two
23568 arguments, delete COND and TRUE_BB arguments, insert body of
23569 find_phi_replacement_condition to predicate ordinary phi nodes.
23570 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
23571 delete call of find_phi_replacement_condition and invoke
23572 predicate_scalar_phi with two arguments.
23573 (insert_gimplified_predicates): Add assert that non-predicated block
23574 don't have statements to insert.
23575 (ifcvt_split_critical_edges): New function.
23576 (ifcvt_split_def_stmt): Likewise.
23577 (ifcvt_walk_pattern_tree): Likewise.
23578 (stmt_is_root_of_bool_pattern): Likewise.
23579 (ifcvt_repair_bool_pattern): Likewise.
23580 (ifcvt_local_dce): Likewise.
23581 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
23582 is copy of inner or outer loop force_vectorize field, invoke
23583 ifcvt_split_critical_edges, ifcvt_local_dce and
23584 ifcvt_repair_bool_pattern for aggressive if-conversion.
23586 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
23588 * config/aarch64/aarch64.md: Include xgene1.md.
23589 * config/aarch64/xgene1.md: New file.
23591 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23593 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
23594 xgene1 (APM XGene-1) core definition.
23595 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
23596 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
23597 * doc/invoke.texi: Document -mcpu=xgene1.
23599 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23601 * dojump.h: New header file.
23602 * explow.h: Likewise.
23603 * expr.h: Remove includes.
23604 Move expmed.c prototypes to expmed.h.
23605 Move dojump.c prototypes to dojump.h.
23606 Move alias.c prototypes to alias.h.
23607 Move explow.c prototypes to explow.h.
23608 Move calls.c prototypes to calls.h.
23609 Move emit-rtl.c prototypes to emit-rtl.h.
23610 Move varasm.c prototypes to varasm.h.
23611 Move stmt.c prototypes to stmt.h.
23612 (saved_pending_stack_adjust): Move to dojump.h.
23613 (adjust_address): Move to explow.h.
23614 (adjust_address_nv): Move to emit-rtl.h.
23615 (adjust_bitfield_address): Likewise.
23616 (adjust_bitfield_address_size): Likewise.
23617 (adjust_bitfield_address_nv): Likewise.
23618 (adjust_automodify_address_nv): Likewise.
23619 * explow.c (expr_size): Move to expr.c.
23620 (int_expr_size): Likewise.
23621 (tree_expr_size): Likewise.
23622 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23623 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
23624 * genemit.c (main): Generate includes statistics.h, real.h,
23625 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
23627 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
23628 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
23629 explow.h, emit-rtl.h, stmt.h.
23630 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
23631 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
23632 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
23633 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
23634 emit-rtl.h, varasm.h, stmt.h.
23635 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
23636 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
23637 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
23638 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
23639 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
23640 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
23641 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
23642 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
23643 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
23644 tm.h tree.h varasm.h vec.h wide-int.h.
23645 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23646 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
23647 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
23648 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
23649 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
23650 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
23651 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
23652 * loop-iv.c: Likewise.
23653 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
23654 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
23655 statistics.h stmt.h tree.h varasm.h wide-int.h.
23656 * lra-constraints.c: Likewise.
23657 * lra-eliminations.c: Likewise.
23658 * lra-lives.c: Likewise.
23659 * lra-remat.c: Likewise.
23660 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23661 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
23662 statistics.h stmt.h tree.h varasm.h wide-int.h.
23663 * hw-doloop.c: Likewise.
23664 * ira-color.c: Likewise.
23665 * ira-emit.c: Likewise.
23666 * loop-doloop.c: Likewise.
23667 * loop-invariant.c: Likewise.
23668 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23669 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
23670 statistics.h stmt.h tree.h varasm.h wide-int.h.
23671 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
23672 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
23673 statistics.h stmt.h tree.h varasm.h wide-int.h.
23674 * combine-stack-adj.c: Likewise.
23677 * ifcvt.c: Likewise.
23678 * ira-costs.c: Likewise.
23679 * jump.c: Likewise.
23680 * lra-coalesce.c: Likewise.
23681 * lra-spills.c: Likewise.
23682 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23683 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
23684 stmt.h varasm.h wide-int.h.
23685 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23686 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
23688 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
23689 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
23690 statistics.h stmt.h varasm.h wide-int.h.
23691 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
23692 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
23693 varasm.h wide-int.h.
23694 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
23695 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23696 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
23697 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
23698 statistics.h stmt.h.
23699 * config/tilepro/tilepro.c: Likewise.
23700 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
23701 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
23702 * config/pdp11/pdp11.c: Likewise.
23703 * config/xtensa/xtensa.c: Likewise.
23704 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
23705 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
23707 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23708 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
23709 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
23710 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23711 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
23712 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
23713 * rtl-chkp.c: Likewise.
23714 * tree-chkp-opt.c: Likewise.
23715 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
23716 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
23717 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
23718 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23719 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
23720 statistics.h stmt.h.
23721 * tree-vect-data-refs.c: Likewise.
23722 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
23723 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23724 rtl.h statistics.h stmt.h varasm.h.
23725 * internal-fn.c: Likewise.
23726 * ipa-icf-gimple.c: Likewise.
23727 * lto-section-out.c: Likewise.
23728 * tree-data-ref.c: Likewise.
23729 * tree-nested.c: Likewise.
23730 * tree-outof-ssa.c: Likewise.
23731 * tree-predcom.c: Likewise.
23732 * tree-pretty-print.c: Likewise.
23733 * tree-scalar-evolution.c: Likewise.
23734 * tree-ssa-strlen.c: Likewise.
23735 * tree-vect-loop.c: Likewise.
23736 * tree-vect-patterns.c: Likewise.
23737 * tree-vect-slp.c: Likewise.
23738 * tree-vect-stmts.c: Likewise.
23739 * tsan.c: Likewise.
23740 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23741 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
23743 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
23744 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23745 statistics.h stmt.h varasm.h.
23746 * loop-unroll.c: Likewise.
23747 * ubsan.c: Likewise.
23748 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
23749 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
23751 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23752 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
23753 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
23754 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
23755 statistics.h stmt.h.
23756 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
23757 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
23758 statistics.h stmt.h varasm.h.
23759 * gimple-match-head.c: Likewise.
23760 * lto-cgraph.c: Likewise.
23761 * lto-section-in.c: Likewise.
23762 * lto-streamer-in.c: Likewise.
23763 * lto-streamer-out.c: Likewise.
23764 * tree-affine.c: Likewise.
23765 * tree-cfg.c: Likewise.
23766 * tree-cfgcleanup.c: Likewise.
23767 * tree-if-conv.c: Likewise.
23768 * tree-into-ssa.c: Likewise.
23769 * tree-ssa-alias.c: Likewise.
23770 * tree-ssa-copyrename.c: Likewise.
23771 * tree-ssa-dse.c: Likewise.
23772 * tree-ssa-forwprop.c: Likewise.
23773 * tree-ssa-live.c: Likewise.
23774 * tree-ssa-math-opts.c: Likewise.
23775 * tree-ssa-pre.c: Likewise.
23776 * tree-ssa-sccvn.c: Likewise.
23777 * tree-tailcall.c: Likewise.
23778 * tree-vect-generic.c: Likewise.
23779 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23780 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
23781 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23782 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
23783 * varasm.c: Likewise.
23784 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23785 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
23787 * init-regs.c: Likewise.
23789 * omp-low.c: Likewise.
23790 * stack-ptr-mod.c: Likewise.
23791 * tree-ssa-reassoc.c: Likewise.
23792 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23793 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
23795 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23796 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
23797 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23798 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
23799 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23800 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
23801 * tree-ssa-phiopt.c: Likewise.
23802 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23803 fixed-value.h hashtab.h real.h statistics.h stmt.h.
23804 * config/fr30/fr30.c: Likewise.
23805 * config/frv/frv.c: Likewise.
23806 * expr.c: Likewise.
23807 * final.c: Likewise.
23808 * optabs.c: Likewise.
23809 * passes.c: Likewise.
23810 * simplify-rtx.c: Likewise.
23811 * stmt.c: Likewise.
23812 * toplev.c: Likewise.
23813 * var-tracking.c: Likewise.
23814 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23815 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23816 * lower-subreg.c: Likewise.
23817 * postreload-gcse.c: Likewise.
23819 * reginfo.c: Likewise.
23820 * store-motion.c: Likewise.
23821 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23822 fixed-value.h hashtab.h real.h stmt.h varasm.h.
23823 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23824 fixed-value.h hashtab.h statistics.h stmt.h.
23825 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23826 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
23827 * except.c: Likewise.
23828 * explow.c: Likewise.
23829 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23830 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
23832 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23833 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
23834 * tree-ssa-structalias.c: Likewise.
23835 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23836 fixed-value.h insn-config.h real.h statistics.h.
23837 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23838 fixed-value.h insn-config.h real.h statistics.h stmt.h.
23839 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23840 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
23841 * cfgbuild.c: Likewise.
23842 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23843 fixed-value.h real.h rtl.h statistics.h stmt.h.
23844 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23845 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23846 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23847 fixed-value.h real.h statistics.h stmt.h.
23848 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23849 fixed-value.h real.h statistics.h stmt.h varasm.h.
23850 * cprop.c: Likewise.
23851 * modulo-sched.c: Likewise.
23852 * postreload.c: Likewise.
23853 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
23854 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
23855 statistics.h stmt.h varasm.h.
23856 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
23857 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23858 rtl.h statistics.h stmt.h varasm.h.
23859 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
23860 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
23862 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
23863 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
23865 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
23866 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
23868 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
23869 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23870 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23871 function.h real.h statistics.h stmt.h varasm.h.
23872 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23873 insn-config.h real.h statistics.h stmt.h.
23874 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23875 statistics.h stmt.h.
23876 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
23877 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
23878 statistics.h stmt.h varasm.h.
23879 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
23880 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
23881 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23882 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
23883 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
23884 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
23885 statistics.h stmt.h varasm.h.
23886 * ipa-polymorphic-call.c: Likewise.
23887 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
23888 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23889 statistics.h stmt.h.
23890 * config/c6x/c6x.c: Likewise.
23891 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
23892 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23893 statistics.h stmt.h varasm.h.
23894 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
23895 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
23897 * ipa-split.c: Likewise.
23898 * tree-eh.c: Likewise.
23899 * tree-ssa-dce.c: Likewise.
23900 * tree-ssa-loop-niter.c: Likewise.
23901 * tree-vrp.c: Likewise.
23902 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
23903 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
23905 * config/nds32/nds32-fp-as-gp.c: Likewise.
23906 * config/nds32/nds32-intrinsic.c: Likewise.
23907 * config/nds32/nds32-isr.c: Likewise.
23908 * config/nds32/nds32-md-auxiliary.c: Likewise.
23909 * config/nds32/nds32-memory-manipulation.c: Likewise.
23910 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23911 * config/nds32/nds32-predicates.c: Likewise.
23912 * config/nds32/nds32.c: Likewise.
23913 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
23914 fixed-value.h hashtab.h real.h statistics.h.
23915 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
23916 fixed-value.h hashtab.h real.h statistics.h stmt.h.
23917 * config/arm/arm.c: Likewise.
23918 * config/avr/avr.c: Likewise.
23919 * config/bfin/bfin.c: Likewise.
23920 * config/h8300/h8300.c: Likewise.
23921 * config/i386/i386.c: Likewise.
23922 * config/ia64/ia64.c: Likewise.
23923 * config/iq2000/iq2000.c: Likewise.
23924 * config/m32c/m32c.c: Likewise.
23925 * config/m32r/m32r.c: Likewise.
23926 * config/m68k/m68k.c: Likewise.
23927 * config/mcore/mcore.c: Likewise.
23928 * config/mep/mep.c: Likewise.
23929 * config/mips/mips.c: Likewise.
23930 * config/mn10300/mn10300.c: Likewise.
23931 * config/moxie/moxie.c: Likewise.
23932 * config/pa/pa.c: Likewise.
23933 * config/rl78/rl78.c: Likewise.
23934 * config/rx/rx.c: Likewise.
23935 * config/s390/s390.c: Likewise.
23936 * config/sh/sh.c: Likewise.
23937 * config/sparc/sparc.c: Likewise.
23938 * config/spu/spu.c: Likewise.
23939 * config/stormy16/stormy16.c: Likewise.
23940 * config/v850/v850.c: Likewise.
23941 * config/vax/vax.c: Likewise.
23942 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
23943 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23944 * config/msp430/msp430.c: Likewise.
23945 * predict.c: Likewise.
23946 * value-prof.c: Likewise.
23947 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
23948 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
23949 * config/microblaze/microblaze.c: Likewise.
23950 * config/nios2/nios2.c: Likewise.
23951 * config/rs6000/rs6000.c: Likewise.
23952 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23953 insn-config.h real.h rtl.h statistics.h stmt.h.
23954 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23955 insn-config.h real.h statistics.h stmt.h.
23956 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
23957 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
23958 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
23959 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23960 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
23961 fixed-value.h real.h statistics.h stmt.h.
23962 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
23963 fixed-value.h statistics.h stmt.h.
23964 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
23967 2015-01-15 Jakub Jelinek <jakub@redhat.com>
23969 * gengtype.c (create_user_defined_type): Workaround
23970 -Wmaybe-uninitialized false positives.
23971 * cse.c (fold_rtx): Likewise.
23972 * loop-invariant.c (gain_for_invariant): Likewise.
23974 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
23976 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
23977 set the memory attributes in all cases but clear MEM_EXPR if need be.
23979 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
23981 PR tree-optimization/64434
23982 * cfgexpand.c (reorder_operands): New function.
23983 (expand_gimple_basic_block): Insert call of reorder_operands if
23986 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
23988 * config/mips/micromips.md (*swp): Remove explicit parallel.
23989 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
23990 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
23991 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
23992 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
23993 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
23994 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
23995 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
23996 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
23997 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
23998 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
23999 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
24000 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
24001 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
24002 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
24003 (mips_wrdsp): Likewise.
24004 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
24006 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
24007 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
24008 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
24009 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
24010 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
24011 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
24012 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
24013 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
24014 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
24016 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24018 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
24019 (mips_print_operand): Support 'y' to print exact log2 in decimal
24021 * config/mips/mips.h (ISA_HAS_LSA): New define.
24022 (ISA_HAS_DLSA): Likewise.
24023 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
24024 * config/mips/predicates.md (const_immlsa_operand): New predicate.
24026 2015-01-15 Martin Liska <mliska@suse.cz>
24029 * optc-save-gen.awk: Add support for array types.
24031 2015-01-15 Richard Biener <rguenther@suse.de>
24033 PR middle-end/64365
24034 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
24035 for MEM_REF access functions with the same base can never partially
24038 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
24040 * common.opt: New option -fstack-protector-explicit.
24041 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
24042 (stack_protect_decl_phase): Handle stack_protect attribute for
24043 explicit stack protection requests.
24044 (expand_used_vars): Similarly.
24045 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
24046 * doc/extend.texi: Add documentation for "stack_protect" attribute.
24047 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
24049 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
24052 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
24054 (sh_extending_set_of_reg): New struct.
24055 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
24056 sh_remove_reg_dead_or_unused_notes): New Declarations.
24057 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
24058 sh_find_extending_set_of_reg, sh_split_tst_subregs,
24059 sh_extending_set_of_reg::use_as_extended_reg): New functions.
24060 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
24061 convert to insn_and_split and use new function sh_split_tst_subregs.
24063 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
24065 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
24067 (Optimization Options): Move -fuse-ld documentation to...
24068 (Link Options): ...here.
24070 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24072 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
24074 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
24075 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
24076 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
24077 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
24078 instead of ZR for the memory operand of LL/SC.
24079 (compare_and_swap_12, sync_add<mode>): Likewise.
24080 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
24081 (sync_new_<optab>_12, sync_nand_12): Likewise.
24082 (sync_old_nand_12, sync_new_nand_12): Likewise.
24083 (sync_sub<mode>, sync_old_add<mode>): Likewise.
24084 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
24085 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
24086 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
24087 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
24088 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
24089 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
24090 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
24091 * doc/md.texi (ZC): Update description.
24093 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
24095 * builtins.c (expand_builtin_atomic_exchange): Remove error when
24096 memory model is CONSUME.
24097 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
24098 expand_builtin_atomic_store): Change invalid memory model errors to
24100 (expand_builtin_atomic_clear): Change invalid model errors to warnings
24101 and issue warning for CONSUME.
24103 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
24105 * lto-cgraph: Update function comments for
24106 lto_symtab_encoder_encode_*.
24108 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
24110 * Makefile.in (site.exp): Do not set ENABLE_LTO.
24112 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
24114 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
24115 * lto-cgraph.c (select_what_to_stream): Remove argument, use
24116 lto_stream_offload_p instead.
24117 * lto-streamer.h (select_what_to_stream): Remove argument.
24118 * passes.c (ipa_write_summaries): Likewise.
24119 * tree-pass.h (ipa_write_summaries): Likewise.
24121 2015-01-14 Richard Biener <rguenther@suse.de>
24123 PR tree-optimization/59354
24124 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
24125 groups larger than the slp group size as having gaps.
24127 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
24129 PR middle-end/59448
24130 * builtins.c (get_memmodel): Promote consume to acquire always.
24132 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24135 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
24138 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24141 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
24143 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
24144 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
24145 AVX512VBMI, as it implies AVX512BW.
24147 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24150 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
24151 (vec_unpacks_hi_v16sf): Ditto.
24153 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24155 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
24158 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24160 * doc/invoke.texi (mapcs): Mention deprecation.
24161 (mapcs-frame): Likewise.
24163 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
24166 * config/arm/arm.c (callee_saved_reg_p): Define.
24167 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
24168 register is callee saved instead of !call_used_regs[reg].
24169 (thumb1_compute_save_reg_mask): Likewise.
24171 2015-01-14 Hale Wang <hale.wang@arm.com>
24173 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
24176 2015-01-14 Richard Biener <rguenther@suse.de>
24179 * tree-inline.c (insert_debug_decl_map): Check destination
24180 function MAY_HAVE_DEBUG_STMTS.
24181 (insert_init_debug_bind): Likewise.
24182 (insert_init_stmt): Remove redundant check.
24183 (remap_gimple_stmt): Drop debug stmts if the destination
24184 function has var-tracking assignments disabled.
24186 2015-01-14 Martin Liska <mliska@suse.cz>
24188 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
24189 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
24191 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24194 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
24195 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
24197 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24199 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
24200 level from an ARCH; do not inject the default.
24201 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
24202 MIPS_ISA_LEVEL_SPEC.
24203 (MIPS_ISA_NAN2008_SPEC): Update comment.
24204 (BASE_DRIVER_SELF_SPECS): Likewise.
24205 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
24206 MIPS_DEFAULT_ISA_LEVEL_SPEC.
24207 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
24208 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
24209 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
24211 2015-01-14 Richard Biener <rguenther@suse.de>
24213 PR tree-optimization/64493
24214 PR tree-optimization/64495
24215 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
24216 assign the proper vectorized PHI to the inner loop exit PHIs.
24218 2015-01-14 Joey Ye <joey.ye@arm.com>
24220 * config/arm/arm.c (arm_compute_save_reg_mask):
24221 Do not save lr in case of tail call.
24222 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
24224 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
24226 * tree-vrp.c (check_array_ref): Emit more warnings
24227 for warn_array_bounds >= 2.
24228 * common.opt: New option -Warray-bounds=.
24229 * doc/invoke.texi: Document -Warray-bounds=.
24231 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
24233 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
24234 (mforbid-fp-as-gp): Remove.
24236 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
24237 (nds32_symbol_load_store_p): Remove.
24238 (nds32_fp_as_gp_check_available): Clean up implementation.
24239 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
24241 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
24242 fp-as-gp and ex9 cases.
24244 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24246 * tree-profile.c (init_ic_make_global_vars): Drop workaround
24247 for bintuils bug 14342.
24248 (init_ic_make_global_vars): Likewise.
24249 (gimple_init_edge_profiler): Likewise.
24250 (gimple_gen_ic_func_profiler): Likewise.
24252 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24254 * ipa-inline.c (inline_small_functions): Swap the operands in
24257 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24260 * ipa-inline-analysis.c (node_growth_cache): Remove.
24261 (initialize_growth_caches): Do not initialize it.
24262 (free_growth_caches): Do not free it.
24263 (do_estimate_growth): Rename to ...
24264 (estimate_growth): ... this one; drop growth cache code.
24265 (growth_likely_positive): Always go the heuristics way.
24266 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
24267 (reset_edge_caches): Do not reset node growth.
24268 (heap_edge_removal_hook): Do not maintain cache.
24269 (inline_small_functions): Likewise; strenghten sanity check.
24270 (ipa_inline): Do not maintain caches.
24271 * ipa-inline.h (node_growth_cache): Remove.
24272 (do_estimate_growth): Remove to ...
24273 (estimate_growth): this one; remove inline version.
24274 (reset_node_growth_cache): Remove.
24276 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24279 * ipa-inline.c (inline_small_functions): Update callee keys after
24280 resolving speculation
24281 (inline_small_functions): Always check monotonicity of the queue.
24283 2015-01-13 Marek Polacek <polacek@redhat.com>
24285 PR middle-end/64391
24286 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
24288 2015-01-13 Jakub Jelinek <jakub@redhat.com>
24290 PR rtl-optimization/64286
24291 * ree.c (combine_reaching_defs): Move part of comment earlier,
24292 remove !SCALAR_INT_MODE_P check.
24293 (add_removable_extension): Don't add vector mode
24294 extensions if all uses of the source register aren't the same
24297 2015-01-13 Renlin Li <renlin.li@arm.com>
24299 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
24300 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
24302 2015-01-13 Martin Liska <mliska@suse.cz>
24304 * ipa-icf.c (sem_function::equals_private): Call new functions
24305 cl_target_option_print_diff and cl_optimization_print_diff.
24306 * optc-save-gen.awk (cl_target_option_print_diff): New function.
24307 (cl_optimization_print_diff): Likewise.
24308 * opth-gen.awk: Likewise.
24310 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
24312 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
24313 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
24314 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
24315 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
24316 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
24317 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
24319 2015-01-13 Andrew Pinski <apinski@cavium.com>
24321 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
24322 instead of src mode.
24324 2015-01-13 Richard Biener <rguenther@suse.de>
24327 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
24330 2015-01-13 Andrew Pinski <apinski@cavium.com>
24332 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
24334 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
24336 2015-01-13 Jakub Jelinek <jakub@redhat.com>
24338 PR middle-end/63974
24339 * cfgexpand.c (expand_computed_goto): Don't call
24340 convert_memory_address here.
24342 2015-01-13 Richard Biener <rguenther@suse.de>
24344 PR tree-optimization/64406
24345 * tree-loop-distibution.c (pass_loop_distribution::execute):
24346 Reset the SCEV hashtable if we distributed anything.
24348 2015-01-13 Richard Biener <rguenther@suse.de>
24350 PR tree-optimization/64404
24351 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
24352 SLP types for CSEd loads.
24354 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
24356 PR tree-optimization/64436
24357 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
24358 merge of two symbolic numbers for a bitwise OR to ...
24359 (perform_symbolic_merge): This. Also fix computation of the range and
24360 end of the symbolic number corresponding to the result of a bitwise OR.
24362 2015-01-13 Richard Biener <rguenther@suse.de>
24364 PR tree-optimization/64568
24365 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
24366 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
24368 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24370 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
24371 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
24373 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24375 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
24376 target-specific symbol_ref flag.
24377 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
24378 resides in rodata section.
24379 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
24380 (nds32_encode_section_info): New function.
24382 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24384 * config/nds32/nds32.md (call): Use pseudo instruction bal which
24385 clobbers TA_REGNUM if large code model is specified.
24386 (call_register): Likewise.
24387 (call_immediate): Likewise.
24388 (call_value): Likewise.
24389 (call_value_register): Likewise.
24390 (call_value_immediate): Likewise.
24392 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24394 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
24395 (TARGET_CMODEL_MEDIUM): New macro.
24396 (TARGET_CMODEL_LARGE): New macro.
24397 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
24398 code model setting in assembly code.
24400 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24402 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24403 Remove MASK_GP_DIRECT flag.
24404 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
24405 one of the multilib default options.
24406 * config/nds32/nds32.opt (mgp-direct): Remove.
24407 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
24408 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
24410 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24412 * config/nds32/nds32.opt (mcmodel): Add new option.
24413 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
24414 to describe code model.
24416 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
24419 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
24421 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
24423 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
24424 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24425 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
24426 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
24427 __builtin_sh_set_fpscr.
24429 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
24431 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
24432 after a funtion name just to indicate it is a function.
24433 ([-fsanitize-undefined-trap-on-error]): Likewise.
24434 ([-fdbg-cnt=]): Likewise.
24435 ([-mmemcpy]): Likewise.
24436 ([-mflush-func]): Likewise.
24437 ([-msynci]): Likewise.
24439 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
24441 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
24444 2015-01-12 Jakub Jelinek <jakub@redhat.com>
24446 PR tree-optimization/64563
24447 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
24448 instead of != VR_VARYING.
24451 * config/i386/i386.c (ix86_expand_prologue): Add
24452 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
24454 PR tree-optimization/64454
24455 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
24456 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
24457 for signed or [0, op1 - 1] for unsigned modulo.
24458 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
24459 even if op1 does not satisfy integer_pow2p.
24462 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
24464 2015-01-12 Jeff Law <law@redhat.com>
24467 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
24468 (trunchiqi2, truncsihi2): Similarly.
24470 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
24471 rather than calling F.
24473 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
24475 * tsan.c (instrument_expr): Use force_gimple_operand.
24476 Use may_be_nonaddressable_p instead of is_gimple_addressable.
24478 2015-01-12 Richard Biener <rguenther@suse.de>
24480 PR tree-optimization/64530
24481 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
24484 2015-01-12 Richard Biener <rguenther@suse.de>
24486 PR middle-end/64357
24487 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
24490 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24492 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
24493 Cortex-A17 tuning parameters.
24494 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
24496 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24498 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
24499 * config/arm/arm.c (arm_macro_fusion_p): New function.
24500 (arm_macro_fusion_pair_p): Likewise.
24501 (TARGET_SCHED_MACRO_FUSION_P): Define.
24502 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
24503 (ARM_FUSE_NOTHING): Likewise.
24504 (ARM_FUSE_MOVW_MOVT): Likewise.
24505 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
24506 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
24507 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
24508 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
24509 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
24510 arm_cortex_a5_tune): Specify fuseable_ops value.
24512 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
24515 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
24516 test for PIE with copy reloc.
24517 * configure: Regenerated.
24519 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24521 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
24523 (arm_tls_descseq_addr): Likewise.
24524 (arm_gen_movmemqi): Likewise.
24525 (arm_expand_epilogue_apcs_frame): Likewise.
24526 (arm_expand_epilogue): Likewise.
24527 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
24530 2015-01-12 Martin Liska <mliska@suse.cz>
24533 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
24534 volatility for correct operands.
24536 2015-01-12 Martin Liska <mliska@suse.cz>
24538 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
24539 indication that a function is not leaf.
24540 (sem_function::compare_polymorphic_p): Likewise.
24542 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24544 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
24545 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
24546 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
24547 fold-const.h, tree-check.h.
24549 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
24553 * ipa-inline.c (compute_uninlined_call_time,
24554 compute_inlined_call_time): Use counts for extra precision when
24556 (big_speedup_p): Fix formating.
24557 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
24558 (relative_time_benefit): Remove.
24559 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
24560 merge guessed and read profile paths.
24561 (inline_small_functions): Count only !optimize_size functions into
24562 initial size; be more lax about sanity check when profile is used;
24563 be sure to update inlined function profile when profile is read.
24565 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
24568 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
24569 cost when edge becomes direct.
24570 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
24571 is resolved or when introducing new speculation.
24573 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
24577 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
24578 '||' to fix typo issue.
24580 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
24581 accept and return NULL.
24583 2015-01-12 Martin Liska <mliska@suse.cz>
24585 * cgraph.c (cgraph_edge::remove_callee): Move function to header
24586 file for being inlined.
24587 (cgraph_set_edge_callee): Delete.
24588 (cgraph_edge::redirect_callee): Move function to header file
24590 (cgraph_edge::make_direct): Use new function.
24591 (cgraph_edge::dump_edge_flags): New function created from
24592 static dump_edge_flags function.
24593 (cgraph_node::dump): Use new function.
24594 (cgraph_edge::verify_count_and_frequency): New function created
24595 from verify_edge_count_and_frequency.
24596 (cgraph_edge::verify_corresponds_to_fndecl): New function created
24597 from verify_edge_corresponds_to_fndecl.
24598 (verify_edge_corresponds_to_fndecl): Delete.
24599 (cgraph_node::verify_node): Use new function.
24600 * cgraph.h (cgraph_edge::set_callee): New function.
24601 (cgraph_edge::dump_edge_flags): Likewise.
24602 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
24604 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
24606 * ipa-utils.c (estimate_function_body_sizes): Do not
24607 free node params when called late with early=true.
24609 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
24611 * doc/md.texi (Instruction Patterns): Rewrite text for
24613 (Example): Likewise.
24615 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
24617 * doc/invoke.texi (Option Summary): Break long lines.
24618 [(-fdiagnostics-color)]: Put long literal in @smallexample
24620 [(-fsanitize-recover)]: Likewise.
24621 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
24622 [(-ffast-math)]: Likewise.
24623 [(--param max-inline-insns-recursive)]: Likewise.
24624 [(--param max-inline-recursive-depth)]: Likewise.
24625 [(-mno-text-section-literals)]: Likewise.
24627 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
24629 * doc/install.texi: Update for libgomp being renamed from "GNU
24630 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
24632 * doc/sourcebuild.texi: Likewise.
24634 2015-01-10 Anthony Green <green@moxielogic.com>
24636 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
24637 mul.x availability for moxiebox configuration.
24639 2015-01-09 Anthony Green <green@moxielogic.com>
24641 * config/moxie/moxie.md: Tabify assembly output.
24643 2015-01-09 Anthony Green <green@moxielogic.com>
24645 * config/moxie/moxie.md (CC_REG): Correct register definition.
24647 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
24649 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
24650 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
24653 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
24655 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
24657 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
24658 Jakub Jelinek <jakub@redhat.com>
24660 PR middle-end/64412
24661 * lto-streamer.h (lto_stream_offload_p): New declaration.
24662 * lto-streamer.c (lto_stream_offload_p): New variable.
24663 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
24664 at the same time as section_name_prefix.
24665 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
24666 if lto_stream_offload_p.
24667 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
24668 stream TREE_TARGET_OPTION if lto_stream_offload_p.
24669 (write_ts_function_decl_tree_pointers): Don't
24670 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
24671 * tree-streamer-in.c (unpack_value_fields): Don't stream
24672 TREE_TARGET_OPTION in if ACCEL_COMPILER.
24673 (lto_input_ts_function_decl_tree_pointers): Don't stream
24674 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
24675 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
24676 instead of section_name_prefix string comparisons.
24678 2015-01-09 Jakub Jelinek <jakub@redhat.com>
24680 PR rtl-optimization/64536
24681 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
24684 2015-01-09 Michael Collison <michael.collison@linaro.org>
24686 PR tree-optimization/64322
24687 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
24688 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
24690 2015-01-09 Tom de Vries <tom@codesourcery.com>
24692 PR rtl-optimization/64539
24693 * regcprop.c (kill_clobbered_values): Factor out of ...
24694 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
24695 instead of note_stores with kill_clobbered_value.
24697 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
24699 * ginclude/unwind-arm-common.h: Revert previous commit.
24701 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
24703 * config.gcc (arm*-*-freebsd*): New configuration.
24704 * config/arm/freebsd.h: New file.
24705 * config.host: Add extra components for arm*-*-freebsd*.
24706 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
24707 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
24709 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24711 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
24713 * config/rs6000/t-rtems: Add e6500 multilibs.
24715 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24717 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
24720 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24722 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
24723 MULTILIB_EXCEPTIONS.
24725 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24727 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
24728 MULTILIB_EXCEPTIONS.
24730 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24732 * config/arm/t-rtems-eabi: Rename to...
24733 * config/arm/t-rtems: ...this.
24734 * config/arm/rtems-eabi.h: Rename to...
24735 * config/arm/rtems.h: ...this.
24736 * config.gcc (arm*-*-rtems*): Reflect changes above.
24738 2015-01-09 Richard Biener <rguenther@suse.de>
24740 PR tree-optimization/64410
24741 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
24743 (execute_update_addresses_taken): Deal with that.
24744 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
24745 loads/stores for complex variables.
24747 2015-01-09 Martin Liska <mliska@suse.cz>
24749 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
24751 (func_checker::compare_memory_operand): New function.
24752 (func_checker::compare_operand): Split case to newly
24754 (func_checker::compare_cst_or_decl): New function.
24755 (func_checker::compare_gimple_call): Identify
24757 (func_checker::compare_gimple_assign): Likewise.
24758 * ipa-icf-gimple.h: New function.
24760 2015-01-09 Martin Liska <mliska@suse.cz>
24763 * sreal.c (sreal::dump): Change unsigned format to signed for
24765 (sreal::to_double): Replace exp2 with scalbln.
24767 2015-01-09 Martin Liska <mliska@suse.cz>
24769 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
24770 * ipa-icf.c (sem_function::equals_private): Add support for target and
24771 (sem_item_optimizer::merge_classes): Remove redundant function
24772 optimization flags comparison.
24773 * tree.h (target_opts_for_fn): New function.
24775 2015-01-09 Tom de Vries <tom@codesourcery.com>
24777 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
24779 2015-01-09 Kito Cheng <kito@0xlab.org>
24781 PR rtl-optimization/64348
24782 * lra-constraints.c (split_reg): Fix caller-save store/restore
24783 instruction generation.
24785 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
24787 PR gcov-profile/61790
24788 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
24789 long long. Fallback to int64_t if host doesn't have long long and
24790 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
24792 2015-01-08 Jakub Jelinek <jakub@redhat.com>
24794 PR tree-optimization/63989
24795 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
24796 from 1000 to 10000.
24797 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
24798 (get_stridx): If we don't have a record for certain SSA_NAME,
24799 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
24800 constant offset, call get_stridx_plus_constant.
24801 (get_stridx_plus_constant): New function.
24802 (zero_length_string): Don't use get_stridx here.
24805 PR middle-end/64388
24806 * dse.c (struct insn_info): Mention frame_read set also
24807 before reload for tail calls on some targets.
24808 (scan_insn): Revert 2014-12-22 change. Set frame_read
24809 also before reload for tail calls if
24810 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
24811 instead of add_non_frame_wild_read for non-const/memset
24812 tail calls after reload.
24814 2015-01-08 Jason Merrill <jason@redhat.com>
24816 * ubsan.c (do_ubsan_in_current_function): New.
24817 (pass_ubsan::gate): Use it.
24818 * ubsan.h: Declare it.
24819 * convert.c (convert_to_integer): Use it.
24821 2015-01-08 Jakub Jelinek <jakub@redhat.com>
24824 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
24825 compare_code when it is unconditionally overwritten afterwards.
24826 Use ix86_reverse_condition instead of reverse_condition. Don't
24827 change code if *reverse_condition* returned UNKNOWN and don't
24828 swap ct/cf and negate diff in that case.
24830 2015-01-08 Mike Stump <mikestump@comcast.net>
24832 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
24833 (pass_tsan_O0::gate): Likewise.
24834 * extend.texi (Function Attributes): Add no_sanitize_thread
24837 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
24839 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
24840 for registering builtins.
24841 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
24842 add -fopenmp to the argv_obstack used when invoking
24843 compile_for_target.
24845 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
24846 add "-m32" or "-m64" to argv_obstack.
24847 (generate_host_descr_file): Likewise, when invoking host_compiler.
24848 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
24851 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
24853 * config/sh/sh-mem.cc: Use constant as second operand when emitting
24856 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
24859 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
24860 constant load if constant operand fits into I08.
24862 2015-01-08 Jakub Jelinek <jakub@redhat.com>
24865 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
24866 and TREE_THIS_VOLATILE for MEM_REFs.
24867 (build5_stat): Fix up initialization of TREE_READONLY and
24868 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
24870 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
24873 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
24874 of r for the second alternative of the destination operand.
24876 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
24879 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
24881 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
24883 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
24885 ([-fivar-visibility], [-fvisibility]): Likewise.
24887 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
24889 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
24890 the file where @code, @command, etc is more appropriate.
24892 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
24894 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
24895 of -mrecip= documentation.
24897 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24900 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
24901 correct reload handler if -m32 -mpowerpc64 is used.
24903 2015-01-06 Tom de Vries <tom@codesourcery.com>
24905 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
24907 2015-01-08 Christian Bruel <christian.bruel@st.com>
24910 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
24912 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
24914 PR tree-optimization/63259
24915 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
24916 if optab exists for 16bit byteswap.
24918 2015-01-06 Jakub Jelinek <jakub@redhat.com>
24920 * opts.c (common_handle_option): Add support for
24921 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
24922 * doc/invoke.texi: Document -fno-sanitize=all,
24923 -f{,no-}sanitize-recover=all. Document that
24924 -fsanitize=float-cast-overflow is not enabled
24925 by -fsanitize=undefined. Fix up documentation
24926 of -f{,no-}sanitize-recover.
24928 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
24930 * config.gcc: Add Visium support.
24931 * configure.ac: Likewise.
24932 * configure: Regenerate.
24933 * doc/extend.texi (interrupt attribute): Add Visium.
24934 * doc/invoke.texi: Document Visium options.
24935 * doc/install.texi: Document Visium target.
24936 * doc/md.texi: Document Visium constraints.
24937 * common/config/visium: New directory.
24938 * config/visium: Likewise.
24940 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
24942 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
24943 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
24945 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
24947 * combine.c (combine_validate_cost): Do not count the cost of a
24948 split I2 twice. Do not display it twice in the dump, either.
24950 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
24952 Revert parts of r219199.
24953 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
24955 ([-Wtraditional]): Restore markup on <limits.h>.
24957 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
24960 * doc/invoke.texi: Document -Wsuggest-override.
24962 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
24964 PR rtl-optimization/64287
24965 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
24966 (process_options): Disable flag_ipa_ra if profiling.
24968 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
24970 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
24972 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
24974 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
24975 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
24976 put under #if TARGET_LOOPS guard.
24978 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
24980 * config/i386/i386.c (output_387_binary_op): Use std::swap.
24982 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
24984 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
24985 * rtl.h (refers_to_regno_p): Add overload.
24987 * bt-load.c: Likewise.
24988 * combine.c: Likewise.
24989 * df-scan.c: Likewise.
24990 * sched-deps.c: Likewise.
24991 * config/s390/s390.c: Likewise.
24992 * config/m32r/m32r.c: Likewise.
24993 * config/rs6000/spe.md: Likewise.
24994 * config/rs6000/rs6000.c: Likewise.
24995 * config/pa/pa.c: Likewise.
24996 * config/stormy16/stormy16.c: Likewise.
24997 * config/cris/cris.c: Likewise.
24998 * config/arc/arc.md: Likewise.
24999 * config/arc/arc.c: Likewise.
25000 * config/sh/sh.md: Likewise.
25001 * config/sh/sh.c: Likewise.
25002 * config/frv/frv.c: Likewise.
25004 2015-01-05 Jakub Jelinek <jakub@redhat.com>
25007 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
25008 call as cleanup of the whole body.
25009 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
25010 * tsan.c (replace_func_exit): New function.
25011 (instrument_func_exit): Moved earlier.
25012 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
25013 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
25015 (tsan_pass): Don't call instrument_func_exit.
25016 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
25017 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
25021 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
25022 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
25023 it to libubsan handler instead of EXPR. Fold comparisons earlier,
25024 if the result is integer_zerop, return NULL_TREE.
25025 * convert.c (convert_to_integer): Pass expr as ARG.
25027 PR tree-optimization/64465
25028 * tree-inline.c (redirect_all_calls): During inlining
25029 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
25030 changed the stmt to a non-throwing call.
25032 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
25034 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
25035 etc markup throughout the file.
25037 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
25039 Enable experimental TSAN support for Ada.
25040 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
25042 2015-01-05 Jakub Jelinek <jakub@redhat.com>
25044 PR tree-optimization/64494
25045 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
25046 clear SSA_NAME_ANTI_RANGE_P flag.
25048 2015-01-05 Marek Polacek <polacek@redhat.com>
25050 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
25052 2015-01-05 Jakub Jelinek <jakub@redhat.com>
25054 Update copyright years.
25056 * gcc.c (process_command): Update copyright notice dates.
25057 * gcov-dump.c: Ditto.
25059 * doc/cpp.texi: Bump @copying's copyright year.
25060 * doc/cppinternals.texi: Ditto.
25061 * doc/gcc.texi: Ditto.
25062 * doc/gccint.texi: Ditto.
25063 * doc/gcov.texi: Ditto.
25064 * doc/install.texi: Ditto.
25065 * doc/invoke.texi: Ditto.
25067 * auto-profile.c, auto-profile.h: Fix up Copyright line.
25069 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
25071 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
25073 ([-fvtable-verify], [-fvtv-debug]): Likewise.
25074 ([-Wabi]): Likewise.
25075 ([-fmessage-length]): Likewise.
25076 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
25077 ([-Wno-discarded-qualifiers]): Likewise.
25078 ([-Wnodiscarded-array-qualifiers]): Likewise.
25079 ([-Wno-virtual-move-assign]): Likewise.
25080 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
25081 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
25082 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
25083 ([-fsanitize-undefined-trap-on-error]): Likewise.
25084 ([-floop-interchange]): Likewise.
25085 ([-ftree-coalesce-inlined-vars]): Likewise.
25086 ([-fvect-cost-model]): Likewise.
25087 ([-flto]): Likewise.
25088 ([--param]): Likewise.
25089 (Spec Files): Likewise.
25090 ([-mstrict-align]): Likewise.
25091 ([-mfix-cortex-a53-835769]): Likewise.
25092 ([-march], [-mtune]): Likewise.
25093 ([-mpic-register]): Likewise.
25094 ([-munaligned-access]): Likewise.
25095 ([-msp8]): Likewise.
25096 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
25097 (AVR Built-in Macros): Likewise.
25098 ([-mpreferred-stack-boundary]): Likewise.
25099 ([-mtune-crtl]): Likewise.
25100 ([-mashf]): Likewise.
25101 ([-mmcu=]): Likewise.
25102 ([-minrt]): Likewise.
25103 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
25104 ([-mupper-regs]): Likewise.
25105 ([-matomic-model]): Likewise.
25106 ([-mdiv]): Likewise.
25107 ([-mzdcbranch]): Likewise.
25108 ([-mdisable-callt]): Likewise.
25109 ([-msoft-float]): Likewise.
25110 ([-m8byte-align]): Likewise.
25111 ([-fstack-reuse]): Likewise.
25113 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25115 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
25116 Fix markup, light copy-editing.
25117 ([-fauto-profile]): Rewrite to fix formatting and content
25120 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25122 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
25123 Copy-edit description.
25124 ([-fisolate-erroneous-paths-attribute]): Likewise.
25125 * common.opt (fisolate-erroneous-paths-dereference):
25126 Copy-edit description.
25127 (fisolate-erroneous-paths-attribute): Likewise.
25129 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25131 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
25134 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25136 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
25137 ([-fvtv-debug]): Likewise.
25138 ([-Wc++-compat]): Likewise.
25139 ([-Wc++11-compat]): Likewise.
25140 ([-Wc++14-compat]): Likewise.
25141 ([-Wno-sized-deallocation]): Likewise.
25142 ([-femit-class-debug-always]): Likewise.
25143 ([-femit-struct-debug-detailed]): Likewise.
25144 ([-fno-keep-inline-dllexport]): Likewise.
25145 ([-fira-algorithm]): Likewise.
25146 ([-fira-region]): Likewise.
25147 ([-flra-remat]): Likewise.
25148 ([-fipa-ra]): Likewise.
25149 ([-fhoist-adjacent-loads]): Likewise.
25150 ([-fisolate-erroneous-paths-dereference]): Likewise.
25151 ([-fisolate-erroneous-paths-attribute]): Likewise.
25152 ([-ftree-switch-conversion]): Likewise.
25153 ([-ftree-tail-merge]): Likewise.
25154 ([-ftree-loop-if-convert]): Likewise.
25155 ([-ftree-loop-if-convert-stores]): Likewise.
25156 ([-ftree-loop-distribution]): Likewise.
25157 ([-ftree-loop-distribute-patterns]): Likewise.
25158 ([-flto-compression-level]): Likewise.
25159 ([-flto-report]): Likewise.
25160 ([-flto-report-wpa]): Likewise.
25161 ([-fuse-linker-plugin]): Likewise.
25162 ([-mfix-cortex-a53-835769]): Likewise.
25163 ([-mno-fix-cortex-a53-835769]): Likewise.
25164 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
25165 explicit listing; add a note to the discussion indicating they
25166 exist. Reorder table to group similar options. Add missing
25167 @opindex entries. Add @need commands throughout the table to
25168 allow it to be split across multiple pages.
25169 ([-m8bit-idiv]): Fix @opindex.
25170 ([-mavx256-split-unaligned-load]): Likewise.
25171 ([-mavx256-split-unaligned-store]): Likewise.
25172 ([-mstack-protector-guard]): Likewise.
25173 ([-mcpu=]): Likewise.
25174 ([-mcpu]): Likewise.
25175 ([-mpointer-size=]): Likewise.
25177 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
25179 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
25180 instead of `m' constraint. Likewise for unnamed movb comparison
25181 patterns using reg_before_reload_operand predicate.
25182 * config/pa/predicates.md (reg_before_reload_operand): Tighten
25183 predicate to reject register index and LO_SUM DLT memory forms
25186 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
25188 * doc/invoke.texi (Option Summary): Fix spelling of
25189 -fdevirtualize-at-ltrans.
25190 ([-fdevirtualize]): Fix markup.
25191 ([-fdevirtualize-speculatively]): Fix typo.
25192 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
25193 implementor-speaky.
25194 * common.opt (fdevirtualize-at-ltrans): Likewise.
25195 * ipa-devirt.c: Fix typos in comments throughout the file.
25196 (ipa_devirt): Fix typos in format strings for dump output.
25198 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
25200 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
25201 discussion of defaults, light copy-editing.
25203 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25205 * tsan.c (instrument_expr): corrected previous checkin.
25207 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25209 Instrument bit field and unaligned accesses for TSAN.
25210 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
25211 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
25212 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
25213 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
25214 unaligned memory regions.
25216 2015-01-01 Anthony Green <green@moxielogic.com>
25218 * config/moxie/predicates.md (moxie_general_movsrc_operand):
25219 Restrict move source register offsets to 16 bits.
25221 Copyright (C) 2015 Free Software Foundation, Inc.
25223 Copying and distribution of this file, with or without modification,
25224 are permitted in any medium without royalty provided the copyright
25225 notice and this notice are preserved.