1 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
4 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
5 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
6 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
7 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
9 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
11 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
12 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
14 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
16 * config/xtensa/constraints.md (define_constraint "Y"): New
18 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
19 * config/xtensa/linux.h (ASM_SPEC): Likewise.
20 * config/xtensa/predicates.md (move_operand): Match constants
21 and symbols in the presence of TARGET_AUTO_LITPOOLS.
22 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
23 immediate references to TLS data.
24 (xtensa_emit_move_sequence): Don't force constants to memory in
25 the presence of TARGET_AUTO_LITPOOLS.
26 (print_operand): Add 'y' format, same as default, but capable of
27 printing SF mode constants as well.
28 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
29 (movsf_internal): Add movi pattern that loads literal.
30 (movsf, movdf): Don't force constants to memory in the presence
31 of TARGET_AUTO_LITPOOLS.
32 (movdf_internal): Add 'Y' constraint.
33 * config/xtensa/xtensa.opt (mauto-litpools): New option.
34 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
36 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
38 * config/arm/arm-fpus.def: Replace booleans with feature flags.
40 * config/arm/arm.c (ARM_FPU): Update macro.
41 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
42 (TARGET_FP16): Likewise.
43 (TARGET_CRYPTO): Likewise.
44 (TARGET_NEON): Likewise.
45 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
48 2015-08-12 Tom de Vries <tom@codesourcery.com>
52 * doc/install.texi: Remove --with_host_libstdcxx item. Update
53 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
54 accordingly. Mention default for --with-stage1-ldflags.
56 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
58 * config/arm/arm.h (arm_fpu_feature_set): New.
59 (ARM_FPU_FSET_HAS): New.
65 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
67 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
68 after -mcmodel=large -fPIC sorry.
70 2015-08-12 Richard Biener <rguenther@suse.de>
72 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
73 comparison operand order and commutative ternary op operand order.
74 (sccvn_dom_walker::cond_stack): New state to track temporary
76 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
78 (sccvn_dom_walker::record_cond): Add a single temporary conditional
80 (sccvn_dom_walker::record_conds): Add a temporary conditional
81 expressions and all related expressions also true/false.
82 (sccvn_dom_walker::before_dom_children): Record temporary
83 expressions based on the controlling condition of a single
84 predecessor. When trying to simplify a conditional statement
85 lookup expressions we might have inserted earlier.
87 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
90 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
91 to ARM core registers.
93 2015-08-12 Nathan Sidwell <nathan@acm.org>
95 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
96 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
98 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
100 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
102 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
104 2015-08-12 Richard Biener <rguenther@suse.de>
106 * gimple.h (remove_pointer): New trait.
107 (GIMPLE_CHECK2): New inline template function.
108 (gassign::code_): New constant static member.
109 (is_a_helper<const gassign *>): Add.
110 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
111 and forward to a new gassign overload with less checking and a
112 cheaper way to access the operand.
113 (gimple_assign_lhs_ptr): Likewise.
114 (gimple_assign_set_lhs): Likewise.
115 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
117 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
119 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
121 (gimple_assign_rhs_code): Likewise.
122 * gimple.c (gassign::code_): Define.
124 2015-08-12 Richard Biener <rguenther@suse.de>
126 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
127 Eliminate edges marked as not executable by SCCVN.
128 * tree-ssa-sccvn.c: Include gimple-iterator.h.
129 (cond_dom_walker): Rename to sccvn_dom_walker.
130 (sccvn_dom_walker::before_dom_children): Value-number defs
132 (run_scc_vn): Remove loop value-numbering all SSA names.
133 Drop not visited SSA names to varying.
135 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
137 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
138 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
139 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
140 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
141 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
142 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
143 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
144 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
145 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
147 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
150 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
151 to enum feature_priority and feature_list.
152 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
155 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
157 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
160 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
164 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
165 account when deciding what was the command-line status.
167 2015-08-11 Nathan Sidwell <nathan@acm.org>
169 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
171 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
172 we're not the only contributor to target phi.
174 2015-08-11 Jiong Wang <jiong.wang@arm.com>
176 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
179 2015-08-11 Tom de Vries <tom@codesourcery.com>
181 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
183 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
185 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
187 * config/i386/i386.md (cpu): Remove knl.
189 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
193 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
195 * omp-low.c (oacc_process_reduction_data): Remove handline of
196 GOMP_DEVICE_HOST_NONSHM.
198 * lto-streamer-in.c (lto_input_mode_table): Adjust to
199 GET_MODE_INNER changes.
201 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
202 Ilya Verbin <ilya.verbin@intel.com>
204 * lto-streamer-in.c (lto_input_mode_table): Correctly advance
207 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
209 * doc/options.texi (EnabledBy): Document that the argument must be
211 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
212 Not enabled by -Wall.
213 * optc-gen.awk: Give nicer error messages. Detect if the argument
214 of EnabledBy is not a Common option.
215 * common.opt (Wnull-dereference): Not enabled by -Wall.
216 * opt-functions.awk (lang_enabled_by): Nicer error messages.
218 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
220 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
221 model == 0x4f as Broadwell.
223 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
225 PR rtl-optimization/67028
226 * combine.c (simplify_comparison): Fix comment. Rearrange code.
227 Add test to see if a const_int fits in the new mode.
229 2015-08-07 DJ Delorie <dj@redhat.com>
231 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
233 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
235 PR rtl-optimization/67029
236 * ira-color.c: Include "recog.h" before including "ira-int.h".
237 * target-globals.c: Likewise.
238 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
239 adds an alternative_mask argument and use it instead of
240 preferred_alternatives.
241 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
242 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
243 * sched-deps.c: Include "ira-int.h" after including "ira.h".
244 (sched_analyze_insn): Update call to
245 ira_implicitly_set_insn_hard_regs.
246 * sel-sched.c: Include "ira-int.h" after including "ira.h".
247 (implicit_clobber_conflict_p): Update call to
248 ira_implicitly_set_insn_hard_regs.
250 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
252 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
254 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
257 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
258 currently_expanding_to_rtl is set.
260 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
262 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
263 * configure: Regenerate.
265 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
266 Jiong Wang <jiong.wang@arm.com>
268 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
269 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
270 (REG_CLASS_NAMES): Likewise.
271 (REG_CLASS_CONTENTS): Likewise.
272 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
273 (aarch64_register_move_cost): Likewise.
274 (aarch64_load_symref_appropriately): Invoke the new added pattern if
276 * config/aarch64/constraints.md (Uc0): New constraint.
278 2015-08-06 Jiong Wang <jiong.wang@arm.com>
280 * config/aarch64/constraints.md (Usf): Add the test of
281 aarch64_is_noplt_call_p.
283 2015-08-06 Jiong Wang <jiong.wang@arm.com>
285 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
287 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
288 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
289 (call_symbol): Likewise.
291 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
293 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
294 for vectorizing multiplication patterns.
295 * tree-vectorizer.h: Adjust the number of patterns.
297 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
299 * config/i386/sse.md (*vec_concatv2df): Declare added
300 alternatives as sselog type.
302 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
304 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
307 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
309 * config/s390/s390.c (s390_expand_tbegin): Expand either
310 tbegin_1_z13 or tbegin_1 depending on VX flag.
311 * config/s390/s390.md ("tbegin_1_z13"): New expander.
313 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
315 * config/s390/s390.opt: Clarify description for -mzvector
316 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
319 2015-08-06 Richard Biener <rguenther@suse.de>
321 * gimple.h (gimple_call_set_fn): Access op member directly.
322 (gimple_call_chain_ptr): Likewise.
323 (gimple_call_set_chain): Likewise.
324 (gimple_cond_lhs_ptr): Likewise.
325 (gimple_cond_set_lhs): Likewise.
326 (gimple_cond_rhs_ptr): Likewise.
327 (gimple_cond_set_rhs): Likewise.
328 (gimple_cond_true_label): Likewise.
329 (gimple_cond_set_true_label): Likewise.
330 (gimple_cond_set_false_label): Likewise.
331 (gimple_cond_false_label): Likewise.
332 (gimple_label_label): Likewise.
333 (gimple_label_set_label): Likewise.
334 (gimple_goto_set_dest): Likewise.
335 (gimple_asm_input_op): Likewise.
336 (gimple_asm_input_op_ptr): Likewise.
337 (gimple_asm_set_input_op): Likewise.
338 (gimple_asm_output_op): Likewise.
339 (gimple_asm_output_op_ptr): Likewise.
340 (gimple_asm_set_output_op): Likewise.
341 (gimple_asm_clobber_op): Likewise.
342 (gimple_asm_set_clobber_op): Likewise.
343 (gimple_asm_label_op): Likewise.
344 (gimple_asm_set_label_op): Likewise.
345 (gimple_switch_index): Likewise.
346 (gimple_switch_index_ptr): Likewise.
347 (gimple_return_retval_ptr): Likewise.
348 (gimple_return_retval): Likewise.
349 (gimple_return_set_retval): Likewise.
350 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
351 (gimple_switch_label): Likewise.
352 (gimple_switch_set_label): Likewise.
354 2015-08-06 Richard Biener <rguenther@suse.de>
356 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
357 bool comparison canonicalization and restrict to integers.
359 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
361 * coretypes.h (enum symbol_visibility): Relocate here.
362 * flag-types.h (enum symbol_visibility): Remove.
363 * tree-core.h (enum symbol_visibility): Remove.
365 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
368 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
369 for no_split_stack function attribute along with
371 (rs6000_expand_split_stack_prologue): Likewise.
373 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
374 Jeff Law <law@redhat.com>
377 * doc/invoke.texi (Wnull-dereference): New.
378 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
379 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
380 Warn for potential NULL dereferences.
381 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
382 * ubsan.c (instrument_nonnull_arg): Call
383 infer_nonnull_range_by_attribute.
384 (instrument_nonnull_return): Likewise.
385 * common.opt (Wnull-dereference); New.
386 * gimple.c (infer_nonnull_range): Remove bool arguments.
387 (infer_nonnull_range_by_dereference): New.
388 (infer_nonnull_range_by_attribute): New.
389 * gimple.h: Update declarations.
391 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
393 * gensupport.c (sequence_num): Replace with...
394 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
395 ...these new variables.
396 (init_rtx_reader_args_cb): Update accordingly.
397 (get_num_code_insns): Likewise.
398 (read_md_rtx): Rework to use a while loop and get_c_test.
399 Use the new counters. Remove redundant DEFINE_SUBST case.
400 * genoutput.c (gen_split): Delete.
401 (main): Don't call it.
403 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
405 * gensupport.h (get_c_test): Declare.
406 * gensupport.c (get_c_test): New function.
407 * genconditions.c (main): Use it.
408 * genrecog.c (validate_pattern): Likewise.
409 (match_pattern_1): Likewise. Remove c_test argument.
410 (match_pattern): Update accordingly and remove c_test argument.
411 (main): Update accordingly.
413 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
415 * gensupport.h (get_num_insn_codes): Declare.
416 * gensupport.c (get_num_insn_codes): New function.
417 * genattrtab.c (optimize_attrs): Rename max_insn_code to
419 (main): Likewise. Use get_num_insn_codes.
420 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
422 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
425 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
426 is zero- rather than sign-extended.
428 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
430 * target-insns.def (can_extend): Delete.
432 2015-08-05 Richard Biener <rguenther@suse.de>
434 PR tree-optimization/67121
435 * tree-if-conv.c (combine_blocks): Clear range-info produced
436 by stmts no longer executed conditionally.
438 2015-08-05 Nick Clifton <nickc@redhat.com>
440 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
441 to allow identical far pointers to remain.
443 2015-08-05 Richard Biener <rguenther@suse.de>
446 * match.pd: Compare address bases with == if they are decls
447 or SSA names, not operand_equal_p. Otherwise fail.
449 2015-08-05 Richard Biener <rguenther@suse.de>
451 PR tree-optimization/67055
452 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
455 * g++.dg/torture/pr67055.C: New testcase.
457 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
459 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
461 (define_attr "enabled"): Handle avx521vl and noavx512vl.
462 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
463 AVX-512 alternative out of SSE.
464 (define_insn "*vec_concatv2df"): Ditto.
466 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
468 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
469 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
470 CODE_FOR_avx_ptestv4di.
471 * config/i386/sse.md (define_mode_iterator V_AVX): New.
472 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
473 (define_insn "avx_ptest256"): Merge this ...
474 (define_insn "sse4_1_ptest"): And this ...
475 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
477 2015-08-05 Richard Biener <rguenther@suse.de>
479 PR tree-optimization/67109
480 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
481 against too big groups. Print whether this is a load or store
482 group. Rename from ...
483 (vect_analyze_group_access): ... this which is now a wrapper
484 dissolving an invalid group.
485 (vect_analyze_data_ref_accesses): Print whether this is a load
488 2015-08-05 Richard Biener <rguenther@suse.de>
491 * match.pd: Guard const_binop result checking against NULL_TREE
494 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
496 * cse.c (cse_insn): Restoring old behaviour for src_eqv
497 when dest and value in the REG_EQUAL are same and dest
500 2015-08-04 Anatoly Sokolov <aesok@post.ru>
502 * config/moxie/moxie.h (PRINT_OPERAND,
503 PRINT_OPERAND_ADDRESS): Remove macros.
504 * config/moxie/moxie-protos.h (moxie_print_operand,
505 moxie_print_operand_address): Remove declaration.
506 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
507 TARGET_PRINT_OPERAND_ADDRESS): Define.
508 (moxie_print_operand, moxie_print_operand_address): Make static.
510 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
513 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
514 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
516 2015-08-04 Richard Biener <rguenther@suse.de>
518 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
520 (dt_operand::gen_gimple_expr): Adjust.
522 2015-08-04 Richard Biener <rguenther@suse.de>
524 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
525 bool compares on RHS.
526 * match.pd: Add X ==/!= !X is false/true pattern.
528 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
530 * config/aarch64/aarch64.c: Change inner loop statement cost
531 to be consistent with other targets.
533 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
535 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
538 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
540 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
541 (machine_function): Remove pseudos field.
543 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
545 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
546 Exit early and use target_option_current_node if processing current
549 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
551 * doc/extend.texi (AArch64 Function Attributes): New node.
552 (AArch64 Pragmas): Likewise.
554 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
556 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
557 Initialize simd builtins if TARGET_SIMD.
558 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
559 Make sure that the builtins are initialized only once no matter how
560 many times the function is called.
561 (aarch64_init_builtins): Unconditionally initialize crc builtins.
562 (aarch64_relayout_simd_param): New function.
563 (aarch64_simd_expand_args): Use above during argument expansion.
564 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
565 simd builtins if TARGET_SIMD.
566 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
568 (aarch64_relayout_simd_types): Likewise.
570 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
572 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
573 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
574 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
575 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
577 (aarch64_reset_previous_fndecl): New function.
578 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
580 * config/aarch64/aarch64-c.c: New file.
581 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
582 Push and pop options at beginning and end. Remove ifdef
584 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
585 Add pragma +nothing+simd and +nothing+crypto where appropriate.
586 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
587 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
589 (aarch64_register_pragmas): Likewise.
590 (aarch64_reset_previous_fndecl): Likewise.
591 (aarch64_process_target_attr): Likewise.
592 (aarch64_override_options_internal): Likewise.
594 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
596 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
598 (aarch64_can_inline_p): Likewise.
599 (TARGET_CAN_INLINE_P): Define.
601 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
603 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
604 Remove static. Handle OPT_mgeneral_regs_only,
605 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
606 OPT_momit_leaf_frame_pointer.
607 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
608 (aarch64_attr_opt_type): New enum.
609 (aarch64_attribute_info): New struct.
610 (aarch64_handle_attr_arch): New function.
611 (aarch64_handle_attr_cpu): Likewise.
612 (aarch64_handle_attr_tune): Likewise.
613 (aarch64_handle_attr_isa_flags): Likewise.
614 (aarch64_attributes): New table.
615 (aarch64_process_one_target_attr): New function.
616 (num_occurences_in_str): Likewise.
617 (aarch64_process_target_attr): Likewise.
618 (aarch64_option_valid_attribute_p): Likewise.
619 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
620 * config/aarch64/aarch64-protos.h: Include input.h
621 (aarch64_handle_option): Declare prototype.
623 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
625 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
626 * config/aarch64/aarch64.c: Include target-globals.h
627 (aarch64_previous_fndecl): New variable.
628 (aarch64_set_current_function): New function.
629 (TARGET_SET_CURRENT_FUNCTION): Define.
631 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
633 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
634 (explicit_arch): Likewise.
635 (x_aarch64_isa_flags): Likewise.
636 (mgeneral-regs-only): Mark as Save.
637 (mfix-cortex-a53-835769): Likewise.
638 (mcmodel=): Likewise.
639 (mstrict-align): Likewise.
640 (momit-leaf-frame-pointer): Likewise.
641 (mtls-dialect): Likewise.
643 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
644 (aarch64_isa_flags): Remove extern declaration.
645 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
646 to indicate success or failure.
647 (aarch64_validate_march): Likewise.
648 (aarch64_validate_mtune): Likewise.
649 (aarch64_isa_flags): Delete.
650 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
651 instead of aarch64_isa_flags.
652 (aarch64_get_tune_cpu): New function.
653 (aarch64_get_arch): Likewise.
654 (aarch64_override_options): Use above and set up explicit_tune_core
656 (aarch64_print_extension): Move earlier in file. Add isa_flags
657 argument and use that instead of the global aarch64_isa_flags.
658 (aarch64_option_save): New function.
659 (aarch64_option_restore): Likewise.
660 (aarch64_option_print): Likewise.
661 (aarch64_declare_function_name): Likewise.
662 (aarch64_start_file): Delete.
663 (TARGET_ASM_FILE_START): Do not define.
664 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
665 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
668 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
670 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
671 flag_omit_leaf_frame_pointer to 2.
673 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
675 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
677 (TARGET_FIX_ERR_A53_835769): New macro.
678 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
679 handling of opts->x_aarch64_fix_a53_err835769.
680 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
681 than aarch64_fix_a53_err835769.
682 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
683 * config/aarch64/aarch64-linux.h: Likewise.
685 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
687 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
688 ix86_expand_int_movcc as boolean.
690 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
692 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
693 (aarch64_cpu_string): Likewise.
694 (aarch64_tune_string): Likewise.
695 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
696 (aarch64_parse_extension): Return aarch64_parse_opt_result.
697 Add extra argument to put result into.
698 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
699 (aarch64_parse_cpu): Add arguments to put results into. Return
700 aarch64_parse_opt_result.
701 (aarch64_parse_tune): Likewise.
702 (aarch64_override_options_after_change_1): New function.
703 (aarch64_override_options_internal): New function.
704 (aarch64_validate_mcpu): Likewise.
705 (aarch64_validate_march): Likewise.
706 (aarch64_validate_mtune): Likewise.
707 (aarch64_override_options): Update to reflect above changes.
708 Move some logic into aarch64_override_options_internal.
709 Initialize target_option_default_node and target_option_current_node.
710 (aarch64_override_options_after_change): Move logic into
711 aarch64_override_options_after_change_1 and call it with global_options.
712 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
713 flag values from that.
715 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
717 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
718 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
719 * config/aarch64/aarch64.c (struct processor): Add arch field.
720 (all_architectures): Handle above, move above all_cores.
721 (all_cores): Handle above.
722 (aarch64_parse_arch): Handle above changes.
723 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
724 above. Update comments.
725 (armv8.1-a): Likewise.
726 * config/aarch64/aarch64-cores.def: Update according to above.
727 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
728 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
729 aarch64_arch_driver_info.
731 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
733 * config/aarch64/aarch64.c (struct processor): Add ident field.
734 Rename core sched_core.
735 (all_cores): Handle above changes.
736 (all_architectures): Likewise.
737 (aarch64_parse_arch): Likewise.
738 (aarch64_override_options): Likewise.
740 2015-08-04 Richard Biener <rguenther@suse.de>
742 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
743 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
744 comparisons embedded in [VEC_]COND_EXPRs.
746 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
748 * tree-if-conv.c: Fix various typos in comments.
749 * tree-vect-stmts.c: Likewise.
751 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
753 PR tree-optimization/67043
754 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
755 preheader after hoisting invariant in it.
756 (find_defs): Force recomputation of all luids.
758 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
760 * config/rs6000/htm.md (tabort.): Restrict the source operand to
761 using a base register.
763 2015-08-03 David Malcolm <dmalcolm@redhat.com>
765 * main.c (main): Pass in NULL for toplev's external_timer.
766 * timevar.c: Include coretypes.h.
767 (class timer::named_items): New.
768 (timer::named_items::named_items): New.
769 (timer::named_items::~named_items): New.
770 (timer::named_items::push): New.
771 (timer::named_items::pop): New.
772 (timer::named_items::print): New.
773 (timer::timer): Initialize field "m_jit_client_items".
774 (timer::~timer): New.
775 (timer::push): Move bulk of implementation to...
776 (timer::push_internal): ...here. New function.
777 (timer::pop): Move bulk of implementation to...
778 (timer::pop_internal): ...here. New function.
779 (timer::push_client_item): New.
780 (timer::pop_client_item): New.
781 (timer::print_row): New function, taken from timer::print.
782 (timer::print): Print "GCC items" header if we also have client
783 items. Move row-printing to timer::print_row. Print any client
785 (timer::get_topmost_item_name): New method.
786 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
787 (TV_JIT_CLIENT_CODE): New.
788 * timevar.h (timer::push_client_item): New declaration.
789 (timer::pop_client_item): New declaration.
790 (timer::get_topmost_item_name): New method.
791 (timer::push_internal): New declaration.
792 (timer::pop_internal): New declaration.
793 (timer::print_row): New declaration.
794 (timer::named_items): New declaration.
795 (timer::m_jit_client_items): New field.
796 (timer): Add friend class named_items.
797 (auto_timevar::auto_timevar): Add timer param.
798 (auto_timevar::~auto_timevar): Use field "m_timer".
799 (auto_timevar::m_timer): New field.
800 * toplev.c (initialize_rtl): Add g_timer as param when
801 constructing auto_timevar instance.
802 (toplev::toplev): Add "external_timer" param, and use it to
803 initialize the "g_timer" global if non-NULL.
804 (toplev::~toplev): If this created "g_timer", delete it.
805 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
806 with "external_timer" timer *.
808 2015-08-03 Alexander Basov <coohpt@gmail.com>
813 * cfgexpand.c (expand_one_var): Add check if stack is going to
814 be used in naked function.
815 * expr.c (expand_expr_addr_expr_1): Remove excess checking
816 whether expression should not reside in MEM.
817 * function.c (use_register_for_decl): Do not use registers for
818 non-register things (volatile, float, BLKMode) in naked functions.
820 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
823 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
824 Adjust splits to match new pattern.
826 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
828 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
831 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
832 point in VSX registers.
834 * config/rs6000/constraints.md (wb constraint): Document unused
836 (we constraint): Likewise.
837 (wo constraint): Likewise.
838 (wp constraint): New constraint for IEEE 128-bit floating point in
840 (wq constraint): Likewise.
842 * config/rs6000/predicates.md (easy_fp_constant): Add support for
843 IEEE 128-bit floating point in VSX registers.
844 (easy_scalar_constant): Likewise.
846 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
847 constraints (wp, wq) for IEEE 128-bit floating point in VSX
849 (rs6000_init_hard_regno_mode_ok): Likewise.
851 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
852 floating point in VSX registers.
861 (vsx_le_permute_<mode>): Add support to properly swap bytes for
862 IEEE 128-bit floating point in VSX registers on little endian.
863 (vsx_le_undo_permute_<mode>): Likewise.
864 (vsx_le_perm_load_<mode>): Likewise.
865 (vsx_le_perm_store_<mode>): Likewise.
866 (splitters for IEEE 128-bit fp moves): Likewise.
868 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
871 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
872 floating point in VSX registers.
875 * doc/md.text (Machine Constraints): Document wp and wq
876 constraints on PowerPC.
878 2015-08-03 Jeff Law <law@redhat.com>
881 PR gcov-profile/66899
882 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
883 iterate over the jump threading paths when an element in the
884 jump threading paths array is eliminated.
886 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
888 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
890 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
892 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
893 is_use_properly_guarded the variable def_preds. Free its
894 contents before returning.
895 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
896 (is_use_properly_guarded): Replace local variable def_preds with
897 a parameter. Adjust accordingly. Only update *def_preds if it's
900 2015-08-03 Richard Biener <rguenther@suse.de>
902 * genmatch.c (simplify::for_subst_vec): New member.
903 (binary_ok): New helper for for lowering.
904 (lower_for): Delay substituting operators into result expressions
905 if we can merge the results eventually again.
906 (capture_info::walk_result): Adjust for user_id appearing as
907 result expression operator.
908 (expr::gen_transform): Likewise.
909 (dt_simplify::gen_1): Likewise.
910 (dt_simplify::gen): Pass not substituted operators to tail
911 functions or initialize local variable with it.
912 (decision_tree::gen): Adjust function signature.
913 * match.pd: Fix tests against global code and add default
914 cases to switch stmts.
916 2015-08-03 Richard Biener <rguenther@suse.de>
918 * genmatch.c (dt_simplify::gen): Create captures array
921 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
923 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
924 the host compiler is affected by placement new aliasing bug.
925 * configure: Regenerate.
926 * Makefile.in (ALIASING_FLAGS): New variable.
927 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
929 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
932 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
933 (negmulsf3_vfp): Likewise.
934 (muldf3negdf_vfp): Disable for -frounding-math.
935 (mulsf3negsf_vfp): Likewise.
936 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
937 fix MULT cost with -frounding-math.
939 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
941 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
942 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
943 explicit. Prefer to add the flag whenever possible.
944 (noce_process_if_block): Try noce_try_store_flag_constants before
947 2015-08-03 Richard Biener <rguenther@suse.de>
949 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
950 New hash-map to record equivalent transforms.
951 (dt_node::analyze): Populate the equivalent transforms hash-map.
952 (dt_simplify::info): Add reference to hash-map entry.
953 (dt_simplify::gen): If we have split out a function for the
954 transform, generate a call to it.
955 (sinfo_hashmap_traits::hash): New function.
956 (compare_op): New helper function for ...
957 (sinfo_hashmap_traits::equal_keys): ... this new function.
958 (decision_tree::gen): Split out common equivalent transforms
961 2015-08-03 Richard Biener <rguenther@suse.de>
963 * gimple-fold.c (fold_gimple_assign): Remove folding of
964 the comparison in COND_EXPRs.
966 2015-08-03 Richard Biener <rguenther@suse.de>
968 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
969 on the rhs of assignments first simplify the embedded
972 2015-08-03 Richard Biener <rguenther@suse.de>
974 PR tree-optimization/66917
975 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
977 (DR_VECT_AUX): New macro.
978 (set_dr_misalignment): Adjust.
979 (dr_misalignment): Likewise.
980 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
981 Compute whether the base is at least element aligned.
982 * tree-vect-stmts.c (ensure_base_align): Adjust.
983 (vectorizable_store): If the base is not element aligned
984 preserve alignment of the original access if misalignment is unknown.
985 (vectorizable_load): Likewise.
987 2015-08-02 Martin Sebor <msebor@redhat.com>
989 * c-family/c.opt (-Wframe-address): New warning option.
990 * doc/invoke.texi (Wframe-address): Document it.
991 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
992 Clarify possible effects of calling the functions with non-zero
993 arguments and mention -Wframe-address.
994 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
996 2015-08-01 Michael Collison <michael.collison@linaro.org
997 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
999 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
1000 (*arm_umin_cmp): Likewise.
1002 2015-08-01 Caroline Tice <cmtice@google.com>
1005 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
1007 (vtbl_find_mangled_name): New function.
1008 (vtbl_register_mangled_name): New function.
1009 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
1010 mangled name in mangled name vectors.
1011 (find_or_create_vtbl_map_node): Ditto.
1012 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
1013 update recursion_depth on function entry; pass it to every recursive
1014 call; automatically exit if depth > 25 (give up looking at that point).
1015 (verify_bb_vtables): Initialize recursion_depth and pass it to
1016 var_is_used_for_virtual_call_p.
1017 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
1018 global variable decls.
1019 (vtbl_register_mangled_name): New extern function decl.
1021 2015-08-01 Tom de Vries <tom@codesourcery.com>
1023 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
1025 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
1027 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
1028 operation_no_trapping_overflow. Allow non-overflow operations.
1029 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
1032 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
1035 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
1037 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1039 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
1040 Enable for TARGET_32BIT.
1041 (*if_move_neg): Likewise.
1043 2015-07-31 Nick Clifton <nickc@redhat.com>
1045 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
1046 Returns true for __model__.
1047 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
1049 2015-07-31 Alan Modra <amodra@gmail.com>
1052 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
1053 (rs6000_emit_prologue): Set it.
1054 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
1056 2015-07-31 Richard Biener <rguenther@suse.de>
1058 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
1059 -> X == (C1 ^ C2) which is already implemented in match.pd.
1060 Remove redundant dispatching to fold_relational_const.
1061 Move unordered self and NaN compares ...
1062 * match.pd: ... as patterns here. Remove some stray captures
1065 2015-07-31 Petr Murzin <petr.murzin@intel.com>
1067 * config/i386/i386.c
1068 (bdesc_special_args): Convert mask type from signed to unsigned for
1070 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
1071 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
1072 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
1073 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
1074 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
1075 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
1076 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
1077 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
1078 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
1079 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
1080 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
1081 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
1082 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
1083 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
1084 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
1085 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
1086 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
1087 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
1088 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
1089 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
1090 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
1091 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
1092 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
1093 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
1094 * config/i386/i386-builtin-types.def
1095 (V16QI_FTYPE_V16SI): Remove.
1096 (V8DF_FTYPE_V8SI): Ditto.
1097 (V8HI_FTYPE_V8DI): Ditto.
1098 (V8SI_FTYPE_V8DI): Ditto.
1099 (V8SF_FTYPE_V8DF): Ditto.
1100 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
1101 (V16HI_FTYPE_V16SI): Ditto.
1102 (V16SF_FTYPE_V16HI): Ditto.
1103 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
1104 (V16SF_FTYPE_V16SI): Ditto.
1105 (V4DI_FTYPE_V4DI): Ditto.
1106 (V16SI_FTYPE_V16SF): Ditto.
1107 (V16SF_FTYPE_FLOAT): Ditto.
1108 (V8DF_FTYPE_DOUBLE): Ditto.
1109 (V8DI_FTYPE_INT64): Ditto.
1110 (V8DI_FTYPE_V4DI): Ditto.
1111 (V16QI_FTYPE_V8DI): Ditto.
1112 (UINT_FTYPE_V4SF): Ditto.
1113 (UINT64_FTYPE_V4SF): Ditto.
1114 (UINT_FTYPE_V2DF): Ditto.
1115 (UINT64_FTYPE_V2DF): Ditto.
1116 (V16SI_FTYPE_V16SI): Ditto.
1117 (V8DI_FTYPE_V8DI): Ditto.
1118 (V16SI_FTYPE_PV4SI): Ditto.
1119 (V16SF_FTYPE_PV4SF): Ditto.
1120 (V8DI_FTYPE_PV2DI): Ditto.
1121 (V8DF_FTYPE_PV2DF): Ditto.
1122 (V4DI_FTYPE_PV2DI): Ditto.
1123 (V4DF_FTYPE_PV2DF): Ditto.
1124 (V16SI_FTYPE_PV2SI): Ditto.
1125 (V16SF_FTYPE_PV2SF): Ditto.
1126 (V8DI_FTYPE_PV4DI): Ditto.
1127 (V8DF_FTYPE_PV4DF): Ditto.
1128 (V8SF_FTYPE_FLOAT): Ditto.
1129 (V4SF_FTYPE_FLOAT): Ditto.
1130 (V4DF_FTYPE_DOUBLE): Ditto.
1131 (V8SF_FTYPE_PV4SF): Ditto.
1132 (V8SI_FTYPE_PV4SI): Ditto.
1133 (V4SI_FTYPE_PV2SI): Ditto.
1134 (V8SF_FTYPE_PV2SF): Ditto.
1135 (V8SI_FTYPE_PV2SI): Ditto.
1136 (V16SF_FTYPE_PV8SF): Ditto.
1137 (V16SI_FTYPE_PV8SI): Ditto.
1138 (V8DI_FTYPE_V8SF): Ditto.
1139 (V4DI_FTYPE_V4SF): Ditto.
1140 (V2DI_FTYPE_V4SF): Ditto.
1141 (V64QI_FTYPE_QI): Ditto.
1142 (V32HI_FTYPE_HI): Ditto.
1143 (V8UHI_FTYPE_V8UHI): Ditto.
1144 (V16UHI_FTYPE_V16UHI): Ditto.
1145 (V32UHI_FTYPE_V32UHI): Ditto.
1146 (V2UDI_FTYPE_V2UDI): Ditto.
1147 (V4UDI_FTYPE_V4UDI): Ditto.
1148 (V8UDI_FTYPE_V8UDI): Ditto.
1149 (V4USI_FTYPE_V4USI): Ditto.
1150 (V8USI_FTYPE_V8USI): Ditto.
1151 (V16USI_FTYPE_V16USI): Ditto.
1152 (V2DF_FTYPE_V2DF_UINT64): Ditto.
1153 (V2DI_FTYPE_V2DF_V2DF): Ditto.
1154 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
1155 (V8DF_FTYPE_V8DF_V8DI): Ditto.
1156 (V4SF_FTYPE_V4SF_UINT64): Ditto.
1157 (V4SI_FTYPE_V4SF_V4SF): Ditto.
1158 (V16SF_FTYPE_V16SF_V16SI): Ditto.
1159 (V64QI_FTYPE_V32HI_V32HI): Ditto.
1160 (V32HI_FTYPE_V16SI_V16SI): Ditto.
1161 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
1162 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
1163 (V32HI_FTYPE_V64QI_V64QI): Ditto.
1164 (V32HI_FTYPE_V32HI_V32HI): Ditto.
1165 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
1166 (V16SI_FTYPE_V16SI_V4SI): Ditto.
1167 (V16SI_FTYPE_V16SI_V16SI): Ditto.
1168 (V16SI_FTYPE_V32HI_V32HI): Ditto.
1169 (V16SI_FTYPE_V16SI_SI): Ditto.
1170 (V8DI_FTYPE_V8DI_V8DI): Ditto.
1171 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
1172 (V8DI_FTYPE_V16SI_V16SI): Ditto.
1173 (V8DI_FTYPE_V8DI_V2DI): Ditto.
1174 (QI_FTYPE_QI): Ditto.
1175 (SI_FTYPE_SI): Ditto.
1176 (DI_FTYPE_DI): Ditto.
1177 (QI_FTYPE_QI_QI): Ditto.
1178 (QI_FTYPE_QI_INT): Ditto.
1179 (HI_FTYPE_HI_INT): Ditto.
1180 (SI_FTYPE_SI_INT): Ditto.
1181 (DI_FTYPE_DI_INT): Ditto.
1182 (HI_FTYPE_V16QI_V16QI): Ditto.
1183 (SI_FTYPE_V32QI_V32QI): Ditto.
1184 (DI_FTYPE_V64QI_V64QI): Ditto.
1185 (QI_FTYPE_V8HI_V8HI): Ditto.
1186 (HI_FTYPE_V16HI_V16HI): Ditto.
1187 (SI_FTYPE_V32HI_V32HI): Ditto.
1188 (QI_FTYPE_V4SI_V4SI): Ditto.
1189 (QI_FTYPE_V8SI_V8SI): Ditto.
1190 (QI_FTYPE_V2DI_V2DI): Ditto.
1191 (QI_FTYPE_V4DI_V4DI): Ditto.
1192 (QI_FTYPE_V8DI_V8DI): Ditto.
1193 (HI_FTYPE_V16SI_V16SI): Ditto.
1194 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
1195 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
1196 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
1197 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
1198 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
1199 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
1200 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
1201 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
1202 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
1203 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
1204 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
1205 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
1206 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
1207 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
1208 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
1209 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
1210 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
1211 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
1212 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
1213 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
1214 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
1215 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
1216 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
1217 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
1218 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
1219 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
1220 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
1221 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
1222 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
1223 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
1224 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
1225 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
1226 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
1227 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
1228 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
1229 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
1230 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
1231 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
1232 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
1233 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
1234 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
1235 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
1236 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
1237 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
1238 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
1239 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
1240 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
1241 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
1242 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
1243 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
1244 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
1245 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
1246 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
1247 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
1248 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
1249 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
1250 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
1251 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
1252 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
1253 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
1254 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
1255 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
1256 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
1257 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
1258 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
1259 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
1260 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
1261 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
1262 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
1263 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
1264 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
1265 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
1266 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
1267 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
1268 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
1269 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
1270 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
1271 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
1272 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
1273 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
1274 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
1275 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
1276 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
1277 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
1278 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
1279 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
1280 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
1281 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
1282 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
1283 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
1284 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
1285 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
1286 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
1287 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
1288 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
1289 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
1290 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
1291 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
1292 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
1293 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
1294 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
1295 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
1296 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
1297 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
1298 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
1299 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
1300 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
1301 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
1302 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
1303 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
1304 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
1305 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
1306 (HI_FTYPE_HI): Ditto.
1307 (HI_FTYPE_V16QI): Ditto.
1308 (SI_FTYPE_V32QI): Ditto.
1309 (DI_FTYPE_V64QI): Ditto.
1310 (QI_FTYPE_V8HI): Ditto.
1311 (HI_FTYPE_V16HI): Ditto.
1312 (SI_FTYPE_V32HI): Ditto.
1313 (QI_FTYPE_V4SI): Ditto.
1314 (QI_FTYPE_V8SI): Ditto.
1315 (HI_FTYPE_V16SI): Ditto.
1316 (QI_FTYPE_V2DI): Ditto.
1317 (QI_FTYPE_V4DI): Ditto.
1318 (QI_FTYPE_V8DI): Ditto.
1319 (V16QI_FTYPE_HI): Ditto.
1320 (V32QI_FTYPE_SI): Ditto.
1321 (V64QI_FTYPE_DI): Ditto.
1322 (V8HI_FTYPE_QI): Ditto.
1323 (V16HI_FTYPE_HI): Ditto.
1324 (V32HI_FTYPE_SI): Ditto.
1325 (V4SI_FTYPE_QI): Ditto.
1326 (V4SI_FTYPE_HI): Ditto.
1327 (V8SI_FTYPE_QI): Ditto.
1328 (V8SI_FTYPE_HI): Ditto.
1329 (V2DI_FTYPE_QI): Ditto.
1330 (V4DI_FTYPE_QI): Ditto.
1331 (HI_FTYPE_HI_HI): Ditto.
1332 (SI_FTYPE_SI_SI): Ditto.
1333 (DI_FTYPE_DI_DI): Ditto.
1334 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
1335 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
1336 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
1337 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
1338 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
1339 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
1340 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
1341 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
1342 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
1343 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
1344 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
1345 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
1346 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
1347 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
1348 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
1349 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
1350 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
1351 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
1352 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
1353 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
1354 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
1355 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
1356 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
1357 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
1358 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
1359 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
1360 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
1361 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
1362 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
1363 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
1364 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
1365 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
1366 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
1367 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
1368 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
1369 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
1370 (V16SI_FTYPE_HI): Ditto.
1371 (V8DI_FTYPE_QI): Ditto.
1372 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
1373 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
1374 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
1375 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
1376 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
1377 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
1378 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
1379 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
1380 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
1381 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
1382 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
1383 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
1384 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
1385 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
1386 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
1387 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
1388 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
1389 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
1390 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
1391 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
1392 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
1393 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
1394 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
1395 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
1396 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
1397 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
1398 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
1399 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
1400 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
1401 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
1402 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
1403 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
1404 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
1405 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
1406 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
1407 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
1408 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
1409 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
1410 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
1411 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
1412 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
1413 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
1414 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
1415 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
1416 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
1417 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
1418 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
1419 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
1420 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
1421 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
1422 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
1423 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
1424 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
1425 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
1426 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
1427 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
1428 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
1429 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
1430 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
1431 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
1432 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
1433 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
1434 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
1435 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
1436 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
1437 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
1438 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
1439 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
1440 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
1441 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
1442 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
1443 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
1444 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
1445 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
1446 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
1447 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
1448 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
1449 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
1450 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
1451 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
1452 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
1453 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
1454 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
1455 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
1456 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
1457 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
1458 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
1459 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
1460 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
1461 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
1462 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
1463 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
1464 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
1465 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
1466 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
1467 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
1468 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
1469 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
1470 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
1471 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
1472 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
1473 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
1474 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
1475 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
1476 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
1477 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
1478 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
1479 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
1480 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
1481 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
1482 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
1483 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
1484 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
1485 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
1486 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
1487 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
1488 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
1489 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
1490 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
1491 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
1492 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
1493 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
1494 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
1495 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
1496 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
1497 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
1498 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
1499 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
1500 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
1501 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
1502 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
1503 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
1504 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
1505 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
1506 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
1507 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
1508 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
1509 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
1510 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
1511 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
1512 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
1513 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
1514 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
1515 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
1516 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
1517 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
1518 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
1519 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
1520 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
1521 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
1522 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
1523 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
1524 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
1525 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
1526 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
1527 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
1528 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
1529 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
1530 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
1531 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
1532 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
1533 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
1534 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
1535 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
1536 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
1537 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
1538 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
1539 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
1540 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
1541 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
1542 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
1543 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
1544 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
1545 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
1546 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
1547 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
1548 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
1549 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
1550 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
1551 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
1552 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
1553 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
1554 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
1555 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
1556 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
1557 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
1558 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
1559 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
1560 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
1561 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
1562 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
1563 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
1564 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
1565 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
1566 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
1567 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
1568 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
1569 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
1570 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
1571 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
1572 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
1573 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
1574 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
1575 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
1576 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
1577 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
1578 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
1579 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
1580 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
1581 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
1582 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
1583 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
1584 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
1585 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
1586 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
1587 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
1588 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
1589 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
1590 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
1591 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
1592 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
1593 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
1594 (QI_FTYPE_V8DF_INT_QI): Ditto.
1595 (QI_FTYPE_V4DF_INT_QI): Ditto.
1596 (QI_FTYPE_V2DF_INT_QI): Ditto.
1597 (HI_FTYPE_V16SF_INT_HI): Ditto.
1598 (QI_FTYPE_V8SF_INT_QI): Ditto.
1599 (QI_FTYPE_V4SF_INT_QI): Ditto.
1600 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
1602 2015-07-31 Richard Biener <rguenther@suse.de>
1604 * gimple-fold.c (fold_gimple_assign): Remove folding of
1607 2015-07-31 Tom de Vries <tom@codesourcery.com>
1609 PR tree-optimization/66846
1610 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
1611 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
1612 (expand_omp_target) [ENABLE_CHECKING]: Same.
1613 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
1614 cfun if !LOOPS_NEED_FIXUP.
1615 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
1616 that omp_for already has its own loop struct.
1617 * tree-parloops.c (create_phi_for_local_result)
1618 (create_call_for_reduction): Handle simple latch bb.
1619 (create_parallel_loop): Add simple latch bb to preserve
1620 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
1621 (gen_parallel_loop): Remove call to cancel_loop_tree.
1622 (parallelize_loops): Skip loops that are inner loops of parallelized
1624 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
1625 verify_loop_structure.
1627 2015-07-30 Anatoly Sokolov <aesok@post.ru>
1629 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
1630 * config/v850/v850.md (RV_REGNUM): New constants.
1631 * config/v850/v850.c (v850_libcall_value): New functions.
1632 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
1633 (TARGET_LIBCALL_VALUE): Define.
1635 2015-07-30 Anatoly Sokolov <aesok@post.ru>
1637 * rtl.h (lowpart_subreg): Move in file.
1638 * loop-iv.c (lowpart_subreg): Move to...
1639 * simplify-rtx.c (lowpart_subreg): ...here.
1640 (simplify_binary_operation_1): Use lowpart_subreg instead of
1641 simplify_gen_subreg.
1642 * expr.c (expand_expr_real_2): Ditto.
1643 * emit-rtl.c (gen_lowpart_common): Ditto.
1644 * combine.c (gen_lowpart_for_combine): Ditto.
1645 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
1646 expand_debug_source_expr): Ditto.
1648 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
1650 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
1651 (expand_builtin_atomic_clear): Remove support for atomic_clear
1654 2015-07-30 Richard Biener <rguenther@suse.de>
1656 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
1657 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
1658 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
1659 redundant operand canonicalization.
1661 2015-07-30 David Sherwood <david.sherwood@arm.com>
1663 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
1664 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
1665 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
1666 * config/arm/arm.c (neon_valid_immediate): Likewise.
1667 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
1668 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
1669 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
1670 (expand_vec_perm_vpshufb2_vpermq): Likewise.
1671 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
1672 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
1673 * config/i386/sse.md
1674 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
1675 (*ssse3_palignr<mode>_perm): Likewise.
1676 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
1677 * config/spu/spu.c (arith_immediate_p): Likewise.
1678 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1679 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
1681 2015-07-30 Richard Biener <rguenther@suse.de>
1683 * genmatch.c (decision_tree::gen_gimple): Merge with ...
1684 (decision_tree::gen_generic): ... this into ...
1685 (decision_tree::gen): ... this.
1686 (main): Adjust callers.
1688 2015-07-30 Richard Biener <rguenther@suse.de>
1690 * genmatch.c (verbose): New global.
1691 (warning_at): Add overload with source_location.
1692 (capture_info::capture_info): Add bool whether generating gimple
1693 or generic. Add gimple member.
1694 (capture_info::cinfo): Add capture member.
1695 (capture_info::walk_match): Record capture. Warn on
1697 (capture_info::walk_c_expr): Add more fragments captures cannot
1698 escape through. Warn on escaped captures.
1699 (dt_simplify::gen_1): Warn on operands we force to have no
1701 (main): Initialize verbose.
1702 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
1704 2015-07-30 Richard Biener <rguenther@suse.de>
1707 * match.pd: Allow both operands to independently have conversion
1708 when simplifying compares of addresses.
1710 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
1714 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
1715 around those cases that need one.
1717 2015-07-29 Aditya Kumar <hiraditya@msn.com>
1719 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
1721 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
1723 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
1724 New. Copied from config/i386/gnu-user.h.
1725 (ASM_COMMENT_START): Likewise.
1726 (DBX_REGISTER_NUMBER): Likewise.
1728 2015-07-29 Richard Biener <rguenther@suse.de>
1730 * gimple-fold.c (fold_gimple_cond): Remove.
1731 (fold_stmt_1): Do not call it.
1733 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
1735 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
1736 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
1738 * config/aarch64/aarch64-modes.def: Add HFmode.
1740 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1741 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
1743 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
1744 aarch64_promoted_type): New.
1746 (aarch64_float_const_representable_p): Disable HFmode.
1747 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
1748 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
1749 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
1751 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
1752 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
1754 * config/aarch64/iterators.md (GPF_F16): New.
1756 2015-07-29 Richard Biener <rguenther@suse.de>
1758 * match.pd: Merge address comparison patterns and make them
1759 handle some more cases.
1761 2015-07-29 Richard Biener <rguenther@suse.de>
1763 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
1764 (parser::parse_capture): Add bool argument on whether to reject
1766 (parser::parse_expr): Adjust.
1767 (parser::parse_op): Likewise.
1768 (parser::parse_pattern): Likewise.
1770 2015-07-29 Richard Biener <rguenther@suse.de>
1772 * gimple-fold.c (has_use_on_stmt): New function.
1773 (replace_stmt_with_simplification): Use it to allow
1774 abnormals originally referenced in the stmt.
1775 (fold_stmt_1): Canonicalize operand order.
1777 2015-07-28 David Sherwood <david.sherwood@arm.com>
1779 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
1780 GET_MODE_INNER unconditionally.
1781 * config/spu/spu.c (arith_immediate_p): Likewise.
1782 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
1783 * expmed.c (synth_mult): Remove check for VOIDmode result from
1785 (expand_mult_const): Likewise.
1786 * fold-const.c (fold_binary_loc): Replace call to element_precision
1787 with call to GET_MODE_PRECISION.
1788 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
1790 (emit_mode_inner): Likewise.
1791 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
1793 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
1794 (GET_MODE_UNIT_PRECISION): Likewise.
1795 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
1796 * simplify-rtx.c (simplify_immed_subreg): Likewise.
1797 * stor-layout.c (bitwise_type_for_mode): Update assert.
1798 (element_precision): Remove.
1800 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1802 * target-insns.def (reload_load_address): New targetm instruction
1804 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
1806 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1808 * target-insns.def (atomic_test_and_set): New targetm instruction
1810 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
1811 HAVE_*/gen_* interface.
1813 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1815 * target-insns.def (can_extend, ptr_extend): New targetm instruction
1817 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
1818 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1819 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
1820 * rtlanal.c (nonzero_bits1): Likewise.
1821 (num_sign_bit_copies1): Likewise.
1823 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1825 * target-insns.def (eh_return): New targetm instruction pattern.
1826 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
1828 * function.c (thread_prologue_and_epilogue_insns): Remove
1829 preprocessor condition.
1831 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1833 * target-insns.def (indirect_jump): New targetm instruction pattern.
1834 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
1837 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1839 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
1840 instead of nonimmediate_operand. Remove C condiition.
1842 2015-07-28 Richard Biener <rguenther@suse.de>
1844 * match.pd: Add more simplification of address comparisons.
1846 2015-07-28 Richard Biener <rguenther@suse.de>
1848 * match.pd: Re-order two cases in comparison with max/min
1849 value simplification to make it apply for bools.
1851 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1853 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
1854 Handle simple SIGN_EXTEND or ZERO_EXTEND.
1855 (aarch64_rtx_costs): Properly strip extend or extract before
1856 passing down to rtx costs again.
1858 2015-07-28 Nick Clifton <nickc@redhat.com>
1860 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
1861 Optimizes the case where -mes0 is active and a constant symbolic
1863 * config/rl78/rl78-protos.h: Prototype the new function.
1864 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
1866 2015-07-28 Tom de Vries <tom@codesourcery.com>
1868 * tree-parloops.c (reduc_stmt_res): New function.
1869 (initialize_reductions, add_field_for_reduction)
1870 (create_phi_for_local_result, create_loads_for_reductions)
1871 (create_stores_for_reduction, build_new_reduction): Handle case that
1872 reduc_stmt is a phi.
1873 (gather_scalar_reductions): Allow double_reduc reductions.
1875 2015-07-28 Richard Biener <rguenther@suse.de>
1877 * fold-const.c (fold_comparison): Remove equality folding
1878 of decl addresses ...
1879 * match.pd: ... here and merge with existing pattern.
1881 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
1883 PR tree-optimization/66828
1884 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
1885 from int64_t to uint64_t.
1887 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
1889 * opts-common.c (read_cmdline_option): List DriverOnly enum values
1890 as valid only in the error message of the driver, not in the
1891 messages of the language compilers.
1893 2015-07-27 Tom de Vries <tom@codesourcery.com>
1895 * tree-parloops.c (gather_scalar_reductions): Simplify function
1898 2015-07-27 Marek Polacek <polacek@redhat.com>
1900 * ipa-devirt.c (types_same_for_odr): Fix typo.
1902 2015-07-27 Jason Merrill <jason@redhat.com>
1905 * dwarf2out.c (gen_inlined_subroutine_die): Check
1906 cgraph_function_possibly_inlined_p.
1908 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
1910 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
1911 Place integer variant first.
1912 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
1914 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
1917 * config/arm/arm-builtins.c (enum arm_builtins):
1918 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
1919 (ARM_BUILTIN_NEON_BASE): Rename macro to....
1920 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
1921 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
1922 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
1924 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
1927 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
1928 Add qualifier_lane_index.
1929 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
1930 (arm_getlane_qualifiers): Use qualifier_lane_index.
1931 (arm_lanemac_qualifiers): Rename to...
1932 (arm_mac_n_qualifiers): ...this.
1933 (LANEMAC_QUALIFIERS): Rename to...
1934 (MAC_N_QUALIFIERS): ...this.
1935 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
1936 (arm_setlane_qualifiers): Use qualifier_lane_index.
1937 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
1938 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
1939 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
1940 (arm_expand_neon_builtin): Handle qualifier_lane_index.
1942 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
1943 * config/arm/arm.c (bounds_check): Likewise, improve error message.
1944 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
1945 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
1946 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
1947 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
1948 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
1949 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
1950 qualifiers to TERNOP_IMM.
1951 (vdup_lane): Change qualifiers to GETLANE.
1952 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
1953 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
1954 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
1955 vqdmlsl_n): Change qualifiers to MAC_N.
1957 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
1958 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
1959 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
1960 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
1961 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
1962 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
1963 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
1964 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
1965 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
1966 Remove call to neon_lane_bounds.
1968 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
1970 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
1971 Place integer variant first.
1973 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
1975 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
1976 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
1977 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
1978 for armv6kz targets.
1979 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
1980 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
1981 (FL_FOR_ARCH6ZK): Remove.
1982 (FL_FOR_ARCH6KZ): New.
1983 (arm_arch6zk): New declaration.
1984 * config/arm/arm-tables.opt: Regenerate.
1985 * config/arm/arm.c (arm_arch6kz): New.
1986 (arm_option_override): Set arm_arch6kz.
1987 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
1988 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
1989 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
1991 2015-07-27 Marek Polacek <polacek@redhat.com>
1995 * doc/invoke.texi: Document -Wtautological-compare.
1997 2015-07-27 Richard Biener <rguenther@suse.de>
1999 * genmatch.c (decision_tree::gen_gimple): Split out large
2000 subtrees into separate functions.
2001 (decision_tree::gen_generic): Likewise.
2003 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
2005 * config/alpha/alpha.c: Use SUBREG_P predicate.
2006 * config/alpha/predicates.md: Ditto.
2008 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
2010 * config.host (s390*-*-*): Include driver-native.c only when
2011 building with s390* as host *and* target.
2013 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
2016 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
2017 T bit register modified_between_p check.
2019 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2021 * config/i386/i386.c: Use SUBREG_P predicate.
2022 * config/i386/i386.md: Ditto.
2023 * config/i386/sse.md: Ditto.
2024 * config/i386/predicates.md: Ditto.
2026 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2029 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
2030 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
2032 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2034 * Makefile.in: Remove use of TREEBROWSER.
2035 * config.in: Regenerated.
2036 * configure: Regenerated.
2037 * configure.ac: Remove definition of TREEBROWSER.
2038 * tree-browser.c: Removed.
2039 * tree-browser.def: Removed.
2041 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2043 * graphite-scop-detection.c: Include gimple-pretty-print.h.
2044 (stmt_simple_for_scop_p): Print when a stmt is not handled in
2046 (scopdet_basic_block_info): Print when a loop or bb cannot be
2047 represented in Graphite.
2049 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2052 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
2053 execution guard when min_size is less than size_needed.
2055 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2057 * doc/install.texi: Document supported versions of ISL.
2059 2015-07-25 Jeff Law <law@redhat.com>
2063 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2064 unable to find X NE 0 in the tables, return X as the simplified
2066 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2067 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2069 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2070 after removing the control flow statement and unnecessary edges.
2072 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
2075 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
2077 PR rtl-optimization/64164
2078 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2079 * tree-ssa-copyrename.c: Removed.
2080 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2081 -ftree-coalesce-vars.
2082 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2083 * common.opt (ftree-copyrename): Ignore.
2084 (ftree-coalesce-inlined-vars): Likewise.
2085 * doc/invoke.texi: Remove the ignored options above.
2086 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2087 * tree-ssa-coalesce.h: ... here.
2088 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2089 headers required by it.
2090 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2091 across variables when flag_tree_coalesce_vars. Check register
2092 use and promoted modes to allow coalescing. Moved to
2093 tree-ssa-coalesce.c.
2094 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2095 with its member functions to tree-ssa-coalesce.c.
2096 (var_map_base_init): Likewise. Renamed to
2097 compute_samebase_partition_bases.
2098 (partition_view_normal): Drop want_bases parameter.
2099 (partition_view_bitmap): Likewise.
2100 * tree-ssa-live.h: Adjust declarations.
2101 * tree-ssa-coalesce.c: Include explow.h.
2102 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2103 default defs at the entry point.
2104 (dump_part_var_map): New.
2105 (compute_optimized_partition_bases): New, called by...
2106 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2107 of compute_samebase_partition_bases. Adjust.
2108 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2109 * cfgexpand.c (leader_merge): New.
2110 (get_rtl_for_parm_ssa_default_def): New.
2111 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2112 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2113 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2114 redundant MEM attr setting.
2115 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2117 (expand_one_stack_var): ... this. New wrapper to check and
2118 skip already expanded SSA partitions.
2119 (record_alignment_for_reg_var): New, factored out of...
2120 (expand_one_var): ... this.
2121 (expand_one_ssa_partition): New.
2122 (adjust_one_expanded_partition_var): New.
2123 (expand_one_register_var): Check and skip already expanded SSA
2125 (expand_used_vars): Don't create DECLs for anonymous SSA
2126 names. Expand all SSA partitions, then adjust all SSA names.
2127 (pass::execute): Replace the loops that set
2128 SA.partition_to_pseudo from partition leaders and cleared
2129 DECL_RTL for multi-location variables, and that which used to
2130 rename vars and set attrs, with one that clears DECL_RTL and
2131 checks that PARMs and RESULTs default_defs match DECL_RTL.
2132 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2133 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2134 * explow.c (promote_ssa_mode): New.
2135 * explow.h (promote_ssa_mode): Declare.
2136 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2137 * function.c: Include cfgexpand.h.
2138 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2139 (use_register_for_parm_decl): Wrapper for the above to
2140 special-case the result_ptr.
2141 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2142 (split_complex_args): Take assign_parm_data_all argument.
2143 Pass it to rtl_for_parm. Set up rtl and context for split
2145 (assign_parms_augmented_arg_list): Adjust.
2146 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2147 multiple locations. Recognize split complex args.
2148 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2149 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2150 (assign_parm_setup_block): Prefer SSA-assigned location.
2151 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2152 if stack_parm is NULL.
2153 (assign_parm_setup_stack): Prefer SSA-assigned location.
2154 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2155 rtl before testing for pointer bounds. Special-case result_ptr.
2156 (expand_function_start): Maybe reset DECL_RTL of result.
2157 Prefer SSA-assigned location for result and static chain.
2158 Factor out DECL_RESULT and SET_DECL_RTL.
2159 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2160 anonymous SSA names. Use promote_ssa_mode.
2161 (get_temp_reg): Likewise.
2162 (remove_ssa_form): Adjust.
2163 * stor-layout.c (layout_decl): Don't set mem attributes of
2165 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2166 and get its reg_usage for reg invalidation.
2167 (compute_bb_dataflow): Pass it insn.
2168 (emit_notes_in_bb): Likewise.
2170 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2172 * config/i386/i386.c (ix86_va_start): Remove
2173 unneeded !TARGET_64BIT check.
2174 (ix86_gimplify_va_arg): Ditto.
2176 2015-07-24 Tom de Vries <tom@codesourcery.com>
2178 * graphite-sese-to-poly.c (build_poly_scop): Always call
2179 rewrite_commutative_reductions_out_of_ssa.
2181 2015-07-24 Tom de Vries <tom@codesourcery.com>
2183 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
2184 flag_associative_math to FLOAT_TYPE_P. Honour
2185 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
2187 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
2190 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
2191 and "%qD" in warning_at instead of "%q+D" in warning.
2193 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
2195 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
2196 (ix86_function_abi): Cleanup.
2198 2015-07-24 Michael Darling <darlingm@gmail.com>
2201 * acinclude.m4: Reflects renaming of configure.in to configure.ac
2202 * configure: Likewise
2203 * configure.ac: Likewise
2204 * doc/install.texi: Likewise
2205 * doc/tm.texi: Likewise
2206 * doc/tm.texi.in: Likewise
2208 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2210 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
2211 manually swapping values.
2212 * cse.c (fold_rtx): Likewise.
2213 * lra-eliminations.c (form_sum): Likewise.
2215 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
2218 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
2219 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
2220 (*jcc_1, *jcc_2, jump, simple_return_internal)
2221 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
2222 Set length_nobnd attribute instead of length attribute.
2223 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
2224 (length_nobnd): Remove attribute.
2225 (length): Remove length_nobnd processing.
2227 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
2229 * gimplify.c (omp_default_clause): New function. Reorganize flow
2230 for clarity. Broken out of ...
2231 (omp_notice_variable): ... here.
2233 2015-07-24 Gary Funck <gary@intrepid.com>
2236 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
2237 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
2239 2015-07-24 Tom de Vries <tom@codesourcery.com>
2241 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
2242 exit-first loop transform.
2244 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
2247 * tree-cfg.c (struct replace_decls_d): New struct.
2248 (replace_block_vars_by_duplicates_1): New function.
2249 (replace_block_vars_by_duplicates): Use it to replace the decls
2250 in the value exprs by duplicates.
2252 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2254 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
2255 -shared, -symbolic, -rdynamic.
2257 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2260 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
2261 -dynamic-linker within %{!static %{!shared, and -rdynamic within
2264 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
2267 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
2268 edge summary is available.
2270 2015-07-24 Richard Biener <rguenther@suse.de>
2272 * genmatch.c (struct dt_node): Add statistic fields.
2273 (dt_node::analyze): New method.
2274 (decision_tree::gen_gimple): Call analyze on the root node
2275 and print statistics to stderr.
2276 (decision_tree::gen_generic): Likewise.
2278 2015-07-24 Richard Biener <rguenther@suse.de>
2280 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
2281 against the highest or lowest possible integer ...
2282 * match.pd: ... as patterns here.
2284 2015-07-24 Richard Biener <rguenther@suse.de>
2286 * genmatch.c (struct capture_info): Add same_as field.
2287 (capture_info::capture_info): Initialize same_as.
2288 (capture_info::walk_match): Compute same_as.
2289 (capture_info::walk_result): Compute stuff for the leader.
2290 (capture_info::walk_c_expr): Likewise.
2291 (dt_simplify::gen_1): Only look at leaders when deciding
2292 to force no side-effects or emit side-effects of omitted operands.
2294 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2296 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
2297 reg note to the GPR -> FPR save instructions.
2299 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2301 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
2303 (s390_expand_insv): Don't generate risbg pattern for constant zero
2305 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
2306 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
2309 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2311 * config/s390/s390.c (s390_reorg): Clean up handling of processors
2314 (s390_issue_rate): Likewise.
2315 (s390_sched_reorder): Likewise.
2316 (s390_sched_variable_issue): Likewise.
2317 (s390_loop_unroll_adjust): Likewise.
2318 (s390_option_override): Likewise.
2320 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2322 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
2323 processor capabilities with -march=native.
2324 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
2325 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
2326 (S390_TARGET_BITS_STRING): Macro to simplify specs.
2328 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2330 * config/s390/s390.c (s390_issue_rate): Handle
2331 PROCESSOR_2094_Z9_EC.
2332 (s390_option_override): Likewise.
2333 (s390_adjust_priority): Likewise.
2335 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2337 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
2338 when cross compiling.
2340 2015-07-24 Richard Biener <rguenther@suse.de>
2342 * fold-const.c (maybe_canonicalize_comparison_1): Move
2343 A code CST canonicalization ...
2344 * match.pd: ... to a pattern here.
2346 2015-07-24 Jiong Wang <jiong.wang@arm.com>
2349 2015-07-22 Jiong Wang <jiong.wang@arm.com>
2351 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
2352 (HONOR_REG_ALLOC_ORDER): Define.
2354 2015-07-24 Richard Biener <rguenther@suse.de>
2356 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
2357 * fold-const.c (fold_comparison): Move parameter does not
2358 alias &local simplification ...
2359 * match.pd: ... as a pattern here.
2361 2015-07-24 Richard Biener <rguenther@suse.de>
2363 * gimple-fold.c (replace_stmt_with_simplification): Special-case
2364 valueizing call operands.
2365 * gimple-match-head.c (maybe_push_res_to_seq): Take
2366 number of call arguments from ops array.
2367 (do_valueize): New function.
2368 (gimple_simplify): Return true if valueization changed
2369 any operand even if the result didn't simplify further.
2371 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2374 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
2376 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2379 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
2381 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2383 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
2386 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2388 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
2391 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
2393 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
2394 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
2396 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
2397 ms_va_list_type_node initialization.
2399 2015-07-23 Jeff Law <law@redhat.com>
2402 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2403 unable to find X NE 0 in the tables, return X as the simplified
2405 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2406 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2408 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2409 after removing the control flow statement and unnecessary edges.
2411 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2413 * tree-pass.h (get_current_pass_name): Removed.
2415 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
2417 PR rtl-optimization/64164
2418 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2419 * tree-ssa-copyrename.c: Removed.
2420 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2421 -ftree-coalesce-vars.
2422 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2423 * common.opt (ftree-copyrename): Ignore.
2424 (ftree-coalesce-inlined-vars): Likewise.
2425 * doc/invoke.texi: Remove the ignored options above.
2426 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2427 * tree-ssa-coalesce.h: ... here.
2428 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2429 headers required by it.
2430 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2431 across variables when flag_tree_coalesce_vars. Check register
2432 use and promoted modes to allow coalescing. Moved to
2433 tree-ssa-coalesce.c.
2434 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2435 with its member functions to tree-ssa-coalesce.c.
2436 (var_map_base_init): Likewise. Renamed to
2437 compute_samebase_partition_bases.
2438 (partition_view_normal): Drop want_bases parameter.
2439 (partition_view_bitmap): Likewise.
2440 * tree-ssa-live.h: Adjust declarations.
2441 * tree-ssa-coalesce.c: Include explow.h.
2442 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2443 default defs at the entry point.
2444 (dump_part_var_map): New.
2445 (compute_optimized_partition_bases): New, called by...
2446 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2447 of compute_samebase_partition_bases. Adjust.
2448 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2449 * cfgexpand.c (leader_merge): New.
2450 (get_rtl_for_parm_ssa_default_def): New.
2451 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2452 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2453 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2454 redundant MEM attr setting.
2455 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2457 (expand_one_stack_var): ... this. New wrapper to check and
2458 skip already expanded SSA partitions.
2459 (record_alignment_for_reg_var): New, factored out of...
2460 (expand_one_var): ... this.
2461 (expand_one_ssa_partition): New.
2462 (adjust_one_expanded_partition_var): New.
2463 (expand_one_register_var): Check and skip already expanded SSA
2465 (expand_used_vars): Don't create DECLs for anonymous SSA
2466 names. Expand all SSA partitions, then adjust all SSA names.
2467 (pass::execute): Replace the loops that set
2468 SA.partition_to_pseudo from partition leaders and cleared
2469 DECL_RTL for multi-location variables, and that which used to
2470 rename vars and set attrs, with one that clears DECL_RTL and
2471 checks that PARMs and RESULTs default_defs match DECL_RTL.
2472 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2473 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2474 * explow.c (promote_ssa_mode): New.
2475 * explow.h (promote_ssa_mode): Declare.
2476 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2477 * function.c: Include cfgexpand.h.
2478 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2479 (use_register_for_parm_decl): Wrapper for the above to
2480 special-case the result_ptr.
2481 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2482 (split_complex_args): Take assign_parm_data_all argument.
2483 Pass it to rtl_for_parm. Set up rtl and context for split
2485 (assign_parms_augmented_arg_list): Adjust.
2486 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2487 multiple locations. Recognize split complex args.
2488 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2489 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2490 (assign_parm_setup_block): Prefer SSA-assigned location.
2491 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2492 if stack_parm is NULL.
2493 (assign_parm_setup_stack): Prefer SSA-assigned location.
2494 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2495 rtl before testing for pointer bounds. Special-case result_ptr.
2496 (expand_function_start): Maybe reset DECL_RTL of result.
2497 Prefer SSA-assigned location for result and static chain.
2498 Factor out DECL_RESULT and SET_DECL_RTL.
2499 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2500 anonymous SSA names. Use promote_ssa_mode.
2501 (get_temp_reg): Likewise.
2502 (remove_ssa_form): Adjust.
2503 * stor-layout.c (layout_decl): Don't set mem attributes of
2505 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2506 and get its reg_usage for reg invalidation.
2507 (compute_bb_dataflow): Pass it insn.
2508 (emit_notes_in_bb): Likewise.
2510 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
2513 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
2515 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
2516 (rs6000_emit_2insn_and): Handle dot forms.
2517 * config/rs6000/rs6000.md (and<mode>3): Adjust.
2518 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
2519 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
2521 2015-07-23 Richard Biener <rguenther@suse.de>
2523 * generic-match-head.c: Include cgraph.h.
2524 * gimple-match-head.c: Likewise.
2525 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
2527 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
2528 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
2531 2015-07-23 Richard Biener <rguenther@suse.de>
2533 * gimple-fold.c (fold_gimple_cond): Do not require folding
2534 results to pass valid_gimple_rhs_p.
2535 * tree-cfg.h (fold_cond_expr_cond): Remove.
2536 * tree-cfg.c (fold_cond_expr_cond): Likewise.
2537 (make_edges): Do not call it.
2538 * tree-inline.c (tree_function_versioning): Likewise.
2540 2015-07-23 Tom de Vries <tom@codesourcery.com>
2542 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
2543 vect_force_simple_reduction.
2544 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
2545 (vect_is_simple_reduction_1): Add and handle
2546 need_wrapping_integral_overflow parameter.
2547 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
2548 need_wrapping_integral_overflow parameter.
2549 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
2550 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
2553 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
2555 PR tree-optimization/66926,66951
2556 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
2557 INNER_LOOP and fix up condition for renaming virtual operands.
2559 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2561 * combine.c (try_combine): Use std::swap instead of manually
2564 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
2566 * config/mips/i6400.md: New file.
2567 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
2568 (mips64r6): Likewise.
2570 * config/mips/mips-tables.opt: Regenerate.
2571 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
2572 (mips_issue_rate): Add support for i6400.
2573 (mips_multipass_dfa_lookahead): Likewise.
2574 * config/mips/mips.h (TUNE_I6400): Define.
2575 * config/mips/mips.md: Include i6400.md.
2576 (processor): Add i6400.
2577 * doc/invoke.texi (-march=@var{arch}): Add i6400.
2579 2015-07-23 Richard Biener <rguenther@suse.de>
2582 * match.pd: Guard widen and sign-change comparison simplification
2585 2015-07-23 Richard Biener <rguenther@suse.de>
2587 PR tree-optimization/66945
2588 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
2589 ::before_dom_children): Force the propagators idea of
2590 non-executable edges to materialize, not what the folder
2593 2015-07-23 Richard Biener <rguenther@suse.de>
2595 * gimple.h (gimple_cond_make_false): Use 0 != 0.
2596 (gimple_cond_make_true): Use 1 != 0.
2598 2015-07-22 DJ Delorie <dj@redhat.com>
2600 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
2603 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
2604 (ashrhi3): Likewise.
2605 (lshrhi3): Likewise.
2606 (movhi): Take advantage of zero-extend to load small constants.
2608 (and<mode>3): Likewise.
2609 (zero_extendqihi2): Likewise.
2610 (zero_extendqisi2): New.
2611 * config/msp430/constraints.md (N,O): New.
2612 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
2614 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
2617 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
2618 to enum feature_priority and feature_list.
2619 (fold_builtin_cpu): Add F_AES to enum processor_features
2620 and isa_names_table.
2622 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
2625 * config/i386/linux-common.h (MPX_SPEC): Use linker option
2626 for 64bit target only.
2628 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
2630 * config/nvptx/nvptx.c: Expand some comments.
2632 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
2634 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
2635 (cortex_a53_advsimd): ...This.
2637 2015-07-22 Richard Biener <rguenther@suse.de>
2639 * genmatch.c (expr::gen_transform): Clarify error message
2640 and display location.
2642 2015-07-22 Richard Biener <rguenther@suse.de>
2644 * genmatch.c (struct operand): Add location member.
2645 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
2647 (struct simplify): Remove match_location and result_location
2649 (elsehwere): Adjust.
2651 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
2653 * config/mips/m5100.md: New file.
2654 * config/mips/mips-cpus.def (m5100, m5101): Define.
2655 * config/mips/mips-tables.opt: Regenerate.
2656 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
2657 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
2658 -march=m5101 to -mips32r5.
2659 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
2660 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
2662 * config/mips/mips.md: Include m5100.md.
2663 (processor): Add m5100.
2664 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
2666 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
2668 * config/mips/mips-cpus.def (interaptiv): Define.
2669 * config/mips/mips-tables.opt: Regenerate.
2670 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
2672 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
2673 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
2675 2015-07-22 Jiong Wang <jiong.wang@arm.com>
2678 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
2679 (HONOR_REG_ALLOC_ORDER): Define.
2681 2015-07-22 Richard Biener <rguenther@suse.de>
2683 PR tree-optimization/66952
2684 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
2685 blocks we end up executing unconditionally reset all SSA
2686 info such as range and alignment.
2687 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
2688 * tree-ssanames.c (reset_flow_sensitive_info): New function.
2690 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
2692 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
2695 2015-07-22 Richard Biener <rguenther@suse.de>
2697 * genmatch.c (parser::parse_result): Properly handle
2698 match with result operands and conditions.
2700 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
2703 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
2704 Add qualifier_struct_load_store_lane_index.
2705 (aarch64_types_loadstruct_lane_qualifiers): Use
2706 qualifier_struct_load_store_lane_index for lane index argument for
2708 (aarch64_types_storestruct_lane_qualifiers): Ditto.
2709 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2710 (aarch64_simd_expand_args): Add new argument describing mode of
2711 builtin. Check lane bounds for arguments with
2712 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2713 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
2714 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2715 (aarch64_simd_expand_builtin): Handle arguments with
2716 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
2717 aarch64_simd_expand_args.
2718 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
2719 vst[234]_lane with BUILTIN_VALLDIF.
2720 * config/aarch64/aarch64-simd.md:
2721 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
2722 endianness reversal on lane index.
2723 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
2724 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
2725 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
2726 (vec_store_lanesci_lane<mode>): Ditto.
2727 (vec_store_lanesxi_lane<mode>): Ditto.
2728 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
2729 reversal of lane index.
2730 (aarch64_ld3_lane<mode>): Ditto.
2731 (aarch64_ld4_lane<mode>): Ditto.
2732 (aarch64_st2_lane<mode>): Ditto.
2733 (aarch64_st3_lane<mode>): Ditto.
2734 (aarch64_st4_lane<mode>): Ditto.
2735 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
2736 to qmode. Add new mode parameter. Update uses.
2737 (__LD3_LANE_FUNC): Ditto.
2738 (__LD4_LANE_FUNC): Ditto.
2739 (__ST2_LANE_FUNC): Ditto.
2740 (__ST3_LANE_FUNC): Ditto.
2741 (__ST4_LANE_FUNC): Ditto.
2743 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
2745 * doc/invoke.texi (Language Independent Options): Rename node to
2746 Diagnostic Message Formatting Options.
2748 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
2751 * lra-remat.c (operand_to_remat): Prevent using insns with input
2752 subregs processed separately by IRA.
2754 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
2756 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
2758 (single_imm_use): Check for iterator node.
2759 (num_imm_uses): Likewise.
2760 * tree-ssa-operands.c (has_zero_uses_1): Delete.
2761 (single_imm_use_1): Check for iterator node.
2763 2015-07-21 Mike Frysinger <vapier@gentoo.org>
2764 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2766 * configure.ac: Add check for new options in isl-0.15.
2767 * config.in, configure: Rebuilt.
2768 * graphite-blocking.c: Include <isl/constraint.h>
2769 * graphite-interchange.c, graphite-poly.c: Likewise.
2770 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
2771 * graphite.c: Likewise.
2772 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
2774 * graphite-dependences.c: Include <isl/constraint.h>.
2775 (max_number_of_out_dimensions): Returns isl_stat.
2776 (extend_schedule_1): Likewise
2777 (extend_schedule): Corresponding changes.
2778 * graphite-optimize-isl.c: Include <isl/constraint.h> and
2780 (getSingleMap): Change return type of isl_stat.
2781 (optimize_isl): Conditionally use
2782 isl_options_set_schedule_serialize_sccs.
2783 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
2784 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
2786 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
2789 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
2790 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
2792 2015-07-21 Richard Biener <rguenther@suse.de>
2794 PR tree-optimization/66948
2795 * genmatch.c (capture_info::walk_match): Also recurse to
2796 captures. Properly compute expr state from captures of
2798 * match.pd: Add single-use guards to
2799 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
2801 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
2803 * config/nvptx/mkoffload.c (process): Add static destructor call.
2805 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2808 * match.pd (A - B -> A + (-B)): Don't allow folding
2809 when type if a fixed-point type.
2811 2015-07-20 DJ Delorie <dj@redhat.com>
2813 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
2814 (iorqi3_real): Likewise for set1.
2816 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
2818 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
2821 2015-07-20 Aditya Kumar <hiraditya@msn.com>
2823 * graphite-isl-ast-to-gimple.c:
2824 Refactor so that each function can access 'region'. This will help
2825 maintain a parameter rename_map within a region.
2827 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2829 * config/rs6000/rs6000.md (*lt0_disi): New.
2831 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2834 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
2835 "available letters" comment.
2836 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
2837 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
2838 and_2rld_operand): Delete.
2839 (and_operand): Adjust.
2840 (rotate_mask_operator): New.
2841 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
2842 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
2843 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
2844 extract_ME): Delete.
2845 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
2846 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
2847 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
2848 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
2849 rs6000_emit_2insn_and): New.
2850 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
2851 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
2852 includes_rldic_lshift_p, includes_rldicr_lshift_p,
2853 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
2854 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
2855 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
2856 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
2857 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
2858 rs6000_emit_2insn_and): New.
2859 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
2860 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
2862 <NOT>: Don't fall through to next case.
2863 <AND>: Handle the various rotate-and-mask cases directly.
2864 <IOR>: Always cost as one insn.
2865 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
2866 (and<mode>3): Adjust expander for the new patterns.
2867 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
2868 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
2869 (*and<mode>3_imm_dot_shifted): New.
2870 (*and<mode>3_mask): Delete, rewrite as ...
2871 (and<mode>3_mask): ... New.
2872 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
2873 (andsi3_internal0_nomc): Delete.
2874 (*andsi3_internal6): Delete.
2875 (*and<mode>3_2insn): New.
2876 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
2877 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
2878 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
2879 *insvdi_internal3): Delete.
2880 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
2881 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
2882 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
2883 *ior<mode>_mask): New.
2884 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
2885 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
2886 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
2887 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
2889 (ashr<mode>3): Delete expander.
2890 (*ashr<mode>3): Rename to ...
2891 (ashr<mode>3): ... This.
2892 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
2893 (*rotldi3_internal4, *rotldi3_internal5 and split,
2894 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
2895 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
2896 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
2897 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
2898 (splitter for loading a mask): Adjust.
2899 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
2901 2015-07-20 Marek Polacek <polacek@redhat.com>
2903 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
2904 output_add_clobbers, output_added_clobbers_hard_reg_p,
2905 gen_rtx_scratch): Remove declarations.
2907 2015-07-20 Marek Polacek <polacek@redhat.com>
2910 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
2912 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2914 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
2915 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
2917 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2919 * combine.c (combine_simplify_rtx): Move simplification step
2920 before various transformations/substitutions.
2922 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
2924 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
2925 (struct int_traits): Likewise.
2927 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2929 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
2930 function to vmsdbgout_function_decl.
2932 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
2935 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
2936 from misaligned positions.
2937 (ix86_expand_pinsr): Reject insertions to misaligned positions.
2939 2015-07-18 Sebastian Pop <s.pop@samsung.com>
2943 * Makefile.in: Removed omega.o.
2944 * common.opt: Document flag fcheck-data-deps as deprecated.
2945 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
2946 its associated params: omega-max-vars, omega-max-geqs,
2947 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
2948 omega-max-keys, omega-eliminate-redundant-constraints.
2949 * doc/loop.texi: Remove all the section on Omega.
2950 * graphite-blocking.c: Include missing params.h: it used to be
2951 included through tree-data-ref.h and omega.h.
2952 * graphite-isl-ast-to-gimple.c: Same.
2953 * graphite-optimize-isl.c: Same.
2954 * graphite-sese-to-poly.c: Same.
2958 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
2959 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
2960 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
2961 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
2962 * passes.def: Remove pass_check_data_deps.
2963 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
2964 (dump_conflict_function): Same.
2965 (dump_subscript): Same.
2966 (print_direction_vector): Same.
2967 (print_dir_vectors): Same.
2968 (print_lambda_vector): Same.
2969 (print_dist_vectors): Same.
2970 (dump_data_dependence_relation): Same.
2971 (dump_data_dependence_relations): Same.
2972 (dump_dist_dir_vectors): Same.
2974 (init_omega_eq_with_af): Removed.
2975 (omega_extract_distance_vectors): Removed.
2976 (omega_setup_subscript): Removed.
2977 (init_omega_for_ddr_1): Removed.
2978 (init_omega_for_ddr): Removed.
2979 (ddr_consistent_p): Removed.
2980 (compute_affine_dependence): Do not use omega to check data
2982 (compute_data_dependences_for_bb): Removed.
2983 (analyze_all_data_dependences): Removed.
2984 (tree_check_data_deps): Removed.
2985 * tree-data-ref.h: Do not include omega.h.
2986 (compute_data_dependences_for_bb): Removed.
2987 (tree_check_data_deps): Removed.
2988 * tree-ssa-loop.c (pass_check_data_deps): Removed.
2989 (make_pass_check_data_deps): Removed.
2990 * tree-ssa-phiopt.c: Include params.h.
2991 * tree-vect-data-refs.c: Same.
2992 * tree-vect-slp.c: Same.
2994 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
2996 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
2997 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
2998 (mem->fpreg splitters): Ditto.
2999 (general_operand->nonimmediate_operand splitter): Use explicit modes.
3000 Disable DFmode for TARGET_64BIT.
3002 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
3005 * config/i386/i386.c (ix86_expand_prologue): Replicate static
3008 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
3010 * config/nvptx/mkoffload.c (process): Constify host data.
3011 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
3013 (generate_host_descr_file): Likewise.
3015 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
3016 Sebastian Pop <s.pop@samsung.com>
3019 * graphite-dependences.c (add_pdr_constraints): Renamed
3020 pdr->extent to pdr->subscript_sizes.
3021 * graphite-interchange.c (build_linearized_memory_access): Add
3022 back all gcc_assert's that the "isl_int to isl_val conversion"
3023 patch has removed. Refactored.
3024 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
3025 * graphite-poly.c (new_poly_dr): Same.
3026 (free_poly_dr): Same.
3027 * graphite-poly.h (struct poly_dr): Same.
3028 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
3029 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
3030 * graphite-scop-detection.h: Fix space.
3031 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
3032 back all gcc_assert's removed by a previous patch.
3033 (wrap): Remove the_isl_ctx global variable that the same patch has
3035 (build_loop_iteration_domains): Same.
3036 (add_param_constraints): Same.
3037 (pdr_add_data_dimensions): Same. Refactored.
3038 (build_poly_dr): Renamed extent to subscript_sizes.
3040 2015-07-17 Marek Polacek <polacek@redhat.com>
3042 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
3043 * match.pd: ... here.
3045 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
3047 * config/nvptx/mkoffload.c (process): Constify target data.
3048 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
3049 Constify target data.
3050 (generate_target_offloadend_file): Likewise.
3052 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
3054 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
3055 to allow renaming of PHI arguments on edges incoming from outer
3056 loop header, add corresponding check before start PHI iterator.
3057 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
3058 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
3059 with true force_vectorize. Set-up dominator for outer loop too.
3060 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
3061 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
3062 was marked with force_vectorize and has restricted cfg.
3063 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
3065 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3066 do peeling for outer loops.
3068 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
3069 Matthias Klose <doko@ubuntu.com>
3071 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
3072 build-sysroot, sysroot from the `Miscenalleous configure options' to
3073 the `Directories' section and strip trailing `/' from with_sysroot.
3074 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
3075 * configure: Regenerated.
3077 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
3080 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
3081 (TARGET_HARD_DF_REGS): Ditto.
3082 (TARGET_HARD_XF_REGS): Ditto.
3083 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
3084 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
3085 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
3086 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
3087 (*movsf_internal): Add alternatives 16 and 17. Enable
3088 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
3090 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
3092 PR rtl-optimization/66891
3093 * calls.c (expand_call): Wrap precompute_register_parameters with
3094 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
3096 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
3098 * config/nvptx/mkoffload.c (process): Constify mapping variables.
3099 Define target data struct and initialize it.
3101 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
3103 PR rtl-optimization/66626
3104 * ira.h (emit-rtl.h): Include.
3105 (non_spilled_static_chain_regno_p): New.
3106 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
3107 unless it is non spilled static chain pseudo.
3108 (assign_hard_rego): Spill memory profitable allocno unless it is
3109 non spilled static chain pseudo.
3110 (allocno_spill_priority_compare): Put non spilled static chain
3111 pseudo at the end of sorted array.
3112 (improve_allocation): Do nothing if we have static chain and
3114 (allocno__priority_compare_func): Put non spilled static chain
3115 pseudo at the beginning of sorted array.
3116 (move_spill_restore): Ignore non spilled static chain pseudo.
3117 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
3118 to non spilled static chain pseudo.
3119 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
3120 pseudo at the beginning of sorted array.
3121 (spill_for): Spill non spilled static chain pseudo last.
3122 * lra-constraints.c (lra_constraints): Remove static chain pseudo
3123 check for equivalence.
3125 2015-07-16 Martin Liska <mliska@suse.cz>
3128 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
3129 dst_ctx if it does not exist.
3131 2015-07-16 Martin Liska <mliska@suse.cz>
3133 * hash-set.h (remove): New function.
3134 (iterator): New iteration class for hash_set.
3136 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3138 * genattrtab.c (make_canonical): Add a file_location parameter.
3139 Use fatal_at rather than fatal.
3140 (get_attr_value): Likewise. Update call to make_canonical.
3141 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
3142 (make_internal_attr): Update calls accordingly.
3144 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3146 * read-md.h (message_with_line, error_with_line): Delete.
3147 * read-md.c (message_with_line, error_with_line): Delete.
3148 * gensupport.h: Include read-md.h.
3149 (md_rtx_info): New structure.
3150 (read_md_rtx): Use it. Return a bool success value.
3151 * gensupport.c (read_md_rtx): Likewise.
3152 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
3153 (main): Update after interface changes.
3154 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
3155 (main): Update after interface changes.
3156 * genattrtab.c (insn_code_number): Delete.
3157 (optimize_attrs): Add a max_insn_code parameter and use it instead
3158 of insn_code_number.
3159 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
3160 Use *_at rather than *_with_line functions.
3161 (gen_insn): Likewise.
3162 (gen_delay): Likewise.
3163 (gen_insn_reserv): Likewise.
3164 (gen_bypass): Take an md_rtx_info rather than an rtx.
3165 (main): Update after interface changes. Use a local max_insn_code
3166 variable instead of insn_code_number.
3167 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
3168 an rtx. Use fatal_at rather than fatal.
3169 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
3170 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
3171 (gen_absence_set, gen_final_absence_set, gen_automaton)
3172 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
3173 (main): Update after interface changes.
3174 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
3176 (main): Update after interface changes.
3177 * genconditions.c (main): Use new read_md_rtx interface.
3178 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
3179 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
3180 (main): Update after interface changes.
3181 * genemit.c (insn_code_number, insn_index_number): Delete.
3182 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3183 Use fatal_at rather than fatal.
3184 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
3186 (gen_split): Likewise.
3187 (main): Update after interface changes.
3188 * genextract.c (line_no): Delete.
3189 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3190 Update call to walk_rtx.
3191 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
3192 rather than message_with_line.
3193 (walk_rtx): Add an md_rtx_info argument. Update call to
3194 VEC_safe_set_locstr.
3195 (main): Update after interface changes.
3196 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
3197 and lineno. Use error_at rather than separate message_with_line
3198 calls and have_error assignments.
3199 (main): Update after interface changes.
3200 * genmddump.c (main): Use new read_md_rtx interface.
3201 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
3202 (main): Update after interface changes.
3203 * genoutput.c (next_code_number): Delete.
3204 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3205 (gen_peephole, gen_expand, gen_split): Likewise.
3206 (note_constraint): Likewise. Use *_at rather than *_with_line
3208 (main): Update after interface changes.
3209 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
3211 (main): Update after interface changes.
3212 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
3213 than an rtx and lineno.
3214 (process_define_constraint): Likewise.
3215 (process_define_register_constraint): Likewise.
3216 (main): Update after interface changes.
3217 * genrecog.c (next_insn_code, pattern_lineno): Delete.
3218 (validate_pattern): Replace top-level rtx with an md_rtx_info.
3219 Use *_at rather than *_with_line functions.
3220 (match_pattern_2): Likewise.
3221 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
3222 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
3223 Use *_at rather than *_with_line functions.
3224 * gentarget-def.c (add_insn): New function.
3225 (main): Use it. Use new read_md_rtx interface.
3227 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3229 * gensupport.h (compute_test_codes): Take a file_location rather
3231 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
3232 rather than *_with_line functions.
3233 (process_define_predicate): Update call to compute_test_codes.
3234 * genpreds.c (validate_exp): Take a file_location rather than a
3235 line number. Use *_at functions rather than *_with_line functions.
3236 (process_define_predicate): Update call to validate_exp.
3237 (constraint_data): Replace lineno field with a file_location.
3238 (add_constraint): Take a file_location rather than a line number.
3239 Use *_at functions rather than *_with_line functions. Fix error
3240 message for address constraints. Update after changes to
3241 validate_exp, constraint_data and compute_test_codes.
3242 (process_define_constraint): Update accordingly.
3243 (process_define_register_constraint): Likewise.
3245 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3247 * genoutput.c (data): Use a file_location to record the source
3250 (idata, idata_end): Remove initialization.
3251 (constraint_data): Replace lineno with a file_location.
3252 (output_insn_data): Update after changes to data.
3253 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
3254 (scan_operands): Likewise, using *_at rather than *_with_line
3256 (process_template): Likewise.
3257 (validate_insn_alternatives): Likewise.
3258 (validate_insn_operands): Likewise.
3259 (validate_optab_operands): Likewise.
3260 (init_insn_for_nothing): Initialize idata and idata_end.
3261 (note_constraint): Update after changes to constraint_data,
3262 using at rather than with_line functions.
3263 (mdep_constraint_len): Take a file_location rather than a
3264 line number. Use at rather than with_line functions.
3266 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3268 * read-md.h (fatal_at): Declare.
3269 * read-md.c (fatal_at): New function.
3270 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
3271 to record the source position.
3272 (check_attr_test): Take a file_location instead of a line number.
3273 Use fatal_at instead of fatal.
3274 (check_attr_value): Update after above changes, using "at"
3275 rather than "with_line" reporting functions.
3276 (convert_set_attr_alternative): Likewise.
3277 (gen_attr): Likewise.
3278 (check_defs): Likewise. Don't assign to read_md_filename.
3279 (gen_insn): Update initialization after above changes.
3280 (gen_delay): Likewise.
3281 (write_insn_cases): Print the filename for a define_peephole.
3282 (gen_insn_reserv): Take a line number as argument and update
3283 the call to check_attr_test.
3284 (main): Pass a line number to gen_insn_reserv.
3286 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3288 * read-md.h (file_location): New structure.
3289 (directive_handler_t): Take a file_location rather than a line number.
3290 (message_at, error_at): Declare.
3291 (read_skip_construct): Delete.
3292 * read-md.c (message_with_line_1): Replace with...
3293 (message_at_1): ...this new function.
3294 (message_at, error_at): New functions.
3295 (message_with_line, error_with_line): Update to use message_at_1.
3296 (handle_enum): Take a file_location rather than a line number
3297 and use error_at for error reporting.
3298 (handle_include): Likewise.
3299 (read_skip_construct): Likewise. Make static.
3300 (handle_file): Update after above changes. Pass a file_location
3301 rather than a line number to handle_directive.
3302 * gensupport.c (queue_elem): Replace separate filename and lineno
3303 with a file_location.
3304 (queue_pattern): Replace filename and lineno arguments with a
3305 file_location. Update after change to queue_elem.
3306 (process_define_predicate): Replace lineno argument with a
3307 file_location and use error_at for error reporting. Update
3308 after above changes.
3309 (process_rtx): Likewise.
3310 (subst_pattern_match): Likewise.
3311 (get_alternatives_number): Likewise.
3312 (alter_predicate_for_insn): Likewise.
3313 (rtx_handle_directive): Likewise.
3314 (is_predicable): Update after above changes, using error_at rather
3315 than error_with_line.
3316 (has_subst_attribute): Likewise.
3317 (identify_predicable_attribute): Likewise.
3318 (alter_attrs_for_subst_insn): Likewise.
3319 (process_one_cond_exec): Likewise.
3320 (process_substs_on_one_elem): Likewise.
3321 (process_define_subst): Likewise.
3322 (check_define_attr_duplicates): Likewise.
3323 (read_md_rtx): Update after change to queue_elem.
3325 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3327 * genoutput.c (next_index_number): Delete.
3328 (data): Remove index_number.
3329 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
3330 (main): Remove manipulation of next_index_number.
3332 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3334 * genattrtab.c (check_attr_value): Remove handling of null attrs.
3335 (make_canonical): Likewise.
3337 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
3339 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
3340 instead of adjust_address_nv.
3341 (restore_stack_nonlocal): Likewise.
3342 (nonlocal_goto): Likewise.
3344 2015-07-16 Tom de Vries <tom@codesourcery.com>
3346 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
3347 not have a corresponding loop header phi.
3349 2015-07-16 Tom de Vries <tom@codesourcery.com>
3351 * tree-parloops.c (create_loads_for_reductions): Handle case that
3352 reduction is unused.
3354 2015-07-16 Richard Biener <rguenther@suse.de>
3356 PR tree-optimization/66894
3357 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
3358 about deriving NE_EXPR from truncated values.
3360 2015-07-16 Martin Liska <mliska@suse.cz>
3363 (object_allocator): Add new class.
3364 (pool_allocator::initialize): Use the underlying class.
3365 (pool_allocator::allocate): Likewise.
3366 (pool_allocator::remove): Likewise.
3367 (operator new): A new generic allocator.
3368 * asan.c (struct asan_mem_ref): Remove unused members.
3369 (asan_mem_ref_new): Replace new operator with
3370 object_allocator::allocate.
3371 (free_mem_ref_resources): Change deallocation.
3372 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
3373 with object_allocator.
3374 * config/sh/sh.c (add_constant): Replace new operator with
3375 object_allocator::allocate.
3376 (sh_reorg): Change call to a release method.
3377 * cselib.c (struct elt_list): Remove unused members.
3378 (new_elt_list): Replace new operator with
3379 object_allocator::allocate.
3380 (new_elt_loc_list): Likewise.
3381 (new_cselib_val): Likewise.
3382 (unchain_one_elt_list): Change delete operator with remove method.
3383 (unchain_one_elt_loc_list): Likewise.
3384 (unchain_one_value): Likewise.
3385 (cselib_finish): Release newly added static allocators.
3386 * cselib.h (struct cselib_val): Remove unused members.
3387 (struct elt_loc_list): Likewise.
3388 * df-problems.c (df_chain_alloc): Replace pool_allocator with
3390 * df-scan.c (struct df_scan_problem_data): Likewise.
3391 (df_scan_alloc): Likewise.
3392 * df.h (struct dataflow): Likewise.
3393 * dse.c (struct read_info_type): Likewise.
3394 (struct insn_info_type): Likewise.
3395 (struct dse_bb_info_type): Likewise.
3396 (struct group_info): Likewise.
3397 (struct deferred_change): Likewise.
3398 (get_group_info): Likewise.
3399 (delete_dead_store_insn): Likewise.
3400 (free_read_records): Likewise.
3401 (replace_read): Likewise.
3402 (check_mem_read_rtx): Likewise.
3403 (scan_insn): Likewise.
3404 (dse_step1): Likewise.
3405 (dse_step7): Likewise.
3406 * et-forest.c (struct et_occ): Remove unused members.
3407 (et_new_occ): Use allocate instead of new operator.
3408 (et_new_tree): Likewise.
3409 (et_free_tree): Call release method explicitly.
3410 (et_free_tree_force): Likewise.
3411 (et_free_pools): Likewise.
3412 (et_split): Use remove instead of delete operator.
3413 * et-forest.h (struct et_node): Remove unused members.
3414 * ipa-cp.c: Change pool_allocator to object_allocator.
3415 * ipa-inline-analysis.c: Likewise.
3416 * ipa-profile.c: Likewise.
3417 * ipa-prop.c: Likewise.
3418 * ipa-prop.h: Likewise.
3419 * ira-build.c (initiate_cost_vectors): Cast return value.
3420 (ira_allocate_cost_vector): Likewise.
3421 * ira-color.c (struct update_cost_record): Remove unused members.
3422 * lra-int.h (struct lra_live_range): Likewise.
3423 (struct lra_copy): Likewise.
3424 (struct lra_insn_reg): Likewise.
3425 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
3426 * lra.c (new_insn_reg): Replace new operator with allocate method.
3427 (free_insn_regs): Same for operator delete.
3428 (finish_insn_regs): Release new static allocator.
3429 (finish_insn_recog_data): Likewise.
3430 (lra_free_copies): Replace delete operator with remove method.
3431 (lra_create_copy): Replace operator new with allocate method.
3432 (invalidate_insn_data_regno_info): Same for remove method.
3433 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
3434 (free_debug_insn_changes): Replace delete operator with remove method.
3435 (replace_oldest_value_reg): Replace operator new with allocate method.
3436 (pass_cprop_hardreg::execute): Release new static variable.
3437 * sched-deps.c (sched_deps_init): Change pool_allocator to
3439 * sel-sched-ir.c: Likewise.
3440 * sel-sched-ir.h: Likewise.
3441 * stmt.c (expand_case): Likewise.
3442 (expand_sjlj_dispatch_table): Likewise.
3443 * tree-sra.c (struct access): Remove unused members.
3444 (struct assign_link): Likewise.
3445 (sra_deinitialize): Release newly added static pools.
3446 (create_access_1):Replace operator new with allocate method.
3447 (build_accesses_from_assign): Likewise.
3448 (create_artificial_child_access): Likewise.
3449 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
3450 pool_allocator to object_allocator.
3451 * tree-ssa-pre.c: Likewise.
3452 * tree-ssa-reassoc.c: Likewise.
3453 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
3454 * tree-ssa-strlen.c: Likewise.
3455 * tree-ssa-structalias.c: Likewise.
3456 * var-tracking.c (onepart_pool_allocate): New function.
3457 (unshare_variable): Use the newly added function.
3458 (variable_merge_over_cur): Likewise.
3459 (variable_from_dropped): Likewise.
3460 (variable_was_changed): Likewise.
3461 (set_slot_part): Likewise.
3462 (emit_notes_for_differences_1): Likewise.
3463 (vt_finalize): Release newly added static pools.
3465 2015-07-16 Martin Jambor <mjambor@suse.cz>
3467 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
3468 all uses. Fix two typos in its general comment.
3469 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
3471 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
3473 * config/i386/linux-common.h (LINK_MPX): New.
3474 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
3475 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
3476 indicating '-z bndplt' support by linker.
3477 * configure: Regenerate.
3478 * config.in: Regenerate.
3480 2015-07-16 Richard Biener <rguenther@suse.de>
3482 * fold-const.c (fold_widened_comparison): Remove.
3483 (fold_sign_changed_comparison): Likewise.
3484 (fold_comparison): Move widened and sign-changed comparison
3486 * match.pd: ... to patterns here.
3487 * generic-match-head.c: Include target.h.
3488 * gimple-match-head.c: Likewise.
3490 2015-07-16 Richard Biener <rguenther@suse.de>
3492 * tree-ssa-dom.c (dom_valueize): New function.
3493 (record_temporary_equivalences): Also record equivalences
3494 for dominating stmts that have uses of equivalences we are
3497 2015-07-16 Bin Cheng <bin.cheng@arm.com>
3499 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
3500 add_autoinc_candidates.
3501 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
3502 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
3503 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
3504 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
3506 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
3507 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
3508 Remove parameter struct iv*. Call add_autoinc_candidates here.
3509 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
3510 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
3512 (find_iv_candidates): Call new functions.
3514 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
3516 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
3517 uninitialized-variable warning.
3519 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
3522 * config/sh/sh.md (movdi): Split simple reg move to two movsi
3523 when the destination is R0.
3525 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
3528 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
3529 * config/i386/i386.c (ix86_expand_pextr): New function.
3530 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
3531 for non-lowpart subregs.
3532 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
3533 (insv<mode>): Use SWI248 mode iterator.
3534 (insv<mode>_1): Ditto.
3536 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3537 Sebastian Pop <s.pop@samsung.com>
3539 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
3540 iterator to use_stmt.
3542 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3543 Sebastian Pop <s.pop@samsung.com>
3545 * graphite-scop-detection.c (build_scops_1): Discard scops for
3548 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3549 Sebastian Pop <s.pop@samsung.com>
3551 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
3552 case of a return statement in scop.
3554 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3555 Sebastian Pop <s.pop@samsung.com>
3557 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
3558 INTEGER_TYPE parameters.
3559 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
3560 VECTOR_CST in scan_tree_for_params.
3561 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
3563 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
3565 * gimple-pretty-print.h: Don't include pretty-print.h.
3566 * tree-streamer.h: Don't include lto-streamer.h.
3567 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
3568 * gimple-streamer-in.c: Remove redundant includes.
3569 * gimple-streamer-out.c: Likewise.
3570 * ipa-devirt.c: Likewise.
3571 * ipa-icf.c: Likewise.
3572 * ipa-inline-analysis.c: Likewise.
3573 * ipa-polymorphic-call.c: Likewise.
3574 * ipa-profile.c: Likewise.
3575 * ipa-prop.c: Likewise.
3576 * ipa-pure-const.c: Likewise.
3577 * lto-cgraph.c: Likewise.
3578 * lto-streamer-in.c: Likewise.
3579 * lto-streamer-out.c: Likewise.
3580 * lto-streamer.c: Likewise.
3581 * tree-streamer-in.c: Likewise.
3582 * tree-streamer-out.c: Likewise.
3583 * tree-streamer.c: Likewise.
3585 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
3587 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
3589 * opts.c: Remove multiline #include comment.
3591 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
3593 * config/nvptx/mkoffload.c (process): Add C++ protection to
3596 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3599 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
3600 null before IEEE 128-bit floating point support patch.
3602 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3604 * simplify-rtx.c (simplify_ternary_operation): Add simplification
3605 for (!c) != {0,...,0} ? a : b for vector modes.
3607 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
3608 Martin Jambor <mjambor@suse.cz>
3610 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
3611 struct func_body_info* instead of struct ipa_node_params*, expecting
3612 fbi->info to be filled in. Replace throughout. Adjust call to
3613 ipa_load_from_parm_agg.
3614 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
3615 instead of struct ipa_node_params*. Adjust calls to other functions
3616 so that they pass either fbi or fbi->info.
3617 (set_switch_stmt_execution_predicate): Likewise.
3618 (will_be_nonconstant_predicate): Likewise.
3619 (compute_bb_predicates): Likewise.
3620 (estimate_function_body_sizes): Move asserts earlier. Fill in
3621 struct func_body_info, replace parms_info with fbi.info. Adjust
3622 calls to functions that now accept struct func_body_info.
3623 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
3624 (struct func_body_info): Likewise.
3625 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
3626 remove static. Adjust callers.
3627 (ipa_load_from_parm_agg): Remove.
3628 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
3629 (func_body_info): Likewise.
3630 (ipa_load_from_parm_agg): Adjust prototype.
3632 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3634 * gensupport.c (rtx_handle_directive): Adjust.
3635 * read-rtl.c (apply_iterators): Take vector to add rtxs to
3636 instead of expr list rtx.
3637 (add_define_attr_for_define_subst): Likewise.
3638 (add_define_subst_attr): Likewise.
3639 (read_subst_mapping): Likewise.
3640 (read_rtx): Likewise.
3641 * rtl.h (read_rtx): Adjust.
3643 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3645 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
3647 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
3650 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
3651 (*tls_local_dynamic_base_64_<mode>): Ditto.
3652 (*tls_local_dynamic_base_64_largepic): Ditto.
3653 (tls_global_dynamic_64_<mode>): Update expander pattern.
3654 (tls_local_dynamic_base_64_<mode>): Ditto.
3656 2015-07-15 Richard Biener <rguenther@suse.de>
3658 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
3659 and bool_var == 1 -> bool_var simplifications ...
3660 * match.pd: ... to patterns here. Factor out negate_expr_p
3661 cases from the A - B -> A + (-B) patterns as negate_expr_p
3662 predicate and add a -(A + B) -> (-B) - A pattern.
3664 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
3666 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
3668 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
3669 Robert Suchanek <robert.suchanek@imgtec.com>
3671 * config/mips/mips.c (mips_int_mask): New enum.
3672 (mips_shadow_set): Likewise.
3673 (int_mask): New variable.
3674 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
3675 (machine_function): Add int_mask and use_shadow_register_set.
3676 (mips_attribute_table): Add attribute handlers for interrupt and
3677 use_shadow_register_set.
3678 (mips_interrupt_mask): New static function.
3679 (mips_handle_interrupt_attr): Likewise.
3680 (mips_handle_use_shadow_register_set_attr): Likewise.
3681 (mips_use_shadow_register_set): Change return type to enum
3682 mips_shadow_set. Add argument handling for use_shadow_register_set
3684 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
3685 compare with mips_shadow_set enum.
3686 (mips_compute_frame_info): Add interrupt mask and
3687 use_shadow_register_set to per-function information structure.
3688 Add a stack slot for EPC unconditionally.
3689 (mips_expand_prologue): Compare use_shadow_register_set value
3690 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
3691 masked interrupt register but in EIC mode use K0 and save Cause in K0.
3692 EPC saved and restored unconditionally. Use PMODE_INSN macro when
3693 copying the stack pointer from the shadow register set.
3694 * config/mips/mips.h (SR_IM0): New define.
3695 * config/mips/mips.md (mips_rdpgpr): Rename to...
3696 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
3697 * doc/extend.texi (Declaring Attributes of Functions): Document
3698 optional arguments for interrupt and use_shadow_register_set
3701 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
3703 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
3704 interrupt attribute.
3705 (mips_expand_prologue): Disable the floating point unit in an ISR.
3706 * config/mips/mips.h (SR_COP1): New define.
3708 2015-07-15 Richard Biener <rguenther@suse.de>
3710 * genmatch.c (parser::peek, parser::peek_ident): Add argument
3711 to tell how many tokens to peek ahead (default 1).
3712 (parser::eat_token, parser::eat_ident): Return token consumed.
3713 (parser::parse_result): Parse new switch statement.
3714 * match.pd: Use case statements where appropriate.
3716 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
3718 PR rtl-optimization/58066
3719 * calls.c (expand_call): Precompute register parameters before stack
3720 alignment is performed.
3722 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
3724 PR rtl-optimization/66838
3725 * postreload.c (reload_cse_move2add): Also process
3726 CALL_INSN_FUNCTION_USAGE when resetting information of
3727 call-clobbered registers.
3729 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3730 Cesar Philippidis <cesar@codesourcery.com>
3731 Chung-Lin Tang <cltang@codesourcery.com>
3733 * config/nios2/constraints.md (U, v): New constraints.
3734 * config/nios2/predicates.md (rdprs_dcache_operand): New.
3735 (ldstex_memory_operand): New.
3736 * config/nios2/sync.md: New file.
3737 * config/nios2/nios2.md (unspecv): Add new builtin function
3739 (rdprs, flushd, flushda, wrpie, eni): New patterns.
3740 (top-level): Include sync.md.
3741 * config/nios2/nios2.c (N2_FTYPES): Add function types for
3743 (N2_BUILTINS): Add arch field setting, add new builtins.
3744 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
3746 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
3747 Also handle ldex/stex/ldsex/stsex builtins.
3748 (nios2_expand_rdprs_builtin): New function.
3749 (nios2_expand_cache_builtin): New function.
3750 (nios2_expand_wrpie_builtin): New function.
3751 (nios2_expand_eni_builtin): New function.
3752 (nios2_expand_builtin): Add arch field handling and new builtin
3754 * doc/extend.texi (Altera Nios II Built-in Functions): Document
3756 * doc/md.texi (Machine Constraints): Document U and v constraints.
3758 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3759 Cesar Philippidis <cesar@codesourcery.com>
3760 Chung-Lin Tang <cltang@codesourcery.com>
3762 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
3763 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
3764 callee_save_reg_size and uses_anonymous_args fields.
3765 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
3766 (nios2_create_cfa_notes): New function.
3767 (nios2_adjust_stack): New function for adjusting stack.
3768 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
3769 Use nios2_adjust_stack.
3770 (nios2_expand_epilogue): Likewise.
3771 (nios2_expand_return): New function.
3772 (nios2_can_use_return_insn): Update for CDX pop.n usage.
3773 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
3774 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
3775 * config/nios2/nios2.md (return): Use nios2_expand_return.
3777 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3778 Cesar Philippidis <cesar@codesourcery.com>
3779 Chung-Lin Tang <cltang@codesourcery.com>
3781 * config/nios2/predicates.md (pop_operation): New.
3782 (ldwm_operation, stwm_operation): New.
3783 (nios2_hard_register_operand): New.
3784 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
3785 (ldstwm_operation_p): Declare.
3786 (gen_ldstwm_peep): Declare.
3787 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
3788 (base_reg_adjustment_p): New.
3789 (pop_operation_p): New.
3790 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
3791 (nios2_ldstwm_regset_p): New.
3792 (ldstwm_operation_p): New.
3794 (nios2_ldst_parallel): New.
3795 (struct ldswm_operand): Declare.
3796 (compare_ldstwm_operands): New.
3797 (can_use_cdx_ldstw): New.
3798 (gen_ldstwm_peep): New.
3799 * config/nios2/nios2-ldstwm.sml: New.
3800 * config/nios2/nios2.md: Include ldstwm.md.
3801 * config/nios2/ldstwm.md: Generated.
3803 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3804 Cesar Philippidis <cesar@codesourcery.com>
3805 Chung-Lin Tang <cltang@codesourcery.com>
3807 * config/nios2/nios2.h (LABEL_ALIGN): Define.
3808 (REG_ALLOC_ORDER): Define.
3809 (ADJUST_REG_ALLOC_ORDER): Define.
3810 (HONOR_REG_ALLOC_ORDER): Define.
3811 (CDX_REG_P): Define.
3812 (ANDCLEAR_INT): Define.
3813 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
3814 (nios2_label_align): Declare.
3815 (nios2_cdx_narrow_form_p): Declare.
3816 (nios2_adjust_reg_alloc_order): Declare.
3817 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
3819 (nios2_large_unspec_reloc_p): New function, split from...
3820 (nios2_legitimate_pic_operand_p): ...here.
3821 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
3822 (nios2_print_operand_punct_valid_p): New.
3823 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
3824 (split_mem_address): New.
3825 (split_alu_insn): New.
3827 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
3828 (enum nios2_add_insn_kind): New.
3829 (nios2_add_insn_names, nios2_add_insn_narrow): New.
3830 (nios2_add_insn_classify): New.
3831 (nios2_add_insn_asm): New.
3832 (nios2_cdx_narrow_form_p): New.
3833 (label_align, min_labelno, max_labelno): New.
3835 (nios2_label_align): New.
3836 (nios2_adjust_reg_alloc_order): New.
3837 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3838 (TARGET_MACHINE_DEPENDENT_REORG): Define.
3839 * config/nios2/constraints.md (P): New constraint.
3840 * config/nios2/predicates.md (const_and_operand): New.
3842 (stack_memory_operand): New.
3843 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
3844 (length): Update to use nios2_cdx_narrow_form_p().
3845 (type): Add new insn type values.
3846 (control, alu, st, ld, shift): Update insn reservations with
3847 new insn type values.
3848 (*high, *lo_sum): Define new insn patterns for constant generation.
3849 (movqi_internal, movhi_internal, movsi_internal): Reduce
3850 alternatives, update asm template to handle CDX variants, update
3852 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
3853 template, update type attributes.
3854 (extendhisi2, extendqi<mode>2): Likewise.
3855 (addsi3): Change to use function for asm string.
3856 (subsi3): Add CDX notation to asm template, update type attributes.
3857 (negsi3, one_cmplsi3): Likewise.
3858 (andsi3): New pattern, specialized from logical patterns.
3859 (<code>si3): Remove and case, combine alternatives, update asm
3861 (<shift_op>si3): Add CDX notation, update type attributes.
3862 (rotrsi3): Update type attribute.
3863 (*merge, extzv, insv): New insn patterns.
3864 (return): Change to define_expand.
3865 (simple_return): Add CDX notation, update type attributes.
3866 (indirect_jump): Add CDX notation.
3867 (jump): Update asm cases, update length attribute expression.
3868 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
3869 (nios2_cbranch): Update asm cases and length attribute expression
3870 to handle CDX variants.
3871 (nios2_cmp<code>): Update asm template.
3872 (nop): Add CDX notation, update type attributes.
3873 (trap): Add CDX notation.
3874 (ctrapsi4): Update asm cases and length attribute expression to
3876 * doc/md.texi (Machine Constraints): Document P constraint.
3878 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3879 Cesar Philippidis <cesar@codesourcery.com>
3880 Chung-Lin Tang <cltang@codesourcery.com>
3882 * config/nios2/nios2.h (SMALL_INT12): New macro.
3883 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
3884 (nios2_valid_addr_expr_p): Use it.
3885 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
3886 with implicit "io" instructions on R2.
3887 * config/nios2/constraints.md (w): New constraint.
3888 * config/nios2/predicates.md (ldstio_memory_operand): New.
3889 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
3890 operand predicate and constraint.
3891 (ld<bh>io_signed, st<bhw>io>): Likewise.
3892 * doc/md.texi (Machine Constraints): Document w constraint.
3894 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3895 Cesar Philippidis <cesar@codesourcery.com>
3896 Chung-Lin Tang <cltang@codesourcery.com>
3898 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
3899 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
3900 Nios II architecture level.
3901 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
3902 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
3903 (OPTION_DEFAULT_SPECS): Define.
3904 (ASM_SPEC): Add -march= spec strings.
3905 * config/nios2/nios2.c (nios2_option_override): Check for
3906 conflicts involving new options.
3907 * config.gcc (nios2*-*-*): Support --with-arch=.
3908 * doc/invoke.texi (Option Summary, Nios II Options): Document
3909 -march=, -mbmx, and -mcdx.
3911 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
3913 PR rtl-optimization/66626
3914 * lra-constraints.c (lra_constraints): Prevent equivalence
3915 substitution for static chain pseudo in functions with nonlocal
3918 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3920 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
3921 (nios2_emit_stack_limit_check): Add size parameter. Handle
3922 -fstack-limit-symbol as well as -fstack-limit-register.
3923 (nios2_expand_prologue): Emit only a single stack limit check,
3924 even if multiple stack adjustments are required.
3925 (nios2_option_override): Diagnose unsupported combination of -fpic
3926 and -stack-limit-symbol.
3928 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
3930 * Makefile.in (top_srcdir): New.
3931 * configure.ac: Use AM_ZLIB.
3932 * configure: Regeneated.
3934 2015-07-14 Matthias Klose <doko@ubuntu.com>
3937 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
3939 2015-07-14 Richard Biener <rguenther@suse.de>
3941 PR tree-optimization/66863
3942 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
3943 what we record for conversion use stmt lhs inequalities.
3945 2015-07-14 Richard Biener <rguenther@suse.de>
3947 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
3948 (decision_tree::gen_gimple): Likewise.
3950 2015-07-14 Tom de Vries <tom@codesourcery.com>
3952 * gcc.c (greater_than_spec_func): Declare forward.
3953 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
3954 -ftree-parallelize-loops={0,1}.
3955 (static_spec_functions): Add greater_than_spec_func function with name
3957 (greater_than_spec_func): New function.
3959 2015-07-14 Richard Biener <rguenther@suse.de>
3961 * tree-ssa-dom.c (record_temporary_equivalences): Merge
3962 wideing type conversion case from record_equivalences_from_incoming_edge
3963 and use record_equality to record equivalences.
3964 (record_equivalences_from_incoming_edge): Call
3965 record_temporary_equivalences.
3967 2015-07-14 Richard Biener <rguenther@suse.de>
3969 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
3970 (struct if_expr): New.
3971 (struct with_expr): Likewise.
3972 (is_a_helper): Add helpers for if_expr and with_expr.
3973 (struct simplify): Add simplify_kind enum and member. Remove
3975 (simplify::simplify): Adjust.
3976 (lower_commutative): Adjust.
3977 (lower_opt_convert): Likewise.
3978 (lower_cond): Likewise.
3979 (replace_id): Handle with_expr and if_expr.
3980 (lower_for): Adjust.
3981 (dt_simplify::gen_1): New recursive worker, split out from ...
3982 (dt_simplify::gen): ... here. Deal with if and with expansion
3984 (capture_info::capture_info): Take context argument
3985 (capture_info::walk_result): Only analyze specific result.
3986 (parser::parse_result): New function.
3987 (parser::parse_simplify): Adjust to parse ifs with then end
3989 (parser::parse_if): Simplify.
3990 (parser::parse_pattern): Pass down simplify kind.
3991 * match.pd: Convert if structure to new syntax.
3993 2015-07-13 Marek Polacek <polacek@redhat.com>
3995 * rtl.c (rtx_equal_p_cb): Fix typo.
3997 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
3999 * omega.h: Don't include config.h, don't include params.h again if
4000 omega.h has already been included.
4001 * graphite-poly.h: Include sese.h.
4002 * graphite.c: Don't include sese.h, remove needless includes and
4003 minimize includes outside #ifdef HAVE_isl block.
4004 * graphite-blocking.c: Don't include sese.h, remove needless includes,
4005 and wrap entire file in #ifdef HAVE_isl
4006 * graphite-dependences.c: Likewise.
4007 * graphite-interchange.c: Likewise.
4008 * graphite-isl-ast-to-gimple.c: Likewise.
4009 * graphite-optimize-isl.c: Likewise.
4010 * graphite-poly.c: Likewise.
4011 * graphite-scop-detection.c: Likewise.
4012 * graphite-sese-to-poly.c: Likewise.
4014 2015-07-13 Tom de Vries <tom@codesourcery.com>
4016 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
4018 2015-07-13 Renlin Li <renlin.li@arm.com>
4021 * simplify-rtx.c (simplify_const_relational_operation): Add
4022 side_effects_p checks.
4024 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
4026 * bitmap.h: Fix double word typos.
4029 * cfgloopmanip.c: Same.
4032 * cgraphclones.c: Same.
4034 * config/aarch64/aarch64-protos.h: Same.
4035 * config/aarch64/aarch64.c: Same.
4036 * config/aarch64/aarch64.md: Same.
4037 * config/arm/arm.md: Same.
4038 * config/arm/arm1020e.md: Same.
4039 * config/arm/arm1026ejs.md: Same.
4040 * config/arm/arm926ejs.md: Same.
4041 * config/arm/fa526.md: Same.
4042 * config/arm/fa606te.md: Same.
4043 * config/arm/fa626te.md: Same.
4044 * config/arm/fa726te.md: Same.
4045 * config/arm/fmp626.md: Same.
4046 * config/darwin.c: Same.
4047 * config/epiphany/epiphany.c: Same.
4048 * config/frv/frv.c: Same.
4049 * config/ft32/ft32.c: Same.
4050 * config/gnu-user.h: Same.
4051 * config/h8300/constraints.md: Same.
4052 * config/i386/i386.c: Same.
4053 * config/i386/i386.md: Same.
4054 * config/iq2000/iq2000.md: Same.
4055 * config/mips/mips.c: Same.
4056 * config/mmix/mmix.md: Same.
4057 * config/moxie/moxie.c: Same.
4058 * config/nds32/nds32.md: Same.
4059 * config/pa/pa.h: Same.
4060 * config/rs6000/aix.h: Same.
4061 * config/rs6000/rs6000.h: Same.
4062 * config/sh/sh.c: Same.
4063 * config/tilegx/tilegx.md: Same.
4064 * config/tilepro/gen-mul-tables.cc: Same.
4067 * doc/invoke.texi: Same.
4069 * dwarf2out.c: Same.
4074 * hash-table.h: Same.
4075 * internal-fn.c: Same.
4077 * ipa-devirt.c: Same.
4080 * ipa-profile.c: Same.
4085 * reg-stack.c: Same.
4091 * tree-inline.c: Same.
4093 * tree-ssa-dom.c: Same.
4094 * tree-ssa-loop-ivopts.c: Same.
4095 * tree-ssa-structalias.c: Same.
4096 * tree-ssa-tail-merge.c: Same.
4097 * tree-ssa-ter.c: Same.
4098 * tree-ssa-threadupdate.c: Same.
4099 * tree-ssa-uninit.c: Same.
4100 * tree-ssanames.c: Same.
4101 * tree-vect-loop-manip.c: Same.
4107 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4110 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
4111 tree_ssa_phiopt_worker): Call it.
4113 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4115 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
4116 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
4119 2015-07-11 Marek Polacek <polacek@redhat.com>
4122 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
4123 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
4124 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
4125 rather than bb_has_abnormal_call_pred.
4126 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
4127 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
4128 rather than bb_has_abnormal_call_pred.
4130 2015-07-10 Anatoly Sokolov <aesok@post.ru>
4132 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4133 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
4134 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4135 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
4136 v850_legitimate_address_p): New functions.
4137 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4139 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
4142 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
4143 indirect sibcall with register arguments if register available
4144 for argument passing.
4145 (init_cumulative_args): Set cfun->machine->arg_reg_available
4146 to (cum->nregs > 0) or to true if function has a variable
4148 (function_arg_advance_32): Set cfun->machine->arg_reg_available
4149 to false if cum->nregs <= 0.
4150 * config/i386/i386.h (machine_function): Add arg_reg_available.
4152 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
4154 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
4155 and gen_higpart instead of gen_rtx_SUBREG.
4156 * config/i386/i386.md
4157 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
4158 (read-modify peephole2): Use gen_lowpart instead of
4159 gen_rtx_SUBREG for operand 5.
4161 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
4163 * config/tilepro/gen-mul-tables.cc (main): Change include list for
4165 * config/tilepro/mul-tables.c: Regenerate.
4166 * config/tilegx/mul-tables.c: Regenerate.
4168 2015-07-10 Richard Biener <rguenther@suse.de>
4170 * fold-const.c (distribute_bit_expr): Remove.
4171 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
4172 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
4173 to A & (B | C) and simplifying A << C1 << C2 to ...
4174 * match.pd: ... patterns here.
4176 2015-07-10 Jiong Wang <jiong.wang@arm.com>
4178 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4179 Mark mem as READONLY and NOTRAP for PIC symbol.
4181 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
4183 * gimple-predict.h: New file.
4184 (gimple_predict_predictor, gimple_predict_set_predictor,
4185 gimple_predict_outcome, gimple_predict_set_outcome,
4186 gimple_build_predict): Relocate here.
4187 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
4188 gimple_predict_outcome, gimple_predict_set_outcome): Move to
4190 * gimple.c (gimple_build_predict): Move to gimple-predict.h
4191 * basic-block.h: Don't include cfghooks.h.
4192 * backend.h: Don't include predict.h.
4193 * cfghooks.h: Include predict.h.
4194 * gimple-pretty-print.c: Include gimple-predict.h.
4195 * gimplify.c: Likwise.
4196 * predict.c: Adjust includes.
4197 * tree-inline.c: Likewise.
4199 * auto-inc-dec.c: Likewise.
4200 * auto-profile.c: Likewise.
4201 * bb-reorder.c: Likewise.
4202 * builtins.c: Likewise.
4203 * caller-save.c: Likewise.
4204 * calls.c: Likewise.
4205 * cfganal.c: Likewise.
4206 * cfgbuild.c: Likewise.
4208 * cfgcleanup.c: Likewise.
4209 * cfgexpand.c: Likewise.
4210 * cfghooks.c: Likewise.
4211 * cfgloopanal.c: Likewise.
4212 * cfgloop.c: Likewise.
4213 * cfgloopmanip.c: Likewise.
4214 * cfgrtl.c: Likewise.
4215 * cgraph.c: Likewise.
4216 * cgraphunit.c: Likewise.
4217 * combine.c: Likewise.
4218 * cprop.c: Likewise.
4221 * dojump.c: Likewise.
4223 * except.c: Likewise.
4224 * expmed.c: Likewise.
4226 * final.c: Likewise.
4227 * fold-const.c: Likewise.
4228 * function.c: Likewise.
4229 * fwprop.c: Likewise.
4230 * gcc-plugin.h: Likewise.
4232 * genattrtab.c: Likewise.
4233 * genemit.c: Likewise.
4234 * gengtype.c: Likewise.
4235 * genopinit.c: Likewise.
4236 * genoutput.c: Likewise.
4237 * genpreds.c: Likewise.
4238 * genrecog.c: Likewise.
4239 * gimple-fold.c: Likewise.
4240 * gimple-iterator.c: Likewise.
4241 * gimple-ssa-isolate-paths.c: Likewise.
4242 * gimple-ssa-strength-reduction.c: Likewise.
4243 * graph.c: Likewise.
4244 * graphite-blocking.c: Likewise.
4245 * graphite.c: Likewise.
4246 * graphite-dependences.c: Likewise.
4247 * graphite-interchange.c: Likewise.
4248 * graphite-isl-ast-to-gimple.c: Likewise.
4249 * graphite-optimize-isl.c: Likewise.
4250 * graphite-poly.c: Likewise.
4251 * graphite-scop-detection.c: Likewise.
4252 * graphite-sese-to-poly.c: Likewise.
4253 * haifa-sched.c: Likewise.
4254 * ifcvt.c: Likewise.
4255 * internal-fn.c: Likewise.
4256 * ipa-cp.c: Likewise.
4257 * ipa-profile.c: Likewise.
4258 * ipa-split.c: Likewise.
4259 * ipa-utils.c: Likewise.
4260 * ira-build.c: Likewise.
4261 * ira-color.c: Likewise.
4262 * ira-conflicts.c: Likewise.
4263 * ira-costs.c: Likewise.
4264 * ira-emit.c: Likewise.
4265 * ira-lives.c: Likewise.
4267 * loop-doloop.c: Likewise.
4268 * loop-init.c: Likewise.
4269 * loop-invariant.c: Likewise.
4270 * loop-unroll.c: Likewise.
4271 * lower-subreg.c: Likewise.
4272 * lra-assigns.c: Likewise.
4274 * lra-coalesce.c: Likewise.
4275 * lra-constraints.c: Likewise.
4276 * lra-lives.c: Likewise.
4277 * lto-cgraph.c: Likewise.
4278 * lto-streamer-in.c: Likewise.
4279 * mode-switching.c: Likewise.
4280 * modulo-sched.c: Likewise.
4281 * omp-low.c: Likewise.
4282 * optabs.c: Likewise.
4283 * passes.c: Likewise.
4284 * postreload.c: Likewise.
4285 * postreload-gcse.c: Likewise.
4286 * profile.c: Likewise.
4287 * recog.c: Likewise.
4288 * regstat.c: Likewise.
4289 * reload1.c: Likewise.
4290 * reorg.c: Likewise.
4291 * rtlanal.c: Likewise.
4292 * sched-ebb.c: Likewise.
4293 * sel-sched-ir.c: Likewise.
4295 * shrink-wrap.c: Likewise.
4296 * simplify-rtx.c: Likewise.
4298 * store-motion.c: Likewise.
4299 * tracer.c: Likewise.
4300 * trans-mem.c: Likewise.
4301 * tree-call-cdce.c: Likewise.
4302 * tree-cfg.c: Likewise.
4303 * tree-cfgcleanup.c: Likewise.
4304 * tree-chkp.c: Likewise.
4305 * tree-complex.c: Likewise.
4306 * tree-eh.c: Likewise.
4307 * tree-if-conv.c: Likewise.
4308 * tree-loop-distribution.c: Likewise.
4309 * tree-outof-ssa.c: Likewise.
4310 * tree-parloops.c: Likewise.
4311 * tree-predcom.c: Likewise.
4312 * tree-pretty-print.c: Likewise.
4313 * tree-profile.c: Likewise.
4314 * tree-sra.c: Likewise.
4315 * tree-ssa.c: Likewise.
4316 * tree-ssa-coalesce.c: Likewise.
4317 * tree-ssa-dce.c: Likewise.
4318 * tree-ssa-dom.c: Likewise.
4319 * tree-ssa-forwprop.c: Likewise.
4320 * tree-ssa-ifcombine.c: Likewise.
4321 * tree-ssa-loop-ch.c: Likewise.
4322 * tree-ssa-loop-im.c: Likewise.
4323 * tree-ssa-loop-ivcanon.c: Likewise.
4324 * tree-ssa-loop-ivopts.c: Likewise.
4325 * tree-ssa-loop-manip.c: Likewise.
4326 * tree-ssa-loop-prefetch.c: Likewise.
4327 * tree-ssa-loop-unswitch.c: Likewise.
4328 * tree-ssa-math-opts.c: Likewise.
4329 * tree-ssa-phiopt.c: Likewise.
4330 * tree-ssa-pre.c: Likewise.
4331 * tree-ssa-reassoc.c: Likewise.
4332 * tree-ssa-sink.c: Likewise.
4333 * tree-ssa-tail-merge.c: Likewise.
4334 * tree-ssa-threadedge.c: Likewise.
4335 * tree-ssa-threadupdate.c: Likewise.
4336 * tree-switch-conversion.c: Likewise.
4337 * tree-tailcall.c: Likewise.
4338 * tree-vect-data-refs.c: Likewise.
4339 * tree-vect-loop.c: Likewise.
4340 * tree-vect-loop-manip.c: Likewise.
4341 * tree-vectorizer.c: Likewise.
4342 * tree-vrp.c: Likewise.
4343 * ubsan.c: Likewise.
4344 * value-prof.c: Likewise.
4345 * varasm.c: Likewise.
4346 * var-tracking.c: Likewise.
4347 * config/aarch64/aarch64-builtins.c: Likewise.
4348 * config/aarch64/aarch64.c: Likewise.
4349 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4350 * config/alpha/alpha.c: Likewise.
4351 * config/arc/arc.c: Likewise.
4352 * config/arm/arm.c: Likewise.
4353 * config/avr/avr.c: Likewise.
4354 * config/bfin/bfin.c: Likewise.
4355 * config/c6x/c6x.c: Likewise.
4356 * config/cr16/cr16.c: Likewise.
4357 * config/cris/cris.c: Likewise.
4358 * config/darwin.c: Likewise.
4359 * config/darwin-c.c: Likewise.
4360 * config/epiphany/epiphany.c: Likewise.
4361 * config/epiphany/mode-switch-use.c: Likewise.
4362 * config/epiphany/resolve-sw-modes.c: Likewise.
4363 * config/fr30/fr30.c: Likewise.
4364 * config/frv/frv.c: Likewise.
4365 * config/ft32/ft32.c: Likewise.
4366 * config/h8300/h8300.c: Likewise.
4367 * config/i386/i386.c: Likewise.
4368 * config/i386/winnt.c: Likewise.
4369 * config/ia64/ia64.c: Likewise.
4370 * config/iq2000/iq2000.c: Likewise.
4371 * config/lm32/lm32.c: Likewise.
4372 * config/m32c/m32c.c: Likewise.
4373 * config/m32r/m32r.c: Likewise.
4374 * config/m68k/m68k.c: Likewise.
4375 * config/mcore/mcore.c: Likewise.
4376 * config/mep/mep.c: Likewise.
4377 * config/microblaze/microblaze.c: Likewise.
4378 * config/mips/mips.c: Likewise.
4379 * config/mmix/mmix.c: Likewise.
4380 * config/mn10300/mn10300.c: Likewise.
4381 * config/moxie/moxie.c: Likewise.
4382 * config/msp430/msp430.c: Likewise.
4383 * config/nds32/nds32.c: Likewise.
4384 * config/nds32/nds32-cost.c: Likewise.
4385 * config/nds32/nds32-fp-as-gp.c: Likewise.
4386 * config/nds32/nds32-intrinsic.c: Likewise.
4387 * config/nds32/nds32-isr.c: Likewise.
4388 * config/nds32/nds32-md-auxiliary.c: Likewise.
4389 * config/nds32/nds32-memory-manipulation.c: Likewise.
4390 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4391 * config/nds32/nds32-predicates.c: Likewise.
4392 * config/nios2/nios2.c: Likewise.
4393 * config/nvptx/nvptx.c: Likewise.
4394 * config/pa/pa.c: Likewise.
4395 * config/pdp11/pdp11.c: Likewise.
4396 * config/rl78/rl78.c: Likewise.
4397 * config/rs6000/rs6000.c: Likewise.
4398 * config/rx/rx.c: Likewise.
4399 * config/s390/s390.c: Likewise.
4400 * config/sh/sh.c: Likewise.
4401 * config/sh/sh-mem.cc: Likewise.
4402 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4403 * config/sh/sh_treg_combine.cc: Likewise.
4404 * config/sparc/sparc.c: Likewise.
4405 * config/spu/spu.c: Likewise.
4406 * config/stormy16/stormy16.c: Likewise.
4407 * config/tilegx/tilegx.c: Likewise.
4408 * config/tilepro/tilepro.c: Likewise.
4409 * config/v850/v850.c: Likewise.
4410 * config/vax/vax.c: Likewise.
4411 * config/visium/visium.c: Likewise.
4412 * config/xtensa/xtensa.c: Likewise.
4414 2015-07-10 Richard Biener <rguenther@suse.de>
4416 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
4417 (decision_tree::gen_gimple): Likewise.
4418 (decision_tree::gen_generic): Likewise.
4420 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
4423 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
4424 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
4426 2015-07-10 Jakub Jelinek <jakub@redhat.com>
4429 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
4430 or ORT_TASK contexts.
4431 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
4434 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4436 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
4439 2015-07-10 Tom de Vries <tom@codesourcery.com>
4441 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
4442 insert nit + 1 bound.
4444 2015-07-10 Richard Biener <rguenther@suse.de>
4446 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
4447 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
4448 (if_convertible_loop_p_1): For this always compute bb predicates.
4449 (if_convertible_loop_p): And free them.
4451 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4453 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
4456 2015-07-10 Richard Biener <rguenther@suse.de>
4458 PR tree-optimization/66823
4459 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
4462 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
4464 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
4465 to handle mips[32|64]r3 and mips[32|64]r5.
4467 2015-07-09 Jakub Jelinek <jakub@redhat.com>
4470 * tree-nested.c (get_static_chain): Or in a flag into
4471 info->static_chain_added.
4472 (get_frame_field, get_nonlocal_debug_decl): Likewise.
4473 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
4475 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
4476 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
4479 PR tree-optimization/66718
4480 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
4482 (vect_simd_lane_linear): New function.
4483 (vectorizable_simd_clone_call): Support using linear arguments for
4484 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
4486 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4489 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
4491 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4493 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
4494 Use machine mode, not enum machine_mode in the prototype.
4496 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
4497 classify 128-bit floating point support.
4498 (FLOAT128_IBM_P): Likewise.
4499 (FLOAT128_VECTOR_P): Likewise.
4500 (FLOAT128_2REG_P): Likewise.
4501 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
4502 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
4503 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
4504 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
4506 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
4507 tests against TFmode/TDmode, since those modes do not use VSX
4509 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
4511 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
4512 tests against TFmode, etc.
4513 (invalid_e500_subreg): Add tests against IFmode/KFmode.
4514 (reg_offset_addressing_ok_p): Likewise.
4515 (rs6000_legitimate_offset_address_p): Likewise.
4516 (rs6000_legitimize_address): Likewise.
4517 (rs6000_legitimize_reload_address): Likewise.
4518 (rs6000_legitimate_address_p): Clean up tests against TFmode and
4519 TDmode to use the new helper macros, which will include IFmode and
4521 (rs6000_emit_move): Likewise.
4522 (rs6000_darwin64_record_arg_recurse): Likewise.
4523 (print_operand): Likewise.
4524 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
4525 that uses a single vector register as a vector and not as a
4526 floating point register in terms of the calling sequence.
4527 (rs6000_discover_homogeneous_aggregate): Likewise.
4528 (rs6000_return_in_memory): Likewise.
4529 (init_cumulative_args): Likewise.
4530 (rs6000_function_arg_boundary): Likewise.
4531 (rs6000_function_arg_advance_1): Likewise.
4532 (rs6000_function_arg): Likewise.
4533 (rs6000_pass_by_reference): Likewise.
4534 (rs6000_gimplify_va_arg): Likewise.
4535 (rs6000_secondary_reload_memory): Use machine_mode not enum
4537 (rs6000_split_multireg_move): Use new helper macros.
4538 (spe_func_has_64bit_regs_p): Likewise.
4539 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
4540 (output_toc): Use new helper macros.
4541 (rs6000_register_move_cost): Likewise.
4542 (rs6000_function_value): Add IEEE 128-bit floating point calling
4544 (rs6000_libcall_value): Likewise.
4545 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
4546 floating point support.
4547 (rs6000_vector_mode_supported_p): Likewise.
4549 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
4551 PR rtl-optimization/66782
4552 * lra-int.h (struct lra_insn_recog_data): Add comment about
4553 clobbered hard regs for arg_hard_regs.
4554 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
4555 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
4556 Add condition for processing used hard regs.
4557 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
4558 Process clobbered hard regs.
4560 2015-07-09 Michael Matz <matz@suse.de>
4562 * genmatch.c (fprintf_indent): New function.
4563 (operand::gen_transform): Add indent parameter.
4564 (expr::gen_transform, c_expr::gen_transform,
4565 capture::gen_transform): Ditto and use fprintf_indent.
4566 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
4567 (dt_operand::gen, dt_operand::gen_predicate,
4568 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
4569 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
4570 (decision_tree::gen_gimple): Adjust calls and indent generated
4572 (decision_tree::gen_generic): Ditto.
4573 (write_predicate): Ditto.
4575 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
4578 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
4579 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
4580 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
4581 {GENERAL,SSE,MMX}_REG_P where appropriate.
4583 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
4585 * lto-streamer.h: Don't include target.h and alloc-pool.h.
4586 * builtins.c: Adjust includes.
4587 * gimple.c: Likewise.
4588 * ipa-icf.c: Likewise.
4589 * lto-opts.c: Likewise.
4590 * ipa-reference.c: Likewise.
4591 * lto-section-out.c: Likewise.
4592 * lto-streamer-in.c: Likewise.
4593 * lto-streamer-out.c: Likewise.
4594 * opts-global.c: Likewise.
4595 * symtab.c: Likewise.
4596 * tree-chkp.c: Likewise.
4597 * tree-ssa-live.c: Likewise.
4598 * tree-streamer-in.c: Likewise.
4599 * tree-streamer-out.c: Likewise.
4600 * config/darwin.c: Likewise.
4601 * config/i386/winnt.c: Likewise.
4603 2015-07-09 Richard Biener <rguenther@suse.de>
4605 * genmatch.c (struct expr): Add force_single_use flag.
4606 (expr::expr): Add copy constructor.
4607 (capture_info::walk_match): Gather force_single_use captures.
4608 (expr::gen_transform): Use possibly NULLified sequence.
4609 (dt_simplify::gen): Apply single-use restrictions by NULLifying
4610 seq if any constrained expr is not single-use.
4611 (parser::parse_expr): Refactor to allow multiple flags. Handle
4612 's' flag to force an expression have a single-use if the pattern
4613 simplifies to more than one statement.
4614 * match.pd: Convert most single_use conditionals to :s flags.
4616 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4618 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
4619 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
4620 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
4622 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
4624 * flags.h: Don't include flag-types.h or options.h.
4625 * opts-common.c: Adjust includes.
4626 * opts-global.c: Likewise.
4627 * common/config/epiphany/epiphany-common.c: Likewise.
4629 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4632 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
4635 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4638 * config/i386/i386.c (ix86_return_in_memory): Return true
4639 if int_size_in_bytes returns negative for IA MCU.
4641 2015-07-09 Marek Polacek <polacek@redhat.com>
4643 PR tree-optimization/66718
4644 * Makefile.in (OBJS): Add gimple-laddress.o.
4645 * passes.def: Schedule pass_laddress.
4646 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
4647 * tree-pass.h (make_pass_laddress): Declare.
4648 * gimple-laddress.c: New file.
4650 2015-07-09 Richard Biener <rguenther@suse.de>
4652 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
4654 2015-07-09 Richard Biener <rguenther@suse.de>
4656 PR tree-optimization/66807
4657 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
4659 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
4661 * function.c (stack_protect_epilogue): Use if rather than switch for
4662 check targetm.have_stack_protect_test.
4664 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4666 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
4667 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
4668 * config/arc/arc.h: Likewise.
4669 * config/arm/arm.h: Likewise.
4670 * config/bfin/bfin.h: Likewise.
4671 * config/epiphany/epiphany.h: Likewise.
4672 * config/frv/frv.h: Likewise.
4673 * config/ia64/ia64.h: Likewise.
4674 * config/iq2000/iq2000.h: Likewise.
4675 * config/lm32/lm32.h: Likewise.
4676 * config/m32r/m32r.h: Likewise.
4677 * config/mcore/mcore.h: Likewise.
4678 * config/mep/mep.h: Likewise.
4679 * config/microblaze/microblaze.h: Likewise.
4680 * config/mips/mips.h: Likewise.
4681 * config/mmix/mmix.h: Likewise.
4682 * config/mn10300/mn10300.h: Likewise.
4683 * config/nds32/nds32.h: Likewise.
4684 * config/nios2/nios2.h: Likewise.
4685 * config/pa/pa.h: Likewise.
4686 * config/rl78/rl78.h: Likewise.
4687 * config/sh/sh.h: Likewise.
4688 * config/sparc/sparc.h: Likewise.
4689 * config/stormy16/stormy16.h: Likewise.
4690 * config/tilegx/tilegx.h: Likewise.
4691 * config/tilepro/tilepro.h: Likewise.
4692 * config/v850/v850.h: Likewise.
4693 * config/xtensa/xtensa.h: Likewise.
4694 * doc/tm.texi: Regenerate.
4695 * doc/tm.texi.in: Adjust.
4696 * combine.c (simplify_set): Likewise.
4697 (simplify_comparison): Likewise.
4698 * expr.c (store_constructor): Likewise.
4699 * internal-fn.c (expand_arith_overflow): Likewise.
4700 * reload.c (push_reload): Likewise.
4701 (find_reloads): Likewise.
4702 (find_reloads_subreg_address): Likewise.
4703 * reload1.c (eliminate_regs_1): Likewise.
4704 * rtlanal.c (nonzero_bits1): Likewise.
4705 (num_sign_bit_copies1): Likewise.
4706 * simplify-rtx.c (simplify_truncation): Likewise.
4708 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4710 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
4711 of AUTO_INC_DEC with the preprocessor.
4712 * combine.c (combine_instructions): Likewise.
4713 (can_combine_p): Likewise.
4714 (try_combine): Likewise.
4715 * emit-rtl.c (try_split): Likewise.
4716 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4717 * lower-subreg.c (resolve_simple_move): Likewise.
4718 * lra.c (update_inc_notes): Likewise.
4719 * recog.c (asm_operand_ok): Likewise.
4720 (constrain_operands): Likewise.
4721 * regrename.c (scan_rtx_address): Likewise.
4722 * reload.c (update_auto_inc_notes): Likewise.
4723 (reg_inc_found_and_valid_p): Likewise.
4724 * reload1.c (reload): Likewise.
4725 (emit_input_reload_insns): Likewise.
4726 (delete_output_reload): Likewise.
4727 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4728 * valtrack.c (cleanup_auto_inc_dec): Likewise.
4730 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4732 * rtl.h: Always define AUTO_INC_DEC.
4733 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
4734 * combine.c (combine_instructions): Likewise.
4735 (can_combine_p): Likewise.
4736 (try_combine): Likewise.
4737 * emit-rtl.c (try_split): Likewise.
4738 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4739 * lower-subreg.c (resolve_simple_move): Likewise.
4740 * lra.c (update_inc_notes): Likewise.
4741 * recog.c (asm_operand_ok): Likewise.
4742 (constrain_operands): Likewise.
4743 * regrename.c (scan_rtx_address): Likewise.
4744 * reload.c (update_auto_inc_notes): Likewise.
4745 (find_equiv_reg): Likewise.
4746 * reload1.c (reload): Likewise.
4747 (reload_as_needed): Likewise.
4748 (choose_reload_regs): Likewise.
4749 (emit_input_reload_insns): Likewise.
4750 (delete_output_reload): Likewise.
4751 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4752 * valtrack.c (cleanup_auto_inc_dec): Likewise.
4754 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4756 * combine.c (can_combine_def_p): Don't check the value of
4757 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
4758 (combinable_i3pat): Likewise.
4759 (mark_used_regs_combine): Likewise.
4760 * regrename.c (rename_chains): Likewise.
4761 * reload.c (find_reloads_address): Likewise.
4762 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4764 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4766 * combine.c (update_rsp_from_reg_equal): Don't check if
4767 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
4768 (reg_nonzero_bits_for_combine): Likewise.
4769 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
4771 * config/frv/frv.h: Likewise.
4772 * config/lm32/lm32.h: Likewise.
4773 * config/mep/mep.h: Likewise.
4774 * config/mips/mips.h: Likewise.
4775 * config/rs6000/rs6000.h: Likewise.
4776 * config/sh/sh.h: Likewise.
4777 * config/tilegx/tilegx.h (enum reg_class): Likewise.
4778 * config/tilepro/tilepro.h: Likewise.
4779 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
4780 * doc/tm.texi: Regenerate.
4781 * doc/tm.texi.in: Adjust.
4782 * rtlanal.c (nonzero_bits1): Likewise.
4784 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4786 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
4787 with the preprocessor.
4788 (combine_instructions): Likewise.
4789 (try_combine): Likewise.
4791 (distribute_notes): Likewise.
4793 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4795 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
4797 (simplify_set): Likewise.
4798 * cse.c (cse_insn): Likewise.
4799 * fold-const.c (fold_single_bit_test): Likewise.
4800 (fold_unary_loc): Likewise.
4801 * postreload.c (reload_cse_simplify_set): Likewise.
4802 (reload_cse_simplify_operands): Likewise.
4804 2015-07-08 Jiong Wang <jiong.wang@arm.com>
4806 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
4807 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
4809 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
4812 * config/i386/x86intrin.h: Include <adxintrin.h> even if
4813 __iamcu__ is defined.
4815 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
4817 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
4819 2015-07-08 Iain Sandoe <iain@codesourcery.com>
4822 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
4823 names from preservation.
4825 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
4828 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
4830 (function_arg_advance_32): Don't pass vectors in registers for
4832 (function_arg_32): Likewise.
4833 (ix86_return_in_memory): Don't return vectors in registers for
4836 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
4839 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
4840 hard regno live at the start of BB with incoming abnormal edges.
4841 * lra-lives.c (process_bb_lives): Ditto.
4843 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
4846 * config/nvptx/mkoffload.c (main): Create an offload image only in
4847 64-bit configurations.
4849 2015-07-08 Martin Liska <mliska@suse.cz>
4852 * tree-sra.c (create_access_1): Call ctor without brackets.
4853 (create_artificial_child_access): Likewise.
4855 2015-07-08 Richard Biener <rguenther@suse.de>
4857 PR tree-optimization/66793
4858 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
4859 Properly split the block after stmts ending it.
4861 2015-07-08 Richard Biener <rguenther@suse.de>
4863 PR tree-optimization/66794
4864 * passes.c (execute_function_todo): Assert that post-dominators
4866 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
4867 Free post-dominators.
4869 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4871 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
4874 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
4876 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
4877 more than or equal 8 and less than 32 when optimizing for size.
4879 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4881 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
4882 COSTS_N_INSNS (1) and increment it appropriately throughout the
4885 2015-07-08 Richard Biener <rguenther@suse.de>
4887 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
4889 2015-07-08 Alan Modra <amodra@gmail.com>
4891 * target.def (rtx_costs): Remove "code" param, add "mode".
4892 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
4893 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
4894 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
4895 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
4896 call. Track mode when given in rtx.
4897 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
4898 (default_address_cost): Pass Pmode to rtx_cost.
4899 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
4900 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
4902 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
4903 (notreg_cost): Add mode param. Use it.
4904 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
4905 mode param and pass to set_src_cost. Update all calls.
4906 (hash_scan_set): Formatting.
4907 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
4908 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
4910 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
4911 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
4912 emit_store_flag): Update set_src_cost and rtx_cost calls.
4913 * auto-inc-dec.c (attempt_change): Likewise.
4914 * calls.c (precompute_register_parameters): Likewise.
4915 * combine.c (expand_compound_operation, make_extraction,
4916 force_to_mode, distribute_and_simplify_rtx): Likewise.
4917 * dojump.c (prefer_and_bit_test): Likewise.
4918 * dse.c (find_shift_sequence): Likewise.
4919 * expr.c (compress_float_constant): Likewise.
4920 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4921 * ifcvt.c (noce_try_sign_mask): Likewise.
4922 * loop-doloop.c (doloop_optimize): Likewise.
4923 * loop-invariant.c (create_new_invariant): Likewise.
4924 * lower-subreg.c (shift_cost, compute_costs): Likewise.
4925 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
4926 lshift_cheap_p): Likewise.
4927 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
4928 try_replace_in_use, reload_cse_move2add): Likewise.
4929 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
4931 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4932 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4933 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
4934 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4935 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
4936 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
4938 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
4939 * config/arc/arc.c (arc_rtx_costs): Likewise.
4940 * config/arm/arm.c (arm_rtx_costs): Likewise.
4941 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
4942 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4943 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4944 * config/cris/cris.c (cris_rtx_costs): Likewise.
4945 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
4946 * config/frv/frv.c (frv_rtx_costs): Likewise.
4947 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4948 * config/i386/i386.c (ix86_rtx_costs): Likewise.
4949 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4950 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4951 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4952 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4953 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4954 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4955 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4956 * config/mep/mep.c (mep_rtx_cost): Likewise.
4957 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4958 * config/mips/mips.c (mips_rtx_costs): Likewise.
4959 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4960 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
4961 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
4962 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
4963 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
4964 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
4965 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
4966 * config/pa/pa.c (hppa_rtx_costs): Likewise.
4967 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4968 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
4969 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4970 * config/s390/s390.c (s390_rtx_costs): Likewise.
4971 * config/sh/sh.c (sh_rtx_costs): Likewise.
4972 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4973 * config/spu/spu.c (spu_rtx_costs): Likewise.
4974 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4975 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
4976 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
4977 * config/v850/v850.c (v850_rtx_costs): Likewise.
4978 * config/vax/vax.c (vax_rtx_costs): Likewise.
4979 * config/visium/visium.c (visium_rtx_costs): Likewise.
4980 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4981 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
4982 "code" param, and pass as outer_code to first rtx_cost call. Pass
4983 mode to rtx_cost calls.
4984 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
4986 (aarch64_rtx_costs_wrapper): Update.
4987 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
4988 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
4990 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
4992 (avr_operand_rtx_cost): Similarly.
4993 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
4994 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
4995 * config/mips/mips.c (mips_stack_address_p): Comment typo.
4996 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
4997 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
4998 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
5000 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
5001 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
5002 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
5003 * doc/tm.texi: Regenerate.
5005 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
5007 * tree-core.h: Include symtab.h.
5008 * rtl.h: Include hard-reg-set.h but not flags.h.
5009 (HARD_CONST): Remove condition compilation involving HARD_CONST since
5010 hard-reg-set.h is always included.
5011 * regs.h: Don't include hard-reg-set.h or rtl.h.
5012 * cfg.h: Include dominance.h.
5013 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
5014 * backend.h: New. Aggregate commonly used backend header files.
5015 * gimple-ssa.h: Don't include tree-hasher.h.
5016 * ssa.h: New. Aggregate commonly used SSA header files.
5017 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
5018 * sel-sched-ir.h: Flatten includes.
5019 * lra-int.h: Flatten completely.
5020 * sel-sched-dump.h: Flatten includes.
5021 * ira-int.h: Flatten includes.
5022 * gimple-streamer.h: Remove all includes.
5023 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
5024 * resource.h: Flatten hard-reg-set.h and df.h.
5025 * sched-int.h: Flatten insn-arrt.h and df.h.
5026 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
5027 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
5028 * genattrtab.c (write_header): Adjust generated includes.
5029 * genautomata.c (main): Likewise.
5030 * genconditions.c (write-header): Likewise.
5031 * genemit.c (main): Likewise.
5032 * gengtype.c (open_base_files): Likewise.
5033 * genopinit.c (main): Likewise.
5034 * genoutput.c (output_prologue): Likewise.
5035 * genpeep.c (main): Likewise.
5036 * genpreds.c (write_insn_preds_c): Likewise.
5037 * genrecog.c (write_header): Likewise.
5038 * alias.c: Adjust includes.
5040 * attribs.c: Likewise.
5041 * auto-inc-dec.c: Likewise.
5042 * auto-profile.c: Likewise.
5043 * bb-reorder.c: Likewise.
5044 * bt-load.c: Likewise.
5045 * builtins.c: Likewise.
5046 * caller-save.c: Likewise.
5047 * calls.c: Likewise.
5050 * cfganal.c: Likewise.
5051 * cfgbuild.c: Likewise.
5052 * cfgcleanup.c: Likewise.
5053 * cfgexpand.c: Likewise.
5054 * cfghooks.c: Likewise.
5055 * cfgloop.c: Likewise.
5056 * cfgloopanal.c: Likewise.
5057 * cfgloopmanip.c: Likewise.
5058 * cfgrtl.c: Likewise.
5059 * cgraph.c: Likewise.
5060 * cgraphbuild.c: Likewise.
5061 * cgraphclones.c: Likewise.
5062 * cgraphunit.c: Likewise.
5063 * cilk-common.c: Likewise.
5064 * combine-stack-adj.c: Likewise.
5065 * combine.c: Likewise.
5066 * compare-elim.c: Likewise.
5067 * convert.c: Likewise.
5068 * coverage.c: Likewise.
5069 * cppbuiltin.c: Likewise.
5070 * cprop.c: Likewise.
5072 * cselib.c: Likewise.
5073 * data-streamer-in.c: Likewise.
5074 * data-streamer-out.c: Likewise.
5075 * data-streamer.c: Likewise.
5076 * dbxout.c: Likewise.
5079 * debug.c: Likewise.
5080 * df-core.c: Likewise.
5081 * df-problems.c: Likewise.
5082 * df-scan.c: Likewise.
5084 * dojump.c: Likewise.
5085 * dominance.c: Likewise.
5086 * domwalk.c: Likewise.
5087 * double-int.c: Likewise.
5089 * dumpfile.c: Likewise.
5090 * dwarf2asm.c: Likewise.
5091 * dwarf2cfi.c: Likewise.
5092 * dwarf2out.c: Likewise.
5093 * emit-rtl.c: Likewise.
5094 * et-forest.c: Likewise.
5095 * except.c: Likewise.
5096 * explow.c: Likewise.
5097 * expmed.c: Likewise.
5099 * final.c: Likewise.
5100 * fixed-value.c: Likewise.
5101 * fold-const.c: Likewise.
5102 * function.c: Likewise.
5103 * fwprop.c: Likewise.
5104 * gcc-plugin.h: Likewise.
5105 * gcse-common.c: Likewise.
5107 * generic-match-head.c: Likewise.
5108 * ggc-page.c: Likewise.
5109 * gimple-builder.c: Likewise.
5110 * gimple-expr.c: Likewise.
5111 * gimple-fold.c: Likewise.
5112 * gimple-iterator.c: Likewise.
5113 * gimple-low.c: Likewise.
5114 * gimple-match-head.c: Likewise.
5115 * gimple-pretty-print.c: Likewise.
5116 * gimple-ssa-isolate-paths.c: Likewise.
5117 * gimple-ssa-strength-reduction.c: Likewise.
5118 * gimple-streamer-in.c: Likewise.
5119 * gimple-streamer-out.c: Likewise.
5120 * gimple-walk.c: Likewise.
5121 * gimple.c: Likewise.
5122 * gimplify-me.c: Likewise.
5123 * gimplify.c: Likewise.
5124 * godump.c: Likewise.
5125 * graph.c: Likewise.
5126 * graphite-blocking.c: Likewise.
5127 * graphite-dependences.c: Likewise.
5128 * graphite-interchange.c: Likewise.
5129 * graphite-isl-ast-to-gimple.c: Likewise.
5130 * graphite-optimize-isl.c: Likewise.
5131 * graphite-poly.c: Likewise.
5132 * graphite-scop-detection.c: Likewise.
5133 * graphite-sese-to-poly.c: Likewise.
5134 * graphite.c: Likewise.
5135 * haifa-sched.c: Likewise.
5136 * hw-doloop.c: Likewise.
5137 * ifcvt.c: Likewise.
5138 * init-regs.c: Likewise.
5139 * internal-fn.c: Likewise.
5140 * ipa-chkp.c: Likewise.
5141 * ipa-comdats.c: Likewise.
5142 * ipa-cp.c: Likewise.
5143 * ipa-devirt.c: Likewise.
5144 * ipa-icf-gimple.c: Likewise.
5145 * ipa-icf.c: Likewise.
5146 * ipa-inline-analysis.c: Likewise.
5147 * ipa-inline-transform.c: Likewise.
5148 * ipa-inline.c: Likewise.
5149 * ipa-polymorphic-call.c: Likewise.
5150 * ipa-profile.c: Likewise.
5151 * ipa-prop.c: Likewise.
5152 * ipa-pure-const.c: Likewise.
5153 * ipa-ref.c: Likewise.
5154 * ipa-reference.c: Likewise.
5155 * ipa-split.c: Likewise.
5156 * ipa-utils.c: Likewise.
5157 * ipa-visibility.c: Likewise.
5159 * ira-build.c: Likewise.
5160 * ira-color.c: Likewise.
5161 * ira-conflicts.c: Likewise.
5162 * ira-costs.c: Likewise.
5163 * ira-emit.c: Likewise.
5164 * ira-lives.c: Likewise.
5167 * langhooks.c: Likewise.
5169 * loop-doloop.c: Likewise.
5170 * loop-init.c: Likewise.
5171 * loop-invariant.c: Likewise.
5172 * loop-iv.c: Likewise.
5173 * loop-unroll.c: Likewise.
5174 * lower-subreg.c: Likewise.
5175 * lra-assigns.c: Likewise.
5176 * lra-coalesce.c: Likewise.
5177 * lra-constraints.c: Likewise.
5178 * lra-eliminations.c: Likewise.
5179 * lra-lives.c: Likewise.
5180 * lra-remat.c: Likewise.
5181 * lra-spills.c: Likewise.
5183 * lto-cgraph.c: Likewise.
5184 * lto-compress.c: Likewise.
5185 * lto-opts.c: Likewise.
5186 * lto-section-in.c: Likewise.
5187 * lto-section-out.c: Likewise.
5188 * lto-streamer-in.c: Likewise.
5189 * lto-streamer-out.c: Likewise.
5190 * lto-streamer.c: Likewise.
5192 * mode-switching.c: Likewise.
5193 * modulo-sched.c: Likewise.
5194 * omega.c: Likewise.
5195 * omp-low.c: Likewise.
5196 * optabs.c: Likewise.
5197 * opts-global.c: Likewise.
5198 * passes.c: Likewise.
5199 * plugin.c: Likewise.
5200 * postreload-gcse.c: Likewise.
5201 * postreload.c: Likewise.
5202 * predict.c: Likewise.
5203 * print-rtl.c: Likewise.
5204 * print-tree.c: Likewise.
5205 * profile.c: Likewise.
5207 * realmpfr.c: Likewise.
5208 * recog.c: Likewise.
5210 * reg-stack.c: Likewise.
5211 * regcprop.c: Likewise.
5212 * reginfo.c: Likewise.
5213 * regrename.c: Likewise.
5214 * regstat.c: Likewise.
5215 * reload.c: Likewise.
5216 * reload1.c: Likewise.
5217 * reorg.c: Likewise.
5218 * resource.c: Likewise.
5219 * rtl-chkp.c: Likewise.
5220 * rtlanal.c: Likewise.
5221 * rtlhooks.c: Likewise.
5222 * sanopt.c: Likewise.
5223 * sched-deps.c: Likewise.
5224 * sched-ebb.c: Likewise.
5225 * sched-rgn.c: Likewise.
5226 * sched-vis.c: Likewise.
5227 * sdbout.c: Likewise.
5228 * sel-sched-dump.c: Likewise.
5229 * sel-sched-ir.c: Likewise.
5230 * sel-sched.c: Likewise.
5232 * shrink-wrap.c: Likewise.
5233 * simplify-rtx.c: Likewise.
5234 * stack-ptr-mod.c: Likewise.
5236 * stor-layout.c: Likewise.
5237 * store-motion.c: Likewise.
5238 * stringpool.c: Likewise.
5239 * symtab.c: Likewise.
5240 * target-globals.c: Likewise.
5241 * targhooks.c: Likewise.
5242 * toplev.c: Likewise.
5243 * tracer.c: Likewise.
5244 * trans-mem.c: Likewise.
5245 * tree-affine.c: Likewise.
5246 * tree-browser.c: Likewise.
5247 * tree-call-cdce.c: Likewise.
5248 * tree-cfg.c: Likewise.
5249 * tree-cfgcleanup.c: Likewise.
5250 * tree-chkp-opt.c: Likewise.
5251 * tree-chkp.c: Likewise.
5252 * tree-chrec.c: Likewise.
5253 * tree-complex.c: Likewise.
5254 * tree-data-ref.c: Likewise.
5255 * tree-dfa.c: Likewise.
5256 * tree-diagnostic.c: Likewise.
5257 * tree-dump.c: Likewise.
5258 * tree-eh.c: Likewise.
5259 * tree-emutls.c: Likewise.
5260 * tree-if-conv.c: Likewise.
5261 * tree-inline.c: Likewise.
5262 * tree-into-ssa.c: Likewise.
5263 * tree-iterator.c: Likewise.
5264 * tree-loop-distribution.c: Likewise.
5265 * tree-nested.c: Likewise.
5266 * tree-nrv.c: Likewise.
5267 * tree-object-size.c: Likewise.
5268 * tree-outof-ssa.c: Likewise.
5269 * tree-parloops.c: Likewise.
5270 * tree-phinodes.c: Likewise.
5271 * tree-predcom.c: Likewise.
5272 * tree-pretty-print.c: Likewise.
5273 * tree-profile.c: Likewise.
5274 * tree-scalar-evolution.c: Likewise.
5275 * tree-sra.c: Likewise.
5276 * tree-ssa-address.c: Likewise.
5277 * tree-ssa-alias.c: Likewise.
5278 * tree-ssa-ccp.c: Likewise.
5279 * tree-ssa-coalesce.c: Likewise.
5280 * tree-ssa-copy.c: Likewise.
5281 * tree-ssa-copyrename.c: Likewise.
5282 * tree-ssa-dce.c: Likewise.
5283 * tree-ssa-dom.c: Likewise.
5284 * tree-ssa-dse.c: Likewise.
5285 * tree-ssa-forwprop.c: Likewise.
5286 * tree-ssa-ifcombine.c: Likewise.
5287 * tree-ssa-live.c: Likewise.
5288 * tree-ssa-loop-ch.c: Likewise.
5289 * tree-ssa-loop-im.c: Likewise.
5290 * tree-ssa-loop-ivcanon.c: Likewise.
5291 * tree-ssa-loop-ivopts.c: Likewise.
5292 * tree-ssa-loop-manip.c: Likewise.
5293 * tree-ssa-loop-niter.c: Likewise.
5294 * tree-ssa-loop-prefetch.c: Likewise.
5295 * tree-ssa-loop-unswitch.c: Likewise.
5296 * tree-ssa-loop.c: Likewise.
5297 * tree-ssa-math-opts.c: Likewise.
5298 * tree-ssa-operands.c: Likewise.
5299 * tree-ssa-phiopt.c: Likewise.
5300 * tree-ssa-phiprop.c: Likewise.
5301 * tree-ssa-pre.c: Likewise.
5302 * tree-ssa-propagate.c: Likewise.
5303 * tree-ssa-reassoc.c: Likewise.
5304 * tree-ssa-sccvn.c: Likewise.
5305 * tree-ssa-scopedtables.c: Likewise.
5306 * tree-ssa-sink.c: Likewise.
5307 * tree-ssa-strlen.c: Likewise.
5308 * tree-ssa-structalias.c: Likewise.
5309 * tree-ssa-tail-merge.c: Likewise.
5310 * tree-ssa-ter.c: Likewise.
5311 * tree-ssa-threadedge.c: Likewise.
5312 * tree-ssa-threadupdate.c: Likewise.
5313 * tree-ssa-uncprop.c: Likewise.
5314 * tree-ssa-uninit.c: Likewise.
5315 * tree-ssa.c: Likewise.
5316 * tree-ssanames.c: Likewise.
5317 * tree-stdarg.c: Likewise.
5318 * tree-streamer-in.c: Likewise.
5319 * tree-streamer-out.c: Likewise.
5320 * tree-streamer.c: Likewise.
5321 * tree-switch-conversion.c: Likewise.
5322 * tree-tailcall.c: Likewise.
5323 * tree-vect-data-refs.c: Likewise.
5324 * tree-vect-generic.c: Likewise.
5325 * tree-vect-loop-manip.c: Likewise.
5326 * tree-vect-loop.c: Likewise.
5327 * tree-vect-patterns.c: Likewise.
5328 * tree-vect-slp.c: Likewise.
5329 * tree-vect-stmts.c: Likewise.
5330 * tree-vectorizer.c: Likewise.
5331 * tree-vrp.c: Likewise.
5334 * ubsan.c: Likewise.
5335 * valtrack.c: Likewise.
5336 * value-prof.c: Likewise.
5337 * var-tracking.c: Likewise.
5338 * varasm.c: Likewise.
5339 * varpool.c: Likewise.
5340 * vmsdbgout.c: Likewise.
5341 * vtable-verify.c: Likewise.
5343 * wide-int.cc: Likewise.
5344 * xcoffout.c: Likewise.
5345 * config/aarch64/aarch64-builtins.c: Likewise.
5346 * config/aarch64/aarch64.c: Likewise.
5347 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5348 * config/alpha/alpha.c: Likewise.
5349 * config/arc/arc.c: Likewise.
5350 * config/arm/aarch-common.c: Likewise.
5351 * config/arm/arm-builtins.c: Likewise.
5352 * config/arm/arm-c.c: Likewise.
5353 * config/arm/arm.c: Likewise.
5354 * config/avr/avr-c.c: Likewise.
5355 * config/avr/avr-log.c: Likewise.
5356 * config/avr/avr.c: Likewise.
5357 * config/bfin/bfin.c: Likewise.
5358 * config/c6x/c6x.c: Likewise.
5359 * config/cr16/cr16.c: Likewise.
5360 * config/cris/cris.c: Likewise.
5361 * config/darwin-c.c: Likewise.
5362 * config/darwin.c: Likewise.
5363 * config/epiphany/epiphany.c: Likewise.
5364 * config/epiphany/mode-switch-use.c: Likewise.
5365 * config/epiphany/resolve-sw-modes.c: Likewise.
5366 * config/fr30/fr30.c: Likewise.
5367 * config/frv/frv.c: Likewise.
5368 * config/ft32/ft32.c: Likewise.
5369 * config/h8300/h8300.c: Likewise.
5370 * config/i386/i386-c.c: Likewise.
5371 * config/i386/i386.c: Likewise.
5372 * config/i386/msformat-c.c: Likewise.
5373 * config/i386/winnt-cxx.c: Likewise.
5374 * config/i386/winnt-stubs.c: Likewise.
5375 * config/i386/winnt.c: Likewise.
5376 * config/ia64/ia64-c.c: Likewise.
5377 * config/ia64/ia64.c: Likewise.
5378 * config/iq2000/iq2000.c: Likewise.
5379 * config/lm32/lm32.c: Likewise.
5380 * config/m32c/m32c-pragma.c: Likewise.
5381 * config/m32c/m32c.c: Likewise.
5382 * config/m32r/m32r.c: Likewise.
5383 * config/m68k/m68k.c: Likewise.
5384 * config/mcore/mcore.c: Likewise.
5385 * config/mep/mep-pragma.c: Likewise.
5386 * config/mep/mep.c: Likewise.
5387 * config/microblaze/microblaze-c.c: Likewise.
5388 * config/microblaze/microblaze.c: Likewise.
5389 * config/mips/mips.c: Likewise.
5390 * config/mmix/mmix.c: Likewise.
5391 * config/mn10300/mn10300.c: Likewise.
5392 * config/moxie/moxie.c: Likewise.
5393 * config/msp430/msp430-c.c: Likewise.
5394 * config/msp430/msp430.c: Likewise.
5395 * config/nds32/nds32-cost.c: Likewise.
5396 * config/nds32/nds32-fp-as-gp.c: Likewise.
5397 * config/nds32/nds32-intrinsic.c: Likewise.
5398 * config/nds32/nds32-isr.c: Likewise.
5399 * config/nds32/nds32-md-auxiliary.c: Likewise.
5400 * config/nds32/nds32-memory-manipulation.c: Likewise.
5401 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5402 * config/nds32/nds32-predicates.c: Likewise.
5403 * config/nds32/nds32.c: Likewise.
5404 * config/nios2/nios2.c: Likewise.
5405 * config/nvptx/nvptx.c: Likewise.
5406 * config/pa/pa.c: Likewise.
5407 * config/pdp11/pdp11.c: Likewise.
5408 * config/rl78/rl78-c.c: Likewise.
5409 * config/rl78/rl78.c: Likewise.
5410 * config/rs6000/rs6000-c.c: Likewise.
5411 * config/rs6000/rs6000.c: Likewise.
5412 * config/rx/rx.c: Likewise.
5413 * config/s390/s390-c.c: Likewise.
5414 * config/s390/s390.c: Likewise.
5415 * config/sh/sh-c.c: Likewise.
5416 * config/sh/sh-mem.cc: Likewise.
5417 * config/sh/sh.c: Likewise.
5418 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5419 * config/sh/sh_treg_combine.cc: Likewise.
5420 * config/sol2-c.c: Likewise.
5421 * config/sol2-cxx.c: Likewise.
5422 * config/sol2-stubs.c: Likewise.
5423 * config/sol2.c: Likewise.
5424 * config/sparc/sparc-c.c: Likewise.
5425 * config/sparc/sparc.c: Likewise.
5426 * config/spu/spu-c.c: Likewise.
5427 * config/spu/spu.c: Likewise.
5428 * config/stormy16/stormy16.c: Likewise.
5429 * config/tilegx/mul-tables.c: Likewise.
5430 * config/tilegx/tilegx-c.c: Likewise.
5431 * config/tilegx/tilegx.c: Likewise.
5432 * config/tilepro/mul-tables.c: Likewise.
5433 * config/tilepro/tilepro-c.c: Likewise.
5434 * config/tilepro/tilepro.c: Likewise.
5435 * config/v850/v850-c.c: Likewise.
5436 * config/v850/v850.c: Likewise.
5437 * config/vax/vax.c: Likewise.
5438 * config/visium/visium.c: Likewise.
5439 * config/vms/vms-c.c: Likewise.
5440 * config/vms/vms.c: Likewise.
5441 * config/vxworks.c: Likewise.
5442 * config/xtensa/xtensa.c: Likewise.
5444 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
5446 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
5447 Remove operand constraints. Change operand 2 predicate to
5448 nonmemory operand. Limit const_int values to mode bitsize. Only
5449 allow const_int values less than 32 when optimizing for size.
5450 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
5451 Remove operand constraints.
5452 (*bt<mode>): Use SImode for const_int values less than 32.
5453 (regmode): Remove mode attribute.
5455 2015-07-07 Anatoly Sokolov <aesok@post.ru>
5457 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5458 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
5459 moxie_legitimate_address_p): New functions.
5460 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5462 2015-07-07 Tom de Vries <tom@codesourcery.com>
5464 PR tree-optimization/66642
5465 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
5466 header comment. Rename split_edge variable to edge_at_split. Split
5467 exit edge to create new loop exit bb. Insert loop exit phis in new
5470 2015-07-07 Tom de Vries <tom@codesourcery.com>
5472 * tree-cfg.c (get_virtual_phi): New function.
5473 * tree-cfg.h (get_virtual_phi): Declare.
5474 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
5475 (rewrite_virtuals_into_loop_closed_ssa): New function.
5476 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
5478 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
5479 (transform_to_exit_first_loop_alt): Use
5480 rewrite_virtuals_into_loop_closed_ssa.
5482 2015-07-07 Richard Biener <rguenther@suse.de>
5484 * fold-const.c (fold_binary_loc): Move
5485 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
5486 * match.pd: ... here.
5487 Add (X * C1) % C2 -> 0 simplification pattern derived from
5490 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
5493 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
5494 change for target/65249.
5496 2015-07-07 Paulo Matos <pmatos@broadcom.com>
5498 * symtab.c (address_matters_1): Fix typo in comment above.
5499 (can_increase_alignment_p): Likewise.
5501 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5503 * function.c (free_after_compilation): Clear PROP_cfg in
5506 2015-07-07 Richard Biener <rguenther@suse.de>
5508 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
5510 (add_control_edge): Remove excessive vertical space in dumping.
5511 (process_ssa_edge_worklist): Simulate at most one statement and
5512 return whether we did. Do not simulate PHIs if they are in a
5513 BB not yet simulated.
5514 (ssa_propagate): Adjust to always drain the BB worklist whenever
5515 a BB is available there, likewise the VARYING edges list before
5516 the interesting edge list.
5518 2015-07-07 Christian Bruel <christian.bruel@st.com>
5521 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
5523 2015-07-07 Richard Biener <rguenther@suse.de>
5526 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
5529 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
5531 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
5532 modes for operands 0 and 3. Use SImode for operands 2 and 3.
5533 Copy operand 0 to a temporary if !ext_register_operand. Remove
5534 ancient extract_bit_field workaround.
5535 (insv<mode>_1): Rename from mov<mode>_insv_1.
5536 (*insvqi): Rename from *movqi_insv_2.
5537 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
5538 for renamed insvsi_1.
5539 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
5541 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
5543 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
5544 call to nvptx_reorg_subreg.
5546 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
5548 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
5549 * graphite-dependencies.c, graphite-interchange.c,
5550 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
5551 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
5554 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
5556 * match.pd: Remove element_mode inside HONOR_*.
5557 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
5558 (~X | X -> -1, ~X ^ X -> -1): Merge.
5559 * tree.c (build_each_one_cst): New function.
5560 * tree.h (build_each_one_cst): Likewise.
5562 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
5564 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5567 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
5569 * config.gcc <mips*-*-*>: Add fused-madd.opt.
5570 * config/mips/mips.opt (mfused-madd): Remove.
5571 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
5572 * config/mips/mips.h (TARGET_MIPS8000): New.
5573 (ISA_HAS_FP_MADD4_MSUB4): Remove.
5574 (ISA_HAS_FP_MADDF_MSUBF): Remove.
5575 (ISA_HAS_FP_MADD3_MSUB3): Remove.
5576 (ISA_HAS_NMADD4_NMSUB4): Remove.
5577 (ISA_HAS_NMADD3_NMSUB3): Remove.
5578 (ISA_HAS_FUSED_MADD4): New.
5579 (ISA_HAS_UNFUSED_MADD4): New.
5580 (ISA_HAS_FUSED_MADDF): New.
5581 (ISA_HAS_FUSED_MADD3): New.
5582 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
5583 (*fma<mode>4_madd3) New.
5584 (*fma<mode>4_madd4) New.
5585 (*fma<mode>4_maddf) New.
5587 (*fms<mode>4_msub3) New.
5588 (*fms<mode>4_msub4) New.
5590 (*fnma<mode>4_nmadd3) New.
5591 (*fnma<mode>4_nmadd4) New.
5593 (*fnms<mode>4_nmsub3) New.
5594 (*fnms<mode>4_nmsub4) New.
5595 (*madd4<mode>) Modify to be unfused only.
5596 (*msub4<mode>) Modify to be unfused only.
5597 (*nmadd4<mode>) Modify to be unfused only.
5598 (*nmsub4<mode>) Modify to be unfused only.
5599 (*madd3<mode>) Remove.
5600 (*msub3<mode>) Remove.
5601 (*nmadd3<mode>) Remove.
5602 (*nmsub3<mode>) Remove.
5603 (*nmadd3<mode>_fastmath) Remove.
5604 (*nmsub3<mode>_fastmath) Remove.
5605 (*nmadd4<mode>_fastmath) Update condition.
5606 (*nmsub4<mode>_fastmath) Update condition.
5608 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
5611 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
5612 alignment attribute, exploring one level down for records and arrays.
5614 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
5616 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
5617 modes for operands 0 and 1. Use SImode for operands 2 and 3.
5618 Copy operand 1 to a temporary if !ext_register_operand. Remove
5619 ancient extract_bit_field workaround.
5620 (*extv<mode>): Rename from *mov<mode>_extv_1.
5621 (*extvqi): Rename from *movqi_extv_1.
5622 (extzv<mode>): Rename from extzv. Use SWI248 modes for
5623 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
5624 to a temporary if !ext_register_operand. Remove ancient
5625 extract_bit_field workaround.
5626 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
5627 (*extzvqi): Rename from *movqi_extzv_2.
5628 (*testqi_ext_3): Remove modes from const_int_operand predicated
5629 operands. Add "n" constraint.
5630 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
5631 operand. Add "J" constraint.
5632 (*btsq, *btrq, *btcq peephole2s): Remove mode from
5633 const_0_to_63 predicated operand.
5634 (regmode): New insn attribute.
5635 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
5636 to nonmemory_operand. Use regmode insn attribute.
5637 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
5638 (*jcc_bt<mode>_mask): Remove mode from operand 3.
5639 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
5640 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
5641 operands. Use "N" constraint instead of "n".
5643 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
5645 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
5647 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
5650 * config/i386/i386.c (iamcu_cost): New.
5651 (m_IAMCU): Likewise.
5652 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
5653 (processor_target_table): Add an entry for "iamcu".
5654 (processor_alias_table): Likewise.
5655 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
5656 (ix86_adjust_cost): Likewise.
5657 (ia32_multipass_dfa_lookahead): Likewise.
5658 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
5659 * config/i386/x86-tune.def: Updated for m_IAMCU.
5661 2015-07-06 Richard Biener <rguenther@suse.de>
5663 PR tree-optimization/66772
5664 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
5665 values are available in the PHI node BB when there are
5666 still unexecutable edges.
5668 2015-07-06 Richard Biener <rguenther@suse.de>
5670 PR tree-optimization/66767
5671 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
5672 Make sure to build the alignment test on a SSA name without
5673 final alignment info valid only if the alignment test
5676 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
5679 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
5680 loop start when inserting LSETUP.
5682 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
5685 * config/i386/i386.c (ix86_option_override_internal): Allow
5686 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
5688 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5690 * read-md.c (decimal_string): Rename to ...
5691 (md_decimal_string): ... this.
5692 (handle_enum): Reflect this.
5694 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
5697 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
5699 2015-07-06 Richard Biener <rguenther@suse.de>
5702 * match.pd: Add missing constraint of y to REAL_CST in
5703 REAL_CST - x CMP y to y - CST CMP x simplification.
5705 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
5707 PR tree-optimization/66757
5708 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
5710 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
5711 Sandra Loosemore <sandra@codesourcery.com>
5713 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
5714 Delete extern declaration.
5715 (gprel_constant_p): Add extern declaration.
5716 * config/nios2/constraints.md ("S"): Use gprel_constant_p
5717 instead of nios2_symbol_ref_in_small_data_p.
5718 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
5719 (nios2_symbol_ref_in_small_data_p): Make static.
5720 (gprel_constant_p): Make non-static.
5722 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
5724 * doc/fragments.texi (Target Fragment): Convert debian.org
5726 * doc/install.texi (Configuration): Ditto.
5728 2015-07-05 Jakub Jelinek <jakub@redhat.com>
5730 PR tree-optimization/66718
5731 * tree-vect-stmts.c (vectorizable_call): Replace uses of
5732 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
5734 PR tree-optimization/66718
5735 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
5736 vectorizable_load, vectorizable_condition): Move vectype,
5737 nunits, ncopies computation after checking what kind of statement
5740 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5742 * target-insns.def (extv, extzv, insv): New targetm instruction
5744 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
5746 * recog.c (simplify_while_replacing): Likewise.
5748 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5750 * target-insns.def (doloop_begin, doloop_end): New targetm
5751 instruction patterns.
5752 * loop-init.c: Include target.h.
5753 (pass_loop2::gate): Use the new targetm patterns instead of
5754 HAVE_*/gen_* interface.
5755 (pass_rtl_doloop::gate): Likewise.
5756 (pass_rtl_doloop::execute): Remove preprocessor condition.
5757 * hw-doloop.c: Build unconditionally.
5758 * loop-doloop.c: Likewise.
5759 (doloop_optimize): Use the new targetm patterns instead of
5760 HAVE_*/gen_* interface.
5761 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
5762 * modulo-sched.c (doloop_register_get): Likewise.
5764 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5766 * target-insns.def (clear_cache): New targetm instruction pattern.
5767 * builtins.c (expand_builtin___clear_cache): Use it instead of
5768 HAVE_*/gen_* interface.
5770 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5772 * target-insns.def (allocate_stack, check_stack, probe_stack)
5773 (probe_stack_address, split_stack_prologue, split_stack_space_check):
5774 New targetm instruction patterns.
5775 * explow.c (allocate_dynamic_stack_space): Use them instead of
5776 HAVE_*/gen_* interface.
5777 (emit_stack_probe): Likewise.
5778 (probe_stack_range): Likewise.
5779 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5781 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5783 * target-insns.def (stack_protect_set, stack_protect_test): New
5784 targetm instruction patterns.
5785 * cfgexpand.c (stack_protect_prologue): Use them instead of
5786 HAVE_*/gen_* interface.
5787 * function.c (stack_protect_epilogue): Likewise.
5789 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5791 * expr.h (gen_move_insn_uncast): Delete.
5792 * expr.c (gen_move_insn_uncast): Delete.
5794 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5796 * target-insns.def (restore_stack_block, restore_stack_function)
5797 (restore_stack_nonlocal, save_stack_block, save_stack_function)
5798 (save_stack_nonlocal): New targetm instruction patterns.
5799 * builtins.c (expand_builtin_apply): Use them instead of
5800 HAVE_*/gen_* interface.
5801 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
5803 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5805 * target-insns.def (trap): New targetm instruction pattern.
5806 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
5808 * explow.c (allocate_dynamic_stack_space): Likewise.
5809 * ifcvt.c (find_if_header): Likewise.
5811 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5813 * target-insns.def (prefetch): New targetm instruction pattern.
5814 * tree-ssa-loop-prefetch.c: Include targeth.
5815 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
5816 of HAVE_*/gen_* interface.
5817 * builtins.c (expand_builtin_prefetch): Likewise.
5818 * toplev.c (process_options): Likewise.
5820 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5822 * target-insns.def (untyped_call, untyped_return): New targetm
5823 instruction patterns.
5824 * builtins.c (expand_builtin_apply): Use them instead of
5825 HAVE_*/gen_* interface.
5826 (result_vector): Define unconditionally.
5828 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5830 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
5831 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
5832 (nonlocal_goto_receiver): New targetm instruction patterns.
5833 * builtins.c (expand_builtin_setjmp_setup): Use them instead
5834 of HAVE_*/gen_* interface.
5835 (expand_builtin_setjmp_receiver): Likewise.
5836 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5837 * except.c (expand_dw2_landing_pad_for_region): Likewise.
5839 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5841 * target.def: Add code_for_* hooks.
5842 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
5843 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
5844 * target-insns.def (casesi, tablejump): New targetm instruction
5846 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
5847 (do_tablejump): Likewise.
5848 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
5849 (expand_sjlj_dispatch_table): Likewise.
5850 * targhooks.c (default_case_values_threshold): Likewise.
5852 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
5854 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
5855 Use rtx_insn * instead of rtx.
5856 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
5857 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
5858 (nios2_call_tls_get_addr): Likewise.
5859 (nios2_emit_expensive_div): Likewise.
5860 (nios2_emit_move_sequence): Change return type to bool.
5861 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
5862 Change return type to bool.
5864 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
5867 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
5869 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
5872 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
5873 of register_operand. Remove constraint.
5875 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
5877 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
5880 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
5882 * attribs.c (decl_attributes): Guard inform with the return value
5883 of the preceding warning.
5885 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
5887 * doc/invoke.texi (moverride): Move to correct section.
5889 2015-07-03 Richard Biener <rguenther@suse.de>
5891 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
5893 (dt_operand::gen_gimple_expr): After valueizing operands
5894 re-canonicalize operand order for commutative tree codes.
5896 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
5899 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
5901 (__crc32w): Likewise.
5902 (__crc32d): Likewise.
5903 (__rdpmc): Likewise.
5904 (__rdtscp): Likewise.
5906 (_rdtscp): Likewise.
5907 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
5910 2015-07-03 Richard Biener <rguenther@suse.de>
5912 * fold-const.c (fold_mathfn_compare): Remove.
5913 (fold_inf_compare): Likewise.
5914 (fold_comparison): Move floating point comparison simplifications...
5915 * match.pd: ... to patterns here. Introduce simple_comparisons
5916 operator list and use it for patterns formerly in fold_comparison.
5918 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
5920 PR tree-optimization/66119
5921 * toplev.c (process_options): Don't set up default values for
5922 the sra_max_scalarization_size_{speed,size} parameters.
5923 * tree-sra (analyze_all_variable_accesses): If no values
5924 have been set for the sra_max_scalarization_size_{speed,size}
5925 parameters, call get_move_ratio to get target defaults.
5927 2015-07-03 Richard Biener <rguenther@suse.de>
5929 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
5930 * match.pd: ... here.
5932 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
5935 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
5936 is not actually the default on FreeBSD.
5938 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5940 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
5942 (CMPGE_8HI): Likewise.
5943 (CMPGE_4SI): Likewise.
5944 (CMPGE_2DI): Likewise.
5945 (CMPGE_U16QI): Likewise.
5946 (CMPGE_U8HI): Likewise.
5947 (CMPGE_U4SI): Likewise.
5948 (CMPGE_U2DI): Likewise.
5949 (CMPLE_16QI): Likewise.
5950 (CMPLE_8HI): Likewise.
5951 (CMPLE_4SI): Likewise.
5952 (CMPLE_2DI): Likewise.
5953 (CMPLE_U16QI): Likewise.
5954 (CMPLE_U8HI): Likewise.
5955 (CMPLE_U4SI): Likewise.
5956 (CMPLE_U2DI): Likewise.
5957 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5958 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
5959 ALTIVEC_BUILTIN_VEC_CMPLE.
5960 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
5961 floating-point vector modes.
5962 (vector_nlt<mode>): New define_expand.
5963 (vector_nltu<mode>): Likewise.
5964 (vector_ngt<mode>): Likewise.
5965 (vector_ngtu<mode>): Likewise.
5967 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5969 PR rtl-optimization/66706
5970 * combine.c (make_compound_operation): If an AND of SUBREG of
5971 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
5973 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
5975 * tree-pass.h (make_pass_ch_vect): New.
5976 * passes.def: Add pass_ch_vect just before pass_if_conversion.
5978 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
5979 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
5980 make_pass_ch_vect): New.
5981 (pass_ch): Extend ch_base.
5983 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
5984 (ch_base::copy_headers): ...here.
5986 2015-07-02 Richard Biener <rguenther@suse.de>
5988 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
5989 * fold-const.c (get_pointer_modulus_and_residue): Remove.
5990 (fold_binary_loc): Implement (T)ptr & CST in terms of
5991 get_pointer_alignment_1.
5992 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
5993 Make sure to build the alignment test on a SSA name without
5994 final alignment info valid only after the prologue.
5996 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
5998 * config/cris/cris.md ("epilogue"): Remove condition.
5999 ("prologue"): Ditto.
6001 2015-07-02 Richard Biener <rguenther@suse.de>
6003 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
6004 parameter to record a condition that is false.
6005 (record_conditions): When recording an extra NE_EXPR that is
6006 true also record a EQ_EXPR that is false.
6008 2015-07-02 Bin Cheng <bin.cheng@arm.com>
6010 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
6011 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
6012 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
6013 (set_iv, find_interesting_uses_address, add_candidate_1): New
6014 argument to alloc_iv.
6015 (find_interesting_uses_op, find_interesting_uses_cond): Don't
6016 duplicate struct iv.
6017 (free_loop_data): Don't free struct iv explicitly.
6018 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
6020 2015-07-01 DJ Delorie <dj@redhat.com>
6022 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
6024 (SUPPORTS_DISCRIMINATOR): Define.
6026 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
6029 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
6030 there are no CALLs in the same pattern.
6032 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6034 PR rtl-optimization/61047
6035 * rtlanal.c (get_initial_register_offset): New function.
6036 (rtx_addr_can_trap_p_1): Check offsets of stack references.
6038 2015-07-01 Richard Biener <rguenther@suse.de>
6040 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
6041 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
6042 ~X CMP C -> X CMP' ~C to ...
6043 * match.pd: ... patterns here.
6045 2015-07-01 Nick Clifton <nickc@redhat.com>
6047 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
6048 a 16-bit value into a 20-bit memory slot.
6050 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6052 * doc/sourcebuild.texi (AArch64-specific attributes): Document
6053 "aarch64_tiny", "aarch64_small", "aarch64_large",
6054 "aarch64_little_endian", "aarch64_big_endian".
6056 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6058 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
6059 Document "aarch64_small_fpic".
6061 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6063 * configure.ac: Add check for aarch64 assembler -fpic relocation
6065 * configure: Regenerate.
6066 * config.in: Regenerate.
6067 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
6068 to -fPIC if not support of -fpic relocation modifier in assembler.
6070 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
6073 * rtl.c (classify_insn): Handle returns in PARALLELs.
6075 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
6078 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
6079 to true if the function is nested and if not optimizing.
6080 (convert_local_omp_clauses): Initialize need_frame to true if the
6081 function contains nested functions and if not optimizing.
6083 2015-07-01 Richard Biener <rguenther@suse.de>
6085 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
6086 (X & Y) ^ Y -> ~X & Y transforms to ...
6087 * match.pd: ... here.
6089 2015-07-01 Richard Biener <rguenther@suse.de>
6091 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
6092 of converts to avoid uninteresting noise from the conversion
6093 simplifying patterns.
6095 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
6097 * config/c6x/c6x.c (try_rename_operands): Do not depend on
6098 gcc_assert evaluating its argument for side-effect.
6100 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
6103 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
6106 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
6108 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
6109 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
6110 (hash_scc): Add this_ref_p and ref_p parameters and pass them
6111 to the inner DFS walk.
6113 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6115 * target-insns.def (jump): New targetm instruction pattern.
6116 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
6117 instead of gen_jump.
6118 (fix_up_crossing_landing_pad): Likewise.
6119 (add_labels_and_missing_jumps): Likewise.
6120 (fix_crossing_conditional_branches): Likewise.
6121 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6122 (force_nonfallthru_and_redirect): Likewise.
6123 * cse.c (cse_insn): Likewise.
6124 * expmed.c (expand_divmod): Likewise.
6125 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
6126 * haifa-sched.c (init_before_recovery): Likewise.
6127 (sched_create_recovery_edges): Likewise.
6128 * ifcvt.c (find_cond_trap): Likewise.
6129 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
6130 (expand_float, expand_fix): Likewise.
6131 * stmt.c (emit_jump): Likewise.
6133 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6135 * defaults.h (HAVE_load_multiple, gen_load_multiple)
6136 (HAVE_store_multiple, gen_store_multiple): Delete.
6137 * target-insns.def (load_multiple, store_multiple): New targetm
6138 instruction patterns.
6139 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
6140 of HAVE_*/gen_* interface.
6142 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6144 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
6145 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
6146 (gen_mem_signal_fence): Delete.
6147 * target-insns.def (mem_signal_fence, mem_thread_fence)
6148 (memory_barrier): New targetm instruction patterns.
6149 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
6151 (expand_mem_signal_fence): Likewise.
6153 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6155 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
6156 * target-insns.def (epilogue, prologue, sibcall_prologue): New
6157 targetm instruction patterns.
6158 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
6160 * calls.c (expand_call): Likewise.
6161 * cfgrtl.c (cfg_layout_finalize): Likewise.
6162 * df-scan.c (df_get_entry_block_def_set): Likewise.
6163 (df_get_exit_block_use_set): Likewise.
6164 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
6165 * final.c (final_start_function): Likewise.
6166 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6167 (reposition_prologue_and_epilogue_notes): Likewise.
6168 * reorg.c (find_end_label): Likewise.
6169 * toplev.c (process_options): Likewise.
6171 2015-06-30 David Malcolm <dmalcolm@redhat.com>
6173 * typed-splay-tree.h: New file.
6175 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
6178 * lra-int.h (lra_substitute_pseudo): Add a parameter.
6179 (lra_substitute_pseudo_within_insn): Ditto.
6180 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
6182 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
6183 to lra_substitute_pseudo.
6184 * lra-lives.c (process_bb_lives): Add an argument to
6185 lra_substitute_pseudo_within_insn call.
6186 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
6187 argument to lra_substitute_pseudo and
6188 lra_substitute_pseudo_within_insn calls.
6189 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
6191 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
6193 * configure: Regenerated.
6195 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
6197 * config.gcc: Support i[34567]86-*-elfiamcu target.
6198 * config/i386/iamcu.h: New.
6199 * config/i386/i386.opt: Add -miamcu.
6200 * doc/invoke.texi: Document -miamcu.
6201 * common/config/i386/i386-common.c (ix86_handle_option): Turn
6202 off x87/MMX/SSE/AVX codegen for -miamcu.
6203 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6204 __iamcu/__iamcu__ for -miamcu.
6205 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
6206 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
6207 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
6208 * config/i386/i386.c (ix86_option_override_internal): Ignore and
6209 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
6210 MCU by default. Default long double to 64-bit for Intel MCU.
6211 Turn on -freg-struct-return for Intel MCU. Issue an error when
6212 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
6214 (function_arg_advance_32): Pass value whose size is no larger
6215 than 8 bytes in registers for Intel MCU.
6216 (function_arg_32): Likewise.
6217 (ix86_return_in_memory): Return value whose size is no larger
6218 than 8 bytes in registers for Intel MCU.
6219 (iamcu_alignment): New function.
6220 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
6222 (ix86_local_alignment): Don't increase alignment for Intel MCU.
6223 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
6226 2015-06-30 Marek Polacek <polacek@redhat.com>
6228 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
6229 both operands of the resulting expression.
6231 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
6232 the final expression with the operand's type and then convert
6233 it to the type of the expression.
6235 2015-06-30 Richard Biener <rguenther@suse.de>
6237 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
6238 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
6239 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
6240 * match.pd: ... to patterns here.
6242 2015-06-30 Richard Biener <rguenther@suse.de>
6244 PR tree-optimization/66704
6245 * tree-vect-data-refs.c (vect_setup_realignment): Use
6246 make_ssa_name for non-SSA name source.
6248 2015-06-30 Jakub Jelinek <jakub@redhat.com>
6251 * omp-low.c (simd_clone_adjust): Handle addressable linear
6252 or uniform parameters or non-gimple type uniform parameters.
6254 2015-06-30 Richard Biener <rguenther@suse.de>
6256 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
6257 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
6258 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
6259 * match.pd: ... here.
6260 Add a few cases of A - B -> A + (-B) when B "easily" negates.
6261 Move (x & y) | x -> x and friends before
6262 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
6264 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
6266 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
6267 -mfix-ut699 is not specified.
6268 (leon3_load): Rename into...
6269 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
6272 2015-06-30 Marek Polacek <polacek@redhat.com>
6274 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
6275 * match.pd: ... here.
6277 2015-06-30 Richard Biener <rguenther@suse.de>
6279 * target-insns.def (canonicalize_funcptr_for_compare): Add.
6280 * fold-const.c (build_range_check): Replace uses of
6281 HAVE_canonicalize_funcptr_for_compare.
6282 (fold_widened_comparison): Likewise.
6283 (fold_sign_changed_comparison): Likewise.
6284 * dojump.c: Include "target.h".
6285 (do_compare_and_jump): Replace uses of
6286 HAVE_canonicalize_funcptr_for_compare and
6287 gen_canonicalize_funcptr_for_compare.
6288 * expr.c (do_store_flag): Likewise.
6290 2015-06-30 Tom de Vries <tom@codesourcery.com>
6292 PR tree-optimization/66652
6293 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
6294 max_loop_iterations to determine if nit + 1 overflows.
6296 2015-06-30 Richard Biener <rguenther@suse.de>
6298 * tree-vrp.c (register_edge_assert_for_2): Also register
6299 asserts for dominating conversion results.
6301 2015-06-30 Bin Cheng <bin.cheng@arm.com>
6303 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
6306 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
6309 * configure.ac: Fix filds and fildq test for 64-bit.
6310 * configure: Regenerated.
6312 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
6314 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
6315 (nvptx_reorg): Here. Keep the non-subreg pieces.
6317 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
6319 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
6320 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
6322 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
6324 * config/i386/i386.md (*jcc_1): Use %! in asm template.
6325 Set attribute "length_nobnd" instead of "length".
6328 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
6330 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
6332 * config/nios2/nios2.c (nios2_delegitimize_address): Make
6333 assert less restrictive.
6335 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6338 * cgraphunit.c (cgraph_node::finalize_function): Do not call
6339 do_warn_unused_parameter.
6340 * function.c (do_warn_unused_parameter): Move from here.
6341 * function.h (do_warn_unused_parameter): Do not declare.
6343 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6346 * gcc.target/arm/armv-sync-comp-swap.c: New.
6347 * gcc.target/arm/armv-sync-op-acquire.c: New.
6348 * gcc.target/arm/armv-sync-op-full.c: New.
6349 * gcc.target/arm/armv-sync-op-release.c: New.
6351 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6354 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
6355 initial acquire barrier with final barrier.
6357 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6360 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
6361 initial acquire barrier with final barrier.
6363 2015-06-29 Richard Henderson <rth@redhat.com>
6365 * config/i386/constraints.md (Bf): New constraint.
6366 * config/i386/i386-c.c (ix86_target_macros): Define
6367 __GCC_ASM_FLAG_OUTPUTS__.
6368 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
6370 * doc/extend.texi (FlagOutputOperands): Document them.
6372 2015-06-29 Jiong Wang <jiong.wang@arm.com>
6374 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
6375 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
6377 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
6378 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
6379 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
6380 (aarch64_symbol_context): Ditto.
6381 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
6382 and use new pattern name.
6383 (aarch64_expand_mov_immediate): Ditto.
6384 (aarch64_print_operand): Ditto.
6385 (aarch64_classify_tls_symbol): Ditto.
6387 2015-06-29 Marek Polacek <polacek@redhat.com>
6388 Marc Glisse <marc.glisse@inria.fr>
6390 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
6391 * match.pd: ... pattern here.
6393 2015-06-29 Tom de Vries <tom@codesourcery.com>
6395 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
6398 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6400 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
6401 feature description, split out the native option, add a link to
6402 the feature documentation, rearrange and slightly rewrite text.
6403 (Aarch64 options, -mcpu): Likewise.
6404 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
6405 +rdma implies Adv. SIMD.
6407 2015-06-29 Marek Polacek <polacek@redhat.com>
6410 * function.c (stack_protect_epilogue): Remove a cast to int.
6411 * doc/invoke.texi: Update -Wswitch-bool description.
6413 2015-06-29 Richard Biener <rguenther@suse.de>
6415 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
6416 * fold-const.c (fold_binary_loc): Move &A - &B simplification
6417 via ptr_difference_const ...
6418 * match.pd: ... here.
6419 When matching (X ^ Y) == Y also match with swapped operands.
6421 2015-06-29 Richard Biener <rguenther@suse.de>
6423 * lto-streamer.h (LTO_major_version): Bump to 5.
6425 2015-06-29 Richard Biener <rguenther@suse.de>
6427 PR tree-optimization/66677
6428 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
6429 STMT_VINFO_VEC_STMT clobbering less strict.
6431 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
6434 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
6435 division, compute max and min when value ranges for dividend and
6436 divisor are available.
6438 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
6439 Sandra Loosemore <sandra@codesourcery.com>
6441 * regrename.h (regrename_do_replace): Change to return bool.
6442 * regrename.c (rename_chains): Check return value of
6444 (regrename_do_replace): Re-validate the modified insns and
6446 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
6447 Update to match rename_chains changes.
6448 * config/c6x/c6x.c (try_rename_operands): Assert that
6449 regrename_do_replace returns true.
6451 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
6453 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
6454 operand 2 here. Use copy_addr_to_reg to copy non-index
6455 register operand 2 to a temporary.
6456 (<mode>_stx): Ditto for operand 1.
6457 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
6458 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
6459 (ix86_store_bounds): Ditto.
6461 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
6463 * print-tree.c (print_node) [TREE_VEC]: Print its length.
6465 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
6467 * gimple.c (gimple_call_set_fndecl): Remove.
6468 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
6469 build1_loc directly instead of build_fold_addr_expr_loc.
6471 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
6473 * hash-map.h (hash_map::traverse): Use the definition of the
6474 Key typedef rather than the typedef itself.
6476 2015-06-26 Martin Jambor <mjambor@suse.cz>
6479 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
6480 NULL instead of calling dump_enabled_p.
6482 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6484 * config/aarch64/aarch64.opt: (override): New.
6485 * doc/invoke.texi (override): Document.
6486 * config/aarch64/aarch64.c (aarch64_flag_desc): New
6487 (aarch64_fusible_pairs): Likewise.
6488 (aarch64_tuning_flags): Likewise.
6489 (aarch64_tuning_override_function): Likewise.
6490 (aarch64_tuning_override_functions): Likewise.
6491 (aarch64_parse_one_option_token): Likewise.
6492 (aarch64_parse_boolean_options): Likewise.
6493 (aarch64_parse_fuse_string): Likewise.
6494 (aarch64_parse_tune_string): Likewise.
6495 (aarch64_parse_one_override_token): Likewise.
6496 (aarch64_parse_override_string): Likewise.
6497 (aarch64_override_options): Parse the -override string if it
6500 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6502 * config/aarch64/aarch64-protos.h (tune_params): Remove
6504 (aarch64_tune_params): Remove const, change to no longer be
6506 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
6507 change to no longer be a pointer, initialize to generic_tunings.
6508 (aarch64_min_divisions_for_recip_mul): Change dereference of
6509 aarch64_tune_params to member access.
6510 (aarch64_reassociation_width): Likewise.
6511 (aarch64_rtx_mult_cost): Likewise.
6512 (aarch64_address_cost): Likewise.
6513 (aarch64_branch_cost): Likewise.
6514 (aarch64_rtx_costs): Likewise.
6515 (aarch64_register_move_cost): Likewise.
6516 (aarch64_memory_move_cost): Likewise.
6517 (aarch64_sched_issue_rate): Likewise.
6518 (aarch64_builtin_vectorization_cost): Likewise.
6519 (aarch64_override_options): Take a copy of the selected tuning
6520 struct in to aarch64_tune_params, rather than just setting
6521 a pointer, change dereferences of aarch64_tune_params to member
6523 (aarch64_override_options_after_change): Change dereferences of
6524 aarch64_tune_params to member access.
6525 (aarch64_macro_fusion_p): Likewise.
6526 (aarch_macro_fusion_pair_p): Likewise.
6527 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
6529 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6531 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
6532 (aarch64_tune_flags): Likewise.
6533 (AARCH64_TUNE_FMA_STEERING): Likewise.
6534 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
6535 to AARCH64_FL_USE_FMA_STEERING_PASS.
6536 (cortex-a57.cortex-a53): Likewise.
6537 (cortex-a72): Use cortexa72_tunings.
6538 (cortex-a72.cortex-a53): Likewise.
6539 (exynos-m1): Likewise.
6540 * config/aarch64/aarch64-protos.h (tune_params): Add
6541 a field: extra_tuning_flags.
6542 * config/aarch64/aarch64-tuning-flags.def: New.
6543 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
6544 (aarch64_extra_tuning_flags): Likewise.
6545 (aarch64_tune_params): Declare here.
6546 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
6547 (cortexa53_tunings): Likewise.
6548 (cortexa57_tunings): Likewise.
6549 (thunderx_tunings): Likewise.
6550 (xgene1_tunings): Likewise.
6551 (cortexa72_tunings): New.
6552 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
6553 (gate): Check against aarch64_tune_params.
6554 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
6557 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6559 * config/aarch64/aarch64-fusion-pairs.def: New.
6560 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
6561 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
6562 aarch64_fusion_pairs.
6563 (AARCH64_FUSE_MOV_MOVK): Likewise.
6564 (AARCH64_FUSE_ADRP_ADD): Likewise.
6565 (AARCH64_FUSE_MOVK_MOVK): Likewise.
6566 (AARCH64_FUSE_ADRP_LDR): Likewise.
6567 (AARCH64_FUSE_CMP_BRANCH): Likewise.
6569 2015-06-26 Jiong Wang <jiong.wang@arm.com>
6571 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
6572 SYMBOL_SMALL_GOT_28K.
6573 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
6574 relocation modifiers.
6575 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
6576 (ldr_got_small_28k_<mode>): New.
6577 (ldr_got_small_28k_sidi): New.
6578 * config/aarch64/iterators.md (got_modifier): New mode iterator.
6579 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
6580 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
6581 SYMBOL_SMALL_GOT_28K.
6582 (aarch64_rtx_costs): Add costs for new instruction sequences.
6583 (initialize_aarch64_code_model): Initialize new model.
6584 (aarch64_classify_symbol): Recognize new model and new symbol classification.
6585 (aarch64_asm_preferred_eh_data_format): Support new model.
6586 (aarch64_load_symref_appropriately): Generate new instruction
6587 sequences for -fpic.
6588 (TARGET_USE_PSEUDO_PIC_REG): New definition.
6589 (aarch64_use_pseudo_pic_reg): New function.
6591 2015-06-26 Jiong Wang <jiong.wang@arm.com>
6593 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
6594 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
6595 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
6596 (aarch64_expand_mov_immediate): Ditto.
6597 (aarch64_print_operand): Ditto.
6598 (aarch64_classify_symbol): Ditto.
6600 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
6602 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
6604 2015-06-26 Bin Cheng <bin.cheng@arm.com>
6607 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
6608 assertion failed. Remove assertion itself.
6610 2015-06-26 Richard Biener <rguenther@suse.de>
6612 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
6613 and -A CMP CST -> A CMP -CST which is redundant with a pattern
6615 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
6616 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
6617 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
6618 * match.pd: ... patterns here.
6620 2015-06-26 Marek Polacek <polacek@redhat.com>
6622 * match.pd ((x | y) & ~(x & y) -> x ^ y,
6623 (x | y) & (~x ^ y) -> x & y): New patterns.
6625 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
6627 * rtl.h (emit): Add an optional boolean parameter to control
6628 whether barriers are emitted.
6629 * emit-rtl.c (emit): Likewise.
6630 * gensupport.c (get_emit_function): Return null rather than "emit".
6631 * genemit.c (gen_emit_seq): Handle the null return value.
6632 Don't emit barriers after the final instruction in the sequence.
6633 * gentarget-def.c (main): Don't emit barriers after the instruction.
6635 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6637 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
6640 2015-06-26 Richard Biener <rguenther@suse.de>
6642 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
6644 2015-06-26 Richard Biener <rguenther@suse.de>
6646 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
6647 irrespective on whether the inner operation has a single use
6648 of both off are constant.
6650 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
6651 Segher Boessenkool <segher@kernel.crashing.org>
6654 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
6655 before doing PUT_MODE or PUT_CODE on operands to avoid
6656 in-place RTX modification.
6658 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
6660 * gentarget-def.c (def_target_insn): Cast return of strtol to
6663 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
6665 * gimple.h (gimple_call_set_fn): Move inline function.
6666 * gimple.c (gimple_call_set_fn): Relocate here.
6668 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
6672 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
6673 the replacement insn will work.
6675 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
6677 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
6680 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
6682 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
6683 * cgraph.h: Include ipa-ref.h and plugin-api.h.
6684 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
6685 (symtab_node::address_can_be_compared_p): Move function.
6686 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
6688 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
6689 * auto-profile.c: Likewise.
6690 * bb-reorder.c: Likewise.
6691 * builtins.c: Likewise.
6692 * calls.c: Likewise.
6693 * cfgexpand.c: Likewise.
6694 * cgraphbuild.c: Likewise.
6695 * cgraphclones.c: Likewise.
6696 * cgraphunit.c: Likewise.
6697 * combine.c: Likewise.
6698 * coverage.c: Likewise.
6699 * data-streamer-in.c: Likewise.
6700 * data-streamer-out.c: Likewise.
6701 * data-streamer.c: Likewise.
6702 * dbxout.c: Likewise.
6703 * dwarf2out.c: Likewise.
6704 * except.c: Likewise.
6706 * final.c: Likewise.
6707 * fold-const.c: Likewise.
6708 * ggc-page.c: Likewise.
6709 * gimple-fold.c: Likewise.
6710 * gimple-iterator.c: Likewise.
6711 * gimple-pretty-print.c: Likewise.
6712 * gimple-streamer-in.c: Likewise.
6713 * gimple-streamer-out.c: Likewise.
6714 * gimple.c: Likewise.
6715 * gimplify.c: Likewise.
6716 * ipa-chkp.c: Likewise.
6717 * ipa-comdats.c: Likewise.
6718 * ipa-cp.c: Likewise.
6719 * ipa-devirt.c: Likewise.
6720 * ipa-icf-gimple.c: Likewise.
6721 * ipa-icf.c: Likewise.
6722 * ipa-inline-analysis.c: Likewise.
6723 * ipa-inline-transform.c: Likewise.
6724 * ipa-inline.c: Likewise.
6725 * ipa-polymorphic-call.c: Likewise.
6726 * ipa-profile.c: Likewise.
6727 * ipa-prop.c: Likewise.
6728 * ipa-pure-const.c: Likewise.
6729 * ipa-ref.c: Likewise.
6730 * ipa-reference.c: Likewise.
6731 * ipa-split.c: Likewise.
6732 * ipa-utils.c: Likewise.
6733 * ipa-visibility.c: Likewise.
6735 * langhooks.c: Likewise.
6736 * lto-cgraph.c: Likewise.
6737 * lto-compress.c: Likewise.
6738 * lto-opts.c: Likewise.
6739 * lto-section-in.c: Likewise.
6740 * lto-section-out.c: Likewise.
6741 * lto-streamer-in.c: Likewise.
6742 * lto-streamer-out.c: Likewise.
6743 * lto-streamer.c: Likewise.
6744 * omp-low.c: Likewise.
6745 * opts-global.c: Likewise.
6746 * passes.c: Likewise.
6747 * predict.c: Likewise.
6748 * print-tree.c: Likewise.
6749 * profile.c: Likewise.
6751 * sanopt.c: Likewise.
6752 * stor-layout.c: Likewise.
6753 * symtab.c: Likewise.
6754 * toplev.c: Likewise.
6755 * trans-mem.c: Likewise.
6756 * tree-cfg.c: Likewise.
6757 * tree-chkp.c: Likewise.
6758 * tree-eh.c: Likewise.
6759 * tree-emutls.c: Likewise.
6760 * tree-inline.c: Likewise.
6761 * tree-nested.c: Likewise.
6762 * tree-parloops.c: Likewise.
6763 * tree-pretty-print.c: Likewise.
6764 * tree-profile.c: Likewise.
6765 * tree-sra.c: Likewise.
6766 * tree-ssa-alias.c: Likewise.
6767 * tree-ssa-live.c: Likewise.
6768 * tree-ssa-loop-ivcanon.c: Likewise.
6769 * tree-ssa-loop-ivopts.c: Likewise.
6770 * tree-ssa-pre.c: Likewise.
6771 * tree-ssa-sccvn.c: Likewise.
6772 * tree-ssa-strlen.c: Likewise.
6773 * tree-ssa-structalias.c: Likewise.
6774 * tree-streamer-in.c: Likewise.
6775 * tree-streamer-out.c: Likewise.
6776 * tree-streamer.c: Likewise.
6777 * tree-switch-conversion.c: Likewise.
6778 * tree-tailcall.c: Likewise.
6779 * tree-vect-data-refs.c: Likewise.
6780 * tree-vect-stmts.c: Likewise.
6781 * tree-vectorizer.c: Likewise.
6784 * ubsan.c: Likewise.
6785 * value-prof.c: Likewise.
6786 * varasm.c: Likewise.
6787 * varpool.c: Likewise.
6788 * config/arm/arm.c: Likewise.
6789 * config/bfin/bfin.c: Likewise.
6790 * config/c6x/c6x.c: Likewise.
6791 * config/cris/cris.c: Likewise.
6792 * config/darwin-c.c: Likewise.
6793 * config/darwin.c: Likewise.
6794 * config/i386/i386.c: Likewise.
6795 * config/i386/winnt.c: Likewise.
6796 * config/microblaze/microblaze.c: Likewise.
6797 * config/mips/mips.c: Likewise.
6798 * config/rs6000/rs6000.c: Likewise.
6799 * config/rx/rx.c: Likewise.
6800 * config/s390/s390.c: Likewise.
6801 * config/tilegx/mul-tables.c: Likewise.
6803 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6805 * config/aarch64/aarch64.c, config/alpha/alpha.c,
6806 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
6807 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
6808 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
6809 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
6810 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6811 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
6812 config/microblaze/microblaze.c, config/mips/mips.c,
6813 config/mmix/mmix.c, config/mn10300/mn10300.c,
6814 config/moxie/moxie.c, config/msp430/msp430.c,
6815 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
6816 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
6817 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
6818 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
6819 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6820 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6821 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
6822 target-def.h include.
6823 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
6825 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6827 * Makefile.in (TARGET_DEF): Add target-insns.def.
6828 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
6829 (build/gentarget-def.o): New rule.
6830 (genprogrtl): Add target-def.
6831 * target-insns.def, gentarget-def.c: New files.
6832 * target.def: Add targetm.have_* and targetm.gen_* hooks,
6833 based on the contents of target-insns.def.
6834 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
6835 (HAVE_return, gen_return): Delete.
6836 * target-def.h: Include insn-target-def.h.
6837 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
6838 instead of direct calls. Rely on them to do the appropriate assertions.
6839 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
6840 (convert_jumps_to_returns): Use targetm interface instead of
6842 (thread_prologue_and_epilogue_insns): Likewise.
6843 * reorg.c (find_end_label, dbr_schedule): Likewise.
6844 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
6845 * shrink-wrap.c (convert_to_simple_return): Likewise.
6846 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
6848 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6850 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
6851 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6852 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
6853 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
6854 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
6855 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6856 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
6857 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
6858 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
6859 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
6860 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
6861 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
6862 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
6863 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6864 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6865 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
6868 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6870 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
6871 (unbounded_int_hashmap_traits::key_type): Likewise.
6872 * hash-map.h (hash_map): Get the key type from the traits.
6873 * hash-traits.h (default_hash_traits): By default, inherit from the
6875 * alias.c (alias_set_traits): Delete.
6876 (alias_set_entry_d::children): Use alias_set_hash as the first
6878 (record_alias_subset): Update accordingly.
6879 * except.c (tree_hash_traits): Delete.
6880 (type_to_runtime_map): Use tree_hash as the first template parameter.
6881 (init_eh): Update accordingly.
6882 * genmatch.c (capture_id_map_hasher): Delete.
6883 (cid_map_t): Use nofree_string_hash as first template parameter.
6884 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
6885 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
6886 Use symbol_compare_hash as the first template parameter in
6888 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
6889 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
6891 * passes.c (pass_registry_hasher): Delete.
6892 (name_to_pass_map): Use nofree_string_hash as the first template
6894 (register_pass_name): Update accordingly.
6895 * sanopt.c (sanopt_tree_map_traits): Delete.
6896 (sanopt_tree_triplet_map_traits): Delete.
6897 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
6899 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
6900 the first template parameter.
6901 * sese.c (rename_map_hasher): Delete.
6902 (rename_map_type): Use tree_ssa_name_hash as the first template
6904 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
6905 (function_summary::m_map): Use map_hash as the first template
6907 (function_summary::release): Update accordingly.
6908 * tree-if-conv.c (phi_args_hash_traits): Delete.
6909 (predicate_scalar_phi): Use tree_operand_hash as the first template
6910 parameter to phi_arg_map.
6911 * tree-inline.h (dependence_hasher): Delete.
6912 (copy_body_data::dependence_map): Use dependence_hash as the first
6914 * tree-inline.c (remap_dependence_clique): Update accordingly.
6915 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
6916 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
6918 (addr_stridxptr): Update accordingly.
6919 * value-prof.c (profile_id_traits): Delete.
6920 (cgraph_node_map): Use profile_id_hash as the first template
6922 (init_node_map): Update accordingly.
6923 * config/alpha/alpha.c (string_traits): Delete.
6924 (machine_function::links): Use nofree_string_hash as the first
6926 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
6927 * config/m32c/m32c.c (pragma_traits): Delete.
6928 (pragma_htab): Use nofree_string_hash as the first template parameter.
6929 (m32c_note_pragma_address): Update accordingly.
6930 * config/mep/mep.c (pragma_traits): Delete.
6931 (pragma_htab): Use nofree_string_hash as the first template parameter.
6932 (mep_note_pragma_flag): Update accordingly.
6933 * config/mips/mips.c (mips16_flip_traits): Delete.
6934 (mflip_mips16_htab): Use nofree_string_hash as the first template
6936 (mflip_mips16_use_mips16_p): Update accordingly.
6937 (local_alias_traits): Delete.
6938 (mips16_local_aliases): Use nofree_string_hash as the first template
6940 (mips16_local_alias): Update accordingly.
6942 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6944 * hash-map-traits.h (default_hashmap_traits): Delete.
6946 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6948 * hash-map-traits.h (unbounded_hashmap_traits): New class.
6949 (unbounded_int_hashmap_traits): Likewise.
6950 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
6952 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6954 * ipa-icf.h (symbol_compare_hash): New class.
6955 (symbol_compare_hashmap_traits): Use it.
6956 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
6957 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
6958 (mem_alloc_description::reverse_mem_map_t): Remove redundant
6959 default_hashmap_traits.
6960 * sanopt.c (sanopt_tree_triplet_hash): New class.
6961 (sanopt_tree_triplet_map_traits): Use it.
6963 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6965 * gengtype-parse.c (require_template_declaration): Allow '+' in
6966 template parameters. Consolidate cases.
6967 * hash-traits.h (int_hash): New class.
6968 * alias.c (alias_set_hash): New structure.
6969 (alias_set_traits): Use it.
6970 * symbol-summary.h (function_summary::map_hash): New class.
6971 (function_summary::summary_hashmap_traits): Use it.
6972 * tree-inline.h (dependence_hash): New class.
6973 (dependence_hasher): Use it.
6974 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
6975 * value-prof.c (profile_id_hash): New class.
6976 (profile_id_traits): Use it.
6978 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6980 * config/mips/mips.c (mips16_flip_traits): Use it.
6981 (local_alias_traits, mips16_local_aliases): Convert from a map of
6982 rtxes to a map of symbol names.
6983 (mips16_local_alias): Update accordingly.
6985 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6987 * hash-traits.h (string_hash, nofree_string_hash): New classes.
6988 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
6989 * passes.c (pass_registry_hasher): Likewise.
6990 * config/alpha/alpha.c (string_traits): Likewise.
6991 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
6992 * config/m32c/m32c.c (pragma_traits): Likewise.
6993 * config/mep/mep.c (pragma_traits): Likewise.
6995 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6997 * tree-hash-traits.h (tree_hash): New class.
6998 * except.c: Include tree-hash-traits.h.
6999 (tree_hash_traits): Use tree_hash.
7001 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7003 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
7004 * sese.c: Include tree-hash-traits.h.
7005 (rename_map_hasher): Use tree_ssa_name_hasher.
7007 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7009 * tree-hash-traits.h (tree_decl_hash): New class.
7010 * tree-ssa-strlen.c: Include tree-hash-traits.h.
7011 (stridxlist_hash_traits): Use tree_decl_hash.
7013 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7015 * tree-hash-traits.h: New file.
7016 (tree_operand_hash): New class.
7017 * sanopt.c: Include tree-hash-traits.h.
7018 (sanopt_tree_map_traits): Use tree_operand_hash.
7019 * tree-if-conv.c: Include tree-hash-traits.h.
7020 (phi_args_hash_traits): Use tree_operand_hash.
7021 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
7022 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
7024 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7026 * hash-map-traits.h: Include hash-traits.h.
7027 (simple_hashmap_traits): New class.
7028 * mem-stats.h (hash_map): Change the default traits to
7029 simple_hashmap_traits<default_hash_traits<Key> >.
7031 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7033 * hash-table.h: Update comments.
7035 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7037 * hash-traits.h (default_hash_traits): New structure.
7038 * hash-set.h (default_hashset_traits): Delete.
7039 (hash_set): Use default_hash_traits<Key> instead of
7040 default_hashset_traits. Delete hash_entry type and use Key directly.
7041 * ipa-devirt.c (pair_traits): Delete.
7042 (default_hash_traits <type_pair>): Override.
7043 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
7044 (odr_types_equivalent_p, add_type_duplicate): Likewise.
7046 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7048 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
7050 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7052 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
7053 (has_is_empty, is_empty_helper): Delete.
7054 (has_mark_deleted, mark_deleted_helper): Delete.
7055 (has_mark_empty, mark_empty_helper): Delete.
7056 (hash_table::is_deleted): Call the Descriptor unconditionally.
7057 (hash_table::is_empty): Likewise.
7058 (hash_table::mark_deleted): Likewise.
7059 (hash_table::mark_empty): Likewise.
7061 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7063 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
7064 redundant typedefs and members.
7065 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
7067 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
7068 * ipa-devirt.c (odr_name_hasher): Likewise.
7069 (polymorphic_call_target_hasher): Likewise.
7070 * ira-costs.c (cost_classes_hasher): Likewise.
7071 * statistics.c (stats_counter_hasher): Likewise.
7072 * trans-mem.c (log_entry_hasher): Likewise.
7073 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
7074 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
7075 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
7076 * var-tracking.c (variable_hasher): Likewise.
7077 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
7078 Remove redundant typedefs and members.
7080 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7082 * hash-traits.h (ggc_cache_hasher): Rename to...
7083 (ggc_cache_remove): ...this and remove typedefs.
7084 (ggc_cache_ptr_hash): New class.
7085 * hash-table.h: Update commentary.
7086 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
7087 rather than ggc_cache_hasher.
7088 (const_wide_int_hasher, reg_attr_hasher): Likewise.
7089 (const_double_hasher, const_fixed_hasher): Likewise.
7090 * function.c (insn_cache_hasher): Likewise.
7091 * trans-mem.c (tm_wrapper_hasher): Likewise.
7092 * tree.h (tree_decl_map_cache_hasher): Likewise.
7093 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
7094 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
7095 * ubsan.c (tree_type_map_cache_hasher): Likewise.
7096 * varasm.c (tm_clone_hasher): Likewise.
7097 * config/i386/i386.c (dllimport_hasher): Likewise.
7098 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
7099 (tree_hasher): Likewise.
7101 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7103 * hash-traits.h (ggc_hasher): Rename to...
7104 (ggc_remover): ...this and remove typedefs.
7105 (ggc_cache_hasher): Update accordingly. Add typedefs.
7106 (ggc_ptr_hash): New class.
7107 * hash-table.h: Update comment.
7108 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
7110 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
7111 (tree_descriptor_hasher): Likewise.
7112 * cgraph.c (function_version_hasher): Likewise.
7113 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
7114 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
7115 (dw_loc_list_hasher, addr_hasher): Likewise.
7116 * function.h (used_type_hasher): Likewise.
7117 * function.c (temp_address_hasher): Likewise.
7118 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
7119 * libfuncs.h (libfunc_hasher): Likewise.
7120 * lto-streamer.h (decl_state_hasher): Likewise.
7121 * optabs.c (libfunc_decl_hasher): Likewise.
7122 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
7123 * varasm.c (section_hasher, object_block_hasher): Likewise.
7124 (const_rtx_desc_hasher): Likewise.
7125 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
7126 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
7128 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7130 * hash-traits.h (free_ptr_hash): New class.
7131 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
7132 rather than typed_free_remove. Remove redudant typedefs.
7133 (external_ref_hasher): Likewise.
7134 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
7135 (ehspec_hasher): Likewise.
7136 * ggc-common.c (saving_hasher): Likewise.
7137 * gimplify.c (gimplify_hasher): Likewise.
7138 * haifa-sched.c (delay_i2_hasher): Likewise.
7139 * loop-invariant.c (invariant_expr_hasher): Likewise.
7140 * loop-iv.c (biv_entry_hasher): Likewise.
7141 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
7142 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
7143 * tree-cfg.c (locus_discrim_hasher): Likewise.
7144 * tree-eh.c (finally_tree_hasher): Likewise.
7145 * tree-into-ssa.c (var_info_hasher): Likewise.
7146 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
7147 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
7148 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
7149 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
7150 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
7151 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
7152 (shared_bitmap_hasher): Likewise.
7153 * tree-ssa-threadupdate.c (redirection_data): Likewise.
7154 * tree-vectorizer.h (peel_info_hasher): Likewise.
7155 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
7156 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
7158 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7160 * hash-table.h: Update comments.
7161 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
7162 (nofree_ptr_hash): New class.
7163 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
7164 than typed_noop_remove. Remove redudant typedefs.
7165 * attribs.c (attribute_hasher): Likewise.
7166 * cfg.c (bb_copy_hasher): Likewise.
7167 * cselib.c (cselib_hasher): Likewise.
7168 * dse.c (invariant_group_base_hasher): Likewise.
7169 * dwarf2cfi.c (trace_info_hasher): Likewise.
7170 * dwarf2out.c (macinfo_entry_hasher): Likewise.
7171 (comdat_type_hasher, loc_list_hasher): Likewise.
7172 * gcse.c (pre_ldst_expr_hasher): Likewise.
7173 * genmatch.c (id_base): Likewise.
7174 * genrecog.c (test_pattern_hasher): Likewise.
7175 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
7176 * haifa-sched.c (delay_i1_hasher): Likewise.
7177 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
7178 * ipa-icf.h (congruence_class_group_hash): Likewise.
7179 * ipa-profile.c (histogram_hash): Likewise.
7180 * ira-color.c (allocno_hard_regs_hasher): Likewise.
7181 * lto-streamer.h (string_slot_hasher): Likewise.
7182 * lto-streamer.c (tree_entry_hasher): Likewise.
7183 * plugin.c (event_hasher): Likewise.
7184 * postreload-gcse.c (expr_hasher): Likewise.
7185 * store-motion.c (st_expr_hasher): Likewise.
7186 * tree-sra.c (uid_decl_hasher): Likewise.
7187 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
7188 (ssa_name_var_hash): Likewise.
7189 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
7190 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
7191 * tree-ssa-pre.c (pre_expr_d): Likewise.
7192 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
7193 * vtable-verify.h (registration_hasher): Likewise.
7194 * vtable-verify.c (vtbl_map_hasher): Likewise.
7195 * config/arm/arm.c (libcall_hasher): Likewise.
7196 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
7197 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
7198 * config/sol2.c (comdat_entry_hasher): Likewise.
7199 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
7200 (print_fold_checksum, fold_checksum_tree): Likewise.
7201 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
7202 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
7203 (fold_build_call_array_loc): Likewise.
7204 * tree-ssa-ccp.c (gimple_htab): Likewise.
7205 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
7206 rather than pointer_type.
7208 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7210 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
7211 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
7213 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7215 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
7216 (ggc_hasher::ggc_mx): Likewise.
7217 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
7218 that duplicate ggc_hasher ones.
7220 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7222 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
7223 (gt_cleare_cache): Check here for deleted and empty entries.
7224 Replace handle_cache_entry with a call to keep_cache_entry.
7225 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
7226 (ggc_cache_hasher::keep_cache_entry): New function.
7227 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
7228 (tm_wrapper_hasher::keep_cache_entry): New function.
7229 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
7230 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
7231 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
7232 (type_cache_hasher::keep_cache_entry): New function.
7233 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
7234 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
7235 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
7236 (tree_type_map_cache_hasher::keep_cache_entry): New function.
7237 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
7238 (tm_clone_hasher::keep_cache_entry): New function.
7239 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
7240 (dllimport_hasher::keep_cache_entry): New function.
7242 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7244 * hash-table.h: Include hash-traits.h.
7245 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
7246 (ggc_cache_hasher): Move to...
7247 * hash-traits.h: ...this new file.
7249 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7251 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
7252 struct cl_optimization.
7253 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
7254 * tree.c (make_node_stat): Allocate cl_optimization struct.
7255 (copy_node_stat): Allocate and copy cl_optimization struct.
7257 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7259 * function.h (struct incoming_args): Move struct.
7260 (pass_by_reference, reference_callee_copied): Remove prototypes.
7261 * emit-rtl.h (struct incoming_args): Relocate struct here.
7262 * calls.h (pass_by_reference, reference_callee_copied): Relocate
7264 * function.c (pass_by_reference, reference_callee_copied): Move.
7265 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
7266 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
7267 * ipa-chkp.c: Include calls.h.
7269 2015-06-25 Andrew Macleod <amacleod@redhat.com>
7271 * alias.h (alias_set_type): Move typedef.
7272 * coretypes.h (alias_set_type): Relocate typedef here.
7273 * rtl.h: Don't include alias.h.
7275 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7277 * cgraph.h (cgraph_rtl_info): Move to rtl.h
7278 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
7280 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
7281 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
7283 * calls.c: Include hard-reg-set.h before rtl.h.
7286 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7287 Vladimir Makarov <vmakarov@redhat.com>
7289 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
7292 2015-06-25 Richard Biener <rguenther@suse.de>
7294 * fold-const.c (fold_binary_loc): Move simplification of
7295 (X <<>> C1) & C2 ...
7296 * match.pd: ... here.
7298 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
7300 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
7302 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7304 * match.pd: Add patterns for vec_conds between 1 and 0.
7306 2015-06-25 Richard Biener <rguenther@suse.de>
7308 * tree-vect-stmts.c (vectorizable_conversion): Do not set
7309 STMT_VINFO_VEC_STMT for SLP.
7310 (vectorizable_store): Likewise.
7311 (vectorizable_load): Likewise.
7312 (vect_transform_stmt): Catch SLP vectorization clobbering
7313 STMT_VINFO_VEC_STMT.
7315 2015-06-25 Richard Biener <rguenther@suse.de>
7317 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
7319 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
7320 cleanup resulting dead code and parameters.
7321 (vect_transform_slp_perm_load): Adjust.
7323 2015-06-25 Nick Clifton <nickc@redhat.com>
7325 * config/bfin/bfin.c (bfin_expand_prologue): Set
7326 current_function_static_stack_size if flag_stack_usage_info is set.
7327 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
7328 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
7329 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7330 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
7332 2015-06-25 Tom de Vries <tom@codesourcery.com>
7334 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
7335 comment that the generated IV is unsigned.
7337 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7340 * config/arm/arm.c (arm_dbx_register_number): Return
7341 DWARF_FRAME_REGISTERS by default.
7343 2015-06-25 Tom de Vries <tom@codesourcery.com>
7345 * dominance.c (calculate_dominance_info): Fix verify_dominators call
7346 argument. Call verify_dominator when reusing dominator info.
7348 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
7351 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
7352 an additional element of the unspec vector. Modify indices
7354 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
7355 * config/sh/sh.c (prepare_move_operands): Pass incremented
7356 const_int to gen_GOTaddr2picreg.
7357 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
7359 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7361 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
7362 Condition on TARGET_FLOAT.
7364 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7366 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
7369 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7371 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
7373 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
7374 aarch64_err_no_fpadvsimd.
7376 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
7377 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
7378 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
7379 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
7380 Turn error into assert, test TARGET_FLOAT.
7381 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
7384 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
7387 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
7389 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
7391 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
7393 2015-06-24 Renlin Li <renlin.li@arm.com>
7395 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
7396 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
7398 2015-06-24 Richard Biener <rguenther@suse.de>
7400 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
7402 (lower_opt_convert): Support lowering of conditional view_convert.
7403 (parser::parse_operation): Likewise.
7404 (parser::parse_for): Likewise.
7406 2015-06-24 Renlin Li <renlin.li@arm.com>
7408 * varasm.c (emit_local): Use unsigned int for align variable.
7410 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7413 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
7414 for negative numbers.
7416 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7418 PR rtl-optimization/66306
7419 * reload.c (find_reloads): Swap the match_dup info for
7420 commutative operands.
7422 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7424 * config/s390/vx-builtins.md
7425 ("vec_scatter_element<mode>_<non_vec_int>")
7426 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
7427 attribute with bhfgq.
7429 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7431 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
7433 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7435 * config/s390/s390-builtin-types.def: Add flag to indicate the
7436 options under which the function type is needed.
7437 * config/s390/s390-builtins.def: Add flag to indicate the options
7438 under which the builtin is enabled.
7439 * config/s390/s390-builtins.h: Add flags parameter to macro
7441 (bflags_for_builtin): New function.
7442 (flags_for_builtin): Renamed to ...
7443 (opflags_for_builtin): ... this.
7444 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
7445 flags_for_builtin to bflags_for_builtin and
7446 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
7447 * config/s390/s390.c: Add initialization of bflags_builtin and
7448 opflags_builtin arrays.
7449 Remove code for flags_builtin.
7450 (s390_init_builtins): Only create builtin function types if one of
7451 their flags is active.
7452 Only create builtins if all of their flags are active.
7453 (s390_expand_builtin): Rename flags_for_builtin to
7454 opflags_for_builtin.
7456 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7458 * config/s390/vecintrin.h: Remove internal builtins.
7460 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7462 * config/s390/s390.c (s390_secondary_reload): Fix check for
7463 GENERAL_REGS register class.
7465 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7467 * config/s390/s390.c (s390_support_vector_misalignment): Call
7468 default implementation for !TARGET_VX.
7470 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7472 * config/s390/s390.c (s390_legitimate_constant_p): Add
7475 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7477 * config/s390/s390.c (s390_vector_abi): New variable definition.
7478 (s390_check_type_for_vector_abi): New function.
7479 (TARGET_ASM_FILE_END): New macro definition.
7480 (s390_asm_file_end): New function.
7481 (s390_function_arg): Call s390_check_type_for_vector_abi.
7482 (s390_gimplify_va_arg): Likewise.
7483 * configure: Regenerate.
7484 * configure.ac: Check for .gnu_attribute Binutils feature.
7486 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
7489 * config/bfin/bfin.c (hwloop_optimize): Initialize
7490 JUMP_LABEL for newly created jump.
7492 2015-06-23 Tristan Gingold <gingold@adacore.com>
7494 * collect-utils.c (collect_wait): Unlink the response file here
7497 (utils_cleanup): ...and here.
7499 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
7501 * df-scan.c: Don't include target-def.h.
7502 * targhooks.c: Likewise.
7503 * config/arm/arm-c.c: Likewise.
7504 * config/i386/i386-c.c: Likewise.
7505 * config/nds32/nds32-cost.c: Likewise.
7506 * config/nds32/nds32-fp-as-gp.c: Likewise.
7507 * config/nds32/nds32-intrinsic.c: Likewise.
7508 * config/nds32/nds32-isr.c: Likewise.
7509 * config/nds32/nds32-md-auxiliary.c: Likewise.
7510 * config/nds32/nds32-memory-manipulation.c: Likewise.
7511 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7512 * config/nds32/nds32-predicates.c: Likewise.
7514 2015-06-23 Richard Biener <rguenther@suse.de>
7516 PR tree-optimization/66636
7517 * tree-vect-stmts.c (vectorizable_store): Properly compute the
7518 def type for further defs for strided stores.
7520 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
7522 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
7523 conditional selects.
7524 (setcc_int<mode>, setcc_float<mode>): Reformat.
7526 2015-06-23 Marek Polacek <polacek@redhat.com>
7528 * match.pd ((x + y) - (x | y) -> x & y,
7529 (x + y) - (x & y) -> x | y): New patterns.
7531 2015-06-23 Ludovic Courtès <ludo@gnu.org>
7534 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
7535 '-dynamic-linker' within %{!shared: ...}.
7537 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
7540 * config/i386/predicates.md (addsub_vm_operator): New predicate.
7541 (addsub_vs_operator): Ditto.
7542 (addsub_vs_parallel): Ditto.
7543 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
7544 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
7545 Put minus RTX before plus and adjust vec_merge selector.
7546 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
7547 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
7548 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
7549 (addsub vec_merge splitters): New combiner splitters.
7550 (addsub vec_select/vec_concat splitters): Ditto.
7552 2015-06-23 Bin Cheng <bin.cheng@arm.com>
7554 PR tree-optimization/66449
7555 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
7556 POINTER_PLUS_EXPR for pointers.
7558 2015-06-23 Alan Modra <amodra@gmail.com>
7560 * rtlanal.c (commutative_operand_precedence): Correct comments.
7561 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
7562 declaration. Return an int. Distinguish REG,REG return from
7564 (struct simplify_plus_minus_op_data): Make local to function.
7565 (simplify_plus_minus): Don't set canonicalized if merely sorting
7566 registers. Avoid packing ops if nothing changes. White space fixes.
7568 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
7570 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
7571 -fdump-ada-spec is passed but not if -fsyntax-only is.
7573 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
7576 * lra-lives.c (process_bb_lives): Check insn copying the same
7577 reload pseudo and don't create a copy for it.
7579 2015-06-22 Tom de Vries <tom@codesourcery.com>
7581 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
7584 2015-06-22 Tom de Vries <tom@codesourcery.com>
7586 * builtins.def (DEF_GOMP_BUILTIN): Test
7587 'flag_tree_parallelize_loops > 1' instead of
7588 'flag_tree_parallelize_loops'. Test flag_cilkplus.
7590 2015-06-22 Tom de Vries <tom@codesourcery.com>
7592 * dominance.c (calculate_dominance_info): Verify dominators if
7595 2015-06-22 Marek Polacek <polacek@redhat.com>
7597 * match.pd ((x ^ y) ^ (x | y) -> x & y,
7598 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
7599 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
7600 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
7602 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
7605 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
7606 cost of embedded comparison.
7608 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7611 * config/rs6000/predicates.md (altivec_register_operand): Permit
7612 virtual stack registers.
7613 (vsx_register_operand): Likewise.
7614 (vfloat_operand): Likewise.
7615 (vint_operand): Likewise.
7616 (vlogical_operand): Likewise.
7618 2015-06-22 Richard Biener <rguenther@suse.de>
7620 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
7621 and single_scalar_iteration_cost members.
7622 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
7623 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
7624 (vect_get_single_scalar_iteration_cost): Remove.
7625 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
7626 Use LOOP_VINFO_SCALAR_ITERATION_COST.
7627 * tree-vect-loop.c (destroy_loop_vec_info): Free
7629 (vect_get_single_scalar_iteration_cost): Compute result into
7630 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
7631 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
7632 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
7633 (vect_estimate_min_profitable_iters): Use them.
7635 2015-06-22 Christian Bruel <christian.bruel@st.com>
7638 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
7639 (TARGET_INSERT_ATTRIBUTES): Define.
7640 (thumb_flipper): New var.
7641 * config/arm/arm.opt (-mflip-thumb): New switch.
7643 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
7644 Martin Liska <mliska@suse.cz>
7647 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
7648 construction of arg_types.
7649 (sem_function::sem_function): Likewise.
7650 (sem_function::~sem_function): Remove destruction of arg_types.
7651 (sem_function::compatible_parm_types_p): New function.
7652 (sem_function::equals_wpa): Reorg matching of return values
7653 and parameter types.
7654 (sem_function::equals_private): Reorg mathcing of argument types.
7655 (sem_function::parse_tree_args): Remove.
7656 * ipa-icf.h (init_wpa): Do not call it.
7657 (parse_tree_args): Remove.
7658 (compatible_parm_types_p): Declare.
7659 (result_type): Remove.
7660 (arg_types): Remove.
7662 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
7665 * ipa-polymorphic-call.c
7666 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
7667 initializing alias oracle; fix formating; set base_alias_set if it
7670 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
7672 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
7673 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
7674 (find_inc): Likewise.
7675 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
7677 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
7678 * df-scan.c (df_swap_refs): Remove.
7679 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
7680 * dominance.c (link_roots): Use std::swap instead of manually swapping.
7681 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
7682 * fold-const.c (fold_relational_const): Likewise.
7683 * genattrtab.c (simplify_test_exp): Likewise.
7684 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
7685 gimple_simplify): Likewise.
7686 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
7687 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
7688 * ipa-devirt.c (add_type_duplicate): Likewise.
7689 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
7690 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
7691 * lra.c (lra_create_copy): Likewise.
7692 * lto-streamer-out.c (DFS::DFS): Likewise.
7693 * modulo-sched.c (get_sched_window): Likewise.
7694 * omega.c (omega_pretty_print_problem): Likewise.
7695 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
7696 * reload1.c (reloads_unique_chain_p): Likewise.
7697 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
7698 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
7700 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
7702 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
7703 predicate_mem_writes): Likewise.
7704 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
7705 * tree-predcom.c (combine_chains): Likewise.
7706 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
7707 refs_may_alias_p_1): Likewise.
7708 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
7709 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
7710 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
7711 number_of_iterations_cond): Likewise.
7712 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
7713 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
7714 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7715 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7716 * tree-vrp.c (extract_range_from_binary_expr_1,
7717 extract_range_from_unary_expr_1): Likewise.
7719 2015-06-20 Marek Polacek <polacek@redhat.com>
7721 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
7723 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
7726 * config/sh/sh.c (prepare_move_operands): Replace subreg
7727 index term with R0 for base and index addressing.
7729 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
7731 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
7733 (movsf_aarch64): Change condition from register_operand to
7734 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
7735 load1. Change type for alternative 7 to store1.
7736 (movdf_aarch64): Likewise.
7738 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
7740 * config/vax/vax.md: Adjust sign/zero extend patterns to
7741 handle SUBREGs in operands[1].
7743 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7745 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
7746 of manually swapping.
7747 (expand_vec_perm_interleave2): Likewise.
7749 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
7751 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
7752 reuse bounds created for abnormal ssa names.
7754 2015-06-19 Jakub Jelinek <jakub@redhat.com>
7756 * config/nvptx/nvptx.md (allocate_stack): Rename to...
7757 (allocate_stack_<mode>): ... this, and add :P on both
7758 match_operand and unspec.
7759 (allocate_stack): New expander.
7761 2015-06-19 Christian Bruel <christian.bruel@st.com>
7765 * config/arm/arm.c (arm_set_current_function): Handle
7766 explicit default options.
7768 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
7770 * config/i386/i386.md (*movsicc_noc_zext): New insn.
7771 (zero-extended cmove with mem peephole2): New pattern.
7772 (cmove with mem peephole2): Merge patterns.
7774 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
7776 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
7778 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
7780 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
7781 * config/mips/mips.md (*madd4<mode>): Ditto.
7782 (*nmadd3<mode>) Ditto.
7783 (*nmadd4<mode>_fastmath): Ditto.
7784 (*nmadd3<mode>_fastmath): Ditto.
7785 (*nmsub4<mode>): Ditto.
7786 (*nmsub3<mode>): Ditto.
7787 (*nmsub4<mode>_fastmath): Ditto.
7788 (*nmsub3<mode>_fastmath): Ditto.
7790 2015-06-18 Michael Matz <matz@suse.de>
7793 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
7794 grouped strided stores.
7795 (vectorizable_load): Don't use the DR from first_stmt in
7796 the non-SLP grouped strided case.
7798 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7801 * function.c (assign_bounds): Add arguments assign_regs,
7802 assign_special, assign_bt.
7803 (assign_parms): For vararg functions handle bounds in BT
7804 and special slots after incoming vararg bounds.
7806 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7809 * cfgexpand.c (expand_return): Handle missing bounds.
7810 (expand_gimple_stmt_1): Likewise.
7811 * tree-chkp.c (chkp_expand_zero_bounds): New.
7812 * tree-chkp.h (chkp_expand_zero_bounds): New.
7814 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7817 * ipa-chkp.c (chkp_maybe_create_clone): Require
7818 functions to be instrumentable.
7819 * tree-chkp.c (chkp_replace_function_pointer): Use
7820 chkp_instrumentable_p instead of attribute check.
7822 2015-06-18 Richard Biener <rguenther@suse.de>
7824 PR tree-optimization/66510
7825 * tree-vect-stmts.c (vectorizable_load): Properly compute the
7826 number of vector loads for SLP permuted loads.
7827 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
7828 check the stride for loop vectorization.
7829 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
7830 vectorization factor.
7831 (vect_analyze_group_access): If the group size is not a power
7832 of two require a epilogue loop.
7833 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
7834 compute and optimizing and alias test pruning after final
7835 vectorization factor computation.
7836 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
7838 (vect_transform_slp_perm_load): Properly compute the original
7839 number of vector load stmts.
7841 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
7843 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
7844 "unlikely character , in @var" warning.
7846 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
7848 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
7849 (ix86_function_arg_advance): Ditto.
7850 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
7852 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
7854 * function.h (struct rtl_data): Remove struct and accessor macros.
7855 * emit-rtl.h (struct rtl_data): Relocate to here.
7856 * Makefile.in (GTFILES): Add emit-rtl.h.
7857 * df-core.c: Include emit-rtl.h.
7858 * genattrtab.c: Likewise.
7859 * genconditions.c: Likewise.
7860 * genpreds.c: Likewise.
7861 * genrecog.c: Likewise.
7862 * regcprop.c: Likewise.
7863 * resource.c: Likewise.
7864 * sched-rgn.c: Likewise.
7865 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7866 * config/i386/winnt.c: Likewise.
7868 2015-06-17 Jakub Jelinek <jakub@redhat.com>
7871 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
7872 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
7873 and has_force_vectorize_loops flags from cfun into
7875 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
7876 if simduid is non-NULL.
7877 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
7878 * passes.def (pass_simduid_cleanup): Add new pass after loop
7880 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
7881 indirection from htab argument's type.
7882 (shrink_simd_arrays): New function.
7883 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
7884 Don't call adjust_simduid_builtins if there are no loops.
7885 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
7886 (pass_simduid_cleanup::execute): New method.
7887 (make_pass_simduid_cleanup): New function.
7889 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
7891 * tree-core.h (tree_target_option): Make opts field a pointer to a
7892 cl_target_option instead of an instance of the struct.
7893 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
7895 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
7897 (copy_node_stat): Allocate and copy struct cl_target_option.
7899 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
7901 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
7902 Remove conditional exposure of prototypes.
7903 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
7904 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
7905 definitions in tree.h with functions.
7906 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
7908 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
7910 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
7912 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
7913 (*cmp<mode>_signed): ... this.
7914 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
7915 (*cmp<mode>_unsigned): ... this. Remove %b.
7917 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
7919 * coretypes.h: Include input.h and as-a.h.
7920 * rtl.h: Include input.h and as-a.h for generator files.
7921 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
7922 * vec.c: Don't include diagnostic-core.h.
7923 * alias.c: Do not include input.h, line-map.h or is-a.h.
7925 * attribs.c: Likewise.
7926 * auto-inc-dec.c: Likewise.
7927 * auto-profile.c: Likewise.
7928 * bb-reorder.c: Likewise.
7929 * bt-load.c: Likewise.
7930 * builtins.c: Likewise.
7931 * caller-save.c: Likewise.
7932 * calls.c: Likewise.
7935 * cfganal.c: Likewise.
7936 * cfgbuild.c: Likewise.
7937 * cfgcleanup.c: Likewise.
7938 * cfgexpand.c: Likewise.
7939 * cfghooks.c: Likewise.
7940 * cfgloop.c: Likewise.
7941 * cfgloop.h: Likewise.
7942 * cfgloopanal.c: Likewise.
7943 * cfgloopmanip.c: Likewise.
7944 * cfgrtl.c: Likewise.
7945 * cgraph.c: Likewise.
7946 * cgraphbuild.c: Likewise.
7947 * cgraphclones.c: Likewise.
7948 * cgraphunit.c: Likewise.
7949 * cilk-common.c: Likewise.
7950 * combine-stack-adj.c: Likewise.
7951 * combine.c: Likewise.
7952 * compare-elim.c: Likewise.
7953 * convert.c: Likewise.
7954 * coverage.c: Likewise.
7955 * cppbuiltin.c: Likewise.
7956 * cprop.c: Likewise.
7958 * cselib.c: Likewise.
7959 * data-streamer-in.c: Likewise.
7960 * data-streamer-out.c: Likewise.
7961 * data-streamer.c: Likewise.
7962 * dbxout.c: Likewise.
7965 * debug.c: Likewise.
7966 * df-core.c: Likewise.
7967 * df-problems.c: Likewise.
7968 * df-scan.c: Likewise.
7971 * diagnostic-core.h: Likewise.
7972 * diagnostic.c: Likewise.
7973 * dojump.c: Likewise.
7974 * dominance.c: Likewise.
7975 * domwalk.c: Likewise.
7976 * double-int.c: Likewise.
7978 * dumpfile.c: Likewise.
7979 * dumpfile.h: Likewise.
7980 * dwarf2asm.c: Likewise.
7981 * dwarf2cfi.c: Likewise.
7982 * dwarf2out.c: Likewise.
7983 * emit-rtl.c: Likewise.
7984 * et-forest.c: Likewise.
7985 * except.c: Likewise.
7986 * explow.c: Likewise.
7987 * expmed.c: Likewise.
7989 * final.c: Likewise.
7990 * fixed-value.c: Likewise.
7991 * fold-const.c: Likewise.
7992 * function.c: Likewise.
7993 * fwprop.c: Likewise.
7994 * gcc-plugin.h: Likewise.
7996 * generic-match-head.c: Likewise.
7997 * ggc-page.c: Likewise.
7998 * gimple-builder.c: Likewise.
7999 * gimple-expr.c: Likewise.
8000 * gimple-fold.c: Likewise.
8001 * gimple-iterator.c: Likewise.
8002 * gimple-low.c: Likewise.
8003 * gimple-match-head.c: Likewise.
8004 * gimple-pretty-print.c: Likewise.
8005 * gimple-ssa-isolate-paths.c: Likewise.
8006 * gimple-ssa-strength-reduction.c: Likewise.
8007 * gimple-streamer-in.c: Likewise.
8008 * gimple-streamer-out.c: Likewise.
8009 * gimple-streamer.h: Likewise.
8010 * gimple-walk.c: Likewise.
8011 * gimple.c: Likewise.
8012 * gimplify-me.c: Likewise.
8013 * gimplify.c: Likewise.
8014 * godump.c: Likewise.
8015 * graph.c: Likewise.
8016 * graphite-blocking.c: Likewise.
8017 * graphite-dependences.c: Likewise.
8018 * graphite-interchange.c: Likewise.
8019 * graphite-isl-ast-to-gimple.c: Likewise.
8020 * graphite-optimize-isl.c: Likewise.
8021 * graphite-poly.c: Likewise.
8022 * graphite-scop-detection.c: Likewise.
8023 * graphite-sese-to-poly.c: Likewise.
8024 * graphite.c: Likewise.
8025 * haifa-sched.c: Likewise.
8026 * hw-doloop.c: Likewise.
8027 * ifcvt.c: Likewise.
8028 * init-regs.c: Likewise.
8029 * input.c: Likewise.
8030 * internal-fn.c: Likewise.
8031 * ipa-chkp.c: Likewise.
8032 * ipa-comdats.c: Likewise.
8033 * ipa-cp.c: Likewise.
8034 * ipa-devirt.c: Likewise.
8035 * ipa-icf-gimple.c: Likewise.
8036 * ipa-icf.c: Likewise.
8037 * ipa-inline-analysis.c: Likewise.
8038 * ipa-inline-transform.c: Likewise.
8039 * ipa-inline.c: Likewise.
8040 * ipa-polymorphic-call.c: Likewise.
8041 * ipa-profile.c: Likewise.
8042 * ipa-prop.c: Likewise.
8043 * ipa-pure-const.c: Likewise.
8044 * ipa-ref.c: Likewise.
8045 * ipa-reference.c: Likewise.
8046 * ipa-split.c: Likewise.
8047 * ipa-utils.c: Likewise.
8048 * ipa-visibility.c: Likewise.
8050 * ira-build.c: Likewise.
8051 * ira-color.c: Likewise.
8052 * ira-conflicts.c: Likewise.
8053 * ira-costs.c: Likewise.
8054 * ira-emit.c: Likewise.
8055 * ira-lives.c: Likewise.
8058 * langhooks.c: Likewise.
8060 * loop-doloop.c: Likewise.
8061 * loop-init.c: Likewise.
8062 * loop-invariant.c: Likewise.
8063 * loop-iv.c: Likewise.
8064 * loop-unroll.c: Likewise.
8065 * lower-subreg.c: Likewise.
8066 * lra-assigns.c: Likewise.
8067 * lra-coalesce.c: Likewise.
8068 * lra-constraints.c: Likewise.
8069 * lra-eliminations.c: Likewise.
8070 * lra-lives.c: Likewise.
8071 * lra-remat.c: Likewise.
8072 * lra-spills.c: Likewise.
8074 * lto-cgraph.c: Likewise.
8075 * lto-compress.c: Likewise.
8076 * lto-opts.c: Likewise.
8077 * lto-section-in.c: Likewise.
8078 * lto-section-out.c: Likewise.
8079 * lto-streamer-in.c: Likewise.
8080 * lto-streamer-out.c: Likewise.
8081 * lto-streamer.c: Likewise.
8083 * mode-switching.c: Likewise.
8084 * modulo-sched.c: Likewise.
8085 * omega.c: Likewise.
8086 * omp-low.c: Likewise.
8087 * optabs.c: Likewise.
8088 * opts-global.c: Likewise.
8090 * passes.c: Likewise.
8091 * plugin.c: Likewise.
8092 * postreload-gcse.c: Likewise.
8093 * postreload.c: Likewise.
8094 * predict.c: Likewise.
8095 * pretty-print.h: Likewise.
8096 * print-rtl.c: Likewise.
8097 * print-tree.c: Likewise.
8098 * profile.c: Likewise.
8100 * realmpfr.c: Likewise.
8101 * recog.c: Likewise.
8103 * reg-stack.c: Likewise.
8104 * regcprop.c: Likewise.
8105 * reginfo.c: Likewise.
8106 * regrename.c: Likewise.
8107 * regstat.c: Likewise.
8108 * reload.c: Likewise.
8109 * reload1.c: Likewise.
8110 * reorg.c: Likewise.
8111 * resource.c: Likewise.
8112 * rtl-chkp.c: Likewise.
8113 * rtl-error.c: Likewise.
8114 * rtlanal.c: Likewise.
8115 * rtlhooks.c: Likewise.
8116 * sanopt.c: Likewise.
8117 * sched-deps.c: Likewise.
8118 * sched-ebb.c: Likewise.
8119 * sched-rgn.c: Likewise.
8120 * sched-vis.c: Likewise.
8121 * sdbout.c: Likewise.
8122 * sel-sched-dump.c: Likewise.
8123 * sel-sched-ir.c: Likewise.
8124 * sel-sched.c: Likewise.
8126 * shrink-wrap.c: Likewise.
8127 * simplify-rtx.c: Likewise.
8128 * stack-ptr-mod.c: Likewise.
8129 * statistics.c: Likewise.
8131 * stor-layout.c: Likewise.
8132 * store-motion.c: Likewise.
8133 * streamer-hooks.c: Likewise.
8134 * stringpool.c: Likewise.
8135 * symtab.c: Likewise.
8136 * target-globals.c: Likewise.
8137 * targhooks.c: Likewise.
8138 * toplev.c: Likewise.
8139 * tracer.c: Likewise.
8140 * trans-mem.c: Likewise.
8141 * tree-affine.c: Likewise.
8142 * tree-browser.c: Likewise.
8143 * tree-call-cdce.c: Likewise.
8144 * tree-cfg.c: Likewise.
8145 * tree-cfgcleanup.c: Likewise.
8146 * tree-chkp-opt.c: Likewise.
8147 * tree-chkp.c: Likewise.
8148 * tree-chrec.c: Likewise.
8149 * tree-complex.c: Likewise.
8150 * tree-data-ref.c: Likewise.
8151 * tree-dfa.c: Likewise.
8152 * tree-diagnostic.c: Likewise.
8153 * tree-dump.c: Likewise.
8154 * tree-eh.c: Likewise.
8155 * tree-emutls.c: Likewise.
8156 * tree-if-conv.c: Likewise.
8157 * tree-inline.c: Likewise.
8158 * tree-into-ssa.c: Likewise.
8159 * tree-iterator.c: Likewise.
8160 * tree-loop-distribution.c: Likewise.
8161 * tree-nested.c: Likewise.
8162 * tree-nrv.c: Likewise.
8163 * tree-object-size.c: Likewise.
8164 * tree-outof-ssa.c: Likewise.
8165 * tree-parloops.c: Likewise.
8166 * tree-phinodes.c: Likewise.
8167 * tree-predcom.c: Likewise.
8168 * tree-pretty-print.c: Likewise.
8169 * tree-profile.c: Likewise.
8170 * tree-scalar-evolution.c: Likewise.
8171 * tree-sra.c: Likewise.
8172 * tree-ssa-address.c: Likewise.
8173 * tree-ssa-alias.c: Likewise.
8174 * tree-ssa-ccp.c: Likewise.
8175 * tree-ssa-coalesce.c: Likewise.
8176 * tree-ssa-copy.c: Likewise.
8177 * tree-ssa-copyrename.c: Likewise.
8178 * tree-ssa-dce.c: Likewise.
8179 * tree-ssa-dom.c: Likewise.
8180 * tree-ssa-dse.c: Likewise.
8181 * tree-ssa-forwprop.c: Likewise.
8182 * tree-ssa-ifcombine.c: Likewise.
8183 * tree-ssa-live.c: Likewise.
8184 * tree-ssa-loop-ch.c: Likewise.
8185 * tree-ssa-loop-im.c: Likewise.
8186 * tree-ssa-loop-ivcanon.c: Likewise.
8187 * tree-ssa-loop-ivopts.c: Likewise.
8188 * tree-ssa-loop-manip.c: Likewise.
8189 * tree-ssa-loop-niter.c: Likewise.
8190 * tree-ssa-loop-prefetch.c: Likewise.
8191 * tree-ssa-loop-unswitch.c: Likewise.
8192 * tree-ssa-loop.c: Likewise.
8193 * tree-ssa-math-opts.c: Likewise.
8194 * tree-ssa-operands.c: Likewise.
8195 * tree-ssa-phiopt.c: Likewise.
8196 * tree-ssa-phiprop.c: Likewise.
8197 * tree-ssa-pre.c: Likewise.
8198 * tree-ssa-propagate.c: Likewise.
8199 * tree-ssa-reassoc.c: Likewise.
8200 * tree-ssa-sccvn.c: Likewise.
8201 * tree-ssa-scopedtables.c: Likewise.
8202 * tree-ssa-sink.c: Likewise.
8203 * tree-ssa-strlen.c: Likewise.
8204 * tree-ssa-structalias.c: Likewise.
8205 * tree-ssa-tail-merge.c: Likewise.
8206 * tree-ssa-ter.c: Likewise.
8207 * tree-ssa-threadedge.c: Likewise.
8208 * tree-ssa-threadupdate.c: Likewise.
8209 * tree-ssa-uncprop.c: Likewise.
8210 * tree-ssa-uninit.c: Likewise.
8211 * tree-ssa.c: Likewise.
8212 * tree-ssanames.c: Likewise.
8213 * tree-stdarg.c: Likewise.
8214 * tree-streamer-in.c: Likewise.
8215 * tree-streamer-out.c: Likewise.
8216 * tree-streamer.c: Likewise.
8217 * tree-switch-conversion.c: Likewise.
8218 * tree-tailcall.c: Likewise.
8219 * tree-vect-data-refs.c: Likewise.
8220 * tree-vect-generic.c: Likewise.
8221 * tree-vect-loop-manip.c: Likewise.
8222 * tree-vect-loop.c: Likewise.
8223 * tree-vect-patterns.c: Likewise.
8224 * tree-vect-slp.c: Likewise.
8225 * tree-vect-stmts.c: Likewise.
8226 * tree-vectorizer.c: Likewise.
8227 * tree-vrp.c: Likewise.
8230 * ubsan.c: Likewise.
8231 * valtrack.c: Likewise.
8232 * value-prof.c: Likewise.
8233 * var-tracking.c: Likewise.
8234 * varasm.c: Likewise.
8235 * varpool.c: Likewise.
8236 * vmsdbgout.c: Likewise.
8237 * vtable-verify.c: Likewise.
8239 * wide-int.cc: Likewise.
8240 * xcoffout.c: Likewise.
8241 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
8242 * common/common-targhooks.c: Likewise.
8243 * config/aarch64/aarch64-builtins.c: Likewise.
8244 * config/aarch64/aarch64.c: Likewise.
8245 * config/alpha/alpha.c: Likewise.
8246 * config/arc/arc.c: Likewise.
8247 * config/arm/aarch-common.c: Likewise.
8248 * config/arm/arm-builtins.c: Likewise.
8249 * config/arm/arm-c.c: Likewise.
8250 * config/arm/arm.c: Likewise.
8251 * config/avr/avr-c.c: Likewise.
8252 * config/avr/avr-log.c: Likewise.
8253 * config/avr/avr.c: Likewise.
8254 * config/bfin/bfin.c: Likewise.
8255 * config/c6x/c6x.c: Likewise.
8256 * config/cr16/cr16.c: Likewise.
8257 * config/cris/cris.c: Likewise.
8258 * config/darwin-c.c: Likewise.
8259 * config/darwin.c: Likewise.
8260 * config/default-c.c: Likewise.
8261 * config/epiphany/epiphany.c: Likewise.
8262 * config/epiphany/mode-switch-use.c: Likewise.
8263 * config/epiphany/resolve-sw-modes.c: Likewise.
8264 * config/fr30/fr30.c: Likewise.
8265 * config/frv/frv.c: Likewise.
8266 * config/ft32/ft32.c: Likewise.
8267 * config/glibc-c.c: Likewise.
8268 * config/h8300/h8300.c: Likewise.
8269 * config/i386/i386-c.c: Likewise.
8270 * config/i386/i386.c: Likewise.
8271 * config/i386/msformat-c.c: Likewise.
8272 * config/i386/winnt-cxx.c: Likewise.
8273 * config/i386/winnt-stubs.c: Likewise.
8274 * config/i386/winnt.c: Likewise.
8275 * config/ia64/ia64-c.c: Likewise.
8276 * config/ia64/ia64.c: Likewise.
8277 * config/iq2000/iq2000.c: Likewise.
8278 * config/lm32/lm32.c: Likewise.
8279 * config/m32c/m32c-pragma.c: Likewise.
8280 * config/m32c/m32c.c: Likewise.
8281 * config/m32r/m32r.c: Likewise.
8282 * config/m68k/m68k.c: Likewise.
8283 * config/mcore/mcore.c: Likewise.
8284 * config/mep/mep-pragma.c: Likewise.
8285 * config/mep/mep.c: Likewise.
8286 * config/microblaze/microblaze-c.c: Likewise.
8287 * config/microblaze/microblaze.c: Likewise.
8288 * config/mips/mips.c: Likewise.
8289 * config/mmix/mmix.c: Likewise.
8290 * config/mn10300/mn10300.c: Likewise.
8291 * config/moxie/moxie.c: Likewise.
8292 * config/msp430/msp430-c.c: Likewise.
8293 * config/msp430/msp430.c: Likewise.
8294 * config/nds32/nds32-cost.c: Likewise.
8295 * config/nds32/nds32-fp-as-gp.c: Likewise.
8296 * config/nds32/nds32-intrinsic.c: Likewise.
8297 * config/nds32/nds32-isr.c: Likewise.
8298 * config/nds32/nds32-md-auxiliary.c: Likewise.
8299 * config/nds32/nds32-memory-manipulation.c: Likewise.
8300 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8301 * config/nds32/nds32-predicates.c: Likewise.
8302 * config/nds32/nds32.c: Likewise.
8303 * config/nios2/nios2.c: Likewise.
8304 * config/nvptx/nvptx.c: Likewise.
8305 * config/pa/pa.c: Likewise.
8306 * config/pdp11/pdp11.c: Likewise.
8307 * config/rl78/rl78-c.c: Likewise.
8308 * config/rl78/rl78.c: Likewise.
8309 * config/rs6000/rs6000-c.c: Likewise.
8310 * config/rs6000/rs6000.c: Likewise.
8311 * config/rx/rx.c: Likewise.
8312 * config/s390/s390-c.c: Likewise.
8313 * config/s390/s390.c: Likewise.
8314 * config/sh/sh-c.c: Likewise.
8315 * config/sh/sh-mem.cc: Likewise.
8316 * config/sh/sh.c: Likewise.
8317 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8318 * config/sh/sh_treg_combine.cc: Likewise.
8319 * config/sol2-c.c: Likewise.
8320 * config/sol2-cxx.c: Likewise.
8321 * config/sol2-stubs.c: Likewise.
8322 * config/sol2.c: Likewise.
8323 * config/sparc/sparc-c.c: Likewise.
8324 * config/sparc/sparc.c: Likewise.
8325 * config/spu/spu-c.c: Likewise.
8326 * config/spu/spu.c: Likewise.
8327 * config/stormy16/stormy16.c: Likewise.
8328 * config/tilegx/mul-tables.c: Likewise.
8329 * config/tilegx/tilegx-c.c: Likewise.
8330 * config/tilegx/tilegx.c: Likewise.
8331 * config/tilepro/mul-tables.c: Likewise.
8332 * config/tilepro/tilepro-c.c: Likewise.
8333 * config/tilepro/tilepro.c: Likewise.
8334 * config/v850/v850-c.c: Likewise.
8335 * config/v850/v850.c: Likewise.
8336 * config/vax/vax.c: Likewise.
8337 * config/visium/visium.c: Likewise.
8338 * config/vms/vms-c.c: Likewise.
8339 * config/vms/vms.c: Likewise.
8340 * config/vxworks.c: Likewise.
8341 * config/winnt-c.c: Likewise.
8342 * config/xtensa/xtensa.c: Likewise.
8344 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
8346 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
8348 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
8350 2015-06-17 Richard Biener <rguenther@suse.de>
8352 PR tree-optimization/66251
8353 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
8354 stmts for SLP strided stores.
8357 2015-05-22 Richard Biener <rguenther@suse.de>
8359 PR tree-optimization/66251
8360 * tree-vect-stmts.c (vectorizable_conversion): Properly
8361 set STMT_VINFO_VEC_STMT even for the SLP case.
8363 2015-05-26 Michael Matz <matz@suse.de>
8366 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
8367 STMT_VINFO_VEC_STMT, also with SLP.
8369 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
8372 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
8373 (*avx_addsubv4df3_1s): Ditto.
8374 (*sse3_addsubv2df3_1): Ditto.
8375 (*sse3_addsubv2df3_1s): Ditto.
8376 (*avx_addsubv8sf3_1): Ditto.
8377 (*avx_addsubv8sf3_1s): Ditto.
8378 (*sse3_addsubv4sf3_1): Ditto.
8379 (*sse3_addsubv4sf3_1s): Ditto.
8381 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
8383 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
8384 (SYSROOT_SUFFIX_SPEC): Update.
8385 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
8386 (STARTFILE_PREFIX_SPEC): Update.
8387 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
8388 (MULTILIB_REQUIRED): New.
8389 (MULTILIB_OSDIRNAMES): New.
8390 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
8391 (MULTILIB_REQUIRED): New.
8392 (MULTILIB_OSDIRNAMES): New.
8394 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
8396 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
8397 * config/aarch64/aarch64-options-extensions.def: Update "fP",
8398 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
8399 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
8400 (AARCH64_FL_PAN): New.
8401 (AARCH64_FL_LOR): New.
8402 (AARCH64_FL_RDMA): New.
8403 (AARCH64_FL_FOR_ARCH8_1): New.
8404 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
8405 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
8407 2015-06-16 Martin Liska <mliska@suse.cz>
8409 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
8410 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
8413 2015-06-16 Richard Biener <rguenther@suse.de>
8415 * tree-vect-stmts.c (vectorizable_store): Adjust.
8416 (vectorizable_load): Likewise.
8417 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8419 (vect_create_data_ref_ptr): Likewise.
8420 (bump_vector_ptr): Adjust.
8422 2015-06-16 Richard Biener <rguenther@suse.de>
8424 * tree-vect-stmts.c (vectorizable_load): Properly start loads
8425 with the first element if this is grouped loads.
8427 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
8429 * config/arm/arm-protos.h (struct tune_params): Rename
8430 log_op_non_sc to log_op_non_short_circuit, and rename enum
8431 values to expand SC to SHORT_CIRCUIT.
8432 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
8433 to LOG_OP_NON_SHORT_CIRCUIT.
8434 (arm_fastmul_tune):Likewise
8435 (arm_strongarm_tune): Likewise.
8436 (arm_xscale_tune): Likewise.
8437 (arm_9e_tune): Likewise.
8438 (arm_marvell_pj4_tune): Likewise.
8439 (arm_v6t2_tune): Likewise.
8440 (arm_cortex_tune): Likewise.
8441 (arm_cortex_a8_tune): Likewise.
8442 (arm_cortex_a7_tune): Likewise.
8443 (arm_cortex_a15_tune): Likewise.
8444 (arm_cortex_a53_tune): Likewise.
8445 (arm_cortex_a57_tune): Likewise.
8446 (arm_xgene1_tune): Likewise.
8447 (arm_cortex_a5_tune): Likewise.
8448 (arm_cortex_a9_tune): Likewise.
8449 (arm_cortex_a12_tune): Likewise.
8450 (arm_v7m_tune): Likewise.
8451 (arm_cortex_m7_tune): Likewise.
8452 (arm_v6m_tune): Likewise.
8453 (arm_fa726te_tune): Likewise.
8455 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
8457 * altivec.md: Delete UNSPEC_VMLADDUHM.
8458 (mulv4si3_p8): New pattern.
8459 (mulv4si3): Use it for POWER8.
8460 (mulv8hi3): Use vmladduhm with zero addend.
8461 (altivec_vmladduhm): Descriptive RTL.
8463 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
8465 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
8466 to use neon_move instead of mov_imm.
8467 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
8468 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
8470 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
8471 aarch64_float_const_zero_rtx_p check before TFmode check.
8472 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
8474 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
8475 code and attributes to match. Change condition from register_operand
8476 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
8477 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
8480 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
8483 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
8486 2015-06-14 Shiva Chen <shiva0217@gmail.com>
8488 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
8489 HOST_WIDE_INT parameter.
8491 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
8494 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
8495 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
8497 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8499 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
8501 * rtl.h (classify_insn): Declare.
8502 * emit-rtl.c (classify_insn): Move to...
8503 * rtl.c: ...here and add generator support.
8504 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
8505 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
8506 * genemit.c (gen_emit_seq): New function.
8507 (gen_expand, gen_split): Use it.
8509 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
8511 * tree.c (make_vector_stat): Fix comment to state that the
8512 function returns a VECTOR_CST.
8514 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
8516 * gensupport.h (add_implicit_parallel): Declare.
8517 * genrecog.c (add_implicit_parallel): Move to...
8518 * gensupport.c (add_implicit_parallel): ...here.
8519 (process_one_cond_exec): Use it.
8520 * genemit.c (gen_insn): Likewise.
8522 2015-06-13 Iain Sandoe <iain@codesourcery.com>
8525 * passes.c (rest_of_decl_compilation): Do not register globals for
8526 early debug if they are declared in built-ins.
8528 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
8530 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
8532 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8534 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
8536 (noce_try_cmove_arith): Likewise.
8537 (noce_get_alt_condition): Likewise.
8539 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8541 * common/config/i386/i386-common.c
8542 (OPTION_MASK_ISA_MWAITX_SET): New.
8543 (ix86_handle_option): Handle mwaitx.
8544 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
8545 (x86_64-*-*): Likewise.
8546 * config/i386/mwaitxintrin.h: New header.
8547 * config/i386/cpuid.h (bit_MWAITX): Define.
8548 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8550 * config/i386/i386.opt (mwaitx): New.
8551 * config/i386/i386-builtin-types.def
8552 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
8553 * config/i386/i386-c.c: Define __MWAITX__ if needed.
8554 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
8556 (ix86_option_override_internal): Handle new option.
8557 (processor_alias_table): Added PTA_MWAITX.
8558 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
8559 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
8560 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
8561 IX86_BUILTIN_MONITORX built-ins.
8562 * config/i386/i386.h (TARGET_MWAITX): New.
8563 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
8565 (mwaitx): New pattern.
8566 (monitorx_<mode>): New pattern.
8567 * config/i386/x86intrin.h: Include mwaitxintrin.h.
8568 * doc/extend.texi: Document monitorx and mwaitx builtins.
8569 * doc/invoke.texi: Document -mmwaitx option.
8571 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
8573 * emit-rtl.c (need_atomic_barrier_p): Mask model with
8574 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
8576 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
8578 * dbxout.c (xcoff_debug_hooks): Provide a function for
8579 register_main_translation_unit hook.
8581 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
8583 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
8584 variants cases from switch.
8585 (rs6000_post_atomic_barrier): Same.
8586 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
8587 (rs6000_expand_atomic_exchange): Same.
8588 (rs6000_expand_atomic_op): Same.
8589 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
8590 SYNC variants cases from switch.
8591 (atomic_load): Same.
8592 (atomic_store): Same.
8594 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
8596 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
8599 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
8602 * dwarf2out.c (check_die): Check for common duplicate attributes.
8603 (add_location_or_const_value_attribute): Do not add duplicate
8605 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
8607 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
8608 (gen_type_die_with_usage): Call check_die.
8609 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
8611 2015-06-11 Jason Merrill <jason@redhat.com>
8613 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
8616 2015-06-11 Marek Polacek <polacek@redhat.com>
8618 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
8620 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
8623 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
8624 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
8625 (*addx_extend_sp32): Fix pasto.
8626 (*subx_extend): Rename into...
8627 (*subx_extend_sp32): ...this.
8628 (*adddi3_extend_sp32): Add earlyclobber.
8629 (*subdi3_insn_sp32): Likewise.
8630 (*subdi3_extend_sp32): Likewise.
8631 (*and_not_di_sp32): Likewise.
8632 (*or_not_di_sp32): Likewise.
8633 (*xor_not_di_sp32): Likewise.
8634 (*negdi2_sp32): Likewise.
8635 (*one_cmpldi2_sp32): Likewise.
8637 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
8639 * debug.h (struct gcc_debug_hooks): Add a
8640 register_main_translation_unit hook.
8641 * debug.c (do_nothing_debug_hooks): Provide a function for this
8643 * dbxout.c (dbx_debug_hooks): Likewise.
8644 * sdbout.c (sdb_debug_hooks): Likewise.
8645 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8646 * dwarf2out.c (main_translation_unit): New global variable.
8647 (dwarf2out_register_main_translation_unit): New function
8648 implementing the new hook.
8649 (dwarf2_debug_hooks): Assign
8650 dwarf2out_register_main_translation_unit to this new hook.
8651 (dwarf2out_init): Associate any main translation unit to
8654 2015-06-11 Marek Polacek <polacek@redhat.com>
8656 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
8658 2015-06-11 Marek Polacek <polacek@redhat.com>
8660 * match.pd: Use single_use throughout.
8662 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8664 * config/arm/arm.c (arm_option_params_internal): When optimising
8665 for speed set max_insns_skipped when arm_restrict_it.
8667 2015-06-11 Christian Bruel <christian.bruel@st.com>
8670 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
8672 (arm_cpu_builtins): New function.
8673 (arm_pragma_target_parse): Call arm_cpu_builtins.
8674 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
8675 (arm_register_target_pragmas): Likewise.
8676 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
8677 Call arm_register_target_pragmas.
8678 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
8679 (arm_pragma_target_parse): Likewise.
8681 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
8683 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
8684 of the second operand.
8686 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
8689 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
8690 to prepare mask operand for AVX512 modes.
8692 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
8695 * doc/md.texi (Machine Constraints): Document that on the PowerPC
8696 if you use a constraint that targets a VSX register, you must use
8697 %x<n> in the template.
8699 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
8701 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
8702 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
8703 (define_insn "trap"): New definition.
8705 2015-06-10 Richard Biener <rguenther@suse.de>
8707 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
8709 (vect_supported_load_permutation_p): ... here. Handle
8710 supportable permutations in reductions.
8711 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
8712 for vectorizing strided group loads.
8714 2015-06-10 Jakub Jelinek <jakub@redhat.com>
8717 * config/i386/i386.c (ix86_split_long_move): For collisions
8718 involving direct tls segment refs, move the UNSPEC_TP possibly
8719 wrapped in ZERO_EXTEND out of the address for lea, to each of
8722 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8724 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
8725 dmb sy. Adjust tabs.
8727 2015-06-10 Tom de Vries <tom@codesourcery.com>
8729 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
8731 2015-06-10 Martin Liska <mliska@suse.cz>
8734 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
8735 all enum values in mem_alloc_origin.
8736 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
8738 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
8739 * bitmap.c (bitmap_register): Likewise.
8740 (dump_bitmap_statistics): Likewise.
8741 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
8742 (ggc_record_overhead): Likewise.
8743 * hash-map.h: Likewise.
8744 * hash-set.h: Likewise.
8745 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
8746 * hash-table.h: Likewise.
8747 * vec.c (vec_prefix::register_overhead): Likewise.
8748 (vec_prefix::release_overhead): Likewise.
8749 (dump_vec_loc_statistics): Likewise.
8751 2015-06-09 Christian Bruel <christian.bruel@st.com>
8754 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
8755 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
8756 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
8757 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
8758 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
8759 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
8760 (arm_valid_target_attribute_p): Likewise.
8761 (arm_set_current_function, arm_can_inline_p): Likewise.
8762 (arm_valid_target_attribute_rec): Likewise.
8763 (arm_previous_fndecl): New variable.
8764 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
8765 (TARGET_CAN_INLINE_P): Define.
8766 (arm_asm_trampoline_template): Emit mode.
8767 (arm_file_start): Don't set unified syntax.
8768 (arm_declare_function_name): Set unified syntax and mode.
8769 (arm_option_override): Init target_option_default_node.
8770 and target_option_current_node.
8771 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
8772 (*call_symbol): Likewise.
8773 * doc/extend.texi: Document ARM/Thumb target attribute.
8774 * doc/invoke.texi: Likewise.
8776 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8779 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8780 PR rtl-optimization/64164
8781 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8782 * tree-ssa-copyrename.c: Removed.
8783 * opts.c (default_options_table): Drop -ftree-copyrename. Add
8784 -ftree-coalesce-vars.
8785 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8786 * common.opt (ftree-copyrename): Ignore.
8787 (ftree-coalesce-inlined-vars): Likewise.
8788 * doc/invoke.texi: Remove the ignored options above.
8789 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8790 * tree-ssa-coalesce.h: ... here.
8791 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8792 headers required by it.
8793 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8794 across variables when flag_tree_coalesce_vars. Check register
8795 use and promoted modes to allow coalescing. Moved to
8796 tree-ssa-coalesce.c.
8797 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8798 with its member functions to tree-ssa-coalesce.c.
8799 (var_map_base_init): Likewise. Renamed to
8800 compute_samebase_partition_bases.
8801 (partition_view_normal): Drop want_bases parameter.
8802 (partition_view_bitmap): Likewise.
8803 * tree-ssa-live.h: Adjust declarations.
8804 * tree-ssa-coalesce.c: Include explow.h.
8805 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8806 default defs at the entry point.
8807 (dump_part_var_map): New.
8808 (compute_optimized_partition_bases): New, called by...
8809 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8810 of compute_samebase_partition_bases. Adjust.
8811 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8812 * cfgexpand.c (leader_merge): New.
8813 (get_rtl_for_parm_ssa_default_def): New.
8814 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8815 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8816 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
8817 redundant MEM attr setting.
8818 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
8820 (expand_one_stack_var): ... this. New wrapper to check and
8821 skip already expanded SSA partitions.
8822 (record_alignment_for_reg_var): New, factored out of...
8823 (expand_one_var): ... this.
8824 (expand_one_ssa_partition): New.
8825 (adjust_one_expanded_partition_var): New.
8826 (expand_one_register_var): Check and skip already expanded SSA
8828 (expand_used_vars): Don't create DECLs for anonymous SSA
8829 names. Expand all SSA partitions, then adjust all SSA names.
8830 (pass::execute): Replace the loops that set
8831 SA.partition_to_pseudo from partition leaders and cleared
8832 DECL_RTL for multi-location variables, and that which used to
8833 rename vars and set attrs, with one that clears DECL_RTL and
8834 checks that PARMs and RESULTs default_defs match DECL_RTL.
8835 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8836 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
8837 * explow.c (promote_ssa_mode): New.
8838 * explow.h (promote_ssa_mode): Declare.
8839 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8840 * function.c: Include cfgexpand.h.
8841 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8842 (use_register_for_parm_decl): Wrapper for the above to
8843 special-case the result_ptr.
8844 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8845 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8847 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8848 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
8849 (assign_parm_setup_block): Prefer SSA-assigned location.
8850 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
8851 if stack_parm is NULL.
8852 (assign_parm_setup_stack): Prefer SSA-assigned location.
8853 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
8854 rtl before testing for pointer bounds. Special-case result_ptr.
8855 (expand_function_start): Maybe reset DECL_RTL of result.
8856 Prefer SSA-assigned location for result and static chain.
8857 Factor out DECL_RESULT and SET_DECL_RTL.
8858 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8859 anonymous SSA names. Use promote_ssa_mode.
8860 (get_temp_reg): Likewise.
8861 (remove_ssa_form): Adjust.
8862 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8863 and get its reg_usage for reg invalidation.
8864 (compute_bb_dataflow): Pass it insn.
8865 (emit_notes_in_bb): Likewise.
8866 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
8867 fail assert on conversion between unsigned types.
8869 2015-06-09 Tom de Vries <tom@codesourcery.com>
8871 PR tree-optimization/65460
8872 * omp-low.c (expand_omp_target): Set parallelized_function on
8873 cgraph_node for child_fn.
8875 2015-06-09 Tom de Vries <tom@codesourcery.com>
8877 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
8878 parallelized_function before add_new_function.
8880 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
8882 * gcc-plugin.h: Move decls to plugin.h and include it.
8883 * plugin.h: Relocate decls from gcc-plugin.h
8884 * ggc-page.c: Include required header files.
8885 * passes.c: Likewise.
8886 * cgraphunit.c: Likewise.
8888 2015-06-09 Tom de Vries <tom@codesourcery.com>
8890 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
8892 2015-06-09 Jason Merrill <jason@redhat.com>
8895 * toplev.c (check_global_declaration): Don't warn about a clone.
8897 2015-06-09 Marek Polacek <polacek@redhat.com>
8899 PR tree-optimization/66299
8900 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
8901 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
8904 2015-06-09 Richard Biener <rguenther@suse.de>
8906 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
8907 (vect_analyze_slp_instance): Instead do not falsely drop
8910 2015-06-09 Richard Biener <rguenther@suse.de>
8913 * match.pd: Handle A % (unsigned)(1 << B).
8915 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
8917 * varasm.c (output_object_block_htab): Remove.
8918 (output_object_block_compare): New.
8919 (output_object_blocks): Sort named object_blocks before outputting
8922 2015-06-09 Richard Biener <rguenther@suse.de>
8924 PR tree-optimization/66419
8925 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
8926 consider GROUP_GAP when detecting a perfect subchain.
8928 2015-06-09 Nick Clifton <nickc@redhat.com>
8930 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
8931 place read only data in the .frodata section.
8933 2015-06-09 Shiva Chen <shiva0217@gmail.com>
8935 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
8936 (atomic_store<mode>): Likewise.
8938 2015-06-09 Richard Biener <rguenther@suse.de>
8940 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
8942 2015-06-09 Richard Biener <rguenther@suse.de>
8945 * tree-inline.c (insert_init_debug_bind): Unshare value.
8947 2015-06-09 Richard Biener <rguenther@suse.de>
8949 PR tree-optimization/66396
8950 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
8951 Rename virtual operands.
8953 2015-06-09 Tom de Vries <tom@codesourcery.com>
8955 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
8956 always return false.
8958 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8960 PR rtl-optimization/64164
8961 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8962 * tree-ssa-copyrename.c: Removed.
8963 * opts.c (default_options_table): Drop -ftree-copyrename. Add
8964 -ftree-coalesce-vars.
8965 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8966 * common.opt (ftree-copyrename): Ignore.
8967 (ftree-coalesce-inlined-vars): Likewise.
8968 * doc/invoke.texi: Remove the ignored options above.
8969 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8970 * tree-ssa-coalesce.h: ... here.
8971 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8972 headers required by it.
8973 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8974 across variables when flag_tree_coalesce_vars. Check register
8975 use and promoted modes to allow coalescing. Moved to
8976 tree-ssa-coalesce.c.
8977 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8978 with its member functions to tree-ssa-coalesce.c.
8979 (var_map_base_init): Likewise. Renamed to
8980 compute_samebase_partition_bases.
8981 (partition_view_normal): Drop want_bases parameter.
8982 (partition_view_bitmap): Likewise.
8983 * tree-ssa-live.h: Adjust declarations.
8984 * tree-ssa-coalesce.c: Include explow.h.
8985 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8986 default defs at the entry point.
8987 (dump_part_var_map): New.
8988 (compute_optimized_partition_bases): New, called by...
8989 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8990 of compute_samebase_partition_bases. Adjust.
8991 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8992 * cfgexpand.c (leader_merge): New.
8993 (get_rtl_for_parm_ssa_default_def): New.
8994 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8995 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8996 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
8997 redundant MEM attr setting.
8998 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9000 (expand_one_stack_var): ... this. New wrapper to check and
9001 skip already expanded SSA partitions.
9002 (record_alignment_for_reg_var): New, factored out of...
9003 (expand_one_var): ... this.
9004 (expand_one_ssa_partition): New.
9005 (adjust_one_expanded_partition_var): New.
9006 (expand_one_register_var): Check and skip already expanded SSA
9008 (expand_used_vars): Don't create DECLs for anonymous SSA
9009 names. Expand all SSA partitions, then adjust all SSA names.
9010 (pass::execute): Replace the loops that set
9011 SA.partition_to_pseudo from partition leaders and cleared
9012 DECL_RTL for multi-location variables, and that which used to
9013 rename vars and set attrs, with one that clears DECL_RTL and
9014 checks that PARMs and RESULTs default_defs match DECL_RTL.
9015 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9016 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9017 * explow.c (promote_ssa_mode): New.
9018 * explow.h (promote_ssa_mode): Declare.
9019 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9020 * function.c: Include cfgexpand.h.
9021 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9022 (use_register_for_parm_decl): Wrapper for the above to
9023 special-case the result_ptr.
9024 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9025 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9027 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9028 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9029 (assign_parm_setup_block): Prefer SSA-assigned location.
9030 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
9031 if stack_parm is NULL.
9032 (assign_parm_setup_stack): Prefer SSA-assigned location.
9033 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9034 rtl before testing for pointer bounds. Special-case result_ptr.
9035 (expand_function_start): Maybe reset DECL_RTL of result.
9036 Prefer SSA-assigned location for result and static chain.
9037 Factor out DECL_RESULT and SET_DECL_RTL.
9038 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9039 anonymous SSA names. Use promote_ssa_mode.
9040 (get_temp_reg): Likewise.
9041 (remove_ssa_form): Adjust.
9042 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9043 and get its reg_usage for reg invalidation.
9044 (compute_bb_dataflow): Pass it insn.
9045 (emit_notes_in_bb): Likewise.
9046 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
9047 fail assert on conversion between unsigned types.
9049 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
9052 * tree-inline.c (reset_debug_binding): New.
9053 (reset_debug_bindings): Likewise.
9054 (expand_call_inline): Call it.
9056 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9058 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
9061 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9063 * lto-streamer-out.c (lto_output_location): Stream
9064 reserved locations correctly.
9065 * lto-streamer-in.c (lto_output_location): Likewise.
9067 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
9069 * coretypes.h: Include hash-table.h and hash-set.h for host files.
9070 * ggc.h: Don't include statistics.h>
9071 * hash-map.h: Remove all includes.
9072 * hash-set.h: Likewise.
9073 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
9074 the include list. Remove <new>.
9075 * inchash.h: Remove all includes.
9076 * mem-stats.h: Likewise.
9077 * vec.h: No special processing for generators or ggc.
9078 * alias.c : Adjust include files.
9079 * alloc-pool.c : Likewise.
9080 * alloc-pool.h : Likewise.
9081 * asan.c : Likewise.
9082 * attribs.c : Likewise.
9083 * auto-inc-dec.c : Likewise.
9084 * auto-profile.c : Likewise.
9085 * bb-reorder.c : Likewise.
9086 * bitmap.c : Likewise.
9087 * bitmap.h : Likewise.
9088 * bt-load.c : Likewise.
9089 * builtins.c : Likewise.
9090 * caller-save.c : Likewise.
9091 * calls.c : Likewise.
9092 * ccmp.c : Likewise.
9094 * cfganal.c : Likewise.
9095 * cfgbuild.c : Likewise.
9096 * cfgcleanup.c : Likewise.
9097 * cfgexpand.c : Likewise.
9098 * cfghooks.c : Likewise.
9099 * cfgloop.c : Likewise.
9100 * cfgloop.h : Likewise.
9101 * cfgloopanal.c : Likewise.
9102 * cfgloopmanip.c : Likewise.
9103 * cfgrtl.c : Likewise.
9104 * cgraph.c : Likewise.
9105 * cgraphbuild.c : Likewise.
9106 * cgraphclones.c : Likewise.
9107 * cgraphunit.c : Likewise.
9108 * cilk-common.c : Likewise.
9109 * combine-stack-adj.c : Likewise.
9110 * combine.c : Likewise.
9111 * compare-elim.c : Likewise.
9112 * context.c : Likewise.
9113 * convert.c : Likewise.
9114 * coverage.c : Likewise.
9115 * cppbuiltin.c : Likewise.
9116 * cprop.c : Likewise.
9118 * cselib.c : Likewise.
9119 * data-streamer-in.c : Likewise.
9120 * data-streamer-out.c : Likewise.
9121 * data-streamer.c : Likewise.
9122 * data-streamer.h : Likewise.
9123 * dbxout.c : Likewise.
9126 * debug.c : Likewise.
9127 * df-core.c : Likewise.
9128 * df-problems.c : Likewise.
9129 * df-scan.c : Likewise.
9132 * dojump.c : Likewise.
9133 * dominance.c : Likewise.
9134 * domwalk.c : Likewise.
9135 * double-int.c : Likewise.
9137 * dumpfile.c : Likewise.
9138 * dwarf2asm.c : Likewise.
9139 * dwarf2cfi.c : Likewise.
9140 * dwarf2out.c : Likewise.
9141 * emit-rtl.c : Likewise.
9142 * et-forest.c : Likewise.
9143 * except.c : Likewise.
9144 * except.h : Likewise.
9145 * explow.c : Likewise.
9146 * expmed.c : Likewise.
9147 * expr.c : Likewise.
9148 * final.c : Likewise.
9149 * fixed-value.c : Likewise.
9150 * fold-const.c : Likewise.
9151 * function.c : Likewise.
9152 * fwprop.c : Likewise.
9153 * gcc-plugin.h : Likewise.
9155 * gcse-common.c : Likewise.
9156 * gcse.c : Likewise.
9157 * genattrtab.c : Likewise.
9158 * genautomata.c : Likewise.
9159 * genconditions.c : Likewise.
9160 * genemit.c : Likewise.
9161 * generic-match-head.c : Likewise.
9162 * genextract.c : Likewise.
9163 * gengtype-state.c : Likewise.
9164 * gengtype.c : Likewise.
9165 * genhooks.c : Likewise.
9166 * genmatch.c : Likewise.
9167 * genmodes.c : Likewise.
9168 * genrecog.c : Likewise.
9169 * gensupport.c : Likewise.
9170 * ggc-common.c : Likewise.
9171 * ggc-internal.h : Likewise.
9172 * ggc-none.c : Likewise.
9173 * ggc-page.c : Likewise.
9174 * gimple-builder.c : Likewise.
9175 * gimple-expr.c : Likewise.
9176 * gimple-fold.c : Likewise.
9177 * gimple-iterator.c : Likewise.
9178 * gimple-low.c : Likewise.
9179 * gimple-match-head.c : Likewise.
9180 * gimple-pretty-print.c : Likewise.
9181 * gimple-ssa-isolate-paths.c : Likewise.
9182 * gimple-ssa-strength-reduction.c : Likewise.
9183 * gimple-ssa.h : Likewise.
9184 * gimple-streamer-in.c : Likewise.
9185 * gimple-streamer-out.c : Likewise.
9186 * gimple-streamer.h : Likewise.
9187 * gimple-walk.c : Likewise.
9188 * gimple.c : Likewise.
9189 * gimplify-me.c : Likewise.
9190 * gimplify.c : Likewise.
9191 * godump.c : Likewise.
9192 * graph.c : Likewise.
9193 * graphds.c : Likewise.
9194 * graphite-blocking.c : Likewise.
9195 * graphite-dependences.c : Likewise.
9196 * graphite-interchange.c : Likewise.
9197 * graphite-isl-ast-to-gimple.c : Likewise.
9198 * graphite-optimize-isl.c : Likewise.
9199 * graphite-poly.c : Likewise.
9200 * graphite-scop-detection.c : Likewise.
9201 * graphite-sese-to-poly.c : Likewise.
9202 * graphite.c : Likewise.
9203 * haifa-sched.c : Likewise.
9204 * hard-reg-set.h : Likewise.
9205 * hw-doloop.c : Likewise.
9206 * ifcvt.c : Likewise.
9207 * inchash.c : Likewise.
9208 * incpath.c : Likewise.
9209 * init-regs.c : Likewise.
9210 * input.c : Likewise.
9211 * internal-fn.c : Likewise.
9212 * ipa-chkp.c : Likewise.
9213 * ipa-comdats.c : Likewise.
9214 * ipa-cp.c : Likewise.
9215 * ipa-devirt.c : Likewise.
9216 * ipa-icf-gimple.c : Likewise.
9217 * ipa-icf.c : Likewise.
9218 * ipa-inline-analysis.c : Likewise.
9219 * ipa-inline-transform.c : Likewise.
9220 * ipa-inline.c : Likewise.
9221 * ipa-polymorphic-call.c : Likewise.
9222 * ipa-profile.c : Likewise.
9223 * ipa-prop.c : Likewise.
9224 * ipa-pure-const.c : Likewise.
9225 * ipa-ref.c : Likewise.
9226 * ipa-reference.c : Likewise.
9227 * ipa-split.c : Likewise.
9228 * ipa-utils.c : Likewise.
9229 * ipa-visibility.c : Likewise.
9231 * ira-build.c : Likewise.
9232 * ira-color.c : Likewise.
9233 * ira-conflicts.c : Likewise.
9234 * ira-costs.c : Likewise.
9235 * ira-emit.c : Likewise.
9236 * ira-lives.c : Likewise.
9238 * jump.c : Likewise.
9239 * langhooks.c : Likewise.
9241 * libfuncs.h : Likewise.
9242 * lists.c : Likewise.
9243 * loop-doloop.c : Likewise.
9244 * loop-init.c : Likewise.
9245 * loop-invariant.c : Likewise.
9246 * loop-iv.c : Likewise.
9247 * loop-unroll.c : Likewise.
9248 * lower-subreg.c : Likewise.
9249 * lra-assigns.c : Likewise.
9250 * lra-coalesce.c : Likewise.
9251 * lra-constraints.c : Likewise.
9252 * lra-eliminations.c : Likewise.
9253 * lra-lives.c : Likewise.
9254 * lra-remat.c : Likewise.
9255 * lra-spills.c : Likewise.
9257 * lto-cgraph.c : Likewise.
9258 * lto-compress.c : Likewise.
9259 * lto-opts.c : Likewise.
9260 * lto-section-in.c : Likewise.
9261 * lto-section-out.c : Likewise.
9262 * lto-streamer-in.c : Likewise.
9263 * lto-streamer-out.c : Likewise.
9264 * lto-streamer.c : Likewise.
9265 * lto-streamer.h : Likewise.
9267 * mode-switching.c : Likewise.
9268 * modulo-sched.c : Likewise.
9269 * omega.c : Likewise.
9270 * omp-low.c : Likewise.
9271 * optabs.c : Likewise.
9272 * opts-global.c : Likewise.
9273 * opts.h : Likewise.
9274 * passes.c : Likewise.
9275 * plugin.c : Likewise.
9276 * postreload-gcse.c : Likewise.
9277 * postreload.c : Likewise.
9278 * predict.c : Likewise.
9279 * print-rtl.c : Likewise.
9280 * print-tree.c : Likewise.
9281 * profile.c : Likewise.
9282 * read-md.c : Likewise.
9283 * read-md.h : Likewise.
9284 * read-rtl.c : Likewise.
9285 * real.c : Likewise.
9286 * realmpfr.c : Likewise.
9287 * recog.c : Likewise.
9289 * reg-stack.c : Likewise.
9290 * regcprop.c : Likewise.
9291 * reginfo.c : Likewise.
9292 * regrename.c : Likewise.
9293 * regstat.c : Likewise.
9294 * reload.c : Likewise.
9295 * reload1.c : Likewise.
9296 * reorg.c : Likewise.
9297 * resource.c : Likewise.
9298 * rtl-chkp.c : Likewise.
9301 * rtlanal.c : Likewise.
9302 * rtlhash.c : Likewise.
9303 * rtlhash.h : Likewise.
9304 * rtlhooks.c : Likewise.
9305 * sanopt.c : Likewise.
9306 * sched-deps.c : Likewise.
9307 * sched-ebb.c : Likewise.
9308 * sched-rgn.c : Likewise.
9309 * sched-vis.c : Likewise.
9310 * sdbout.c : Likewise.
9311 * sel-sched-dump.c : Likewise.
9312 * sel-sched-ir.c : Likewise.
9313 * sel-sched-ir.h : Likewise.
9314 * sel-sched.c : Likewise.
9315 * sese.c : Likewise.
9316 * shrink-wrap.c : Likewise.
9317 * shrink-wrap.h : Likewise.
9318 * simplify-rtx.c : Likewise.
9319 * stack-ptr-mod.c : Likewise.
9320 * statistics.c : Likewise.
9321 * stmt.c : Likewise.
9322 * stor-layout.c : Likewise.
9323 * store-motion.c : Likewise.
9324 * stringpool.c : Likewise.
9325 * symtab.c : Likewise.
9326 * target-globals.c : Likewise.
9327 * targhooks.c : Likewise.
9328 * tlink.c : Likewise.
9329 * toplev.c : Likewise.
9330 * tracer.c : Likewise.
9331 * trans-mem.c : Likewise.
9332 * tree-affine.c : Likewise.
9333 * tree-affine.h : Likewise.
9334 * tree-browser.c : Likewise.
9335 * tree-call-cdce.c : Likewise.
9336 * tree-cfg.c : Likewise.
9337 * tree-cfgcleanup.c : Likewise.
9338 * tree-chkp-opt.c : Likewise.
9339 * tree-chkp.c : Likewise.
9340 * tree-chrec.c : Likewise.
9341 * tree-complex.c : Likewise.
9342 * tree-data-ref.c : Likewise.
9343 * tree-dfa.c : Likewise.
9344 * tree-diagnostic.c : Likewise.
9345 * tree-dump.c : Likewise.
9346 * tree-eh.c : Likewise.
9347 * tree-eh.h : Likewise.
9348 * tree-emutls.c : Likewise.
9349 * tree-hasher.h : Likewise.
9350 * tree-if-conv.c : Likewise.
9351 * tree-inline.c : Likewise.
9352 * tree-inline.h : Likewise.
9353 * tree-into-ssa.c : Likewise.
9354 * tree-iterator.c : Likewise.
9355 * tree-loop-distribution.c : Likewise.
9356 * tree-nested.c : Likewise.
9357 * tree-nrv.c : Likewise.
9358 * tree-object-size.c : Likewise.
9359 * tree-outof-ssa.c : Likewise.
9360 * tree-parloops.c : Likewise.
9361 * tree-phinodes.c : Likewise.
9362 * tree-predcom.c : Likewise.
9363 * tree-pretty-print.c : Likewise.
9364 * tree-profile.c : Likewise.
9365 * tree-scalar-evolution.c : Likewise.
9366 * tree-sra.c : Likewise.
9367 * tree-ssa-address.c : Likewise.
9368 * tree-ssa-alias.c : Likewise.
9369 * tree-ssa-ccp.c : Likewise.
9370 * tree-ssa-coalesce.c : Likewise.
9371 * tree-ssa-copy.c : Likewise.
9372 * tree-ssa-copyrename.c : Likewise.
9373 * tree-ssa-dce.c : Likewise.
9374 * tree-ssa-dom.c : Likewise.
9375 * tree-ssa-dse.c : Likewise.
9376 * tree-ssa-forwprop.c : Likewise.
9377 * tree-ssa-ifcombine.c : Likewise.
9378 * tree-ssa-live.c : Likewise.
9379 * tree-ssa-loop-ch.c : Likewise.
9380 * tree-ssa-loop-im.c : Likewise.
9381 * tree-ssa-loop-ivcanon.c : Likewise.
9382 * tree-ssa-loop-ivopts.c : Likewise.
9383 * tree-ssa-loop-manip.c : Likewise.
9384 * tree-ssa-loop-niter.c : Likewise.
9385 * tree-ssa-loop-prefetch.c : Likewise.
9386 * tree-ssa-loop-unswitch.c : Likewise.
9387 * tree-ssa-loop.c : Likewise.
9388 * tree-ssa-math-opts.c : Likewise.
9389 * tree-ssa-operands.c : Likewise.
9390 * tree-ssa-phiopt.c : Likewise.
9391 * tree-ssa-phiprop.c : Likewise.
9392 * tree-ssa-pre.c : Likewise.
9393 * tree-ssa-propagate.c : Likewise.
9394 * tree-ssa-reassoc.c : Likewise.
9395 * tree-ssa-sccvn.c : Likewise.
9396 * tree-ssa-scopedtables.c : Likewise.
9397 * tree-ssa-sink.c : Likewise.
9398 * tree-ssa-strlen.c : Likewise.
9399 * tree-ssa-structalias.c : Likewise.
9400 * tree-ssa-tail-merge.c : Likewise.
9401 * tree-ssa-ter.c : Likewise.
9402 * tree-ssa-threadedge.c : Likewise.
9403 * tree-ssa-threadupdate.c : Likewise.
9404 * tree-ssa-uncprop.c : Likewise.
9405 * tree-ssa-uninit.c : Likewise.
9406 * tree-ssa.c : Likewise.
9407 * tree-ssanames.c : Likewise.
9408 * tree-stdarg.c : Likewise.
9409 * tree-streamer-in.c : Likewise.
9410 * tree-streamer-out.c : Likewise.
9411 * tree-streamer.c : Likewise.
9412 * tree-streamer.h : Likewise.
9413 * tree-switch-conversion.c : Likewise.
9414 * tree-tailcall.c : Likewise.
9415 * tree-vect-data-refs.c : Likewise.
9416 * tree-vect-generic.c : Likewise.
9417 * tree-vect-loop-manip.c : Likewise.
9418 * tree-vect-loop.c : Likewise.
9419 * tree-vect-patterns.c : Likewise.
9420 * tree-vect-slp.c : Likewise.
9421 * tree-vect-stmts.c : Likewise.
9422 * tree-vectorizer.c : Likewise.
9423 * tree-vectorizer.h : Likewise.
9424 * tree-vrp.c : Likewise.
9425 * tree.c : Likewise.
9426 * tsan.c : Likewise.
9427 * ubsan.c : Likewise.
9428 * valtrack.c : Likewise.
9429 * valtrack.h : Likewise.
9430 * value-prof.c : Likewise.
9431 * var-tracking.c : Likewise.
9432 * varasm.c : Likewise.
9433 * varpool.c : Likewise.
9435 * vmsdbgout.c : Likewise.
9436 * vtable-verify.c : Likewise.
9437 * vtable-verify.h : Likewise.
9439 * wide-int.cc : Likewise.
9440 * xcoffout.c : Likewise.
9441 * config/aarch64/aarch64-builtins.c : Likewise.
9442 * config/aarch64/aarch64.c : Likewise.
9443 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
9444 * config/alpha/alpha.c : Likewise.
9445 * config/arc/arc.c : Likewise.
9446 * config/arm/aarch-common.c : Likewise.
9447 * config/arm/arm-builtins.c : Likewise.
9448 * config/arm/arm-c.c : Likewise.
9449 * config/arm/arm.c : Likewise.
9450 * config/avr/avr-c.c : Likewise.
9451 * config/avr/avr-log.c : Likewise.
9452 * config/avr/avr.c : Likewise.
9453 * config/bfin/bfin.c : Likewise.
9454 * config/c6x/c6x.c : Likewise.
9455 * config/cr16/cr16.c : Likewise.
9456 * config/cris/cris.c : Likewise.
9457 * config/darwin-c.c : Likewise.
9458 * config/darwin.c : Likewise.
9459 * config/default-c.c : Likewise.
9460 * config/epiphany/epiphany.c : Likewise.
9461 * config/epiphany/mode-switch-use.c : Likewise.
9462 * config/epiphany/resolve-sw-modes.c : Likewise.
9463 * config/fr30/fr30.c : Likewise.
9464 * config/frv/frv.c : Likewise.
9465 * config/ft32/ft32.c : Likewise.
9466 * config/glibc-c.c : Likewise.
9467 * config/h8300/h8300.c : Likewise.
9468 * config/i386/i386-c.c : Likewise.
9469 * config/i386/i386.c : Likewise.
9470 * config/i386/msformat-c.c : Likewise.
9471 * config/i386/winnt-cxx.c : Likewise.
9472 * config/i386/winnt-stubs.c : Likewise.
9473 * config/i386/winnt.c : Likewise.
9474 * config/ia64/ia64-c.c : Likewise.
9475 * config/ia64/ia64.c : Likewise.
9476 * config/iq2000/iq2000.c : Likewise.
9477 * config/lm32/lm32.c : Likewise.
9478 * config/m32c/m32c-pragma.c : Likewise.
9479 * config/m32c/m32c.c : Likewise.
9480 * config/m32r/m32r.c : Likewise.
9481 * config/m68k/m68k.c : Likewise.
9482 * config/mcore/mcore.c : Likewise.
9483 * config/mep/mep-pragma.c : Likewise.
9484 * config/mep/mep.c : Likewise.
9485 * config/microblaze/microblaze-c.c : Likewise.
9486 * config/microblaze/microblaze.c : Likewise.
9487 * config/mips/mips.c : Likewise.
9488 * config/mmix/mmix.c : Likewise.
9489 * config/mn10300/mn10300.c : Likewise.
9490 * config/moxie/moxie.c : Likewise.
9491 * config/msp430/msp430-c.c : Likewise.
9492 * config/msp430/msp430.c : Likewise.
9493 * config/nds32/nds32-cost.c : Likewise.
9494 * config/nds32/nds32-fp-as-gp.c : Likewise.
9495 * config/nds32/nds32-intrinsic.c : Likewise.
9496 * config/nds32/nds32-isr.c : Likewise.
9497 * config/nds32/nds32-md-auxiliary.c : Likewise.
9498 * config/nds32/nds32-memory-manipulation.c : Likewise.
9499 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
9500 * config/nds32/nds32-predicates.c : Likewise.
9501 * config/nds32/nds32.c : Likewise.
9502 * config/nios2/nios2.c : Likewise.
9503 * config/nvptx/nvptx.c : Likewise.
9504 * config/pa/pa.c : Likewise.
9505 * config/pdp11/pdp11.c : Likewise.
9506 * config/rl78/rl78-c.c : Likewise.
9507 * config/rl78/rl78.c : Likewise.
9508 * config/rs6000/rs6000-c.c : Likewise.
9509 * config/rs6000/rs6000.c : Likewise.
9510 * config/rx/rx.c : Likewise.
9511 * config/s390/s390-c.c : Likewise.
9512 * config/s390/s390.c : Likewise.
9513 * config/sh/sh-c.c : Likewise.
9514 * config/sh/sh-mem.cc : Likewise.
9515 * config/sh/sh.c : Likewise.
9516 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
9517 * config/sh/sh_treg_combine.cc : Likewise.
9518 * config/sol2-c.c : Likewise.
9519 * config/sol2-cxx.c : Likewise.
9520 * config/sol2-stubs.c : Likewise.
9521 * config/sol2.c : Likewise.
9522 * config/sparc/sparc-c.c : Likewise.
9523 * config/sparc/sparc.c : Likewise.
9524 * config/spu/spu-c.c : Likewise.
9525 * config/spu/spu.c : Likewise.
9526 * config/stormy16/stormy16.c : Likewise.
9527 * config/tilegx/mul-tables.c : Likewise.
9528 * config/tilegx/tilegx-c.c : Likewise.
9529 * config/tilegx/tilegx.c : Likewise.
9530 * config/tilepro/mul-tables.c : Likewise.
9531 * config/tilepro/tilepro-c.c : Likewise.
9532 * config/tilepro/tilepro.c : Likewise.
9533 * config/v850/v850-c.c : Likewise.
9534 * config/v850/v850.c : Likewise.
9535 * config/vax/vax.c : Likewise.
9536 * config/visium/visium.c : Likewise.
9537 * config/vms/vms-c.c : Likewise.
9538 * config/vms/vms.c : Likewise.
9539 * config/vxworks.c : Likewise.
9540 * config/winnt-c.c : Likewise.
9541 * config/xtensa/xtensa.c : Likewise.
9543 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9546 * ipa-utils.h (warn_types_mismatch): Update prototype.
9547 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
9549 (type_mismatch_p): New function.
9550 (warn_types_mismatch): Reorg to work better on non-C++ types.
9551 (odr_types_equivalent_p): Add loc1/loc2 parameters.
9552 (add_type_duplicate): Update.
9554 2015-06-08 Tom de Vries <tom@codesourcery.com>
9556 PR rtl-optimization/66444
9557 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
9560 2015-06-08 Richard Biener <rguenther@suse.de>
9562 PR tree-optimization/66422
9563 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
9564 block after inserted gcc_unreachable.
9566 2015-06-08 Nick Clifton <nickc@redhat.com>
9568 * config/rx/rx.c (rx_function_value): Do not promote vector types.
9569 (rx_promote_function_mode): Likewise.
9570 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
9572 2015-06-08 Jakub Jelinek <jakub@redhat.com>
9574 * genattrtab.c (insn_alternatives): Change type from int *
9576 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
9577 (get_attr_value): Change type of num_alt to uint64_t.
9578 (compute_alternative_mask): Change return type from
9579 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
9580 (make_alternative_compare, mk_attr_alt): Change argument type
9581 from int to uint64_t.
9582 (simplify_test_exp): Change type of i from int to uint64_t.
9583 Shift ((uint64_t) 1) instead of 1 up.
9584 (main): Adjust oballocvec first argument from int to uint64_t.
9585 Shift ((uint64_t) 1) instead of 1 up.
9587 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9590 * gdbhooks.py: Import sys.
9591 (intptr): New function. Replace int(...) by intptr(...).
9593 2015-06-08 Richard Biener <rguenther@suse.de>
9595 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
9596 adjustment for gaps at the end of a SLP load group properly.
9597 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
9598 all permutations we can generate.
9599 (vect_transform_slp_perm_load): Use the correct group-size.
9601 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
9603 * genmatch.c (expr::gen_transform): For conditions, guess the type
9604 from the second operand.
9606 2015-06-08 Tom de Vries <tom@codesourcery.com>
9608 PR tree-optimization/66442
9609 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
9610 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
9611 if the loop latch is not a singleton. Use
9612 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
9614 2015-06-08 Marek Polacek <polacek@redhat.com>
9617 * toplev.c (check_global_declaration): Don't warn about artificial
9620 2015-06-08 Tom de Vries <tom@codesourcery.com>
9622 PR tree-optimization/66436
9623 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
9625 * gimplify.c: Add tree-dump.h include.
9626 (gimplify_function_tree): Dump function to gimple dump file.
9627 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
9630 2015-06-08 Tom de Vries <tom@codesourcery.com>
9632 PR tree-optimization/66435
9633 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
9636 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
9638 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
9639 of ptr_type_node to not be ptr_to_node.
9640 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
9641 TREE_TYPE of pointers.
9642 * gimple-expr.c (useless_type_conversion): Reorder the check for
9643 function pointers and TYPE_CANONICAL.
9645 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
9648 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
9649 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
9650 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
9652 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
9653 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
9654 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
9655 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
9656 and non iso if unix2003.
9658 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
9660 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
9662 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
9664 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
9665 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
9666 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
9667 except.c, final.c, function.c, gcse-common.c, genemit.c,
9668 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
9669 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
9670 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
9671 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
9674 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
9676 * combine.c (combine_split_insns): Remove cast.
9677 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
9678 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
9679 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
9680 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
9681 * genemit.c (gen_split): Change return type of generated functions to
9683 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
9684 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
9685 gen_peephole2_* functions.
9686 (print_subroutine, main): Likewise.
9687 * recog.c (peephole2_optimize): Remove cast.
9688 (peep2_next_insn): Promote return type to rtx_insn.
9689 * recog.h (peep2_next_insn): Fix prototype.
9690 * rtl.h (try_split, split_insns): Likewise.
9692 2015-06-06 DJ Delorie <dj@redhat.com>
9694 * config/msp430/msp430.c (msp430_asm_integer): Support addition
9695 and subtraction too.
9697 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
9700 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
9701 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
9702 instead of Snd. Disparage Sid/z alternative with '^'.
9704 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
9706 * dwarf2out.c: Remove deferred_locations*.
9707 (dwarf2_debug_hooks): Add early_finish hook.
9708 Remove global_decl hook.
9709 Add early_global_decl and late_global_decl hook.
9710 New global early_dwarf.
9711 New structure set_early_dwarf.
9712 (output_die): Indicate whether a DIE was generated early
9713 when generating assembly with -dA.
9714 (struct limbo_die_struct): Document created_for field.
9715 Remove file_table_last_lookup.
9716 (remove_AT): Return TRUE if successful.
9717 (remove_child_TAG): Clear die_parent.
9718 (reparent_child): New function abstracted from...
9719 (splice_child_die): ...here.
9720 (new_die): ICE if a DIE ends up in limbo too late.
9722 (defer_location): Remove.
9723 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
9724 (fill_variable_array_bounds): New.
9725 (decl_start_label): Call fill_variable_array_bounds.
9726 (gen_formal_parameter_die): Rewrite to reuse previously generated
9728 (gen_subprogram_die): Same.
9729 (gen_variable_die): Same.
9730 (gen_const_die): Same.
9731 (gen_label_die): Same.
9732 (gen_lexical_block_die): Same.
9733 (decl_will_get_specification_p): New.
9734 (local_function_static): New.
9735 (gen_struct_or_union_type_die): Fill in variable-length fields.
9736 (gen_typedef_die): Fill in variable-length typedefs.
9737 (gen_tagged_type_die): Gracefully return on error_mark_node.
9739 (gen_type_die_with_usage): Handle variable-length types.
9740 Remove duplicate code for ARRAY_TYPE case.
9741 (process_scope_var): Only process imported modules during early
9743 (dwarf2out_early_global_decl): New.
9744 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
9745 (dwarf2out_type_decl): Set early_dwarf while calling
9747 (dwarf2out_decl): Verify that we did not recreate a previously
9749 Do not return on DECL_EXTERNALs in VAR_DECLs.
9750 Abstract some code to local_function_static.
9751 (lookup_filename): Remove use of file_table_last_lookup.
9752 Gracefully exit on missing file_name.
9753 (dwarf2out_finish): Verify limbo list.
9754 Remove deferred_locations_list use.
9755 Move deferred_asm_name and limbo flushing to...
9756 (dwarf2out_early_finish): ...here. New.
9757 (dwarf2out_c_finalize): Remove set of deferred_location_list,
9758 deferred_asm_name, and file_table_last_lookup.
9759 * cgraph.h (referred_to_p): Add default argument.
9760 * cgraphunit.c (referred_to_p): Add and handle include_self
9762 (analyze_functions): Add first_time argument.
9763 Call check_global_declaration for all symbols.
9764 Call late_global_decl for nodes for moribund nodes.
9765 (finalize_compilation_unit): Add new argument to
9767 Call early_global_decl for functions.
9768 Call early_finish debug hook.
9769 * dbxout.c (dbxout_early_global_decl): New.
9770 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
9771 (dbx_debug_hooks): Add new hooks.
9772 (xcoff_debug_hooks): Same.
9773 * debug.c (do_nothing_debug_hooks): Add early_finish field.
9774 Add early and late debug hooks.
9775 Remove global_decl hook.
9776 * debug.h (struct gcc_debug_hooks): Add early_finish,
9777 early_global_decl, and late_global_decl fields.
9778 Remove global_decl field.
9779 Document gcc_debug_hooks.
9780 * gengtype.c (output_typename): Remove.
9781 * godump.c (go_early_global_decl): New.
9782 (go_late_global_decl): New.
9783 (go_global_decl): Remove.
9784 (dump_go_spec_init): Remove global_decl. Add
9785 {early,late}_global_decl.
9786 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
9787 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
9788 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
9789 (write_global_declarations): Remove.
9790 (global_decl_processing): New.
9791 * langhooks.h (struct lang_hooks_for_decls): Remove
9792 final_write_globals field.
9793 Add post_compilation_parsing_cleanups field.
9794 * passes.c (rest_of_decl_compilation): Call early_global_decl.
9795 * sdbout.c: Add early and late_global_decl hooks. Remove
9796 sdbout_global_decl hook.
9797 Add early_finish field for sdb_debug_hooks.
9798 (sdbout_global_decl): Remove.
9799 (sdbout_early_global_decl): New.
9800 (sdbout_late_global_decl): New.
9801 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
9802 * toplev.c (check_global_declaration): Rename from
9803 check_global_declaration_1.
9804 Adapt to use symtab infrastructure.
9805 (check_global_declarations): Remove.
9806 (emit_debug_global_declarations): Remove.
9807 (compile_file): Remove call to final_write_globals langhook.
9808 Run the actual compilation process.
9809 Perform any post compilation parser cleanups.
9810 Generate late debug info.
9811 * toplev.h (check_global_declaration): New.
9812 (check_global_declaration_1): Remove.
9813 (check_global_declarations): Remove.
9814 (write_global_declarations): Remove.
9815 (emit_debug_global_declarations): Remove.
9816 (global_decl_processing): New.
9817 * tree-core.h (struct tree_block): Add DIE field.
9818 * tree.h (BLOCK_DIE): New.
9819 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
9821 (vmsdbgout_early_global_decl): New.
9822 (vmsdbgout_late_global_decl): New.
9823 Add early_finish debug hook field to vmsdbg_debug_hooks.
9824 Remove vmsdbgout_decl to vmsdbgout_function_decl.
9825 Add early and late_global_decl debug hooks.
9827 2015-06-05 Julian Brown <julian@codesourcery.com>
9828 Sandra Loosemore <sandra@codesourcery.com>
9830 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
9831 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
9832 to print-sysroot-suffix.sh script.
9834 2015-06-05 Tom de Vries <tom@codesourcery.com>
9836 merge from gomp4 branch:
9837 2015-05-28 Tom de Vries <tom@codesourcery.com>
9839 PR tree-optimization/65443
9840 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
9841 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
9842 (try_transform_to_exit_first_loop_alt): New function.
9843 (transform_to_exit_first_loop): Use
9844 try_transform_to_exit_first_loop_alt.
9846 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
9848 * builtins.c (expand_builtin_atomic_compare_exchange): Call
9849 emit_cmp_and_jump_insns with the mode of target.
9851 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9853 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
9855 2015-06-04 DJ Delorie <dj@redhat.com>
9857 * config/msp430/msp430.md (movsi_s): New. Special case for
9858 storing a 20-bit symbol into a 32-bit register.
9859 * config/msp430/msp430.c (msp430_subreg): Add support for it.
9860 * config/msp430/predicates.md (msp430_symbol_operand): New.
9862 2015-06-04 Sriraman Tallam <tmsriram@google.com>
9864 * c-family/c-common.c (noplt): New attribute.
9865 (handle_noplt_attribute): New handler.
9866 * calls.c (prepare_call_address): Check for noplt
9868 * config/i386/i386.c (ix86_expand_call): Check
9869 for noplt attribute.
9870 (ix86_nopic_noplt_attribute_p): New function.
9871 (ix86_output_call_insn): Output indirect call for non-pic
9873 * doc/extend.texi (noplt): Document new attribute.
9874 * doc/invoke.texi: Document new attribute.
9876 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
9878 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
9879 real.h, and fixed-value.h when included in host source files.
9880 * double-int.h: Remove redundant #includes listed above.
9881 * fixed-value.h: Likewise.
9883 * wide-int.h: Likewise.
9884 * inchash.h: Likewise.
9885 * rtl.h: Add some include files When included from a generator file.
9886 * target.h: Remove wide-int.h and insn-modes.h from the include list.
9887 * internal-fn.h: Don't include coretypes.h.
9888 * alias.c: Adjust includes for restructured coretypes.h.
9890 * attribs.c: Likewise.
9891 * auto-inc-dec.c: Likewise.
9892 * auto-profile.c: Likewise.
9893 * bb-reorder.c: Likewise.
9894 * bt-load.c: Likewise.
9895 * builtins.c: Likewise.
9896 * caller-save.c: Likewise.
9897 * calls.c: Likewise.
9900 * cfganal.c: Likewise.
9901 * cfgbuild.c: Likewise.
9902 * cfgcleanup.c: Likewise.
9903 * cfgexpand.c: Likewise.
9904 * cfghooks.c: Likewise.
9905 * cfgloop.c: Likewise.
9906 * cfgloop.h: Likewise.
9907 * cfgloopanal.c: Likewise.
9908 * cfgloopmanip.c: Likewise.
9909 * cfgrtl.c: Likewise.
9910 * cgraph.c: Likewise.
9911 * cgraphbuild.c: Likewise.
9912 * cgraphclones.c: Likewise.
9913 * cgraphunit.c: Likewise.
9914 * cilk-common.c: Likewise.
9915 * combine-stack-adj.c: Likewise.
9916 * combine.c: Likewise.
9917 * compare-elim.c: Likewise.
9918 * convert.c: Likewise.
9919 * coverage.c: Likewise.
9920 * cppbuiltin.c: Likewise.
9921 * cprop.c: Likewise.
9923 * cselib.c: Likewise.
9924 * data-streamer-in.c: Likewise.
9925 * data-streamer-out.c: Likewise.
9926 * data-streamer.c: Likewise.
9927 * dbxout.c: Likewise.
9930 * debug.c: Likewise.
9931 * df-core.c: Likewise.
9932 * df-problems.c: Likewise.
9933 * df-scan.c: Likewise.
9936 * dojump.c: Likewise.
9937 * dominance.c: Likewise.
9938 * domwalk.c: Likewise.
9939 * double-int.c: Likewise.
9941 * dumpfile.c: Likewise.
9942 * dwarf2asm.c: Likewise.
9943 * dwarf2cfi.c: Likewise.
9944 * dwarf2out.c: Likewise.
9945 * dwarf2out.h: Likewise.
9946 * emit-rtl.c: Likewise.
9947 * et-forest.c: Likewise.
9948 * except.c: Likewise.
9949 * explow.c: Likewise.
9950 * expmed.c: Likewise.
9952 * final.c: Likewise.
9953 * fixed-value.c: Likewise.
9954 * fold-const.c: Likewise.
9955 * function.c: Likewise.
9956 * fwprop.c: Likewise.
9957 * gcc-plugin.h: Likewise.
9959 * generic-match-head.c: Likewise.
9960 * ggc-page.c: Likewise.
9961 * gimple-builder.c: Likewise.
9962 * gimple-expr.c: Likewise.
9963 * gimple-fold.c: Likewise.
9964 * gimple-iterator.c: Likewise.
9965 * gimple-low.c: Likewise.
9966 * gimple-match-head.c: Likewise.
9967 * gimple-pretty-print.c: Likewise.
9968 * gimple-ssa-isolate-paths.c: Likewise.
9969 * gimple-ssa-strength-reduction.c: Likewise.
9970 * gimple-streamer-in.c: Likewise.
9971 * gimple-streamer-out.c: Likewise.
9972 * gimple-streamer.h: Likewise.
9973 * gimple-walk.c: Likewise.
9974 * gimple.c: Likewise.
9975 * gimplify-me.c: Likewise.
9976 * gimplify.c: Likewise.
9977 * godump.c: Likewise.
9978 * graph.c: Likewise.
9979 * graphite-blocking.c: Likewise.
9980 * graphite-dependences.c: Likewise.
9981 * graphite-interchange.c: Likewise.
9982 * graphite-isl-ast-to-gimple.c: Likewise.
9983 * graphite-optimize-isl.c: Likewise.
9984 * graphite-poly.c: Likewise.
9985 * graphite-scop-detection.c: Likewise.
9986 * graphite-sese-to-poly.c: Likewise.
9987 * graphite.c: Likewise.
9988 * haifa-sched.c: Likewise.
9989 * hooks.h: Likewise.
9990 * hw-doloop.c: Likewise.
9991 * ifcvt.c: Likewise.
9992 * incpath.c: Likewise.
9993 * init-regs.c: Likewise.
9994 * internal-fn.c: Likewise.
9995 * ipa-chkp.c: Likewise.
9996 * ipa-comdats.c: Likewise.
9997 * ipa-cp.c: Likewise.
9998 * ipa-devirt.c: Likewise.
9999 * ipa-icf-gimple.c: Likewise.
10000 * ipa-icf.c: Likewise.
10001 * ipa-inline-analysis.c: Likewise.
10002 * ipa-inline-transform.c: Likewise.
10003 * ipa-inline.c: Likewise.
10004 * ipa-polymorphic-call.c: Likewise.
10005 * ipa-profile.c: Likewise.
10006 * ipa-prop.c: Likewise.
10007 * ipa-pure-const.c: Likewise.
10008 * ipa-ref.c: Likewise.
10009 * ipa-reference.c: Likewise.
10010 * ipa-split.c: Likewise.
10011 * ipa-utils.c: Likewise.
10012 * ipa-visibility.c: Likewise.
10014 * ira-build.c: Likewise.
10015 * ira-color.c: Likewise.
10016 * ira-conflicts.c: Likewise.
10017 * ira-costs.c: Likewise.
10018 * ira-emit.c: Likewise.
10019 * ira-lives.c: Likewise.
10021 * jump.c: Likewise.
10022 * langhooks.c: Likewise.
10024 * loop-doloop.c: Likewise.
10025 * loop-init.c: Likewise.
10026 * loop-invariant.c: Likewise.
10027 * loop-iv.c: Likewise.
10028 * loop-unroll.c: Likewise.
10029 * lower-subreg.c: Likewise.
10030 * lra-assigns.c: Likewise.
10031 * lra-coalesce.c: Likewise.
10032 * lra-constraints.c: Likewise.
10033 * lra-eliminations.c: Likewise.
10034 * lra-lives.c: Likewise.
10035 * lra-remat.c: Likewise.
10036 * lra-spills.c: Likewise.
10038 * lto-cgraph.c: Likewise.
10039 * lto-compress.c: Likewise.
10040 * lto-opts.c: Likewise.
10041 * lto-section-in.c: Likewise.
10042 * lto-section-out.c: Likewise.
10043 * lto-streamer-in.c: Likewise.
10044 * lto-streamer-out.c: Likewise.
10045 * lto-streamer.c: Likewise.
10047 * mode-switching.c: Likewise.
10048 * modulo-sched.c: Likewise.
10049 * omega.c: Likewise.
10050 * omp-low.c: Likewise.
10051 * optabs.c: Likewise.
10052 * opts-global.c: Likewise.
10053 * passes.c: Likewise.
10054 * plugin.c: Likewise.
10055 * postreload-gcse.c: Likewise.
10056 * postreload.c: Likewise.
10057 * predict.c: Likewise.
10058 * print-rtl.c: Likewise.
10059 * print-tree.c: Likewise.
10060 * profile.c: Likewise.
10061 * real.c: Likewise.
10062 * realmpfr.c: Likewise.
10063 * realmpfr.h: Likewise.
10064 * recog.c: Likewise.
10066 * reg-stack.c: Likewise.
10067 * regcprop.c: Likewise.
10068 * reginfo.c: Likewise.
10069 * regrename.c: Likewise.
10070 * regs.h: Likewise.
10071 * regstat.c: Likewise.
10072 * reload.c: Likewise.
10073 * reload1.c: Likewise.
10074 * reorg.c: Likewise.
10075 * resource.c: Likewise.
10076 * rtl-chkp.c: Likewise.
10077 * rtlanal.c: Likewise.
10078 * rtlhooks.c: Likewise.
10079 * sanopt.c: Likewise.
10080 * sched-deps.c: Likewise.
10081 * sched-ebb.c: Likewise.
10082 * sched-rgn.c: Likewise.
10083 * sched-vis.c: Likewise.
10084 * sdbout.c: Likewise.
10085 * sel-sched-dump.c: Likewise.
10086 * sel-sched-ir.c: Likewise.
10087 * sel-sched.c: Likewise.
10088 * sese.c: Likewise.
10089 * shrink-wrap.c: Likewise.
10090 * shrink-wrap.h: Likewise.
10091 * simplify-rtx.c: Likewise.
10092 * stack-ptr-mod.c: Likewise.
10093 * statistics.c: Likewise.
10094 * stmt.c: Likewise.
10095 * stor-layout.c: Likewise.
10096 * store-motion.c: Likewise.
10097 * stringpool.c: Likewise.
10098 * symtab.c: Likewise.
10099 * target-globals.c: Likewise.
10100 * targhooks.c: Likewise.
10101 * toplev.c: Likewise.
10102 * tracer.c: Likewise.
10103 * trans-mem.c: Likewise.
10104 * tree-affine.c: Likewise.
10105 * tree-affine.h: Likewise.
10106 * tree-browser.c: Likewise.
10107 * tree-call-cdce.c: Likewise.
10108 * tree-cfg.c: Likewise.
10109 * tree-cfgcleanup.c: Likewise.
10110 * tree-chkp-opt.c: Likewise.
10111 * tree-chkp.c: Likewise.
10112 * tree-chrec.c: Likewise.
10113 * tree-complex.c: Likewise.
10114 * tree-data-ref.c: Likewise.
10115 * tree-dfa.c: Likewise.
10116 * tree-diagnostic.c: Likewise.
10117 * tree-dump.c: Likewise.
10118 * tree-eh.c: Likewise.
10119 * tree-emutls.c: Likewise.
10120 * tree-if-conv.c: Likewise.
10121 * tree-inline.c: Likewise.
10122 * tree-into-ssa.c: Likewise.
10123 * tree-iterator.c: Likewise.
10124 * tree-loop-distribution.c: Likewise.
10125 * tree-nested.c: Likewise.
10126 * tree-nrv.c: Likewise.
10127 * tree-object-size.c: Likewise.
10128 * tree-outof-ssa.c: Likewise.
10129 * tree-parloops.c: Likewise.
10130 * tree-phinodes.c: Likewise.
10131 * tree-predcom.c: Likewise.
10132 * tree-pretty-print.c: Likewise.
10133 * tree-pretty-print.h: Likewise.
10134 * tree-profile.c: Likewise.
10135 * tree-scalar-evolution.c: Likewise.
10136 * tree-sra.c: Likewise.
10137 * tree-ssa-address.c: Likewise.
10138 * tree-ssa-alias.c: Likewise.
10139 * tree-ssa-ccp.c: Likewise.
10140 * tree-ssa-coalesce.c: Likewise.
10141 * tree-ssa-copy.c: Likewise.
10142 * tree-ssa-copyrename.c: Likewise.
10143 * tree-ssa-dce.c: Likewise.
10144 * tree-ssa-dom.c: Likewise.
10145 * tree-ssa-dse.c: Likewise.
10146 * tree-ssa-forwprop.c: Likewise.
10147 * tree-ssa-ifcombine.c: Likewise.
10148 * tree-ssa-live.c: Likewise.
10149 * tree-ssa-loop-ch.c: Likewise.
10150 * tree-ssa-loop-im.c: Likewise.
10151 * tree-ssa-loop-ivcanon.c: Likewise.
10152 * tree-ssa-loop-ivopts.c: Likewise.
10153 * tree-ssa-loop-manip.c: Likewise.
10154 * tree-ssa-loop-niter.c: Likewise.
10155 * tree-ssa-loop-prefetch.c: Likewise.
10156 * tree-ssa-loop-unswitch.c: Likewise.
10157 * tree-ssa-loop.c: Likewise.
10158 * tree-ssa-loop.h: Likewise.
10159 * tree-ssa-math-opts.c: Likewise.
10160 * tree-ssa-operands.c: Likewise.
10161 * tree-ssa-phiopt.c: Likewise.
10162 * tree-ssa-phiprop.c: Likewise.
10163 * tree-ssa-pre.c: Likewise.
10164 * tree-ssa-propagate.c: Likewise.
10165 * tree-ssa-reassoc.c: Likewise.
10166 * tree-ssa-sccvn.c: Likewise.
10167 * tree-ssa-scopedtables.c: Likewise.
10168 * tree-ssa-sink.c: Likewise.
10169 * tree-ssa-strlen.c: Likewise.
10170 * tree-ssa-structalias.c: Likewise.
10171 * tree-ssa-tail-merge.c: Likewise.
10172 * tree-ssa-ter.c: Likewise.
10173 * tree-ssa-threadedge.c: Likewise.
10174 * tree-ssa-threadupdate.c: Likewise.
10175 * tree-ssa-uncprop.c: Likewise.
10176 * tree-ssa-uninit.c: Likewise.
10177 * tree-ssa.c: Likewise.
10178 * tree-ssanames.c: Likewise.
10179 * tree-stdarg.c: Likewise.
10180 * tree-streamer-in.c: Likewise.
10181 * tree-streamer-out.c: Likewise.
10182 * tree-streamer.c: Likewise.
10183 * tree-switch-conversion.c: Likewise.
10184 * tree-tailcall.c: Likewise.
10185 * tree-vect-data-refs.c: Likewise.
10186 * tree-vect-generic.c: Likewise.
10187 * tree-vect-loop-manip.c: Likewise.
10188 * tree-vect-loop.c: Likewise.
10189 * tree-vect-patterns.c: Likewise.
10190 * tree-vect-slp.c: Likewise.
10191 * tree-vect-stmts.c: Likewise.
10192 * tree-vectorizer.c: Likewise.
10193 * tree-vrp.c: Likewise.
10194 * tree.c: Likewise.
10195 * tsan.c: Likewise.
10196 * ubsan.c: Likewise.
10197 * valtrack.c: Likewise.
10198 * value-prof.c: Likewise.
10199 * var-tracking.c: Likewise.
10200 * varasm.c: Likewise.
10201 * varpool.c: Likewise.
10202 * vmsdbgout.c: Likewise.
10203 * vtable-verify.c: Likewise.
10205 * wide-int-print.cc: Likewise.
10206 * wide-int-print.h: Likewise.
10207 * wide-int.cc: Likewise.
10208 * xcoffout.c: Likewise.
10209 * config/aarch64/aarch64-builtins.c: Likewise.
10210 * config/aarch64/aarch64.c: Likewise.
10211 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10212 * config/alpha/alpha.c: Likewise.
10213 * config/arc/arc.c: Likewise.
10214 * config/arm/aarch-common.c: Likewise.
10215 * config/arm/arm-builtins.c: Likewise.
10216 * config/arm/arm-c.c: Likewise.
10217 * config/arm/arm.c: Likewise.
10218 * config/avr/avr-c.c: Likewise.
10219 * config/avr/avr-log.c: Likewise.
10220 * config/avr/avr.c: Likewise.
10221 * config/bfin/bfin.c: Likewise.
10222 * config/c6x/c6x.c: Likewise.
10223 * config/cr16/cr16.c: Likewise.
10224 * config/cris/cris.c: Likewise.
10225 * config/darwin-c.c: Likewise.
10226 * config/darwin.c: Likewise.
10227 * config/default-c.c: Likewise.
10228 * config/epiphany/epiphany.c: Likewise.
10229 * config/epiphany/mode-switch-use.c: Likewise.
10230 * config/epiphany/resolve-sw-modes.c: Likewise.
10231 * config/fr30/fr30.c: Likewise.
10232 * config/frv/frv.c: Likewise.
10233 * config/ft32/ft32.c: Likewise.
10234 * config/glibc-c.c: Likewise.
10235 * config/h8300/h8300.c: Likewise.
10236 * config/i386/i386-c.c: Likewise.
10237 * config/i386/i386.c: Likewise.
10238 * config/i386/msformat-c.c: Likewise.
10239 * config/i386/winnt-cxx.c: Likewise.
10240 * config/i386/winnt-stubs.c: Likewise.
10241 * config/i386/winnt.c: Likewise.
10242 * config/ia64/ia64-c.c: Likewise.
10243 * config/ia64/ia64.c: Likewise.
10244 * config/iq2000/iq2000.c: Likewise.
10245 * config/lm32/lm32.c: Likewise.
10246 * config/m32c/m32c-pragma.c: Likewise.
10247 * config/m32c/m32c.c: Likewise.
10248 * config/m32r/m32r.c: Likewise.
10249 * config/m68k/m68k.c: Likewise.
10250 * config/mcore/mcore.c: Likewise.
10251 * config/mep/mep-pragma.c: Likewise.
10252 * config/mep/mep.c: Likewise.
10253 * config/microblaze/microblaze-c.c: Likewise.
10254 * config/microblaze/microblaze.c: Likewise.
10255 * config/mips/mips.c: Likewise.
10256 * config/mmix/mmix.c: Likewise.
10257 * config/mn10300/mn10300.c: Likewise.
10258 * config/moxie/moxie.c: Likewise.
10259 * config/msp430/msp430-c.c: Likewise.
10260 * config/msp430/msp430.c: Likewise.
10261 * config/nds32/nds32-cost.c: Likewise.
10262 * config/nds32/nds32-fp-as-gp.c: Likewise.
10263 * config/nds32/nds32-intrinsic.c: Likewise.
10264 * config/nds32/nds32-isr.c: Likewise.
10265 * config/nds32/nds32-md-auxiliary.c: Likewise.
10266 * config/nds32/nds32-memory-manipulation.c: Likewise.
10267 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10268 * config/nds32/nds32-predicates.c: Likewise.
10269 * config/nds32/nds32.c: Likewise.
10270 * config/nios2/nios2.c: Likewise.
10271 * config/nvptx/nvptx.c: Likewise.
10272 * config/pa/pa.c: Likewise.
10273 * config/pdp11/pdp11.c: Likewise.
10274 * config/rl78/rl78-c.c: Likewise.
10275 * config/rl78/rl78.c: Likewise.
10276 * config/rs6000/rs6000-c.c: Likewise.
10277 * config/rs6000/rs6000.c: Likewise.
10278 * config/rx/rx.c: Likewise.
10279 * config/s390/s390-c.c: Likewise.
10280 * config/s390/s390.c: Likewise.
10281 * config/sh/sh-c.c: Likewise.
10282 * config/sh/sh-mem.cc: Likewise.
10283 * config/sh/sh.c: Likewise.
10284 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10285 * config/sh/sh_treg_combine.cc: Likewise.
10286 * config/sol2-c.c: Likewise.
10287 * config/sol2-cxx.c: Likewise.
10288 * config/sol2-stubs.c: Likewise.
10289 * config/sol2.c: Likewise.
10290 * config/sparc/sparc-c.c: Likewise.
10291 * config/sparc/sparc.c: Likewise.
10292 * config/spu/spu-c.c: Likewise.
10293 * config/spu/spu.c: Likewise.
10294 * config/stormy16/stormy16.c: Likewise.
10295 * config/tilegx/mul-tables.c: Likewise.
10296 * config/tilegx/tilegx-c.c: Likewise.
10297 * config/tilegx/tilegx.c: Likewise.
10298 * config/tilepro/mul-tables.c: Likewise.
10299 * config/tilepro/tilepro-c.c: Likewise.
10300 * config/tilepro/tilepro.c: Likewise.
10301 * config/v850/v850-c.c: Likewise.
10302 * config/v850/v850.c: Likewise.
10303 * config/vax/vax.c: Likewise.
10304 * config/visium/visium.c: Likewise.
10305 * config/vms/vms-c.c: Likewise.
10306 * config/vms/vms.c: Likewise.
10307 * config/vxworks.c: Likewise.
10308 * config/winnt-c.c: Likewise.
10309 * config/xtensa/xtensa.c: Likewise.
10310 * common/config/bfin/bfin-common.c: Likewise.
10312 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
10314 * tree.h (tree_code_for_canonical_type_merging): New function.
10315 * tree.c (gimple_canonical_types_compatible_p): Use
10316 tree_code_for_canonical_type_merging..
10318 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10322 * doc/tm.texi: Regenerate.
10323 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
10324 * target.def (TARGET_RELAXED_ORDERING): Likewise.
10325 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
10326 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
10327 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
10328 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
10329 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
10330 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
10331 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
10333 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10335 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
10336 register fma steering pass.
10337 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
10338 AARCH64_TUNE_FMA_STEERING.
10340 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
10342 * tree.c (verify_type_variant): Verify that type and variant is
10344 (gimple_canonical_types_compatible_p): Look for main variants.
10346 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10348 * config.gcc (powerpc*-*-*): Add support for a new configure
10349 option --with-advance-toolchain=<xxx> which overrides using the
10350 default header files, libraries and dynamic linker.
10352 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
10353 specs to support the configure --with-advance-toolchain=<xxx>
10355 (INCLUDE_EXTRA_SPEC): Likewise.
10356 (LINK_OS_EXTRA_SPEC32): Likewise.
10357 (LINK_OK_EXTRA_SPEC64): Likewise.
10358 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
10359 (DYNAMIC_LINKER_PREFIX): Likewise.
10360 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
10362 (GLIBC_DYNAMIC_LINKER32): Likewise.
10363 (GLIBC_DYNAMIC_LINKER64): Likewise.
10364 (LINK_OS_LINUX_SPEC32): Likewise.
10365 (LINK_OS_LINUX_SPEC64): Likewise.
10367 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
10368 configuration option.
10370 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
10373 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
10374 to determine current function ABI.
10375 (ix86_function_value_regno_p): Ditto.
10377 2015-06-03 Martin Liska <mliska@suse.cz>
10379 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
10380 * bitmap.h (struct bitmap_usage): Likewise.
10381 * ggc-common.c (struct ggc_usage): Likewise.
10382 * mem-stats.h (struct mem_location): Likewise.
10383 (struct mem_usage): Likewise.
10384 * vec.c (struct vec_usage): Likewise.
10386 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
10388 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
10391 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
10393 * doc/plugins.texi (enum plugin_event): New event.
10394 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
10395 and PLUGIN_FINISH_FUNCTION.
10396 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
10397 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
10399 2015-06-03 Richard Biener <rguenther@suse.de>
10401 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
10402 compute GROUP_GAP for the first element.
10403 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
10406 2015-06-03 Nick Clifton <nickc@redhat.com>
10408 * config/rl78/rl78-real.md: Add peepholes to avoid a register
10409 copy when calling a function.
10410 * config/rl78/rl78.c (need_to_save): Do not push the frame
10411 pointer in an interrupt handler prologue if it is never used.
10413 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10415 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
10417 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
10419 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
10420 reference when cloning alias node.
10422 2015-06-03 Martin Liska <mliska@suse.cz>
10424 * alloc-pool.h (struct pool_usage): Correct space padding.
10425 * ggc-page.c (ggc_print_statistics): Align columns in a report.
10426 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
10427 * tree.c (dump_tree_statistics): Align columns in a report.
10429 2015-06-03 Martin Liska <mliska@suse.cz>
10431 * alloc-pool.c (allocate_pool_descriptor): Remove.
10432 (struct pool_output_info): Likewise.
10433 (print_alloc_pool_statistics): Likewise.
10434 (dump_alloc_pool_statistics): Likewise.
10435 * alloc-pool.h (struct pool_usage): New struct.
10436 (pool_allocator::initialize): Change usage of memory statistics
10437 to a new interface.
10438 (pool_allocator::release): Likewise.
10439 (pool_allocator::allocate): Likewise.
10440 (pool_allocator::remove): Likewise.
10441 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
10442 for a pool allocator.
10443 * mem-stats.h (struct mem_location): Add new ctor.
10444 (struct mem_usage): Add counter for number of
10446 (mem_alloc_description::register_descriptor): New overload of
10447 * mem-stats.h (mem_location::to_string): New function.
10448 * bitmap.h (struct bitmap_usage): Use this new function.
10449 * ggc-common.c (struct ggc_usage): Likewise.
10452 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
10454 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
10455 of GCC_INSN_FLAGS_H block.
10457 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
10459 * explow.c (plus_constant): Update check after force_const_mem call
10460 to see if the value returned is not a NULL_RTX.
10462 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
10464 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
10465 remove instumentation thunks calling reachable functions.
10466 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
10467 * lto/lto-partition.c (privatize_symbol_name_1): New.
10468 (privatize_symbol_name): Privatize both decl and orig_decl
10469 names for instrumented functions.
10470 * cgraph.c (cgraph_node::verify_node): Add transparent
10471 alias chain check for instrumented node.
10473 2015-06-03 Marek Polacek <polacek@redhat.com>
10477 * tree.c (attribute_value_equal): Handle attribute format.
10478 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
10480 2015-06-03 Richard Biener <rguenther@suse.de>
10482 PR tree-optimization/63916
10483 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10484 Forward-propagate non-invariant addresses by splicing their
10485 reference ops if the result isn't going to be used by PRE.
10486 (vn_reference_lookup_3): Remove pointless assert.
10488 2015-06-03 Richard Biener <rguenther@suse.de>
10490 PR tree-optimization/66375
10491 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
10492 add to the evolution before following SSA edges.
10494 2015-06-03 Bin Cheng <bin.cheng@arm.com>
10496 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
10497 (dump_use, dump_cand, find_induction_variables): Pass new argument
10499 (record_use): Preserve the ssa name information in IV.
10501 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
10503 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
10505 (add_mode_tests): Don't add mode tests if the predicate only
10506 accepts scalar constant integers. Otherwise, allow the mode
10507 of "op" to be VOIDmode if the predicate does accept such integers.
10509 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
10512 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
10513 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
10514 (aarch64_secondary_reload): Likewise
10515 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
10517 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
10520 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
10521 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10524 * cprop.c (try_replace_reg): Check cost of constants before propagating.
10526 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10528 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
10529 provide access to the IBM extended double floating point mode if
10530 long double is IEEE 128-bit floating point.
10531 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
10532 point if long double is the IBM extended double type.
10534 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
10535 enable adding IEEE 128-bit floating point support.
10536 (-mfloat128-software): Likewise.
10537 (-mfloat128-sw): Likewise.
10539 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
10540 128-bit floating point types to occupy any register if
10541 -mlong-double-64. Do not allow use of IFmode/KFmode unless
10542 -mfloat128-software is enabled.
10543 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
10545 (rs6000_option_override_internal): Add -mfloat128-* support.
10546 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
10548 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
10549 and float128 type nodes.
10550 (ieee128_float_type_node): Likewise.
10551 (ibm128_float_type_node): Likewise.
10553 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10556 * config/aarch64/geniterators.sh: Rewrite in awk.
10558 2015-06-02 Martin Liska <mliska@suse.cz>
10560 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
10561 values to avoid -Wmaybe-uninitialized errors.
10563 2015-06-02 Richard Biener <rguenther@suse.de>
10566 * dwarf2out.c (lookup_context_die): New function.
10567 (resolve_addr): Avoid forcing a full DIE for the
10568 target of a DW_TAG_GNU_call_site during late compilation.
10569 Instead create a stub DIE without a type if we have a
10570 context DIE present.
10572 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
10574 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
10576 2015-06-02 Bin Cheng <bin.cheng@arm.com>
10578 PR tree-optimization/48052
10579 * cfgloop.h (struct control_iv): New.
10580 (struct loop): New field control_ivs.
10581 * tree-ssa-loop-niter.c : Include "stor-layout.h".
10582 (number_of_iterations_lt): Set no_overflow information.
10583 (number_of_iterations_exit): Init control iv in niter struct.
10584 (record_control_iv): New.
10585 (estimate_numbers_of_iterations_loop): Call record_control_iv.
10586 (loop_exits_before_overflow): New. Interface factored out of
10587 scev_probably_wraps_p.
10588 (scev_probably_wraps_p): Factor loop niter related code into
10589 loop_exits_before_overflow.
10590 (free_numbers_of_iterations_estimates_loop): Free control ivs.
10591 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
10593 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
10595 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
10596 the target doesn't belong to the current function.
10598 2015-06-02 Marek Polacek <polacek@redhat.com>
10600 PR middle-end/66345
10601 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
10602 get_maxval_strlen does not produce an INTEGER_CST.
10604 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
10606 * config/arc/constraints.md: Use lower-case names in match_code.
10607 * config/mmix/constraints.md: Likewise.
10609 2015-06-02 Richard Biener <rguenther@suse.de>
10611 PR tree-optimization/65961
10612 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
10613 check and clarify dump message.
10614 (vect_build_slp_tree): If all children are built up from scalars
10615 build up the parent from scalars instead.
10616 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
10618 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10621 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
10622 instead of print ... .
10624 2015-06-02 Alan Modra <amodra@gmail.com>
10626 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
10629 2015-06-02 Bin Cheng <bin.cheng@arm.com>
10631 PR tree-optimization/52563
10632 PR tree-optimization/62173
10633 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
10634 (alloc_iv, set_iv): New parameter.
10635 (determine_biv_step): Delete.
10636 (find_bivs): Inline original determine_biv_step. Pass new
10637 argument to set_iv.
10638 (idx_find_step): Use no_overflow information for conversion.
10639 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
10640 resolve_mixers handle folded_casts.
10641 (instantiate_scev_name): Change bool parameter to bool pointer.
10642 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
10643 (instantiate_array_ref, instantiate_scev_not): Ditto.
10644 (instantiate_scev_3, instantiate_scev_2): Ditto.
10645 (instantiate_scev_1, instantiate_scev_r): Ditto.
10646 (instantiate_scev_convert, ): Change parameter. Pass argument
10647 to chrec_convert_aggressive.
10648 (instantiate_scev): Change argument.
10649 (resolve_mixers): New parameter and set it.
10650 (scev_const_prop): New argument.
10651 * tree-scalar-evolution.h (resolve_mixers): New parameter.
10652 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
10654 (chrec_convert): New parameter. Move definition below.
10655 (chrec_convert_aggressive): New parameter and set it. Call
10656 convert_affine_scev.
10657 * tree-chrec.h (chrec_convert): New parameter.
10658 (chrec_convert_aggressive): Ditto.
10660 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
10662 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
10663 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
10664 the LHS of a no-return call if its type has variable size.
10665 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
10666 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
10668 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
10670 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
10671 * config.in: Regenerate.
10673 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
10675 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10676 consecutive accesses within outer-loop with force_vectorize
10677 for references with zero step in inner-loop.
10679 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
10681 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
10682 rather than from gcc/build directory.
10684 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
10687 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
10688 for __sync memory models, emit initial loads and final barriers as
10691 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
10694 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
10695 (aarch64_split_atomic_op): Check for __sync memory models, emit
10696 appropriate initial loads and final barriers.
10698 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
10700 * Makefile.in: Fix gcov dependencies that should
10701 not point to a build folder.
10703 2015-06-01 Richard Biener <rguenther@suse.de>
10706 2015-05-29 Richard Biener <rguenther@suse.de>
10708 PR tree-optimization/66314
10709 * tree-ssa-threadupdate.c (create_block_for_threading): Add
10710 parameter that says which loop the new block belongs to.
10711 (ssa_create_duplicates): Blocks duplicated for the threaded
10712 path belong to the loop of the thread destination.
10714 2015-06-01 Martin Liska <mliska@suse.cz>
10716 * sched-deps.c: Include pool-alloc.h before
10717 cselib.h header file is included.
10719 2015-06-01 Richard Biener <rguenther@suse.de>
10721 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
10724 2015-06-01 Martin Liska <mliska@suse.cz>
10726 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
10727 a function local variable.
10729 2015-06-01 Martin Liska <mliska@suse.cz>
10731 * alloc-pool.c (create_alloc_pool): Remove.
10732 (empty_alloc_pool): Likewise.
10733 (free_alloc_pool): Likewise.
10734 (free_alloc_pool_if_empty): Likewise.
10735 (pool_alloc): Likewise.
10736 (pool_free): Likewise.
10737 * alloc-pool.h: Remove old declarations.
10739 2015-06-01 Martin Liska <mliska@suse.cz>
10741 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
10742 (ira_create_object): Likewise.
10743 (ira_create_allocno): Likewise.
10744 (ira_create_live_range): Likewise.
10745 (copy_live_range): Likewise.
10746 (ira_finish_live_range): Likewise.
10747 (ira_free_allocno_costs): Likewise.
10748 (finish_allocno): Likewise.
10749 (finish_allocnos): Likewise.
10750 (initiate_prefs): Likewise.
10751 (ira_create_pref): Likewise.
10752 (finish_pref): Likewise.
10753 (finish_prefs): Likewise.
10754 (initiate_copies): Likewise.
10755 (ira_create_copy): Likewise.
10756 (finish_copy): Likewise.
10757 (finish_copies): Likewise.
10758 (finish_prefs): Likewise.
10760 2015-06-01 Martin Liska <mliska@suse.cz>
10762 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
10763 (allocate_and_init_ipcp_value): Likewise.
10764 (ipcp_lattice::add_value): Likewise.
10765 (merge_agg_lats_step): Likewise.
10766 (ipcp_driver): Likewise.
10767 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
10768 (ipa_free_all_structures_after_iinln): Likewise.
10769 * ipa-prop.h: Likewise.
10771 2015-06-01 Martin Liska <mliska@suse.cz>
10773 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
10775 (set_hint_predicate): Likewise.
10776 (inline_summary_alloc): Likewise.
10777 (reset_inline_edge_summary): Likewise.
10778 (reset_inline_summary): Likewise.
10779 (set_cond_stmt_execution_predicate): Likewise.
10780 (set_switch_stmt_execution_predicate): Likewise.
10781 (compute_bb_predicates): Likewise.
10782 (estimate_function_body_sizes): Likewise.
10783 (inline_free_summary): Likewise.
10785 2015-06-01 Martin Liska <mliska@suse.cz>
10787 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
10788 (ipa_edge_duplication_hook): Likewise.
10789 (ipa_free_all_structures_after_ipa_cp): Likewise.
10790 (ipa_free_all_structures_after_iinln): Likewise.
10792 2015-06-01 Martin Liska <mliska@suse.cz>
10794 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
10795 (ipa_profile_generate_summary): Likewise.
10796 (ipa_profile_read_summary): Likewise.
10797 (ipa_profile): Likewise.
10799 2015-06-01 Martin Liska <mliska@suse.cz>
10801 * tree-ssa-structalias.c (new_var_info): Use new type-based
10803 (new_constraint): Likewise.
10804 (init_alias_vars): Likewise.
10805 (delete_points_to_sets): Likewise.
10807 2015-06-01 Martin Liska <mliska@suse.cz>
10809 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
10810 (free_strinfo): Likewise.
10811 (pass_strlen::execute): Likewise.
10813 2015-06-01 Martin Liska <mliska@suse.cz>
10815 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
10817 (vn_reference_insert_pieces): Likewise.
10818 (vn_phi_insert): Likewise.
10819 (visit_reference_op_call): Likewise.
10820 (copy_phi): Likewise.
10821 (copy_reference): Likewise.
10822 (process_scc): Likewise.
10823 (allocate_vn_table): Likewise.
10824 (free_vn_table): Likewise.
10826 2015-06-01 Martin Liska <mliska@suse.cz>
10828 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
10830 (add_repeat_to_ops_vec): Likewise.
10831 (get_ops): Likewise.
10832 (maybe_optimize_range_tests): Likewise.
10833 (init_reassoc): Likewise.
10834 (fini_reassoc): Likewise.
10836 2015-06-01 Martin Liska <mliska@suse.cz>
10838 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
10840 (bitmap_set_new): Likewise.
10841 (get_or_alloc_expr_for_constant): Likewise.
10842 (get_or_alloc_expr_for): Likewise.
10843 (phi_translate_1): Likewise.
10844 (compute_avail): Likewise.
10845 (init_pre): Likewise.
10846 (fini_pre): Likewise.
10848 2015-06-01 Martin Liska <mliska@suse.cz>
10850 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
10851 (delete_dep_node): Likewise.
10852 (create_deps_list): Likewise.
10853 (free_deps_list): Likewise.
10854 (sched_deps_init): Likewise.
10855 (sched_deps_finish): Likewise.
10857 2015-06-01 Martin Liska <mliska@suse.cz>
10859 * regcprop.c (free_debug_insn_changes): Use new type-based
10861 (replace_oldest_value_reg): Likewise.
10862 (pass_cprop_hardreg::execute): Likewise.
10864 2015-06-01 Martin Liska <mliska@suse.cz>
10866 * ira-build.c (initiate_cost_vectors): Use new type-based
10868 (ira_allocate_cost_vector): Likewise.
10869 (ira_free_cost_vector): Likewise.
10870 (finish_cost_vectors): Likewise.
10872 2015-06-01 Martin Liska <mliska@suse.cz>
10874 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
10876 (free_sched_pools): Likewise.
10877 * sel-sched-ir.h (_list_alloc): Likewise.
10878 (_list_remove): Likewise.
10880 2015-06-01 Martin Liska <mliska@suse.cz>
10882 * stmt.c (add_case_node): Use new type-based pool allocator.
10883 (expand_case): Likewise.
10884 (expand_sjlj_dispatch_table): Likewise.
10886 2015-06-01 Martin Liska <mliska@suse.cz>
10888 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
10889 (free_bb): Likewise.
10890 (pass_cse_reciprocals::execute): Likewise.
10892 2015-06-01 Martin Liska <mliska@suse.cz>
10894 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
10895 (sra_deinitialize) Likewise.
10896 (create_access_1) Likewise.
10897 (build_accesses_from_assign) Likewise.
10898 (create_artificial_child_access) Likewise.
10900 2015-06-01 Martin Liska <mliska@suse.cz>
10902 * dse.c (get_group_info):Use new type-based pool allocator.
10903 (dse_step0) Likewise.
10904 (free_store_info) Likewise.
10905 (delete_dead_store_insn) Likewise.
10906 (free_read_records) Likewise.
10907 (record_store) Likewise.
10908 (replace_read) Likewise.
10909 (check_mem_read_rtx) Likewise.
10910 (scan_insn) Likewise.
10911 (dse_step1) Likewise.
10912 (dse_step7) Likewise.
10914 2015-06-01 Martin Liska <mliska@suse.cz>
10916 * df-scan.c (struct df_scan_problem_data):Use new type-based
10918 (df_scan_free_internal) Likewise.
10919 (df_scan_alloc) Likewise.
10920 (df_grow_reg_info) Likewise.
10921 (df_free_ref) Likewise.
10922 (df_insn_create_insn_record) Likewise.
10923 (df_mw_hardreg_chain_delete) Likewise.
10924 (df_insn_info_delete) Likewise.
10925 (df_free_collection_rec) Likewise.
10926 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
10927 (df_sort_and_compress_mws) Likewise.
10928 (df_ref_create_structure) Likewise.
10929 (df_ref_record) Likewise.
10931 2015-06-01 Martin Liska <mliska@suse.cz>
10933 * df-problems.c (df_chain_create):Use new type-based pool allocator.
10934 (df_chain_unlink_1) Likewise.
10935 (df_chain_unlink) Likewise.
10936 (df_chain_remove_problem) Likewise.
10937 (df_chain_alloc) Likewise.
10938 (df_chain_free) Likewise.
10939 * df.h (struct dataflow) Likewise.
10941 2015-06-01 Martin Liska <mliska@suse.cz>
10943 * cselib.c (new_elt_list):Use new type-based pool allocator.
10944 (new_elt_loc_list) Likewise.
10945 (unchain_one_elt_list) Likewise.
10946 (unchain_one_elt_loc_list) Likewise.
10947 (unchain_one_value) Likewise.
10948 (new_cselib_val) Likewise.
10949 (cselib_init) Likewise.
10950 (cselib_finish) Likewise.
10952 2015-06-01 Martin Liska <mliska@suse.cz>
10954 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
10955 (sh_reorg) Likewise.
10957 2015-06-01 Martin Liska <mliska@suse.cz>
10959 * cfg.c (initialize_original_copy_tables):Use new type-based
10961 (free_original_copy_tables) Likewise.
10962 (copy_original_table_clear) Likewise.
10963 (copy_original_table_set) Likewise.
10965 2015-06-01 Martin Liska <mliska@suse.cz>
10967 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
10969 (asan_mem_ref_new) Likewise.
10970 (free_mem_ref_resources) Likewise.
10972 2015-06-01 Martin Liska <mliska@suse.cz>
10974 * var-tracking.c (variable_htab_free):Use new type-based
10976 (attrs_list_clear) Likewise.
10977 (attrs_list_insert) Likewise.
10978 (attrs_list_copy) Likewise.
10979 (shared_hash_unshare) Likewise.
10980 (shared_hash_destroy) Likewise.
10981 (unshare_variable) Likewise.
10982 (var_reg_delete_and_set) Likewise.
10983 (var_reg_delete) Likewise.
10984 (var_regno_delete) Likewise.
10985 (drop_overlapping_mem_locs) Likewise.
10986 (variable_union) Likewise.
10987 (insert_into_intersection) Likewise.
10988 (canonicalize_values_star) Likewise.
10989 (variable_merge_over_cur) Likewise.
10990 (dataflow_set_merge) Likewise.
10991 (remove_duplicate_values) Likewise.
10992 (variable_post_merge_new_vals) Likewise.
10993 (dataflow_set_preserve_mem_locs) Likewise.
10994 (dataflow_set_remove_mem_locs) Likewise.
10995 (variable_from_dropped) Likewise.
10996 (variable_was_changed) Likewise.
10997 (set_slot_part) Likewise.
10998 (clobber_slot_part) Likewise.
10999 (delete_slot_part) Likewise.
11000 (loc_exp_insert_dep) Likewise.
11001 (notify_dependents_of_changed_value) Likewise.
11002 (emit_notes_for_differences_1) Likewise.
11003 (vt_emit_notes) Likewise.
11004 (vt_initialize) Likewise.
11005 (vt_finalize) Likewise.
11007 2015-06-01 Martin Liska <mliska@suse.cz>
11009 * ira-color.c (init_update_cost_records):Use new type-based
11011 (get_update_cost_record) Likewise.
11012 (free_update_cost_record_list) Likewise.
11013 (finish_update_cost_records) Likewise.
11014 (initiate_cost_update) Likewise.
11016 2015-06-01 Martin Liska <mliska@suse.cz>
11018 * lra.c (init_insn_regs): Use new type-based pool allocator.
11019 (new_insn_reg) Likewise.
11020 (free_insn_reg) Likewise.
11021 (free_insn_regs) Likewise.
11022 (finish_insn_regs) Likewise.
11023 (init_insn_recog_data) Likewise.
11024 (init_reg_info) Likewise.
11025 (finish_reg_info) Likewise.
11026 (lra_free_copies) Likewise.
11027 (lra_create_copy) Likewise.
11028 (invalidate_insn_data_regno_info) Likewise.
11030 2015-06-01 Martin Liska <mliska@suse.cz>
11032 * lra-lives.c (free_live_range): Use new type-based pool allocator.
11033 (free_live_range_list) Likewise.
11034 (create_live_range) Likewise.
11035 (copy_live_range) Likewise.
11036 (lra_merge_live_ranges) Likewise.
11037 (remove_some_program_points_and_update_live_ranges) Likewise.
11038 (lra_live_ranges_init) Likewise.
11039 (lra_live_ranges_finish) Likewise.
11041 2015-06-01 Martin Liska <mliska@suse.cz>
11043 * et-forest.c (et_new_occ): Use new type-based pool allocator.
11044 (et_new_tree): Likewise.
11045 (et_free_tree): Likewise.
11046 (et_free_tree_force): Likewise.
11047 (et_free_pools): Likewise.
11048 (et_split): Likewise.
11050 2015-06-01 Martin Liska <mliska@suse.cz>
11052 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
11054 * alloc-pool.h (pool_allocator::pool_allocator): New function.
11055 (pool_allocator::release): Likewise.
11056 (inline pool_allocator::release_if_empty): Likewise.
11057 (inline pool_allocator::~pool_allocator): Likewise.
11058 (pool_allocator::allocate): Likewise.
11059 (pool_allocator::remove): Likewise.
11061 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11063 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
11066 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11068 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
11070 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
11071 (arm_macro_fusion_p): Likewise.
11072 (arm_macro_fusion_pair_p): Likewise.
11074 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11076 * config/aarch64/aarch64-protos.h (tune_params): Rename
11077 fuseable_ops to fusible_ops.
11078 * config/aarch64/aarch64.c (generic_tunings): Rename
11079 fuseable_ops to fusible_ops.
11080 (cortexa53_tunings): Likewise.
11081 (cortexa57_tunings): Likewise.
11082 (thunderx_tunings): Likewise.
11083 (xgene1_tunings): Likewise.
11084 (aarch64_macro_fusion_p): Likewise.
11085 (aarch64_macro_fusion_pair_p): Likewise.
11087 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
11089 * config/s390/driver-native.c: New file.
11090 * config/s390/x-native: New file.
11091 * config.host: Add new files for s390.
11092 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
11094 * config.gcc: Likewise.
11095 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
11096 * config/s390/s390-opts.h (enum processor_type): Ditto.
11097 * config/s390/s390.c (s390_option_override): Catch unhandled
11100 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
11103 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
11104 redirection for instrumented calls.
11105 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
11106 (append_compiler_options): Append -fcheck-pointer-bounds.
11107 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
11108 (chkp_redirect_edge): New.
11109 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
11110 (chkp_redirect_edge): New.
11112 2015-06-01 Richard Biener <rguenther@suse.de>
11114 PR tree-optimization/66280
11115 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
11118 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11120 * config/aarch64/aarch64.md
11121 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
11124 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
11126 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
11127 Remove obsolete kludge.
11129 2015-06-01 Richard Biener <rguenther@suse.de>
11131 * tree-ssa-reassoc.c (get_rank): Simplify.
11133 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
11135 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
11136 * configure: Regenerated.
11138 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
11140 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
11141 issue (add space between string literal and macro).
11142 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
11144 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
11146 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
11147 implict or explicit -fPIE or -fpie.
11149 2015-05-30 Mike Frysinger <vapier@gentoo.org>
11151 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
11153 2015-05-28 DJ Delorie <dj@redhat.com>
11155 * expmed.c (extract_bit_field_1): Avoid clobbering a
11156 yet-to-be-used base/index register.
11158 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
11160 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
11161 (alias_stats): Add num_universal.
11162 (alias_set_subset_of): Special case pointers; be ready for NULL
11164 (alias_sets_conflict_p): Special case pointers; be ready for NULL
11166 (init_alias_set_entry): Break out from ...
11167 (record_alias_subset): ... here; propagate new fields;
11168 allocate children only when really needed.
11169 (get_alias_set): Do less generous pointer globbing.
11170 (dump_alias_stats_in_alias_c): Update statistics.
11172 2015-05-30 Alan Modra <amodra@gmail.com>
11174 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
11175 correct block for use of r12.
11176 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
11178 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
11181 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
11184 2015-05-29 Jakub Jelinek <jakub@redhat.com>
11186 PR tree-optimization/66142
11187 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
11188 virtual phis that feed themselves.
11190 2015-05-29 Richard Biener <rguenther@suse.de>
11192 PR tree-optimization/66314
11193 * tree-ssa-threadupdate.c (create_block_for_threading): Add
11194 parameter that says which loop the new block belongs to.
11195 (ssa_create_duplicates): Blocks duplicated for the threaded
11196 path belong to the loop of the thread destination.
11198 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11200 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
11201 to cleanup-saved-temps.
11202 * doc/sourcebuild.texi (Clean up generated test files): Expand
11204 (dg-keep-saved-temps): Document new proc.
11205 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
11206 cleanup-saved-temps): Remove.
11208 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
11210 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
11211 gcc_AC_CHECK_DECLS.
11212 * configure: Regenerate.
11214 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11216 * config/nios2/linux.h (CPP_SPEC): Define.
11218 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11220 * config/microblaze/linux.h (CPP_SPEC): Define.
11222 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11224 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
11225 -pthread is specified.
11227 2015-05-28 Richard Biener <rguenther@suse.de>
11229 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
11230 (vect_fixup_scalar_cycles_with_patterns): Likewise.
11231 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
11232 after pattern recog.
11233 (vect_create_epilog_for_reduction): Properly handle reductions
11235 (vectorizable_reduction): Likewise.
11236 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
11238 (vect_get_constant_vectors): Create the correct number of
11239 initial values for reductions.
11240 (vect_schedule_slp_instance): Handle reduction chains that are
11241 type changing properly.
11242 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
11244 2015-05-28 Richard Biener <rguenther@suse.de>
11246 PR tree-optimization/66142
11247 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
11248 values better in memcpy destination handling. Handle non-aliasing
11251 2015-05-28 Lawrence Velázquez <vq@larryv.me>
11254 * config/darwin-c.c (version_components): New global enum.
11255 (parse_version, version_as_legacy_macro)
11256 (version_as_modern_macro, macosx_version_as_macro): New functions.
11257 (version_as_macro): Remove.
11258 (darwin_cpp_builtins): Use new function.
11260 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
11262 * builtins.c (expand_builtin_acc_on_device): Mark parameters
11263 with ATTRIBUTE_UNUSED.
11265 2015-05-28 Julian Brown <julian@codesourcery.com>
11269 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
11270 sequence for !ACCEL_COMPILER.
11272 2015-05-28 Nick Clifton <nickc@redhat.com>
11274 * config/rx/rx.c (push_regs): New function. Extracts code from...
11275 (rx_expand_prologue): ... here. Use push_regs to push even small
11276 spans of registers.
11277 (pop_regs): New function.
11278 (rx_expand_epilogue): Use pop_regs to pop even small spans of
11281 2015-05-28 Richard Biener <rguenther@suse.de>
11283 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
11285 (SLP_INSTANCE_BODY_COST_VEC): Remove.
11286 (vect_update_slp_costs_according_to_vf): Likewise.
11287 (vect_slp_analyze_operations): Update prototype.
11288 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
11289 vect_update_slp_costs_according_to_vf, adjust.
11290 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
11291 (vect_analyze_slp_cost_1): Likewise.
11292 (vect_analyze_slp_cost): Likewise. Properly deal with
11293 widening reduction ops. Commit body costs.
11294 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
11295 cost for loops from here.
11296 (vect_slp_analyze_operations): But do it from here when
11297 the vectorization factor is known and stmts are analyzed.
11298 (vect_bb_vectorization_profitable_p): Simplify.
11299 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
11300 (vect_update_slp_costs_according_to_vf): Remove.
11302 2015-05-27 Magnus Granberg <zorry@gentoo.org>
11303 H.J. Lu <hongjiu.lu@intel.com>
11305 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
11306 (BUILD_CFLAGS): Likewise.
11307 (BUILD_CXXFLAGS): Likewise.
11308 (LINKER): Add @NO_PIE_FLAG@.
11309 (BUILD_LDFLAGS): Likewise.
11310 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
11311 --enable-default-pie.
11312 * common.opt (fPIE): Initialize to -1.
11314 (no-pie): New option.
11315 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
11316 * configure.ac: Add --enable-default-pie.
11317 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
11318 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
11319 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
11320 * gcc.c (NO_PIE_SPEC): New.
11321 (PIE_SPEC): Likewise.
11322 (NO_FPIE1_SPEC): Likewise.
11323 (FPIE1_SPEC): Likewise.
11324 (NO_FPIE2_SPEC): Likewise.
11325 (FPIE2_SPEC): Likewise.
11326 (NO_FPIE2_SPEC): Likewise.
11327 (FPIE_SPEC): Likewise.
11328 (NO_FPIE_SPEC): Likewise.
11329 (NO_FPIC1_SPEC): Likewise.
11330 (FPIC1_SPEC): Likewise.
11331 (NO_FPIC2_SPEC): Likewise.
11332 (FPIC2_SPEC): Likewise.
11333 (NO_FPIC2_SPEC): Likewise.
11334 (FPIC_SPEC): Likewise.
11335 (NO_FPIC_SPEC): Likewise.
11336 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
11337 (FPIE1_OR_FPIC1_SPEC): Likewise.
11338 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
11339 (FPIE2_OR_FPIC2_SPEC): Likewise.
11340 (NO_FPIE_AND_FPIC_SPEC): Likewise.
11341 (FPIE_OR_FPIC_SPEC): Likewise.
11342 (LD_PIE_SPEC): Likewise.
11343 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
11344 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
11345 * config/darwin.h (PIE_SPEC): Renamed to ...
11346 (DARWIN_PIE_SPEC): This.
11347 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
11348 * config/darwin9.h (PIE_SPEC): Renamed to ...
11349 (DARWIN_PIE_SPEC): This.
11350 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
11351 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
11352 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
11353 FPIE2_OR_FPIC2_SPEC.
11354 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
11355 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
11356 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
11357 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11358 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11359 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11360 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
11361 * config/m32r/m32r.h (ASM_SPEC): Likewise.
11362 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
11363 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11364 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
11365 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
11366 * config/sparc/linux.h (ASM_SPEC): Likewise.
11367 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11368 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
11369 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
11370 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11371 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11372 * config/sparc/sparc.h (ASM_SPEC): Likewise.
11373 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
11374 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
11375 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
11376 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
11377 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
11378 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
11379 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
11380 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
11381 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
11382 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
11383 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
11384 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
11385 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11386 * config/vax/linux.h (ASM_SPEC): Likewise.
11387 * doc/install.texi: Document --enable-default-pie.
11388 * doc/invoke.texi: Document -no-pie.
11389 * config.in: Regenerated.
11390 * configure: Likewise.
11392 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
11394 PR rtl-optimization/66168
11395 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
11396 can_move_invariant_reg.
11398 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
11401 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
11402 REG_EQUAL note when doing insert.
11404 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
11405 instead of "%d" for 'o' operand.
11407 2015-05-27 Nathan Sidwell <nathan@acm.org>
11410 * tree.c (build_pointer_type_for_mode): Canonical type does not
11411 inherit can_alias_all.
11412 (build_reference_type_for_mode): Likewise.
11414 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
11416 * expr.h (array_at_struct_end_p): Move to...
11417 (array_ref_element_size): Likewise.
11418 (component_ref_field_offset): Likewise.
11419 * tree.h (array_ref_element_size): ...here.
11420 (array_at_struct_end_p): Likewise.
11421 (component_ref_field_offset): Likewise.
11422 * expr.c (array_ref_element_size): Move to...
11423 (array_ref_low_bound): Likewise.
11424 (array_at_struct_end_p): Likewise.
11425 (array_ref_up_bound): Likewise.
11426 (component_ref_field_offset): Likewise.
11427 * tree.c (array_ref_element_size): ...here.
11428 (array_ref_low_bound): Likewise.
11429 (array_ref_up_bound): Likewise.
11430 (array_at_struct_end_p): Likewise.
11431 (component_ref_field_offset): Likewise.
11433 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
11434 Szabolcs Nagy <szabolcs.nagy@arm.com>
11436 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
11438 2015-05-27 Jason Merrill <jason@redhat.com>
11441 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
11442 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
11443 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
11445 2015-05-22 Aditya Kumar <hiraditya@msn.com>
11447 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
11450 * statistics.c (statistics_fini_pass): Print pass name.
11452 2015-05-27 Richard Biener <rguenther@suse.de>
11454 PR tree-optimization/66272
11456 2014-08-15 Richard Biener <rguenther@suse.de>
11458 PR tree-optimization/62031
11459 * tree-data-ref.c (dr_analyze_indices): Do not set
11460 DR_UNCONSTRAINED_BASE.
11461 (dr_may_alias_p): All indirect accesses have to go the
11462 formerly DR_UNCONSTRAINED_BASE path.
11463 * tree-data-ref.h (struct indices): Remove
11464 unconstrained_base member.
11465 (DR_UNCONSTRAINED_BASE): Remove.
11467 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
11469 * dwarf2out.c: Remove block_map.
11470 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
11471 (gen_lexical_block_die): Same.
11472 (dwarf2out_function_decl): Remove block_map use.
11473 (dwarf2out_c_finalize): Same.
11474 * tree-core.h (struct tree_block): Add die field.
11475 * tree.h (BLOCK_DIE): New.
11477 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11480 * expr.c (memory_load_overlap): New function.
11481 (emit_push_insn): When pushing partial args to the stack would
11482 clobber the register part load the overlapping part into a pseudo
11483 and put it into the hard reg after pushing. Change return type
11484 to bool. Add bool argument.
11485 * expr.h (emit_push_insn): Change return type to bool.
11487 * calls.c (expand_call): Cancel sibcall optimization when encountering
11488 partial argument on targets with ARGS_GROW_DOWNWARD and
11489 !STACK_GROWS_DOWNWARD.
11490 (emit_library_call_value_1): Update callsite of emit_push_insn.
11491 (store_one_arg): Likewise.
11493 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
11495 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
11497 2015-05-27 Martin Liska <mliska@suse.cz>
11499 * Makefile.in: Add additional dependencies related to memory report
11501 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
11502 * bitmap.c (struct bitmap_descriptor_d): Remove.
11503 (struct loc): Likewise.
11504 (struct bitmap_desc_hasher): Likewise.
11505 (bitmap_desc_hasher::hash): Likewise.
11506 (bitmap_desc_hasher::equal): Likewise.
11507 (get_bitmap_descriptor): Likewise.
11508 (bitmap_register): User new memory descriptor API.
11509 (register_overhead): Likewise.
11510 (bitmap_find_bit): Register nsearches and search_iter statistics.
11511 (struct bitmap_output_info): Remove.
11512 (print_statistics): Likewise.
11513 (dump_bitmap_statistics): Use new memory descriptor.
11514 * bitmap.h (struct bitmap_usage): New class.
11515 * genmatch.c: Extend header file inclusion.
11516 * genpreds.c: Likewise.
11517 * ggc-common.c (struct ggc_usage): New class.
11518 (struct ggc_loc_desc_hasher): Remove.
11519 (ggc_loc_desc_hasher::hash): Likewise.
11520 (ggc_loc_desc_hasher::equal): Likewise.
11521 (struct ggc_ptr_hash_entry): Likewise.
11522 (struct ptr_hash_hasher): Likewise.
11523 (ptr_hash_hasher::hash): Likewise.
11524 (ptr_hash_hasher::equal): Likewise.
11525 (make_loc_descriptor): Likewise.
11526 (ggc_prune_ptr): Likewise.
11527 (dump_ggc_loc_statistics): Use new memory descriptor.
11528 (ggc_record_overhead): Likewise.
11529 (ggc_free_overhead): Likewise.
11530 (final_cmp_statistic): Remove.
11531 (cmp_statistic): Likewise.
11532 (ggc_add_statistics): Liekwise.
11533 (ggc_prune_overhead_list): Likewise.
11534 * hash-map-traits.h: New file.
11535 * hash-map.h (struct default_hashmap_traits): Move the traits to a
11536 separate header file.
11537 * hash-set.h: Pass memory statistics info to ctor.
11538 * hash-table.c (void dump_hash_table_loc_statistics): New function.
11539 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
11540 (hash_table::~hash_table): Register memory release operation.
11541 (hash_table::alloc_entries): Handle memory allocation operation.
11542 (hash_table::expand): Likewise.
11543 * inchash.c (iterative_hash_hashval_t): Move implementation to header
11545 (iterative_hash_host_wide_int): Likewise.
11546 * inchash.h (class hash): Likewise.
11547 * mem-stats-traits.h: New file.
11548 * mem-stats.h: New file.
11549 (mem_location): Add new class.
11550 (mem_usage): Likewise.
11551 (mem_alloc_description): Likewise.
11552 * sese.c: Add new header file inclusision.
11553 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
11555 * tree-sra.c: Add new header file inclusision.
11556 * vec.c (struct vec_descriptor): Remove.
11557 (hash_descriptor): Likewise.
11558 (struct vec_usage): Likewise.
11559 (struct ptr_hash_entry): Likewise.
11560 (hash_ptr): Likewise.
11561 (eq_ptr): Likewise.
11562 (vec_prefix::register_overhead): Use new memory descriptor API.
11563 (vec_prefix::release_overhead): Likewise.
11564 (add_statistics): Remove.
11565 (dump_vec_loc_statistics): Use new memory descriptor API.
11566 * vec.h (struct vec_prefix): Likewise.
11567 (va_heap::reserve): Likewise.
11568 (va_heap::release): Likewise.
11569 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
11571 2015-05-27 Richard Biener <rguenther@suse.de>
11573 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
11574 earlier and remove ??? comment.
11575 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
11576 and got called from loop analysis bail out. Always pass the SLP
11577 node to the vectorizable_* functions.
11578 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
11579 the premature SLP check here.
11580 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
11581 detected SLP stmts.
11582 (vect_detect_hybrid_slp_1): Likewise.
11584 2015-05-26 Jeff Law <law@redhat.com>
11586 * combine.c (find_split_point): Verify that the shift count is a
11587 constant when choosing (plus (ashift ...)) as a split point.
11589 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
11590 No functional changes.
11592 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
11594 * ipa-polymorphic-call.c
11595 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
11596 case when call target is already known.
11598 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
11601 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
11602 take into account the case that operands[1] and operands[2]
11603 are the same register.
11605 2015-05-26 Michael Matz <matz@suse.de>
11607 PR middle-end/66251
11609 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
11611 (vect_create_vectorized_demotion_stmts): Always set
11612 STMT_VINFO_VEC_STMT, also with SLP.
11613 (vectorizable_store): Handle strided group stores.
11615 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11618 * config/aarch64/aarch64.md
11619 (*adds_shift_imm_<mode>): New pattern.
11620 (*subs_shift_imm_<mode>): Likewise.
11621 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
11622 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
11623 (*add_uxt<mode>_shift2): Likewise.
11624 (*add_uxtsi_shift2_uxtw): Likewise.
11625 (*sub_uxt<mode>_shift2): Likewise.
11626 (*sub_uxtsi_shift2_uxtw): Likewise.
11628 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
11630 * config/rs6000/constraints.md (Y, U): Use match_test.
11632 2015-05-26 Christian Bruel <christian.bruel@st.com>
11635 * config/arm/arm.c (arm_option_check_internal)
11636 (arm_option_params_internal): Check opts->target_flags to set macros.
11637 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
11638 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
11639 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
11640 (builtin_define): Replaced with def_or_undef_macro.
11641 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
11642 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
11643 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
11644 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
11645 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
11646 (TARGET_ARM_FEATURE_LDREX_P)
11647 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
11648 * config/arm/arm-c.c (def_or_undef_macro): New function.
11649 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
11651 2015-05-26 Christian Bruel <christian.bruel@st.com>
11653 * c-common.h (builtin_define_with_int_value)
11654 (builtin_define_type_sizeof): Declare.
11655 * c-cppbuiltin.c (builtin_define_with_int_value)
11656 (builtin_define_type_sizeof): Externalize.
11657 (builtin_define_std): Cleanup declaration.
11658 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
11659 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
11660 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
11661 (builtin_define, builtin_assert): New macros.
11663 2015-05-26 Richard Biener <rguenther@suse.de>
11665 PR tree-optimization/66142
11666 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
11667 MEM_REFs for the same base address.
11669 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11672 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
11674 2015-05-26 Jason Merrill <jason@redhat.com>
11676 * configure.ac: Set CXXFLAGS for ISL test.
11677 * configure: Regenerate.
11679 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
11680 strstr and basename.
11681 * configure: Regenerate.
11683 2015-05-26 Richard Biener <rguenther@suse.de>
11685 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
11686 X % C -> X & (C - 1) for C being a power-of two to ...
11687 * match.pd: ... patterns.
11689 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
11691 * match.pd (swapped_tcc_comparison): New operator list.
11692 (-A CMP -B): New simplification.
11693 * fold-const.c (fold_comparison): Remove corresponding code.
11695 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
11697 * caller-save.c (init_caller_save): Base temporary register numbers
11698 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
11699 * cfgloopanal.c (init_set_costs): Likewise.
11700 * dojump.c (prefer_and_bit_test): Likewise.
11701 * expr.c (init_expr_target): Likewise.
11702 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11703 * lower-subreg.c (init_lower_subreg): Likewise.
11704 * postreload.c (reload_cse_regs_1): Likewise.
11706 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
11708 * gensupport.h (compute_test_codes): Declare.
11709 * gensupport.c (compute_predicate_codes): Rename to...
11710 (compute_test_codes): ...this. Generalize error message.
11711 (process_define_predicate): Update accordingly.
11712 * genpreds.c (compute_maybe_allows): Delete.
11713 (add_constraint): Use compute_test_codes to determine whether
11714 something can accept a SUBREG, REG or MEM.
11716 2015-05-26 Torvald Riegel <triegel@redhat.com>
11718 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
11719 'memory model' to align with C++11; fix description of memory orders;
11722 2015-05-26 Richard Biener <rguenther@suse.de>
11724 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
11725 (vect_analyze_loop_operations): ... here. Remove slp parameter,
11726 detect whether we apply SLP. Remove call to
11727 vect_update_slp_costs_according_to_vf.
11728 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
11729 vect_update_slp_costs_according_to_vf from here. Dispatch
11730 to vect_slp_analyze_operations to analyze SLP stmts.
11731 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
11732 unused bb_vec_info parameter, adjust assert.
11733 (vect_slp_analyze_operations): Pass in the slp instance tree
11734 instead of bb_vec_info.
11735 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
11736 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
11738 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
11740 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
11741 Q_REGS. Expand comment.
11742 (REG_CLASS_NAMES): Ditto.
11743 (REG_CLASS_CONTENTS): Ditto.
11745 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
11748 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
11749 when LEGACY_INT_REGNO_P is processed.
11751 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
11753 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
11755 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11757 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
11758 register if not marked dead/unused, before return.
11760 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11763 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
11764 is set; check for assembler name at LTO time.
11765 (type_in_anonymous_namespace): Remove hacks, check that all
11766 anonymous types are called "<anon>"
11767 (odr_type_p): Simplify; add check for "<anon>"
11768 (odr_subtypes_equivalent): Add odr_type_p check.
11769 * tree.c (need_assembler_name_p): Even anonymous namespace needs
11772 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11774 * ipa-utils.h (method_class_type): Remove.
11775 * cgraphunit.c (walk_polymorphic_call_targets): Use
11776 TYPE_METHOD_BASETYPE.
11777 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
11778 on main variants only.
11779 (method_class_type): Remove.
11780 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
11781 (build_type_inheritance_graph): Likewise.
11782 * ipa-icf.c (sem_function::equals_wpa): Likewise.
11783 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
11784 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
11786 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11788 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
11789 is_typedef_decl, typedef_variant_p): Constify.
11790 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
11791 is_typedef_decl, typedef_variant_p): Constify.
11793 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11795 * defaults.h (gen_tablejump): New function.
11796 (HAVE_tablejump): Add default value.
11798 * stmt.c: Likewise.
11800 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11802 * defaults.h (gen_store_multiple): New function.
11803 (HAVE_store_multiple): Add default value.
11804 * expr.c (move_block_from_reg): Adjust.
11806 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11808 * defaults.h (gen_load_multiple): New function.
11809 (HAVE_load_multiple): Add default value.
11810 * expr.c (move_block_to_reg): Adjust.
11812 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11814 * defaults.h (gen_mem_signal_fence): New function.
11815 (HAVE_mem_signal_fence): Add default value.
11816 * optabs.c: Adjust.
11818 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11820 * defaults.h (gen_memory_barrier): New function.
11821 (HAVE_memory_barrier): Add default value.
11822 * optabs.c: Adjust.
11824 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11826 * defaults.h (gen_mem_thread_fence): New function.
11827 (HAVE_mem_thread_fence): Add default definition.
11828 * optabs.c: Adjust.
11830 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11832 * combine.c (find_split_point): Check the value of HAVE_lo_sum
11833 instead of if it is defined.
11834 (combine_simplify_rtx): Likewise.
11835 * lra-constraints.c (process_address_1): Likewise.
11836 * config/darwin.c: Adjust.
11837 * genconfig.c (main): Always define HAVE_lo_sum.
11839 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11841 * genmatch.c (parser::parse_operation): Reject expanding
11842 operator-list inside 'for'.
11844 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11846 * genmatch.c (parser::parse_for): Reject iterator if used as
11849 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11851 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
11852 after end of id-list.
11854 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
11856 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
11857 we do not try to compute canonical type for type that does not need
11859 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
11861 * tree.h (type_with_alias_set_p): New.
11863 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
11865 * tree.c (gimple_canonical_types_compatible_p): Do not compare
11866 function attributes.
11867 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
11869 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
11871 * Makefile.in (check_gcc_parallelize): Delete.
11872 (lang_checks_parallelized): Update comment.
11874 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
11876 PR rtl-optimization/66237
11877 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
11878 location of an "as_a" cast.
11880 2015-05-22 Jeff Law <law@redhat.com>
11882 * config/pa/pa.md (non-canonical shift-add insns): Remove.
11883 (peepholes with non-canonical RTL sources): Remove.
11884 (peepholes for indexed stores of FP regs in integer modes): Match and
11885 generate canonical RTL.
11887 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
11889 PR tree-optimization/63387
11890 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
11891 ((x ord x) & (y ord y) -> (x ord y),
11892 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
11893 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
11894 vectors like scalars.
11896 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
11898 * convert.c (convert_to_integer, convert_to_vector): Include the
11899 types in the error message.
11901 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
11903 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
11906 2015-05-22 Jeff Law <law@redhat.com>
11908 * config/pa/pa.md (integer_indexed_store splitters): Use
11909 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
11910 insns -- adjusting the constant 2nd operand accordingly.
11912 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
11913 (plus (ashift X log2) Y) if it is a split point.
11915 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
11916 out of hppa_legitimize_address to handle both forms of a multiply
11918 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
11919 Always generate the ASHIFT variant as the result is not directly
11920 used in a MEM. Update comments and refactor slightly to improve
11923 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11926 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
11927 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
11928 (aarch64_composite_type_p): Return false if given type and mode are
11929 for a short vector.
11931 2015-05-22 Richard Biener <rguenther@suse.de>
11933 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
11935 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
11936 patterns when determining whether SLP is pure.
11937 (vect_is_slp_reduction): Remove check for pattern stmts.
11938 (vect_is_simple_reduction_1): Remove dead code.
11939 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
11940 (vect_get_and_check_slp_defs): Pass in the stmt number.
11941 Allow the first def in a reduction to be not a pattern stmt when
11942 the rest of the stmts def are patterns.
11943 (vect_build_slp_tree_1): Allow tcc_expression codes like
11944 SAD_EXPR and DOT_PROD_EXPR.
11945 (vect_build_slp_tree): Adjust.
11946 (vect_analyze_slp): Refactor and move BB vect error message ...
11947 (vect_slp_analyze_bb_1): ... here.
11949 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
11951 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
11952 for CSWTCH temporary.
11954 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11956 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
11957 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
11960 2015-05-22 Richard Biener <rguenther@suse.de>
11962 PR tree-optimization/66251
11963 * tree-vect-stmts.c (vectorizable_conversion): Properly
11964 set STMT_VINFO_VEC_STMT even for the SLP case.
11966 2015-05-22 Marek Polacek <polacek@redhat.com>
11968 * doc/extend.texi: Use @pxref instead of @xref.
11970 2015-05-22 hiraditya <hiraditya@msn.com>
11972 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
11975 2015-05-22 Richard Biener <rguenther@suse.de>
11977 PR tree-optimization/65701
11978 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11979 Move peeling cost models into one place. Peel for alignment
11980 for single loads only if an aligned load is cheaper than
11983 2015-05-22 Marek Polacek <polacek@redhat.com>
11986 * doc/extend.texi (Enumerator Attributes): New section.
11987 Document syntax of enumerator attributes.
11989 2015-05-22 Richard Biener <rguenther@suse.de>
11991 * tree-vect-loop.c (get_reduction_op): New function.
11992 (vect_model_reduction_cost): Use it, add reduc_index parameter.
11993 Make ready for BB reductions.
11994 (vect_create_epilog_for_reduction): Use get_reduction_op.
11995 (vectorizable_reduction): Init reduc_index to a valid value.
11996 Adjust vect_model_reduction_cost call.
11997 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
11998 operand for reduction defaults. Add SAD_EXPR support.
11999 Assert we have a neutral op for SLP reductions.
12000 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
12001 walking pattern stmt ops only recurse to SSA names.
12003 2015-05-22 Richard Biener <rguenther@suse.de>
12005 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
12006 assert with guard, remove check on detected reduction.
12007 (vect_recog_sad_pattern): Likewise.
12008 (vect_recog_widen_sum_pattern): Likewise.
12010 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12012 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
12013 __always_inline__ attribute.
12014 (vaesdq_u8): Likewise.
12015 (vaesmcq_u8): Likewise.
12016 (vaesimcq_u8): Likewise.
12017 (vsha1cq_u32): Likewise.
12018 (vsha1mq_u32): Likewise.
12019 (vsha1pq_u32): Likewise.
12020 (vsha1h_u32): Likewise.
12021 (vsha1su0q_u32): Likewise.
12022 (vsha1su1q_u32): Likewise.
12023 (vsha256hq_u32): Likewise.
12024 (vsha256h2q_u32): Likewise.
12025 (vsha256su0q_u32): Likewise.
12026 (vsha256su1q_u32): Likewise.
12027 (vmull_p64): Likewise.
12028 (vmull_high_p64): Likewise.
12030 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12032 * final.c (final_scan_insn): Don't check HAVE_peephole with the
12034 * output.h: Likewise.
12035 * genconfig.c (main): Alwways define HAVE_peephole.
12036 * genpeep.c: Don't emit checks of HAVE_peephole.
12038 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12040 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
12041 check HAVE_conditional_move with the preprocessor.
12043 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12045 * genconfig.c (main): Always define HAVE_conditional_move.
12046 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
12047 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
12050 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12052 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
12053 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
12054 and FRAME_POINTER_REGNUM with the preprocessor.
12056 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12058 * defaults.h: Add default for STACK_PUSH_CODE.
12059 * expr.c: Don't redefine STACK_PUSH_CODE.
12060 * recog.c: Likewise.
12062 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12064 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
12065 sched-deps.c: Use if instead of preprocessor checks with
12066 STACK_GROWS_DOWNWARD.
12068 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12070 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
12072 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
12073 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
12074 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
12075 * doc/tm.texi: Regenerate.
12077 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
12080 * config/i386/constraints.md (Bg): New constraint for GOT memory
12082 * config/i386/i386.md (*call_got_x32): New pattern.
12083 (*call_value_got_x32): Likewise.
12084 * config/i386/predicates.md (GOT_memory_operand): New predicate.
12086 2015-05-21 Jakub Jelinek <jakub@redhat.com>
12088 PR tree-optimization/66233
12089 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
12092 2015-05-21 Jeff Law <law@redhat.com>
12094 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
12095 than MULT for shadd sequences.
12097 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
12099 * alias.c (alias_stats): New static var.
12100 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
12101 (dump_alias_stats_in_alias_c): New function.
12102 * alias.h (dump_alias_stats_in_alias_c): Declare.
12103 * tree-ssa-alias.c (dump_alias_stats): Call it.
12105 2015-05-08 Michael Matz <matz@suse.de>
12107 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
12109 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
12110 (STMT_VINFO_STRIDED_P): ... this.
12111 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
12112 (vect_verify_datarefs_alignment): Likewise.
12113 (vect_enhance_data_refs_alignment): Likewise.
12114 (vect_analyze_data_ref_access): Likewise.
12115 (vect_analyze_data_refs): Accept strided stores.
12116 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
12117 (vect_model_load_cost): Adjust for macro rename.
12118 (vectorizable_mask_load_store): Likewise.
12119 (vectorizable_load): Likewise.
12120 (vectorizable_store): Open code strided stores.
12122 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12124 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
12125 Document sqrt_insn.
12127 2015-05-21 Richard Biener <rguenther@suse.de>
12130 * match.pd: Guard pattern optimzing (int)(float)int
12131 conversions to apply only on GIMPLE.
12133 2015-05-21 Jeff Law <law@redhat.com>
12135 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
12136 multiply-accumulate/shift-add insn generation.
12138 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
12141 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
12142 operands[1] are the same.
12144 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
12146 PR middle-end/66221
12147 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
12148 build_distinct_type_copy to copy bounds.
12150 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
12152 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
12153 Change to unsigned int.
12155 2015-05-20 Jeff Law <law@redhat.com>
12157 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
12158 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
12159 (pa_shadd_constant_p): Allow constants for shadd insns rather
12160 than valid scaling constants for memory addresses.
12161 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
12162 * config/pa/predicates.md (mem_shadd_operand): New predicate.
12163 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
12164 (shift-add insns using ASHIFT): New patterns.
12166 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
12168 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
12170 (fix_up_fall_thru_edges): Likewise.
12171 (fix_crossing_conditional_branches): Likewise. Promote jump targets
12172 from to rtx_insn to rtx_code_label where feasible.
12173 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
12174 gen_move_insn (returned type changed to rtx_insn).
12175 * builtins.c (expand_errno_check): Fix arguments of
12176 do_compare_rtx_and_jump (now expects rtx_code_label).
12177 (expand_builtin_acc_on_device): Likewise.
12178 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
12179 invert_jump (now exprects rtx_jump_insn).
12180 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
12181 (construct_init_block): Use rtx_code_label.
12182 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
12183 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
12184 calling redirect_jump.
12185 (patch_jump_insn): Likewise.
12186 (redirect_branch_edge): Likewise.
12187 (force_nonfallthru_and_redirect): Likewise.
12188 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
12190 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
12191 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
12192 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
12193 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
12194 to store the value retured by gen_label_rtx.
12195 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
12197 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
12198 (split_branches): Fix calls of redirect_jump.
12199 * dojump.c (jumpifnot): Promote argument type from rtx to
12201 (jumpifnot_1): Likewise.
12202 (jumpif): Likewise.
12203 (jumpif_1): Likewise.
12204 (do_jump_1): Likewise.
12205 (do_jump): Likewise. Use rtx_code_label when feasible.
12206 (do_jump_by_parts_greater_rtx): Likewise.
12207 (do_jump_by_parts_zero_rtx): Likewise.
12208 (do_jump_by_parts_equality_rtx): Likewise.
12209 (do_compare_rtx_and_jump): Likewise.
12210 * dojump.h: Update function prototypes.
12211 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
12213 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
12215 (emit_label_before): Likewise.
12216 (emit_jump_insn_after_noloc): Likewise.
12217 (emit_jump_insn_after_setloc): Likewise.
12218 (emit_jump_insn_after): Likewise
12219 (emit_jump_insn_before_setloc): Likewise.
12220 (emit_jump_insn_before): Likewise.
12221 (emit_label_before): Promote return type to rtx_code_label.
12222 (emit_label): Likewise.
12223 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
12224 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
12226 (emit_stack_restore): Likewise.
12227 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
12228 (do_cmp_and_jump): Likewise.
12229 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
12230 from rtx to rtx_code_label.
12231 (gen_move_insn_uncast): New function.
12232 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
12233 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
12234 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
12235 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
12236 invert_jump_1 and redirect_jump_1.
12237 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
12238 do_compare_rtx_and_jump.
12239 (expand_addsub_overflow): Likewise.
12240 (expand_neg_overflow): Likewise.
12241 (expand_mul_overflow): Likewise.
12242 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
12243 return value of gen_move_insn.
12244 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
12245 * loop-doloop.c (add_test): Use rtx_code_label.
12246 (doloop_modify): Likewise.
12247 (doloop_optimize): Likewise.
12248 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
12249 * lra-constraints.c (emit_spill_move): Remove cast of value returned
12251 (inherit_reload_reg): Add cast when calling dump_insn_slim.
12252 (split_reg): Likewise.
12253 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
12255 * optabs.c (expand_binop_directly): Remove casts of values returned by
12257 (expand_unop_direct): Likewise.
12258 (expand_abs): Likewise.
12259 (maybe_emit_unop_insn): Likewise.
12260 (maybe_gen_insn): Promote return type to rtx_insn.
12261 * optabs.h: Update prototype of maybe_gen_insn.
12262 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
12264 * recog.c (struct peep2_insn_data): Promote type of insn field to
12266 (peep2_reinit_state): Use NULL instead of NULL_RTX.
12267 (peep2_attempt): Remove casts of insn in peep2_insn_data.
12268 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
12269 * recog.h (struct insn_gen_fn): Promote return types of function
12270 pointers and operator ().from rtx to rtx_insn.
12271 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
12272 (fill_eager_delay_slots): Likewise.
12273 (relax_delay_slots): Likewise.
12274 (make_return_insns): Likewise.
12275 (dbr_schedule): Likewise.
12276 (optimize_skips): Likewise.
12277 (reorg_redirect_jump): Likewise.
12278 (fill_slots_from_thread): Likewise.
12279 * reorg.h: Update prototypes.
12280 * resource.c (find_dead_or_set_registers): Use dyn_cast to
12281 rtx_jump_insn instead of check. Use it's jump_target method.
12282 * rtl.h (rtx_jump_insn::jump_label): Define new method.
12283 (rtx_jump_insn::jump_target): Define new method.
12284 (rtx_jump_insn::set_jump_target): Define new method.
12285 * rtlanal.c (tablejump_p): Promote type of one local variable.
12286 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
12287 (sched_analyze_insn): Likewise.
12288 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
12289 (print_insn): Likewise.
12290 * stmt.c (label_rtx): Promote return type to rtx_insn.
12291 (force_label_rtx): Likewise.
12292 (jump_target_rtx): Define new function.
12293 (expand_label): Use it, get rid of one cast.
12294 (expand_naked_return): Promote rtx to rtx_code_label.
12295 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
12296 (expand_case): Use rtx_code_label instread of rtx where feasible.
12297 (expand_sjlj_dispatch_table): Likewise.
12298 (emit_case_nodes): Likewise.
12299 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
12300 * store-motion.c (insert_store): Make use of new return type of
12301 gen_move_insn and remove a cast.
12302 (replace_store_insn): Likewise.
12304 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
12306 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
12307 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
12309 2015-05-20 Jeff Law <law@redhat.com>
12311 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
12312 dispose of the jump thread path when the jump threading
12313 opportunity is cancelled.
12315 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
12317 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
12318 when printing the caret character.
12320 2015-05-20 Marek Polacek <polacek@redhat.com>
12322 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
12324 2015-05-20 Marek Polacek <polacek@redhat.com>
12326 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
12327 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
12328 * gimple-fold.c (canonicalize_bool): Likewise.
12329 (same_bool_result_p): Likewise.
12330 * tree-if-conv.c (parse_predicate): Likewise.
12332 2015-05-20 Marek Polacek <polacek@redhat.com>
12334 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
12335 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
12337 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12339 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
12340 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
12343 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
12345 * config/mips/mips.h (micromips_globals): Declare.
12347 2015-05-20 David Malcolm <dmalcolm@redhat.com>
12349 * timevar.def (TV_INITIALIZE_RTL): New.
12350 * toplev.c (initialize_rtl): Use an auto_timevar to account this
12351 function's time to TV_INITIALIZE_RTL.
12353 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
12355 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
12356 gimple_build_nop calls.
12357 (chkp_find_bounds_for_elem): Likewise.
12358 (chkp_get_zero_bounds): Likewise.
12359 (chkp_get_none_bounds): Likewise.
12360 (chkp_get_bounds_by_definition): Likewise.
12361 (chkp_generate_extern_var_bounds): Likewise.
12362 (chkp_get_bounds_for_decl_addr): Likewise.
12363 (chkp_get_bounds_for_string_cst): Likewise.
12365 2015-05-20 Bin Cheng <bin.cheng@arm.com>
12367 PR tree-optimization/65447
12368 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
12369 (dump_use, dump_uses): Support to dump sub use.
12370 (record_use): New parameters to support sub use. Remove call to
12372 (record_sub_use, record_group_use): New functions.
12373 (compute_max_addr_offset, split_all_small_groups): New functions.
12374 (group_address_uses, rewrite_use_address): New functions.
12375 (strip_offset): New declaration.
12376 (find_interesting_uses_address): Call record_group_use.
12377 (add_candidate): New assertion.
12378 (infinite_cost_p): Move definition forward.
12379 (add_costs): Check INFTY cost and return immediately.
12380 (get_computation_cost_at): Clear setup cost and dependent bitmap
12382 (determine_use_iv_cost_address): Compute cost for sub uses.
12383 (rewrite_use_address_1): Rename from old rewrite_use_address.
12384 (free_loop_data): Free sub uses.
12385 (tree_ssa_iv_optimize_loop): Call group_address_uses.
12387 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12388 Jim Wilson <jim.wilson@linaro.org>
12390 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
12391 new fields loadv and storev.
12392 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
12393 Initialize loadv and storev.
12394 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
12395 (cortexa53_extra_costs): Likewise.
12396 (cortexa57_extra_costs): Likewise.
12397 (xgene1_extra_costs): Likewise.
12398 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
12401 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12403 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
12405 (cortexa8_extra_costs): Likewise.
12406 (cortexa5_extra_costs): Likewise.
12407 (cortexa7_extra_costs): Likewise.
12408 (cortexa12_extra_costs): Likewise.
12409 (cortexa15_extra_costs): Likewise.
12410 (v7m_extra_costs): Likewise.
12412 2015-05-20 Jeff Law <law@redhat.com>
12414 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
12415 instead of open-coded version. Also delete the jump thread created
12416 within this function.
12418 2015-05-20 Alan Modra <amodra@gmail.com>
12420 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
12421 stack adjusting insn. Formatting.
12422 (rs6000_emit_prologue): Track stack adjusting insn, and use of
12423 r12. If possible, emit first -fsplit-stack arg pointer insn
12424 before stack adjust. Don't use r12 to save cr if split-stack.
12426 2015-05-20 Alan Modra <amodra@gmail.com>
12428 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
12430 (rs6000_supports_split_stack): New function.
12431 * gcc/config/rs6000/rs6000.c (machine_function): Add
12432 split_stack_arg_pointer.
12433 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
12434 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
12435 rather than virtual_incoming_args_rtx.
12436 (rs6000_va_start): Likewise.
12437 (split_stack_arg_pointer_used_p): New function.
12438 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
12439 (morestack_ref): New var.
12440 (gen_add3_const, rs6000_expand_split_stack_prologue,
12441 rs6000_internal_arg_pointer, rs6000_live_on_entry,
12442 rs6000_split_stack_space_check): New functions.
12443 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
12444 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
12445 (UNSPECV_SPLIT_STACK_RETURN): Define.
12446 (split_stack_prologue, load_split_stack_limit,
12447 load_split_stack_limit_di, load_split_stack_limit_si,
12448 split_stack_return, split_stack_space_check): New expands and insns.
12449 * gcc/config/rs6000/rs6000-protos.h
12450 (rs6000_expand_split_stack_prologue): Declare.
12451 (rs6000_split_stack_space_check): Declare.
12453 2015-05-20 Alan Modra <amodra@gmail.com>
12455 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
12456 (direct_return): Test vrsave_size rather than vrsave_mask.
12457 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
12458 (rs6000_emit_epilogue): Likewise.
12460 2015-05-20 Alan Modra <amodra@gmail.com>
12462 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
12463 when not saving registers.
12464 (debug_stack_info): Adjust to omit printing unused offsets,
12466 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
12469 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12472 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
12473 value_type to const char *.
12475 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
12477 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
12478 to build a biarch toolchain again.
12480 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
12482 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
12483 or implicit declarations.
12484 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
12486 (get_odr_type): Check type has linkage before adding bases.
12487 (register_odr_type): Check that type has linkage before adding it.
12488 (type_known_to_have_no_deriavations_p): Rename to ..
12489 (type_known_to_have_no_derivations_p): This one.
12490 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
12491 (type_known_to_have_no_derivations_p): This one.
12492 * ipa-polymorphic-call.c
12493 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
12496 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
12498 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
12499 (layout_type): Use RECORD_OR_UNION_TYPE_P.
12501 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12503 * config/s390/s390.c (s390_vector_bool_type_p): New function.
12504 (s390_invalid_binary_op): New function.
12505 (TARGET_INVALID_BINARY_OP): Define macro.
12507 2015-05-19 David Sherwood <david.sherwood@arm.com>
12509 * loop-invariant.c (create_new_invariant): Don't calculate address cost
12510 if mode is not a scalar integer.
12511 (get_inv_cost): Increase computational cost for unused invariants.
12513 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12515 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
12516 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
12517 * config/s390/s390-builtin-types.def: New file.
12518 * config/s390/s390-builtins.def: New file.
12519 * config/s390/s390-builtins.h: New file.
12520 * config/s390/s390-c.c: New file.
12521 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
12522 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
12523 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
12524 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
12526 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
12528 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
12529 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
12530 variable definitions.
12531 (s390_const_operand_ok): New function.
12532 (s390_expand_builtin): Rewrite.
12533 (s390_init_builtins): New function.
12534 (s390_handle_vectorbool_attribute): New function.
12535 (s390_attribute_table): Add s390_vector_bool attribute.
12536 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
12537 (s390_branch_condition_mask): Generate masks for new modes.
12538 (s390_expand_vec_compare_cc): New function.
12539 (s390_mangle_type): Add mangling for vector bool types.
12540 (enum s390_builtin): Remove.
12541 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
12543 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
12544 s390_cpu_cpp_builtins.
12545 (REGISTER_TARGET_PRAGMAS): New macro.
12546 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
12547 (insn_cmp mode attribute): Add new CC modes.
12548 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
12549 (lcbb): New pattern definition.
12550 * config/s390/s390intrin.h: Include vecintrin.h.
12551 * config/s390/t-s390: New file.
12552 * config/s390/vecintrin.h: New file.
12553 * config/s390/vector.md: Include vx-builtins.md.
12554 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
12557 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12559 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
12561 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
12562 (s390_select_ccmode): Likewise.
12563 (s390_canonicalize_comparison): Swap operands if necessary.
12564 (s390_expand_vec_compare_scalar): Expand DFmode compare using
12565 single element vector instructions.
12566 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
12567 (s390_branch_condition_mask): Generate CC masks for the new modes.
12568 * config/s390/s390.md (v0, vf, vd): New mode attributes.
12569 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
12570 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
12571 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
12572 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
12573 (*extend<DSF:mode><BFP:mode>2): New insn definition.
12574 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
12575 (extend<DSF:mode><BFP:mode>2): Turn into expander.
12576 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
12577 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
12578 (sqrt<mode>2): Add vector instruction.
12580 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12582 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
12584 * config/s390/predicates.md (const0_operand, constm1_operand)
12585 (constable_operand): Accept vector operands.
12586 * config/s390/s390-modes.def: Add supported vector modes.
12587 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
12588 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
12589 (s390_bytemask_vector_p, s390_expand_vec_strlen)
12590 (s390_expand_vec_compare, s390_expand_vcond)
12591 (s390_expand_vec_init): Add prototypes.
12592 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
12593 (s390_vector_mode_supported_p): New function.
12594 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
12595 (s390_contiguous_bitmask_vector_p): New function.
12596 (s390_bytemask_vector_p): New function.
12597 (s390_split_ok_p): Vector regs don't work either.
12598 (regclass_map): Add VEC_REGS.
12599 (s390_legitimate_constant_p): Handle vector constants.
12600 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
12601 (legitimate_reload_vector_constant_p): New function.
12602 (s390_preferred_reload_class): Handle CONST_VECTOR.
12603 (s390_reload_symref_address): Likewise.
12604 (s390_secondary_reload): Vector memory instructions only support
12605 short displacements. Rename reload*_nonoffmem* to reload*_la*.
12606 (s390_emit_ccraw_jump): New function.
12607 (s390_expand_vec_strlen): New function.
12608 (s390_expand_vec_compare): New function.
12609 (s390_expand_vcond): New function.
12610 (s390_expand_vec_init): New function.
12611 (s390_dwarf_frame_reg_mode): New function.
12612 (print_operand): Handle addresses with 'O' and 'R' constraints.
12613 (NR_C_MODES, constant_modes): Add vector modes.
12614 (s390_output_pool_entry): Handle vector constants.
12615 (s390_hard_regno_mode_ok): Handle vector registers.
12616 (s390_class_max_nregs): Likewise.
12617 (s390_cannot_change_mode_class): New function.
12618 (s390_invalid_arg_for_unprototyped_fn): New function.
12619 (s390_function_arg_vector): New function.
12620 (s390_function_arg_float): Remove size variable.
12621 (s390_pass_by_reference): Handle vector arguments.
12622 (s390_function_arg_advance): Likewise.
12623 (s390_function_arg): Likewise.
12624 (s390_return_in_memory): Vector values are returned in a VR if
12626 (s390_function_and_libcall_value): Handle vector arguments.
12627 (s390_gimplify_va_arg): Likewise.
12628 (s390_call_saved_register_used): Consider the arguments named.
12629 (s390_conditional_register_usage): Disable v16-v31 for non-vec
12631 (s390_preferred_simd_mode): New function.
12632 (s390_support_vector_misalignment): New function.
12633 (s390_vector_alignment): New function.
12634 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
12635 (TARGET_VECTOR_MODE_SUPPORTED_P)
12636 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
12637 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
12638 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
12639 (TARGET_VECTOR_ALIGNMENT): Define target macro.
12640 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
12641 (FIRST_PSEUDO_REGISTER): Increase value.
12642 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
12643 (VECTOR_REG_P): Define macros.
12644 (FIXED_REGISTERS, CALL_USED_REGISTERS)
12645 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
12646 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
12647 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
12648 Add vector registers.
12649 (CANNOT_CHANGE_MODE_CLASS): Call C function.
12650 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
12651 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
12653 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
12654 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
12655 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
12656 (VR*_REGNUM): New constants.
12657 (ALL): New mode iterator.
12658 (INTALL): Remove mode iterator.
12660 (movti): Implement TImode moves for VRs.
12661 Disable TImode splitter for VR targets.
12662 Implement splitting TImode GPR<->VR moves.
12663 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
12664 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
12665 reload<mode>_la_in, reload<mode>_la_out.
12666 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
12667 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
12668 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
12669 (mov<mode> SF SD): Prefer lder, lde for loading.
12670 Add lrl and strl instructions.
12671 Add vector instructions.
12672 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
12673 Call s390_expand_vec_strlen on z13.
12674 (*cc_to_int): Change predicate to nonimmediate_operand.
12675 (addti3): Rename to *addti3. New expander.
12676 (subti3): Rename to *subti3. New expander.
12677 * config/s390/vector.md: New file.
12679 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12681 * common/config/s390/s390-common.c (processor_flags_table): Add
12683 * config.gcc: Add z13.
12684 * config/s390/s390-opts.h (enum processor_type): Add
12685 PROCESSOR_2964_Z13.
12686 * config/s390/s390.c (s390_adjust_priority): Check for
12687 PROCESSOR_2964_Z13.
12688 (s390_reorg): Likewise.
12689 (s390_sched_reorder): Likewise.
12690 (s390_sched_variable_issue): Likewise.
12691 (s390_loop_unroll_adjust): Likewise.
12692 (s390_option_override): Likewise. Default to -mvx when available.
12693 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
12694 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
12695 (TARGET_VX_ABI): Define macros.
12697 (TARGET_DEFAULT): Add MASK_OPT_VX.
12698 * config/s390/s390.md ("cpu" attribute): Add z13.
12699 ("cpu_facility" attribute): Add vec.
12700 * config/s390/s390.opt (processor_type): Add z13.
12701 (mvx): New options.
12702 * doc/invoke.texi: Add z13 option for -march.
12704 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12706 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
12707 mode check to make sure that only scalar integer values are
12710 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
12712 * tree.c (verify_type_variant): Fix #undef.
12713 (gimple_canonical_types_compatible_p): Move here from lto.c
12714 (verify_type): Verify TYPE_CANONICAL compatibility.
12715 * tree.h (gimple_canonical_types_compatible_p): Declare.
12717 2015-05-19 Jakub Jelinek <jakub@redhat.com>
12719 PR middle-end/66199
12720 * tree.h (OMP_TEAMS_COMBINED): Define.
12721 * gimplify.c (enum gimplify_omp_var_data): Add
12722 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
12723 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
12724 (omp_notice_variable): Accept both ORT_TEAMS
12725 and ORT_COMBINED_TEAMS. Don't recurse if
12726 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
12727 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
12729 (omp_no_lastprivate): New function.
12730 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
12731 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
12732 notice_outer and set appropriate bits, otherwise make
12733 sure default(none) combined constructs won't complain.
12734 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
12735 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
12736 omp_no_lastprivate either remove the clause or turn it
12737 into OMP_CLAUSE_PRIVATE.
12738 (gimplify_omp_for): Fix up handling of implicit
12739 lastprivate or linear iterators.
12740 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
12741 ORT_COMBINED_TEAMS.
12742 * omp-low.c (lower_omp_for_lastprivate): For combined
12743 for simd use fd.loop.n2 from the for rather than simd.
12745 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12747 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
12748 instead of gen_rtx_raw_REG.
12749 (cris_expand_epilogue): Likewise.
12750 * config/microblaze/microblaze.c (microblaze_classify_address):
12752 * config/sparc/sparc.md: Likewise.
12754 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
12756 * config/alpha/alpha.c (alpha_legitimize_reload_address)
12757 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
12758 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
12759 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
12760 Use CASE_CONST_SCALAR_INT.
12761 (print_operand) <case 'M'>: Use mode_width_operand to check the
12762 value of the constant.
12763 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
12764 * config/alpha/predicates.md (input_operand): Use general_operand
12765 instead of match_code as operand check.
12766 (symbolic_operand): Use match_code with subexpression digits.
12767 * config/alpha/constraints.md (Q): Ditto.
12769 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12771 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
12773 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12775 * config/s390/s390.c (s390_secondary_reload): Fix check for
12776 load/store relative.
12778 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12780 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
12781 alternative_mask to uint64_t.
12783 2015-05-19 Jakub Jelinek <jakub@redhat.com>
12785 PR tree-optimization/66187
12786 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
12787 Pass TYPE_SIGN to tree_int_cst_min_precision. If
12788 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
12790 2015-05-19 David Malcolm <dmalcolm@redhat.com>
12792 * diagnostic.c (diagnostic_report_current_module): Strengthen
12793 local "new_map" from const line_map * to
12794 const line_map_ordinary *.
12795 * genmatch.c (error_cb): Likewise for local "map".
12796 (output_line_directive): Likewise for local "map".
12797 * input.c (expand_location_1): Likewise for local "map".
12798 Pass NULL rather than &map to
12799 linemap_unwind_to_first_non_reserved_loc, since the value is never
12800 read from there, and the value written back not read from here.
12801 (is_location_from_builtin_token): Strengthen local "map" from
12802 const line_map * to const line_map_ordinary *.
12803 (dump_location_info): Strengthen locals "map" from
12804 line_map *, one to const line_map_ordinary *, the other
12805 to const line_map_macro *.
12806 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
12807 const line_map * to const line_map_macro *.
12808 (maybe_unwind_expanded_macro_loc): Add a call to
12809 linemap_check_macro when writing to the "map" field of the
12811 Introduce local const line_map_ordinary * "ord_map", using it in
12812 place of "map" in the part of the function where we know we have
12813 an ordinary map. Strengthen local "m" from const line_map * to
12814 const line_map_ordinary *.
12816 2015-05-19 Nick Clifton <nickc@redhat.com>
12819 * config/msp430/msp430.md (zero_extendhisi2): Add support for
12820 separate source and destination registers.
12822 2015-05-19 Richard Biener <rguenther@suse.de>
12824 PR tree-optimization/66165
12825 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
12826 for no load permutation.
12828 PR tree-optimization/66185
12829 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
12830 when building the SLP node from scalars.
12832 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
12833 Tristan Gingold <gingold@adacore.com>
12835 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
12836 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
12837 (expand_stack_restore): Call record_new_stack_level.
12838 (expand_stack_save): Do not call do_pending_stack_adjust.
12839 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
12840 * calls.c (expand_call): Call record_new_stack_level for alloca.
12841 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
12842 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
12843 (update_sjlj_context): New global function.
12844 * except.h (update_sjlj_context): Declare.
12845 * explow.c (record_new_stack_level): New global function.
12846 (allocate_dynamic_stack_space): Call record_new_stack_level.
12847 * explow.h (record_new_stack_level): Declare.
12848 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
12849 * cfgrtl.c (duplicate_insn_chain): Likewise.
12851 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12853 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
12854 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
12855 STACK_GROWS_DOWNWARD as normal if.
12856 (expand_call): Likewise.
12858 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
12861 * config/sh/sh.md (*round_int_even): New insn_and_split and
12862 accompanying new unnamed split.
12864 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12866 * bitmap.c (bitmap_set_range): Handle count==1 specially.
12867 (bitmap_clear_range): Likewise.
12868 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
12869 bitmap_set_range unconditionally.
12870 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
12871 * df-scan.c (df_mark_reg): Likewise.
12872 * haifa-sched.c (setup_ref_regs): Likewise.
12873 * sched-rgn.c (update_live_1): Likewise.
12875 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12877 * regs.h (END_HARD_REGNO): Delete.
12878 (END_REGNO): Move to...
12880 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
12881 * caller-save.c (mark_set_regs): Likewise.
12882 * combine.c (move_deaths, distribute_notes): Likewise.
12883 * cse.c (invalidate, invalidate_for_call): Likewise.
12884 * df-scan.c (df_ref_record): Likewise.
12885 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
12886 (record_last_reg_set_info): Likewise.
12887 * reg-stack.c (convert_regs_exit): Likewise.
12888 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
12889 * resource.c (update_live_status): Likewise.
12890 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
12892 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12894 * rtl.h (reg_info): Add an nregs field.
12895 (REG_NREGS): Use it.
12896 (SET_REGNO_RAW): Delete.
12897 (set_regno_raw): New function.
12898 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
12899 (END_REGNO): Redefine in terms of REG_NREGS.
12900 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
12902 * emit-rtl.c (set_mode_and_regno): Likewise.
12903 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
12904 instead of SET_REGNO_RAW.
12906 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12908 * rtl.h (PUT_MODE_RAW): New macro.
12909 (PUT_REG_NOTE_KIND): Use it.
12910 (set_mode_and_regno): Declare.
12911 (gen_raw_REG): Change regno to "unsigned int".
12912 (gen_rtx_REG): Change "unsigned" to "unsigned int".
12913 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
12914 use set_mode_and_regno to change the mode of registers.
12915 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
12916 * emit-rtl.c (set_mode_and_regno): New function.
12917 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
12918 * caller-save.c (reg_save_code): Use set_mode_and_regno.
12919 * expr.c (init_expr_target): Likewise.
12920 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12921 * postreload.c (reload_cse_simplify_operands): Likewise.
12923 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12925 * caller-save.c (init_caller_save): Use word_mode and
12926 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
12927 * expr.c (init_expr_target): Likewise.
12928 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12929 * postreload.c (reload_cse_regs_1): Likewise.
12931 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12933 * rtl.def (REG): Change format to "r".
12934 * rtl.h (rtunion): Remove rt_reg.
12935 (reg_info): New structure.
12936 (rtx_def): Add reg field to main union.
12937 (X0REGATTR): Delete.
12938 (REG_CHECK): New macro.
12939 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
12940 * rtl.c (rtx_format): Document "r".
12941 (rtx_code_size): Handle REG specially.
12942 * gengenrtl.c (special_format): Return true for formats
12944 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
12945 Deal with REG_ATTRS after the field loop.
12946 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
12947 * expmed.c (init_expmed): Call gen_raw_REG instead of
12949 * expr.c (init_expr_target): Likewise.
12950 * regcprop.c (maybe_mode_change): Likewise.
12951 * varasm.c (make_decl_rtl): Likewise.
12952 * final.c (leaf_renumber_regs_insn): Return early after
12954 * genemit.c (gen_exp): Handle 'r' fields.
12955 * genpeep.c (match_rtx): Likewise.
12956 * gensupport.c (subst_pattern_match): Likewise.
12957 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
12958 (alter_constraints, subst_dup): Likewise.
12959 * read-rtl.c (read_rtx_code): Likewise.
12960 * print-rtl.c (print_rtx): Likewise.
12961 * genrecog.c (find_operand, find_matching_operand): Likewise.
12962 (validate_pattern, match_pattern_2): Likewise.
12963 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
12964 (rtx_test::regno_field): New function.
12965 (operator ==, safe_to_hoist_p, transition_parameter_type)
12966 (parameter_type_string, print_parameter_value)
12967 (print_nonbool_test, print_test): Handle new enum values.
12968 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
12969 * lra-constraints.c (operands_match_p): Likewise.
12971 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12973 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
12974 Change type of new_regno to unsigned int.
12975 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
12976 new_regno to unsigned int.
12977 (df_ref_change_reg_with_loc): Remove old_regno parameter.
12978 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
12979 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
12980 (SET_REGNO_RAW): Add space after ",".
12982 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12984 * rtl.h (REG_NREGS): New macro
12985 * alias.c (record_set): Use it.
12986 * cfgcleanup.c (mark_effect): Likewise.
12987 * combine.c (likely_spilled_retval_1): Likewise.
12988 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
12989 (move_deaths, distribute_notes): Likewise.
12990 * cselib.c (cselib_record_set): Likewise.
12991 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
12992 * df-scan.c (df_mark_reg): Likewise.
12993 * dse.c (look_for_hardregs): Likewise.
12994 * dwarf2out.c (reg_loc_descriptor): Likewise.
12995 (multiple_reg_loc_descriptor): Likewise.
12996 * expr.c (write_complex_part, read_complex_part): Likewise.
12997 (emit_move_complex): Likewise.
12998 * haifa-sched.c (setup_ref_regs): Likewise.
12999 * ira-lives.c (mark_hard_reg_live): Likewise.
13000 * lra.c (lra_set_insn_recog_data): Likewise.
13001 * mode-switching.c (create_pre_exit): Likewise.
13002 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
13003 (reload_combine_recognize_pattern): Likewise.
13004 (reload_combine_note_use, move2add_record_mode): Likewise.
13005 (reload_cse_move2add): Likewise.
13006 * reg-stack.c (subst_stack_regs_pat): Likewise.
13007 * regcprop.c (kill_value, copy_value): Likewise.
13008 (copyprop_hardreg_forward_1): Likewise.
13009 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
13010 (build_def_use): Likewise.
13011 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
13012 (deps_analyze_insn): Likewise.
13013 * sched-rgn.c (check_live_1, update_live_1): Likewise.
13014 * sel-sched.c (count_occurrences_equiv): Likewise.
13015 * valtrack.c (dead_debug_insert_temp): Likewise.
13017 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13019 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
13020 * dse.c (note_add_store): Likewise.
13021 * ira-lives.c (mark_hard_reg_dead): Likewise.
13022 * loop-invariant.c (mark_reg_store): Likewise.
13023 (mark_reg_death): Likewise.
13024 * postreload.c (reload_combine): Likewise.
13025 (reload_combine_note_store): Likewise.
13026 (reload_combine_note_use): Likewise.
13027 * recog.c (peep2_reg_dead_p): Likewise.
13029 2015-05-19 Alan Modra <amodra@gmail.com>
13031 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
13032 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
13033 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
13035 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
13036 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
13037 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
13038 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
13040 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
13042 * config/mips/mips.md (JOIN_MODE): New mode iterator.
13043 (join2_load_Store<JOIN_MODE:mode>): New pattern.
13044 (join2_loadhi): Likewise.
13045 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
13046 load-load and store-stores.
13047 * config/mips/mips.opt (mload-store-pairs): New option.
13048 (TARGET_LOAD_STORE_PAIRS): New macro.
13049 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
13050 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
13051 * config/mips/mips.c (mips_load_store_bonding_p): New function.
13053 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
13055 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
13057 * dojump.c (do_compare_rtx_and_jump): Likewise.
13058 * expmed.c (emit_store_flag_1): Likewise.
13059 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
13060 * final.c (sprint_ul): Use std::reverse for reversing a string.
13061 * fold-const.c (extract_muldiv_1): Use std::swap.
13062 * genmodes.c (emit_mode_int_n): Likewise.
13063 * ifcvt.c (dead_or_predicable): Likewise.
13064 * ira-build.c (ira_merge_live_ranges): Likewise.
13065 (swap_allocno_copy_ends_if_necessary): Likewise.
13066 * ira.c (ira_setup_alts): Likewise.
13067 * loop-iv.c (iv_analyze_expr): Likewise.
13068 (implies_p): Likewise.
13069 (canon_condition): Likewise.
13070 * lra-constraints.c (swap_operands): Likewise.
13071 * lra-lives.c (lra_merge_live_ranges): Likewise.
13072 * omega.c (swap): Remove.
13074 (omega_unprotect_1): Use std::swap.
13075 (omega_solve_geq): Likewise.
13076 * optabs.c (expand_binop_directly): Likewise.
13077 (expand_binop): Likewise.
13078 (emit_conditional_move): Likewise.
13079 (emit_conditional_add): Likewise.
13080 * postreload.c (reload_cse_simplify_operands): Likewise.
13081 * reg-stack.c (emit_swap_insn): Likewise.
13082 (swap_to_top): Likewise.
13083 (compare_for_stack_reg): Likewise.
13084 (subst_asm_stack_regs): Likewise.
13085 * reload.c (find_reloads): Likewise.
13086 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
13087 * sel-sched.c (invoke_reorder_hooks): Likewise.
13088 (create_block_for_bookkeeping): Likewise.
13089 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
13090 (lambda_matrix_right_hermite): Use std::swap.
13091 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
13092 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13093 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
13094 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
13095 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
13096 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
13097 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
13098 * tree-vrp.c (compare_ranges): Likewise.
13099 * var-tracking.c (add_with_sets): Likewise.
13100 (vt_find_locations): Likewise.
13102 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
13104 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
13106 (FBSD_ENDFILE_SPEC): Likewise.
13107 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
13108 config/freebsd-spec.h.
13109 (ENDFILE_SPEC): Likewise.
13111 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
13112 Richard Henderson <rth@redhat.com>
13115 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
13116 Check for a memory location that is not a reference (using an AND)
13117 to an unaligned location here.
13118 * config/alpha/predicates.md (normal_memory_operand): Remove.
13120 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
13122 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
13123 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
13125 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
13127 * config/mips/mips.c (micromips_globals): New variable.
13128 (mips_set_compression_mode): Save and reinitialize target-dependent
13129 state for microMIPS.
13131 2015-05-18 Martin Liska <mliska@suse.cz>
13133 * dbgcnt.def: Add new counter.
13134 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
13136 2015-05-18 Martin Liska <mliska@suse.cz>
13138 * dbgcnt.def: Sort counters.
13139 * opts.c (common_handle_option): Do not compile if
13140 -fdbg-cnt-list is enabled.
13142 2015-05-18 Tom de Vries <tom@codesourcery.com>
13144 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
13145 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
13146 address operator to va_list operand.
13147 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
13149 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
13151 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
13152 * config/s390/s390.c (s390_gimplify_va_arg): Same.
13153 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
13155 2015-05-18 Tom de Vries <tom@codesourcery.com>
13157 * tree-ssa-tail-merge.c: Fix whitespace.
13159 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
13161 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
13162 cortex-a17, and cortex-a17.cortex-a7.
13164 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
13167 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
13169 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
13172 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
13173 QImode inner modes for TARGET_AVX512BW. Force mask operand
13174 to a register for AVX512F modes.
13176 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13178 * toplev.c (emit_debug_global_declarations): Do not output debug info
13179 when doing slim LTO objects.
13181 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13183 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
13184 odr_types_equivalent_p): Declare.
13185 (odr_type_p): Use gcc_checking_assert.
13186 (type_in_anonymous_namespace_p) Declare.
13187 (type_with_linkage_p): Declare.
13188 * common.opt (Wlto-type-mismatch): New warning.
13189 * ipa-devirt.c (compound_type_base): New function.
13190 (odr_or_derived_type_p): New function.
13191 (odr_types_equivalent_p): New function.
13192 (add_type_duplicate): Simplify.
13193 (type_with_linkage_p): Add hack to prevent false positives on C types
13194 (type_in_anonymous_namespace_p): Likewise.
13195 * tree.c (need_assembler_name_p): Use type_with_linkage.
13196 * tree.h (type_in_anonymous_namespace_p): Remove.
13197 * doc/invoke.texi (-Wlto-type-mismatch): Document
13199 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13201 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
13202 (verify_type): Verify STRING_FLAG.
13204 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
13207 * tree-pretty-print.c (percent_K_format): Replace locus pointer
13208 with accessor function.
13209 * tree-diagnostic.c (diagnostic_report_current_function): Use
13210 diagnostic_location function.
13211 (maybe_unwind_expanded_macro_loc): Likewise.
13212 (virt_loc_aware_diagnostic_finalizer): Likewise.
13213 (default_tree_printer): Replace locus pointer with accessor function.
13214 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
13215 (diagnostic_set_info_translated): Initialize second location.
13216 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
13217 (diagnostic_show_locus): Handle two locations. Call
13218 diagnostic_print_caret_line.
13219 (diagnostic_print_caret_line): New.
13220 (default_diagnostic_starter): Use diagnostic_location function.
13221 (diagnostic_report_diagnostic): Use diagnostic_location function.
13222 (verbatim): Do not set text.locus.
13223 * diagnostic.h (struct diagnostic_info): Remove location field.
13224 (struct diagnostic_context): Make caret_chars an array of two.
13225 (diagnostic_location): New inline.
13226 (diagnostic_expand_location): Handle two locations.
13227 (diagnostic_same_line): New inline.
13228 (diagnostic_print_caret_line): Declare.
13229 (CARET_LINE_MARGIN): New constant.
13230 * pretty-print.c (pp_printf): Do not set text.locus.
13231 (pp_verbatim): Do not set text.locus.
13232 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
13233 (struct text_info): Replace locus pointer with locations
13234 array. Add accessor functions.
13236 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
13237 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13240 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
13241 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
13242 large constants in register instead of splitting them.
13244 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
13247 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
13248 replacements in memory addresses.
13249 (get_unaligned_address): Ditto.
13251 2015-05-16 James Bowman <james.bowman@ftdichip.com>
13253 * config/ft32/*: New files for FT32 port.
13254 * doc/install.texi: Add FT32 information.
13255 * doc/invoke.texi: Add FT32 information.
13256 * doc/md.texi: Add FT32 information.
13257 * doc/contrib.texi: Self added.
13259 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
13261 PR tree-optimization/64454
13262 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
13263 (-1 - A -> ~A): Remove unnecessary condition.
13265 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
13267 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
13268 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
13269 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
13271 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
13273 * ipa-chkp.h (chkp_wrap_function): New.
13274 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
13275 (chkp_wrap_function_name): New.
13276 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
13277 to get wrapper name.
13278 * lto-cgraph.c: Include ipa-chkp.h.
13279 (input_cgraph_1): Avoid alias chain for wrappers.
13281 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
13283 PR middle-end/66134
13284 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
13285 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
13287 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13289 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
13290 (AARCH64_FL_SLOWMUL): Delete.
13291 (AARCH64_FL_CRC): Redefine to 1<<3.
13292 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
13294 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13296 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
13299 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
13301 * config/alpha/alpha.md (extendqidi2): Use general_operand
13302 instead of some_operand for operand[1] predicate.
13303 (extendhidi2): Ditto.
13304 (cbranchdi4): Use general_operand instead of some_operand
13305 for operand[1] and operands[2] predicates.
13306 (cstoredi4): Ditto.
13307 * config/alpha/predicates.md (some_operand): Remove unused predicate.
13308 (some_ni_operand): Ditto.
13310 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
13312 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
13313 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
13314 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
13315 low part of the constant using alpha_emit_set_const_1.
13316 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
13318 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
13320 * varasm.c (output_constant_pool_1): Pass down alignment from
13321 constant pool entry's descriptor to output_constant_pool_2.
13322 (output_object_block): Add comment prior to call to
13323 output_constant_pool_1.
13325 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
13327 PR rtl-optimization/65862
13328 * target.def (ira_change_pseudo_allocno_class): New hook.
13329 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
13331 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
13332 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
13334 * ira-costs.c (find_costs_and_classes): Call the hook and change
13335 classes when it is necessary.
13336 * doc/tm.texi: Update.
13338 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
13340 * config/i386/i386.md (sibcall_memory): Check that register with
13341 callee address is not also used as one of the arguments, instead
13342 of checking that it is not live after the sibcall.
13343 (sibcall_pop_memory): Ditto.
13344 (sibcall_value_memory): Ditto.
13345 (sibcall_value_pop_memory): Ditto.
13347 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
13349 * generic-match-head.c (types_match): Handle non-types.
13350 * gimple-match-head.c (types_match): Likewise.
13351 * match.pd: Remove unnecessary TREE_TYPE for types_match.
13353 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
13355 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
13356 (csneg3<mode>_insn): Enable expansion of pattern.
13358 2015-05-14 Nick Clifton <nickc@redhat.com>
13360 * config/rl78/rl78.c (rl78_select_section): Select the correct
13361 default section based upon the category of the decl.
13363 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
13365 PR rtl-optimization/30967
13366 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
13367 destination mode for the cost of scc patterns.
13369 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
13371 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
13372 using SWIM248 mode iterator.
13373 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
13374 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
13375 for operand[2] constraint.
13376 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
13378 2015-05-13 Jakub Jelinek <jakub@redhat.com>
13380 PR middle-end/66133
13381 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
13382 make sure it is never noreturn, even when the task body does not
13384 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
13385 right before GIMPLE_OMP_RETURN.
13386 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
13387 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
13388 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
13390 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13392 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
13393 * tree-ssa-math-opts.c: Include params.h
13394 (pow_synth_sqrt_info): New struct.
13395 (representable_as_half_series_p): New function.
13396 (get_fn_chain): Likewise.
13397 (print_nested_fn): Likewise.
13398 (dump_fractional_sqrt_sequence): Likewise.
13399 (dump_integer_part): Likewise.
13400 (expand_pow_as_sqrts): Likewise.
13401 (gimple_expand_builtin_pow): Use above to attempt to expand
13402 pow as series of square roots. Removed now unused variables.
13404 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
13406 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
13407 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
13408 Remove *p0 and *p1 arguments. Rewrite function.
13409 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
13410 (alpha_split_const_mov): Update calls to alpha_extract_integer and
13411 alpha_emit_set_long_const.
13412 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
13413 (alpha_output_mi_thunk_osf): Ditto.
13414 * config/alpha/alpha.md (movti): Do not check operands[1]
13417 2015-05-13 Richard Biener <rguenther@suse.de>
13419 PR tree-optimization/66129
13420 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
13422 (vect_schedule_slp_instance): Fix typo.
13424 2015-05-13 David Malcolm <dmalcolm@redhat.com>
13426 * common.opt (fdump-internal-locations): New option.
13427 * input.c: Include diagnostic-core.h.
13428 (get_end_location): New function.
13429 (write_digit): New function.
13430 (write_digit_row): New function.
13431 (dump_location_range): New function.
13432 (dump_labelled_location_range): New function.
13433 (dump_location_info): New function.
13434 * input.h (dump_location_info): New prototype.
13435 * toplev.c (compile_file): Handle flag_dump_locations.
13437 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
13439 * gimple-expr.h (is_gimple_constant): Reorder.
13440 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
13442 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
13444 * combine.c (simplify_set): When generating a CC set, if the
13445 source already is in the correct mode, do not wrap it in a
13446 compare. Simplify the rest of that code.
13448 2015-05-13 Richard Biener <rguenther@suse.de>
13450 PR tree-optimization/66123
13451 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
13454 2015-05-13 Richard Biener <rguenther@suse.de>
13456 PR middle-end/66110
13457 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
13459 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
13461 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
13463 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
13464 * aclocal.m4: Regenerated with automake-1.11.6.
13466 2015-05-13 Tom de Vries <tom@codesourcery.com>
13468 PR tree-optimization/66010
13469 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
13470 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
13471 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
13472 and rval based on do_deref.
13474 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
13477 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
13478 link time constants into adress expressions and therefore set
13481 2015-05-13 Jakub Jelinek <jakub@redhat.com>
13484 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
13485 Use SWI248 iterator instead of SWI.
13486 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
13487 Use eq_attr "alternative" "0" instead of match_test in
13488 length_immediate attribute computation.
13489 (*mulvhi4, *mulvhi4_1): New define_insns.
13492 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
13493 SIGNED to get precision of non-negative value.
13495 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
13498 * function.c (diddle_return_value_1): Process bounds first.
13499 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
13502 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
13504 PR rtl-optimization/64616
13505 * loop-invariant.c (can_move_invariant_reg): New.
13506 (move_invariant_reg): Call above new function to decide whether
13507 instruction can just be moved, skipping creation of temporary
13510 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
13512 PR target/pr66047.c
13513 * i386.c (ix86_function_sseregparm): Only return -1 if local function
13514 with implied regparm is called from -mno-sse function.
13515 (init_cumulative_args): Output error if ix86_function_sseregparm
13516 return -1 and SSE register would be needed.
13517 (function_arg_advance_32): Likewise.
13518 (function_arg_32): Likewise.
13519 * i386.h (ix86_args): Add decl field.
13521 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
13524 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
13525 inlines across optimization boundary.
13527 2015-05-12 Jason Merrill <jason@redhat.com>
13529 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
13530 string literal and macro name.
13532 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
13534 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
13535 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
13536 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
13538 2015-05-12 David Malcolm <dmalcolm@redhat.com>
13540 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
13541 (-Wmisleading-indentation): New option.
13542 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
13544 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
13546 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
13547 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
13548 (alpha_extract_integer): Ditto.
13549 (alpha_legitimate_constant_p): Ditto.
13550 (alpha_split_tmode_pair): Ditto.
13551 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
13552 (alpha_expand_mov): Ditto.
13553 (print_operand): Remove handling of 'H' modifier.
13554 <case 'm'>: Remove CONST_DOUBLE handling.
13555 (summarize_insn): Handle CONST_WIDE_INT.
13556 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
13558 (movti): Handle CONST_WIDE_INT.
13559 * config/alpha/constraints.md ('H'): Remove constraint definition.
13560 ('G'): Do not match MODE_FLOAT class.
13561 * config/alpha/predicates.md (const0_operand): Also match
13563 (non_add_const_operand): Ditto.
13564 (non_zero_const_operand): Ditto.
13565 (some_operand): Ditto.
13566 (input_operand): Ditto. Handle CONST_WIDE_INT.
13567 (and_operand): Do not match const_double.
13568 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
13570 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
13573 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
13574 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
13575 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
13576 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
13577 is_mm_seq_cst, is_mm_sync): New accessor functions.
13578 * builtins.c (expand_builtin_sync_operation,
13579 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
13580 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
13581 (get_memmodel, expand_builtin_atomic_compare_exchange,
13582 expand_builtin_atomic_load, expand_builtin_atomic_store,
13583 expand_builtin_atomic_clear): Use new accessor routines.
13584 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
13585 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
13586 (maybe_emit_sync_lock_test_and_set): Use new accessors and
13587 MEMMODEL_SYNC_ACQUIRE.
13588 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
13589 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
13590 expand_atomic_store): Use new accessors.
13591 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
13592 * tsan.c (instrument_builtin_call): Update check for memory model beyond
13593 final enum to use MEMMODEL_LAST.
13594 * c-family/c-common.c: Use new accessor for memmodel_base.
13595 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
13597 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
13598 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
13599 mem_thread_fence, *dmb): Likewise.
13600 * config/alpha/alpha.c (alpha_split_compare_and_swap,
13601 alpha_split_compare_and_swap_12): Likewise.
13602 * config/arm/arm.c (arm_expand_compare_and_swap,
13603 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
13604 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
13605 atomic_loaddi): Likewise.
13606 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
13608 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
13609 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
13611 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
13612 atomic_store<mode>, atomic_compare_and_swap<mode>,
13613 atomic_exchange<mode>): Use new accessors.
13614 * config/mips/mips.c (mips_process_sync_loop): Likewise.
13615 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
13616 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
13617 rs6000_post_atomic_barrier): Add new cases.
13618 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
13619 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
13620 (atomic_load<mode>): Add new cases and use new accessors.
13621 (store_quadpti): Add new cases.
13622 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
13624 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
13625 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
13628 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
13630 * ipa-devirt.c (type_with_linkage_p): New function.
13631 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
13633 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
13634 (can_be_name_hashed_p): Simplify.
13635 (hash_odr_name): Check that type has linkage before checking if it is
13637 (types_same_for_odr): Likewise.
13638 (odr_name_hasher::equal): Likewise.
13639 (odr_subtypes_equivalent_p): Likewise.
13640 (warn_types_mismatch): Likewise.
13641 (get_odr_type): Likewise.
13642 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
13643 * ipa-utils.h (odr_type_p): Move offline.
13644 * tree.c (need_assembler_name_p): Fix handling of types
13646 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
13648 2015-05-12 David Malcolm <dmalcolm@redhat.com>
13650 * timevar.c (timevar_enable): Delete in favor of...
13651 (g_timer): New global.
13652 (struct timevar_def): Move to timevar.h inside class timer.
13653 (struct timevar_stack_def): Likewise.
13654 (timevars): Delete global in favor of field "m_timevars" within
13655 class timer in timevar.h
13656 (stack): Likewise, in favor of field "m_stack".
13657 (unused_stack_instances): Likewise, in favor of field
13658 "m_unused_stack_instances".
13659 (start_time): Likewise, in favor of field "m_start_time".
13660 (get_time): Eliminate check for timevar_enable.
13661 (timer::timer): New function, built from part of timevar_init.
13662 (timevar_init): Rewrite idempotency test from using
13663 "timevar_enable" bool to using dynamic allocation of "g_timer".
13664 Move rest of implementation into timer's constructor.
13665 (timevar_push_1): Rename to...
13666 (timer::push): ...this, adding "m_" prefixes to variables that
13667 are now fields of timer.
13668 (timevar_pop_1): Likewise, rename to...
13669 (timer::pop): ...this, and add "m_" prefixes.
13670 (timevar_start): Replace test for "timevar_enable" with one for
13671 "g_timer", and move bulk of implementation to...
13672 (timer::start): ...here, adding "m_" prefixes.
13673 (timevar_stop): Likewise, from here...
13674 (timer::stop): ...to here.
13675 (timevar_cond_start): Likewise, from here...
13676 (timer::cond_start): ...to here.
13677 (timevar_cond_stop): Likewise, from here...
13678 (timer::cond_stop): ...to here.
13679 (validate_phases): Rename to...
13680 (timer::validate_phases): ...this, and add "m_" prefixes. Make
13681 locals "total" and "tv" const.
13682 (timevar_print): Rename to...
13683 (timer::print): ...this, and add "m_" prefixes. Make locals
13684 "total" and "tv" const. Eliminate test for timevar_enable.
13685 * timevar.h (timevar_enable): Eliminate.
13686 (g_timer): New declaration.
13687 (timevar_push_1): Eliminate.
13688 (timevar_pop_1): Eliminate.
13689 (timevar_print): Eliminate.
13690 (class timer): New class.
13691 (timevar_push): Rewrite to use g_timer.
13692 (timevar_pop): Likewise.
13693 * toplev.c (toplev::~toplev): Likewise.
13695 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
13697 * arm-protos.h (arm_sched_autopref): Delete.
13698 (tune_params): Re-organize, use enums for flag values.
13699 (FUSE_OPS): New macro.
13700 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
13701 (ARM_PREFETCH_BENEFICIAL): Likewise.
13702 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
13703 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
13704 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
13705 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
13706 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
13707 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
13708 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
13709 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
13711 (arm_option_override, thumb2_reorg, arm_print_tune_info)
13712 (aarch_macro_fusion_pair_p): Update uses of current_tune.
13713 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
13715 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
13717 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
13720 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
13721 Sandra Loosemore <sandra@codesourcery.com>
13723 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
13725 (REG_CLASS_NAMES): Add "IJMP_REGS".
13726 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
13727 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
13728 use new "c" register constraint.
13729 * config/nios2/constraint.md (c): New register constraint
13730 corresponding to IJMP_REGS.
13732 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13734 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
13735 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
13736 define_splits): Delete, revamp, transmogrify into ...
13737 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
13738 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
13739 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
13742 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13744 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
13745 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
13747 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13749 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
13750 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
13751 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
13752 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
13753 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
13754 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
13755 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
13756 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
13757 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
13758 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
13759 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
13760 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
13761 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
13762 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
13763 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
13764 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
13765 and 30 corresponding splitters): Delete.
13767 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13769 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
13772 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13774 * combine.c (recog_for_combine_1): New function, factored out
13775 from recog_for_combine.
13776 (change_zero_ext): New function.
13777 (recog_for_combine): If recog fails, try again with the pattern
13778 modified by change_zero_ext; if that still fails, restore the
13781 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13783 * combine.c (get_undo_marker): New function.
13784 (undo_to_marker): New function, largely factored out from ...
13785 (undo_all): ... this. Adjust.
13787 2015-05-12 Richard Biener <rguenther@suse.de>
13789 PR tree-optimization/66101
13790 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
13791 fixup if we turn a loop exit edge to a fallthru edge.
13793 2015-05-12 Richard Biener <rguenther@suse.de>
13795 PR tree-optimization/37021
13796 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
13797 (SLP_TREE_TWO_OPERATORS): New define.
13798 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
13799 SLP_TREE_TWO_OPERATORS.
13800 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
13802 (vect_build_slp_tree): Adjust.
13803 (vect_analyze_slp_cost_1): Likewise.
13804 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
13805 emitting two vector stmts and mixing the results.
13807 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
13809 * call.c (print_z_candidates): Remove dead code.
13811 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13813 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
13814 and zEC12_simple_fp.
13815 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
13818 2015-05-12 Tom de Vries <tom@codesourcery.com>
13820 PR tree-optimization/66010
13821 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
13823 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
13824 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
13825 va_lists are passed, and remove corresponding handling.
13826 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
13827 do_deref argument to ifn_va_arg.
13828 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
13831 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13834 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
13835 REG before taking its REGNO.
13837 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
13839 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
13840 rsp->sign_bit_copies and rsp->nonzero_bits into ...
13841 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
13842 present to get more accurate information about the number of sign bit
13843 copies and non zero bits.
13845 2015-05-12 Richard Biener <rguenther@suse.de>
13847 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
13848 do not allow unrolling.
13850 2015-05-11 Richard Henderson <rth@redhat.com>
13852 * config/i386/i386-modes.def (CCP): New.
13853 * config/i386/i386.c (put_condition_code): Handle it.
13854 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
13856 2015-05-11 Richard Henderson <rth@redhat.com>
13858 * target.def (md_asm_clobbers): Replace with...
13859 (md_asm_adjust): this.
13860 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
13861 (TARGET_MD_ASM_ADJUST): New.
13862 * tm.texi: Rebuild.
13863 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
13864 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
13865 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
13867 * cfgexpand.c (check_operand_nalternatives): Accept vector of
13868 constraints instead of lists of outputs and inputs.
13869 (expand_asm_stmt): Save and restore input_location around the
13870 body of the function. Move asm data into vectors instead of
13871 building tree lists. Generate cleanup sequences as needed,
13872 rather than waiting til the end. Use new md_asm_adjust hook.
13874 * config/vxworks.c: Include vec.h before target.h.
13875 * gimple.c: Likewise.
13876 * incpath.c: Likewise.
13877 * mode-switching.c: Likewise.
13879 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
13880 (cris_md_asm_adjust): this.
13881 (TARGET_MD_ASM_CLOBBERS): Remove.
13882 (TARGET_MD_ASM_ADJUST): New.
13883 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
13884 (ix86_md_asm_adjust): this.
13885 (TARGET_MD_ASM_CLOBBERS): Remove.
13886 (TARGET_MD_ASM_ADJUST): New.
13887 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
13888 (mn10300_md_asm_adjust): this.
13889 (TARGET_MD_ASM_CLOBBERS): Remove.
13890 (TARGET_MD_ASM_ADJUST): New.
13891 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
13892 (rs6000_md_asm_adjust): this.
13893 (TARGET_MD_ASM_CLOBBERS): Remove.
13894 (TARGET_MD_ASM_ADJUST): New.
13895 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
13896 (visium_md_asm_adjust): this.
13897 (TARGET_MD_ASM_CLOBBERS): Remove.
13898 (TARGET_MD_ASM_ADJUST): New.
13900 2015-05-11 Richard Henderson <rth@redhat.com>
13902 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
13903 if noutputs is zero.
13904 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
13906 * cfgexpand.c (expand_asm_operands): Merge into...
13907 (expand_asm_stmt): ... here.
13909 * cfgexpand.c (expand_asm_operands): Don't call
13910 resolve_asm_operand_names.
13911 * stmt.c (resolve_asm_operand_names): Clarify block comment.
13913 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
13915 * dwarf2out.c (gen_member_die): Sanity check that we access
13916 TYPE_MAIN_VARIANT for TYPE_METHODS.
13917 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
13918 checking TYPE_METHODS.
13919 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
13921 (build_distinct_type_copy): Clear TYPE_METHODS.
13922 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
13923 (verify_type): Allow TYPE_METHODS to be error_mark_node.
13924 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
13926 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
13928 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
13929 (emit_pattern_before_setloc): Likewise.
13931 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
13933 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
13934 for define_peephole2s.
13935 (get_peephole2_pattern): New function.
13936 (main): Use it. Call validate_pattern.
13938 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13940 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
13941 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
13942 (Last callee saved reg is different for AVR_TINY architecture)
13944 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
13946 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
13947 when looking for memory references.
13949 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
13952 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
13953 via function pointers.
13955 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
13957 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
13958 indirect call by forcing address into a pseudo with -fno-plt.
13959 * common.opt (flag_plt): New option.
13960 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
13961 ([-fno-plt]): Document.
13963 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
13966 * config/rs6000/option-defaults.h: Add space between string literal
13969 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
13971 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
13972 accross ARM targets.
13974 2015-05-11 Christian Bruel <christian.bruel@st.com>
13976 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
13977 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
13979 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
13981 PR rtl-optimization/66076
13982 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
13983 Don't grow the heap array if it is already big enough from a
13984 previous iteration.
13986 2015-05-11 Christian Bruel <christian.bruel@st.com>
13988 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
13989 (is_called_in_ARM_mode): Remove.
13990 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
13991 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
13992 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
13993 arm_declare_function_name.
13995 2015-05-11 Christian Bruel <christian.bruel@st.com>
13997 * config/arm/arm.c (arm_option_override): Reoganized and split into :
13998 (arm_option_params_internal); New function.
13999 (arm_option_check_internal): New function.
14000 (arm_option_override_internal): New function.
14001 (thumb_code, thumb1_code): Remove.
14002 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
14003 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
14004 (thumb_code, thumb1_code): Remove.
14005 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
14007 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
14009 * config/alpha/alpha.c (alpha_emit_set_const_1)
14010 (alpha_emit_set_long_const, alpha_extract_integer)
14011 (alpha_legitimate_constant_p, alpha_split_const_mov)
14012 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
14013 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14014 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
14016 * config/alpha/predicates.md (mode_mask_operand): Do not match
14018 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14019 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
14020 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
14021 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14022 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
14024 2015-05-11 Jakub Jelinek <jakub@redhat.com>
14027 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
14028 default_binds_local_p_2.
14029 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
14030 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
14032 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14034 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
14036 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14038 Patch by Richard Biener
14039 * coverage.c (coverage_obj_init): Delay building of type variant
14040 until the type is finished.
14042 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14044 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
14045 mismatch between C and C++ type; compoare correctly ARG_TYPES
14046 for non-prototypes and output correctly parameter index for METHOD_TYPE.
14047 (odr_types_equivalent_p): Fix wording of warning about attributes;
14048 it is OK to match prototype and non-prototype.
14050 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14052 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
14053 TYPE_ARG_TYPES list.
14054 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
14055 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
14057 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14059 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
14060 * tree.h (is_lang_specific): Constify.
14062 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
14064 PR tree-optimization/64454
14065 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
14068 2015-05-08 Jason Merrill <jason@redhat.com>
14070 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
14071 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
14072 config/darwin.h, config/darwin9.h, config/elfos.h,
14073 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
14074 config/microblaze/microblaze.h, config/mips/mips.h,
14075 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
14076 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
14077 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
14078 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
14079 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
14080 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
14081 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
14082 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
14083 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
14084 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
14085 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
14086 between string literal and macro name.
14088 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14090 * jump.c: Change argument types to rtx_insn *.
14093 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14095 * lra-constraints.c: Change argument type to rtx_insn *.
14097 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14099 * df-problems.c: Change argument type to rtx_insn *.
14101 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14103 * combine.c: Change argument type to rtx_insn *.
14105 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14108 * rtlanal.c: Change argument type to rtx_insn *.
14110 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14112 * sched-deps.c: Change argument types to rtx_insn *.
14113 * sched-int.h: Adjust.
14115 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14117 * dwarf2cfi.c: Change argument type to rtx_insn *.
14119 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14121 * ira.c (decrease_live_ranges_number): Changetype of local
14122 variable to rtx_insn *.
14123 * recog.c: Change argument types to rtx_insn *.
14126 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14128 * reorg.c: Change argument types to rtx_insn *.
14130 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14132 * ira-color.c: Change argument types to rtx_insn *.
14133 * lra-eliminations.c: Likewise.
14136 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14138 * gcse.c: Change argument types to rtx_insn *.
14140 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14142 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
14144 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14146 * emit-rtl.c (emit_debug_insn_before): Change argument type to
14150 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14152 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
14155 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14157 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
14160 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14162 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
14165 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14167 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
14170 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14172 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
14176 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14178 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
14182 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14184 * except.c (can_nonlocal_goto): Change type of argument to
14188 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14190 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
14193 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14195 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
14196 * cfgrtl.c (can_delete_label_p): Adjust.
14199 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14201 * reorg.c (stop_search_p): Change argument to rtx_insn *.
14203 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14205 * except.c (make_reg_eh_region_note): Change argument to
14207 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
14208 * except.h: Adjust.
14210 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14212 * mode-switching.c (commit_mode_sets): Change type of local
14213 variable from rtx to rtx_insn *.
14215 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
14217 * doc/install.texi (--enable-languages): Add missing jit and lto info.
14218 Add ^ to grep command.
14219 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
14220 arg to last gimple_simplify declaration. Add missing gimple_build
14221 declaration for built-in function case with four tree args.
14223 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
14224 Szabolcs Nagy <szabolcs.nagy@arm.com>
14226 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
14227 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
14228 (GNU_USER_DYNAMIC_LINKERN32): Update.
14230 2015-05-08 Richard Biener <rguenther@suse.de>
14232 PR tree-optimization/66036
14233 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14234 Handle strided group loads.
14235 (vect_verify_datarefs_alignment): Likewise.
14236 (vect_enhance_data_refs_alignment): Likewise.
14237 (vect_analyze_group_access): Likewise.
14238 (vect_analyze_data_ref_access): Likewise.
14239 (vect_analyze_data_ref_accesses): Likewise.
14240 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
14241 (vectorizable_load): Likewise.
14243 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
14245 * config/rs6000/rs6000.md: Require operand inequality in one
14248 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
14249 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14251 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
14253 * config/rx/rx.md (movdi, movdf): Likewise.
14254 Likewise for define_peephole2s.
14256 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14258 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
14259 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
14260 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
14261 vtst_u64): Rewrite using gcc vector extensions.
14263 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14265 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
14266 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
14268 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14270 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
14272 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
14274 * config/glibc-stdint.h (OPTION_MUSL): Define.
14275 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
14276 Change the definition based on OPTION_MUSL for 64 bit targets.
14277 * config/linux.h (OPTION_MUSL): Redefine.
14278 * config/alpha/linux.h (OPTION_MUSL): Redefine.
14279 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
14280 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
14282 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
14283 Szabolcs Nagy <szabolcs.nagy@arm.com>
14285 * config.gcc (LIBC_MUSL): New tm_defines macro.
14286 * config/linux.h (OPTION_MUSL): Define.
14287 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
14288 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
14289 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
14290 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
14291 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
14292 * config/linux.opt (mmusl): New option.
14293 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
14294 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
14295 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
14296 * configure: Regenerate.
14298 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
14299 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14302 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
14303 * config/i386/knetbsd-gnu64.h: New file.
14305 2015-05-08 Marek Polacek <polacek@redhat.com>
14308 * doc/invoke.texi: Document -Woverride-init-side-effects.
14310 2015-05-07 Marek Polacek <polacek@redhat.com>
14313 * doc/invoke.texi: Document -Wshift-negative-value.
14315 2015-05-06 Aditya Kumar <hiraditya@msn.com>
14317 * gcov-tool.c (do_merge): Refactore to remove int ret.
14318 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
14319 !type == FUNC to type != FUNC.
14320 * reload.h (struct target_reload): Changee to type of
14321 x_spill_indirect_levels from bool to unsigned char.
14323 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
14325 * rtl.h (always_void_p): New function.
14326 * gengenrtl.c (always_void_p): Likewise.
14327 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
14328 with code foo are always VOIDmode.
14329 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
14330 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
14331 compare-elim.c, config/aarch64/aarch64.c,
14332 config/aarch64/aarch64.md, config/alpha/alpha.c,
14333 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
14334 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
14335 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
14336 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
14337 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
14338 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
14339 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
14340 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
14341 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
14342 config/ia64/vect.md, config/iq2000/iq2000.c,
14343 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
14344 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
14345 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
14346 config/mep/mep.c, config/microblaze/microblaze.c,
14347 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
14348 config/mn10300/mn10300.c, config/msp430/msp430.c,
14349 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
14350 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
14351 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
14352 config/rs6000/altivec.md, config/rs6000/rs6000.c,
14353 config/rs6000/rs6000.md, config/rs6000/vector.md,
14354 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
14355 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
14356 config/sh/sh.md, config/sh/sh_treg_combine.cc,
14357 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
14358 config/spu/spu.md, config/stormy16/stormy16.c,
14359 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
14360 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
14361 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
14362 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
14363 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
14364 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
14365 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
14366 var-tracking.c: Update calls accordingly.
14368 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
14371 PR middle-end/54303
14372 * varasm.c (function_mergeable_rodata_prefix): New function.
14373 (mergeable_string_section): Use it.
14374 (mergeable_constant_section): Use it.
14376 2015-05-07 Jeff Law <law@redhat.com>
14379 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14380 simplifier to narrow arithmetic.
14381 * generic-match-head.c: (types_match, single_use): New functions.
14382 * gimple-match-head.c: (types_match, single_use): New functions.
14384 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14386 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
14389 2015-05-07 Richard Biener <rguenther@suse.de>
14391 PR tree-optimization/66002
14392 * passes.def: Schedule another pass_merge_phi after ifcombine, right
14395 2015-05-07 Marek Polacek <polacek@redhat.com>
14396 Martin Uecker <uecker@eecs.berkeley.edu>
14398 * doc/invoke.texi: Document -fsanitize=bounds-strict.
14399 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
14400 into SANITIZE_NONDEFAULT.
14401 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
14403 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
14406 * config/alpha/alpha.c (alpha_override_options_after_change): New.
14407 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
14408 (alpha_override_options): Move align_loops, align_jumps and
14409 align_functions handling into alpha_override_options_after_change.
14411 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
14412 Chris Jones <chrisj@nvidia.com>
14413 Joshua Conner <jconner@nvidia.com>
14415 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
14416 linking of crtfastmath.o.
14417 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
14419 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
14421 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
14422 (cstore<mode>4_unsigned_imm): New expander.
14423 (cstore<mode>4): Remove empty constraint strings. Use the new
14426 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
14429 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
14432 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
14434 * config/aarch64/geniterators.sh: Use standard BRE in sed.
14436 2015-05-06 Alan Modra <amodra@gmail.com>
14439 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
14440 (UNSPEC_NOP): Define.
14441 (reload_vsx_from_gpr<mode>): Add missing DONE.
14442 (reload_gpr_from_vsx<mode>): Likewise.
14443 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
14444 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
14446 2015-05-06 Christian Bruel <christian.bruel@st.com>
14449 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
14450 align_jumps, align_functions into aarch64_override_options_after_change.
14452 2015-05-06 Richard Biener <rguenther@suse.de>
14454 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
14455 vect_transform_slp_perm_load to check if we support a permutation
14456 for basic-block vectorization.
14458 2015-05-06 Nick Clifton <nickc@redhat.com>
14460 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
14461 used, even if it is not being used as a frame pointer.
14463 2015-05-05 Jason Merrill <jason@redhat.com>
14465 * dwarf2out.c (gen_member_die): Don't emit anything for an
14466 anonymous class constructor.
14468 2015-05-05 David Malcolm <dmalcolm@redhat.com>
14470 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
14471 that it reflects the block structure.
14472 (afdo_propagate_edge): Likewise.
14473 (afdo_calculate_branch_prob): Likewise.
14474 (afdo_annotate_cfg): Likewise.
14475 * cfgcleanup.c (equal_different_set_p): Likewise.
14476 (try_crossjump_to_edge): Likewise.
14477 * cgraph.c (cgraph_node::verify_node): Likewise.
14478 * cgraphunit.c (expand_all_functions): Likewise.
14479 * config/i386/i386.c (ix86_expand_copysign): Likewise.
14480 (exact_dependency_1): Likewise.
14481 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
14482 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
14483 * gensupport.c (process_define_subst): Likewise.
14484 * lto-wrapper.c (merge_and_complain): Likewise.
14485 * tree-if-conv.c (if_convertible_bb_p): Likewise.
14486 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
14487 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
14488 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
14489 * tree-vect-loop.c (vectorizable_reduction): Likewise.
14490 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
14491 * tree-vect-stmts.c (vectorizable_shift): Likewise.
14492 * tree-vrp.c (vrp_finalize): Likewise.
14493 * tree.c (variably_modified_type_p): Likewise.
14495 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
14497 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
14498 on darwin12 and later.
14499 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
14500 file to pass -rdynamic on darwin12 and later.
14501 * config/darwin.opt (rdynamic): Add.
14503 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14505 * doc/extend.texi (C Extensions): Update menu for moved Variable
14506 Attributes and Type Attributes sections.
14508 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14511 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
14512 if rep_8byte stringop strategy was specified for 32-bit target.
14514 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
14517 * config/i386/i386.md (vector convert to float spltiter): Check for
14518 xmm16+, when splitting scalar float conversion.
14519 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
14521 2015-05-05 Nick Clifton <nickc@redhat.com>
14523 * config/msp430/msp430-opts.h (enum msp430_regions): New.
14524 * config/msp430/msp430.c (msp430_override_options): Complain if
14525 -mcode-region or -mdata-region is used on a non MSP430X.
14526 (msp430_section_attr): New function. Checks lower, upper and
14528 (msp430_attribute_table): Add lower, upper and either.
14529 (gen_prefix): New function. Generates a prefix for a section
14531 (msp430_select_section): New function - handles the choice of
14532 section for an object. Takes into account memory region
14533 attributes and options.
14534 (msp430_function_section): Use gen_prefix.
14535 (TARGET_SECTION_TYPE_FLAGS): Define.
14536 (msp430_section_type_flags): New function.
14537 (TARGET_ASM_UNIQUE_SECTION): Define.
14538 (msp430_unique_section): New function.
14539 (msp430_output_aligned_decl_common): New function.
14540 (msp430_do_not_relax_short_jumps): New function.
14541 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
14543 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
14544 * config/msp430/msp430-protos.h
14545 (msp430_do_not_relax_short_jumps): New prototype.
14546 (msp430_output_aligned_decl_common): New prototype.
14547 * config/msp430/msp430.md (length): New attribute.
14548 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
14549 then use a long code sequence for short jumps.
14550 * config/msp430/msp430.opt (mcode-region): New.
14551 (mdata-region): New.
14552 * doc/invoke.texi: Document new options.
14553 * doc/extend.texi: Document new attributes.
14555 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
14557 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
14558 (tune_params): Add field branch_costs.
14559 (aarch64_branch_cost): Declare.
14560 * gcc/config/aarch64.c (generic_branch_cost): New.
14561 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
14562 (cortexa53_tunings): Likewise.
14563 (cortexa57_tunings): Likewise.
14564 (thunderx_tunings): Likewise.
14565 (xgene1_tunings): Likewise.
14566 (aarch64_branch_cost): Define.
14567 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
14569 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14571 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
14572 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
14573 * config/i386/i386.md: Ditto.
14574 * config/i386/winnt.c: Ditto.
14576 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
14578 * doc/extend.texi (__atomic Builtins): Move implementation details
14579 to the end of the description, rewrite opening paragraphs, state
14580 difference with __sync builtins, state C11/C++11 assumptions,
14581 weaken itemized descriptions, add explanation of memory model
14582 behaviour, expand description of compare-exchange, simplify text.
14584 2015-05-05 Renlin Li <renlin.li@arm.com>
14586 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
14588 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
14590 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
14591 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14592 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
14593 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14594 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
14595 * configure: Regenerate.
14596 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
14597 * doc/install.texi (aarch64*-*-*): Document new
14598 --enable-fix-cortex-a53-843419 option.
14599 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
14600 and -mno-fix-cortex-a53-843419 options.
14602 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14605 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
14607 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
14609 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
14610 fix overactive TYPE_MIN_VALUE check and add FIXME for type
14611 compatibility problems.
14613 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
14615 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
14617 (cbranchsi4_reg): New.
14618 * config/microblaze/microblaze.c
14619 (microblaze_expand_conditional_branch_reg): New.
14620 * config/microblaze/microblaze-protos.h
14621 (microblaze_expand_conditional_branch_reg): New prototype.
14623 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
14625 * config/microblaze/microblaze.md (peephole2): New.
14627 2015-05-04 Jeff Law <law@redhat.com>
14630 2015-05-04 Jeff Law <law@redhat.com>
14632 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14633 simplifier to narrow arithmetic.
14634 * generic-match-head.c: (types_match, single_use): New functions.
14635 * gimple-match-head.c: (types_match, single_use): New functions.
14637 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
14640 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
14641 (split_branches): Likewise.
14643 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
14645 * common.opt (fdelete-null-pointer-checks): Init to -1.
14646 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
14647 override flag_delete_null_pointer_checks default.
14648 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
14649 behavior re address zero. Better document target-specific behavior.
14650 (-fisolate-errneous-paths-dereference): Mention relationship to
14651 -fdelete-null-pointer-checks.
14653 2015-05-04 Jakub Jelinek <jakub@redhat.com>
14655 PR tree-optimization/65984
14656 * ubsan.c: Include tree-cfg.h.
14657 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
14658 stmt_could_throw_p test, rename can_throw variable to ends_bb.
14660 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
14662 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
14663 to CONST_DOUBLE_P predicate.
14664 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
14665 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
14666 allow only operands that satisfy standard_sse_constant_p predicate.
14667 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
14668 to CONST_DOUBLE_P predicate.
14670 2015-05-04 Jeff Law <law@redhat.com>
14672 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14673 simplifier to narrow arithmetic.
14674 * generic-match-head.c: (types_match, single_use): New functions.
14675 * gimple-match-head.c: (types_match, single_use): New functions.
14677 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
14679 * config/arm/arm.c: Restore bootstrap.
14681 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
14683 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
14684 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
14685 as CONST_WIDE_INT, not CONST_DOUBLE.
14686 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
14687 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
14688 (ix86_find_base_term): Do not check for CONST_DOUBLE.
14689 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
14690 (ix86_build_signbit_mask): Rewrite using wide ints.
14691 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
14692 (ix86_rtx_costs): Handle CONST_WIDE_INT.
14693 (find_constant): Ditto.
14694 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
14695 using gen_int_mode.
14696 * config/i386/predicates.md (x86_64_immediate_operand)
14697 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
14698 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
14699 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
14700 (const0_operand): Also match const_wide_int.
14701 (constm1_operand): Ditto.
14702 (const1_operand): Ditto.
14704 2015-05-04 Richard Biener <rguenther@suse.de>
14706 PR tree-optimization/65965
14707 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
14708 store groups at gaps.
14710 2015-05-04 Richard Biener <rguenther@suse.de>
14712 PR tree-optimization/65935
14713 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
14714 then make sure to apply that swapping to the IL.
14716 2015-05-04 Jakub Jelinek <jakub@redhat.com>
14718 * Makefile.in (PATCHLEVEL_c): New variable.
14719 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
14720 expand the same way as if DEVPHASE_c was non-empty.
14722 2015-05-04 Kai Tietz <ktietz@redhat.com>
14725 * lto-wrapper.c (run_gcc): Open filename
14728 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
14730 * doc/extend.texi (Variable Attributes, Type Attributes): Move
14731 sections up in file, to immediately after the Function Attributes
14734 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
14736 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
14738 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14740 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
14741 (insert_partition_copy_on_edge): Adjust.
14742 (insert_rtx_to_part_on_edge): Likewise.
14743 (insert_part_to_rtx_on_edge): Likewise.
14745 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14747 * function.c (set_return_jump_label): Change type of argument to
14749 * function.h (set_return_jump_label): Adjust.
14751 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14753 * reload.h (struct reg_equivs_t): Change type of init to
14755 * ira.c (fix_reg_equiv_init): Adjust.
14756 * reload1.c (eliminate_regs_1): Likewise.
14757 (init_eliminable_invariants): Likewise.
14759 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14761 * cselib.c (fp_setter_insn): Take a rtx_insn *.
14762 * cselib.h (fp_setter_insn): Adjust.
14764 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14766 * recog.c (struct validate_replace_src_data): Change type of
14767 insn field to rtx_insn *.
14768 (validate_replace_src_group): Change type of argument to rtx_insn *.
14769 * recog.h (validate_replace_src_group): Adjust.
14771 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14773 * haifa-sched.c: Change the type of some variables to rtx_insn *.
14774 * sched-deps.c: Likewise.
14775 * sched-int.h: Likewise.
14776 * sched-rgn.c: Likewise.
14777 * sel-sched.c: Likewise.
14779 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14782 * config/i386/i386.c: Change the type of some arguments to
14784 * config/arm/arm.c: Likewise.
14786 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14788 * lra-constraints.c: Change type of some arguments to rtx_insn *.
14790 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14792 * regcprop.c (kill_autoinc_value): Change type of argument to
14795 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14797 * genrecog.c (print_subroutine): Adjust.
14798 * recog.c (get_bool_attr_mask_uncached): Likewise.
14799 * recog.h (struct recog_data_d): Change the type of insn to
14802 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14804 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
14806 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14808 * df-problems.c (df_set_note): Change type of argument to
14811 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14813 * builtins.c (expand_builtin_trap): Change type of local
14814 variable to rtx_insn *.
14815 (add_sched_insns_for_speculation): Likewise.
14816 (ix86_emit_save_regs): Likewise.
14817 (get_scratch_register_on_entry): Likewise.
14818 (ix86_emit_restore_reg_using_pop): Likewise.
14819 (ix86_emit_leave): Likewise.
14820 (ix86_emit_restore_regs_using_mov): Likewise.
14821 (ix86_expand_epilogue): Likewise.
14823 (rl78_alloc_physical_registers_umul): Likewise.
14824 * cselib.c (discard_useless_locs): Likewise.
14825 (cselib_invalidate_regno): Likewise.
14826 (cselib_invalidate_mem): Likewise.
14827 * function.c (expand_function_start): Likewise.
14828 (emit_use_return_register_into_block): Likewise.
14829 * gcse.c: Likewise.
14830 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
14831 * ifcvt.c (noce_get_alt_condition): Likewise.
14832 * loop-doloop.c (doloop_condition_get): Likewise.
14833 * lra-constraints.c (inherit_in_ebb): Likewise.
14834 * modulo-sched.c (sms_schedule_by_order): Likewise.
14835 * recog.c (next_insn_tests_no_inequality): Likewise.
14836 * reorg.c (emit_delay_sequence): Likewise.
14837 (update_reg_dead_notes): Likewise.
14838 (fix_reg_dead_note): Likewise.
14839 (fill_slots_from_thread): Likewise.
14840 (delete_computation): Likewise.
14842 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
14844 * doc/extend.texi (Variable Attributes): Add menu and proper
14845 @nodes to subsections. Move Microsoft Windows attributes to
14846 their own subsection.
14847 (Type Attributes): Reorganize introduction to remove duplicate
14848 list of attributes. Add menu and proper @nodes to subsections.
14849 Alphabetize the main table of common attributes.
14851 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
14853 * match.pd: New simplification patterns.
14854 (x + (x & 1)) -> ((x + 1) & ~1)
14855 (x & ~(x & y)) -> ((x & ~y))
14856 (x | ~(x | y)) -> ((x | ~y))
14858 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14860 * target.def (attribute_table): Mention that struct attribute_spec
14861 is defined in tree-core.h rather than tree.h
14862 * doc/tm.texi: Regenerate.
14864 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
14866 * genrecog.c (test): Rename to rtx_test. Update rest of file
14869 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
14871 PR translation/65959
14872 * params.h (DEFPARAM): Rename msgid to nocmsgid.
14874 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
14876 * gcc/config/aarch64/aarch64-protos.h (tune_params):
14877 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
14878 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
14879 Return value depending on target.
14880 (generic_tunings): Initialize new target settings.
14881 (cortexa53_tunings): Likewise.
14882 (cortexa57_tunings): Likewise.
14883 (thunderx_tunings): Likewise.
14884 (xgene1_tunings): Likewise.
14886 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
14888 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
14889 Make Cortex-A53 shift costs more accurate.
14891 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14893 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
14896 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
14898 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
14899 Calculate cost of op0 and op1 in PLUS and MINUS cases.
14901 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14903 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
14904 Add cost of op0 in the compare-with-fpzero case.
14906 2015-04-30 David Malcolm <dmalcolm@redhat.com>
14908 * builtins.c (fold_builtin_1): Remove spurious second
14910 * cgraph.h (symtab_node::get_availability): Likewise.
14911 * opts.c (common_handle_option): Remove spurious second semicolon.
14912 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
14913 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
14915 2015-04-30 Caroline Tice <cmtice@google.com>
14917 PR gcov-profile/65929
14918 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
14919 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
14920 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
14921 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
14922 * doc/tm.texi: Regenerate.
14923 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
14924 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
14925 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
14926 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
14928 2015-04-30 Marek Polacek <polacek@redhat.com>
14930 * varasm.c (handle_cache_entry): Fix logic.
14932 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14934 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
14935 (*extrsi5_insn_uxtw_alt): Likewise.
14936 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
14937 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
14940 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14942 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
14945 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14947 * config/aarch64/aarch64.md
14948 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
14949 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
14950 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
14951 appropriately. Handle alternative EON form.
14953 2015-04-30 Renlin Li <renlin.li@arm.com>
14955 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
14956 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
14958 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
14961 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
14962 -fstrict-aliasing boundaries.
14964 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14966 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
14967 and [SU]MNEGL patterns.
14969 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14971 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
14972 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
14973 combined arithmetic-shift ops. Properly handle all shift and extend
14974 operations that can occur in combination with PLUS/MINUS.
14975 Rename maybe_fma to compound_p.
14976 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
14977 arithmetic and shift operations.
14979 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14981 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
14982 rather than arith_shift cost when costing ADD/MINUS of an
14985 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
14988 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
14991 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
14993 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
14994 are for the same position.
14996 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
14998 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
15000 (vectorize_loops): Use it.
15002 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15004 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
15005 for aggregate types.
15006 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
15007 type to be non_ODR.
15008 * tree.c (need_assembler_name_p): Compute mangled name for
15009 non-fundamental types and integer types.
15011 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
15013 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
15015 * expr.c (expand_expr_real_2): Likewise.
15017 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15019 * tree.c (build_common_builtin_nodes): Do not build
15020 __builtin_alloca_with_align as equivalent of library alloca.
15022 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15024 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
15025 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
15027 * tree.c: Include print-tree.h and ipa-utils.h
15028 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
15029 (free_lang_data_in_cgraph): Call verify_type.
15030 (verify_type_variant): New function.
15031 (verify_type): New function.
15032 * tree.h (verify_type): Declare.
15034 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
15036 * config/mips/mips-cpus.def: (mips4): Change default processor
15037 from PROCESSOR_R8000 to PROCESSOR_R10000.
15039 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
15041 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
15042 la/jalr instead of jal.
15044 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
15047 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
15048 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
15049 (setcc+movzbl peephole2): Check also clobbered reg.
15050 (setcc+andl peephole2): Ditto.
15052 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
15055 * config/nvptx/mkoffload.c (target_ilp32): New variable.
15056 (main): Set it depending on "-foffload-abi=[...]".
15057 (compile_native, main): Use it to pass "-m32" or "-m64" to the
15060 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
15063 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
15064 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
15065 Flip lane index back at assembly time for bigendian.
15067 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
15069 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
15070 * gimplify.c (gimplify_omp_workshare): Use it.
15072 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15074 * Makefile.in (build/genrecog.o): Depend on inchash.h.
15075 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
15077 * genrecog.c: Rewrite most of the code except for the third page.
15079 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15081 * inchash.h, inchash.c: Include bconfig.h for build objects.
15082 * Makefile.in (build/inchash.o): New rule.
15084 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
15087 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
15088 number in type attribute expression.
15090 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15092 * loop-iv.c (canon_condition): Generalize to all types of integer
15095 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
15097 * gimple-walk.c: Prune duplicate or unneeded includes.
15098 (walk_gimple_asm): Only call parse_input_constraint or
15099 parse_output_constraint if their findings are used.
15100 Honour parse_input_constraint and parse_output_constraint
15103 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
15105 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
15107 2015-04-29 Tom de Vries <tom@codesourcery.com>
15109 PR tree-optimization/65893
15110 * passes.def (pass_all_optimizations): Move pass_stdarg to after
15113 2015-04-29 Richard Biener <rguenther@suse.de>
15115 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
15116 compute GROUP_SIZE for basic-block SLP.
15117 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
15118 take into account gaps.
15119 (vect_get_mask_element): Properly reject references to previous
15121 (vect_transform_slp_perm_load): Likewise.
15123 2015-04-29 Christian Bruel <christian.bruel@st.com>
15126 * config/i386/i386.c (ix86_default_align): New function.
15127 (ix86_override_options_after_change): Call ix86_default_align.
15128 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
15129 (ix86_override_options_after_change): New function.
15131 2015-04-28 Jeff Law <law@redhat.com>
15133 * tree-ssa-dom.c (record_equality); Fix comment typos.
15135 2015-04-28 Tom de Vries <tom@codesourcery.com>
15137 PR tree-optimization/65887
15138 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
15140 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
15142 * doc/extend.texi (Declaring Attributes of Functions): Split into
15143 subsections by target. Alphabetize the table of common attributes.
15144 Rewrite some of the introductory text to reflect the new structure.
15145 Update some cross-references to point to the new subsections.
15146 (Attribute Syntax): Put paragraph about "__" naming here. Remove
15147 duplicate copies in the discussion of function, label, and type
15150 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
15153 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
15155 2015-04-28 Jason Merrill <jason@redhat.com>
15158 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
15159 (finalize_type_size): Respect TYPE_USER_ALIGN.
15160 (layout_type) [ARRAY_TYPE]: Likewise.
15162 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
15164 * config/arm/arm.md (*arm_movt): Fix type attribute.
15165 (*cmpsi_shiftsi): Likewise.
15166 (*cmpsi_shiftsi_swp): Likewise.
15167 (*movsicc_insn): Likewise.
15168 (*cond_move): Likewise.
15169 (*if_plus_move): Likewise.
15170 (*if_move_plus): Likewise.
15171 (*if_arith_move): Likewise.
15172 (*if_move_arith): Likewise.
15173 (*if_shift_move): Likewise.
15174 (*if_move_shift): Likewise.
15175 (*arm_movtas_ze): Likewise.
15176 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
15177 redundancy and type attribute.
15178 (*thumb2_movsi_insn): Fix type attribute.
15179 (*thumb2_addsi_short): Likewise.
15180 (thumb2_addsi3_compare0): Likewise.
15181 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
15182 attributes accordingly.
15184 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
15187 * function.c (pad_to_arg_alignment): Add parentheses.
15189 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
15191 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
15192 libgcc/config/frv/elf-lib.h.
15194 2015-04-28 Tom de Vries <tom@codesourcery.com>
15196 * tree-call-cdce.c: Fix example in header comment.
15198 2015-04-28 Richard Biener <rguenther@suse.de>
15200 PR tree-optimization/62283
15201 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
15202 fails fatally and we are vectorizing a basic-block simply
15203 cause the child to be constructed piecewise.
15204 (vect_analyze_slp_cost_1): Adjust.
15205 (vect_detect_hybrid_slp_stmts): Likewise.
15206 (vect_bb_slp_scalar_cost): Likewise.
15207 (vect_get_constant_vectors): For piecewise constructed
15208 constants place them after the last def.
15209 (vect_get_slp_defs): Adjust.
15210 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
15211 externals for basic-block vectorization.
15213 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15216 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
15218 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
15219 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
15220 (AARCH64_TUNE_FMA_STEERING): Likewise.
15221 * config/aarch64/aarch64-cores.def: Set
15222 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
15223 FMUL/FMADD instructions.
15224 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
15225 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
15226 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
15227 * config/aarch64/cortex-a57-fma-steering.h: New file.
15228 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15230 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
15232 * gensupport.c (std_preds): Add missing codes to address_operand entry.
15234 2015-04-28 Richard Biener <rguenther@suse.de>
15236 PR tree-optimization/65851
15237 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
15238 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
15239 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
15240 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
15241 (ccp_visit_phi_node): Adjust.
15242 (evaluate_stmt): For simplifications to SSA names return its
15243 lattice value if that isn't VARYING. Return immediately when
15244 simplified to a constant.
15245 (visit_assignment): Adjust.
15246 (ccp_visit_stmt): Likewise.
15248 2015-04-28 Tom de Vries <tom@codesourcery.com>
15250 PR tree-optimization/65818
15251 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
15254 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15256 * calls.c (save_fixed_argument_area): Don't check
15257 ARGS_GROW_DOWNWARD with the preprocessor.
15258 (restore_fixed_argument_area): Likewise.
15259 (mem_overlaps_already_clobbered_arg_p): Likewise.
15260 (check_sibcall_argument_overlap): Likewise.
15261 (expand_call): Likewise.
15262 (emit_library_call_value_1): Likewise.
15263 (store_one_arg): Likewise.
15264 * function.c (assign_parms): Likewise.
15265 (locate_and_pad_parm): Likewise.
15266 (pad_to_arg_alignment): Likewise.
15267 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15269 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15271 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
15272 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
15273 * calls.c (save_fixed_argument_area): Don't chekc if
15274 ARGS_GROW_DOWNWARD is defined.
15275 (restore_fixed_argument_area): Likewise.
15276 (mem_overlaps_already_clobbered_arg_p): Likewise.
15277 (check_sibcall_argument_overlap): Likewise.
15278 (expand_call): Likewise.
15279 (emit_library_call_value_1): Likewise.
15280 (store_one_arg): Likewise.
15281 * function.c (assign_parms): Likewise.
15282 (locate_and_pad_parm): Likewise.
15283 (pad_to_arg_alignment): Likewise.
15284 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15286 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15288 * defaults.h (gen_epilogue): New function.
15289 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
15291 * cfgrtl.c (cfg_layout_finalize): Likewise.
15292 * df-scan.c: Likewise.
15293 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15294 (reposition_prologue_and_epilogue_notes): Likewise.
15295 * reorg.c (find_end_label): Likewise.
15296 * toplev.c: Likewise.
15298 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15300 * bb-reorder.c (HAVE_return): Don't check if its undefined.
15301 * defaults.h (gen_simple_return): New function.
15302 (gen_simple_return): Likewise.
15303 (HAVE_return): Add default definition to false.
15304 (HAVE_simple_return): Likewise.
15305 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
15306 HAVE_return and HAVE_simple_return are defined.
15307 * function.c (gen_return_pattern): Likewise.
15308 (convert_jumps_to_returns): Likewise.
15309 (thread_prologue_and_epilogue_insns): Likewise.
15310 * reorg.c (find_end_label): Likewise.
15311 (dbr_schedule): Likewise.
15312 * shrink-wrap.c: Likewise.
15313 * shrink-wrap.h: Likewise.
15315 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15317 * defaults.h (EPILOGUE_USES): Add default definition of false.
15318 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
15319 * resource.c (init_resource_info): Likewise.
15321 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15323 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
15325 * dwarf2out.c (field_byte_offset): REmove check if
15326 PCC_BITFIELD_TYPE_MATTERS is defined.
15327 * stor-layout.c (layout_decl): Likewise.
15328 (update_alignment_for_field): Likewise.
15329 (place_field): Likewise.
15331 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15333 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
15335 * regrename.c (check_new_reg_p): Remove check if
15336 HARD_REGNO_RENAME_OK is defined.
15337 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
15339 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15341 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
15342 * cse.c (fold_rtx): Likewise.
15343 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
15344 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
15345 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
15346 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
15347 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
15348 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
15349 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
15350 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
15351 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
15352 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
15354 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
15355 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
15356 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
15357 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
15358 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
15359 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
15360 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
15361 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
15362 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
15363 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
15364 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
15365 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
15366 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
15367 * doc/tm.texi: Regenerate.
15368 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
15369 either true or false.
15371 2015-04-27 Jeff Law <law@redhat.com>
15373 PR tree-optimization/65217
15374 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
15375 of them has a single use, make sure it is the LHS of the implied
15378 2015-04-28 Alan Modra <amodra@gmail.com>
15381 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
15382 (offsettable_ok_by_alignment): Use minimum of decl and toc
15383 pointer alignment. Replace dead code with assertion.
15384 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
15385 case if size exceeds toc pointer alignment.
15386 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
15387 (rs6000_emit_move): Likewise.
15388 * configure.ac: Add linker toc pointer alignment check.
15389 * configure: Regenerate.
15390 * config.in: Regenerate.
15392 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
15394 * config.gcc: Add h8300-*-linux.
15395 * config/h8300/linux.h: New.
15396 * config/h8300/t-linux: New.
15397 * config/h8300/h8300.c (h8300_option_override): Normal mode
15398 is not supported for h8300-*-linux.
15399 (h8300_file_start): Target priority change.
15400 (get_shift_alg): Likewise.
15401 (h8300_shift_need_scratch_p): Likewise.
15402 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
15403 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
15405 2015-04-27 Caroline Tice <cmtice@google.com>
15407 * final.c (final_scan_insn): Output cold_function_name as function
15409 * varasm.c (cold_function_name): Make global.
15410 (assemble_start_function): Re-set cold_function_name.
15411 (assemble_end_function): Output cold partition size.
15412 * varasm.h (cold_function_name): Declare global.
15414 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
15416 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
15417 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
15419 (*movxi_internal_avx512f): Ditto.
15420 (define_split): Check for xmm16+, when splitting scalar float_extend.
15421 (*extendsfdf2_mixed): Use "v" constraint.
15422 (define_split): Check for xmm16+, when splitting scalar float_truncate.
15423 (*truncdfsf_fast_sse): Use "v" constraint.
15424 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
15425 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
15426 (define_peephole2): Check for xmm16+, when converting scalar
15428 (define_peephole2): Check for xmm16+, when converting scalar
15430 (*fop_<mode>_comm_mixed): Use "v" constraint.
15431 (*fop_<mode>_comm_sse): Ditto.
15432 (*fop_<mode>_1_mixed): Ditto.
15433 (*sqrt<mode>2_sse): Ditto.
15434 (*ieee_s<ieee_maxmin><mode>3): Ditto.
15436 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15438 * combine.c (simplify_if_then_else): Use std::swap instead
15439 of manually swapping.
15440 (known_cond): Likewise.
15441 (simplify_comparison): Likewise.
15443 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
15446 * config/rs6000/htm.md: Remove all define_expands.
15447 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
15448 UNSPECV_HTM_TABORTWCI): Remove.
15449 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
15450 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
15451 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
15452 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
15453 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
15454 tabortwci_internal): Remove define_insns.
15455 (tabort<wd>c, tabort<wd>ci): New define_insns.
15456 (tabort): Use gpc_reg_operand.
15457 (tcheck): Remove operand.
15458 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
15459 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
15461 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
15462 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
15463 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
15464 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
15465 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
15466 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
15467 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
15468 (tcheck): Remove builtin argument.
15469 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
15471 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
15472 tabortdc and tabortdci builtins when not in 64-bit mode.
15473 Modify code to handle the loss of the HTM define_expands.
15474 Emit code to copy the CR register to TARGET.
15475 (htm_init_builtins): Modify code to handle the loss of the HTM
15477 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
15478 (RS6000_BTC_64BIT): Likewise.
15479 (RS6000_BTC_CR): New macro.
15480 * doc/extend.texi: Update documentation for htm builtins.
15482 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15484 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
15485 of manually swapping.
15486 (simplify_associative_operation): Likewise.
15487 (simplify_binary_operation): Likewise.
15488 (simplify_plus_minus): Likewise.
15489 (simplify_relational_operation): Likewise.
15490 (simplify_ternary_operation): Likewise.
15492 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
15494 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
15495 (xs_hi_nonmemory_operand): Remove error.
15496 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
15497 general_operand rather than xs_hi_general_operand.
15499 2015-04-27 Richard Biener <rguenther@suse.de>
15501 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
15502 (record_equivalences_from_stmt): Valueize rhs.
15503 (record_equality): Canonicalize x and y order via
15504 tree_swap_operands_p. Do not swap operands for same loop depth.
15506 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
15510 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
15511 Add hint how to use own spec file.
15513 2015-04-27 Jakub Jelinek <jakub@redhat.com>
15515 PR tree-optimization/65875
15516 * tree-vrp.c (update_value_range): If in is_new case setting
15517 old_vr to VR_VARYING, also set new_vr to it. Remove
15518 old_vr->type == VR_VARYING test.
15519 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
15520 SSA_PROP_INTERESTING if update_value_range returned true,
15521 but new range is VR_VARYING.
15523 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
15525 * combine.c (sign_extend_short_imm): New.
15526 (set_nonzero_bits_and_sign_copies): Use above new function for sign
15527 extension of src short immediate.
15528 (reg_nonzero_bits_for_combine): Likewise for tem.
15530 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
15532 * stor-layout.c (self_referential_component_ref_p): New predicate.
15533 (copy_self_referential_tree_r): Use it.
15534 (self_referential_size): Punt for simple operations directly involving
15535 self-referential component references.
15536 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
15538 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
15540 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
15542 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
15544 * vec.h (vec): Make splice arguments const. Update definitions
15547 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
15549 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
15552 2015-04-26 Tom de Vries <tom@codesourcery.com>
15554 PR tree-optimization/65826
15555 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
15557 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
15559 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
15560 (*madd3<mode>): Ditto.
15561 (*msub4<mode>): Ditto.
15562 (*msub3<mode>): Ditto.
15563 (*nmadd4<mode>): Ditto.
15564 (*nmadd3<mode>): Ditto.
15565 (*nmadd4<mode>_fastmath): Ditto.
15566 (*nmadd3<mode>_fastmath): Ditto.
15567 (*nmsub4<mode>): Ditto.
15568 (*nmsub3<mode>): Ditto.
15569 (*nmsub4<mode>_fastmath): Ditto.
15570 (*nmsub3<mode>_fastmath): Ditto.
15572 2015-04-24 Jason Merrill <jason@redhat.com>
15575 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
15576 down when building TYPE_CANONICAL.
15577 (build_pointer_type_for_mode): Likewise.
15579 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
15581 * genrecog.c (validate_pattern): Check matching constraint refers
15582 to a lower numbered operand.
15584 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15587 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
15588 save to independent variables use the Save attribute. This will
15589 allow these options to be modified with the #pragma/attribute
15591 (-mallow-movmisalign): Likewise.
15592 (-mallow-df-permute): Likewise.
15593 (-msched-groups): Likewise.
15594 (-malways-hint): Likewise.
15595 (-malign-branch-targets): Likewise.
15596 (-mvectorize-builtins): Likewise.
15597 (-msave-toc-indirect): Likewise.
15599 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
15600 can be set via the #pragma/attribute target support.
15601 (rs6000_opt_vars): Likewise.
15602 (rs6000_inner_target_options): If VSX was set, also set
15603 -mno-avoid-indexed-addresses.
15605 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15607 * config/arm/iterators.md (shiftable_ops): Rename to...
15608 (SHIFTABLE_OPS): ... This. Update use in comments.
15609 (ior_xor): Rename to...
15610 (IOR_XOR): ... This.
15611 (vqh_ops): Rename to...
15612 (VQH_OPS): ... This.
15613 (vqhs_ops): Rename to...
15614 (VQHS_OPS): ... This.
15615 (rshifts): Rename to...
15616 (RSHIFTS): ... This.
15617 (returns): Rename to...
15618 (RETURNS): ... This.
15619 * config/arm/arm.md: Update uses of the above.
15620 * config/arm/neon.md: Likewise.
15622 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15624 * config.host (case ${host}): Add aarch64*-*-linux case.
15625 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
15626 fields to all the cores.
15627 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
15628 Add MCPU_MTUNE_NATIVE_SPECS.
15629 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
15630 field to all extensions.
15631 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
15632 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
15633 Adjust definition of AARCH64_OPT_EXTENSION.
15634 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
15635 (MCPU_MTUNE_NATIVE_SPECS): Define.
15636 * config/aarch64/driver-aarch64.c: New file.
15637 * config/aarch64/x-arch64: New file.
15638 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
15641 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
15642 Wei Mi <wmi@google.com>
15644 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
15645 * config/i386/i386.c (extract_base_offset_in_addr): New function.
15646 (ix86_operands_ok_for_move_multiple): Ditto.
15647 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
15648 (movlpd/movhpd to movupd peephole2): Ditto.
15650 2015-04-24 Marek Polacek <polacek@redhat.com>
15653 * input.h (from_macro_expansion_at): Define.
15656 * doc/invoke.texi: Update description of -Wlogical-op.
15658 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
15660 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
15661 ternary operator in fprintf and harmonize spacing.
15663 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
15665 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
15666 Mark operand1 commutative.
15668 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
15670 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
15671 input operands in memory.
15672 (*vec_concatv2si_sse4_1): Ditto.
15673 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
15674 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
15676 (vec_extract_hi_v32hi): Ditto.
15677 (vec_extract_hi_v64hi): Ditto.
15678 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
15680 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
15681 Steven Bosscher <steven@gcc.gnu.org>
15683 PR rtl-optimization/34503
15684 * cprop.c (cprop_reg_p): New.
15685 (hash_scan_set): Use above function to check if register can be
15687 (find_avail_set): Return up to two sets, one whose source is a
15688 register and one whose source is a constant. Sets are returned in an
15689 array passed as parameter rather than as a return value.
15690 (cprop_insn): Use a do while loop rather than a goto. Try each of the
15691 sets returned by find_avail_set, starting with the one whose source is
15692 a constant. Use cprop_reg_p to check if register can be propagated.
15693 (do_local_cprop): Use cprop_reg_p to check if register can be
15695 (implicit_set_cond_p): Likewise.
15697 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15699 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
15700 (sem_function::equals): IGNORED_NODES parameter is now unused;
15701 update call of equals_private.
15702 (sem_function::equals_private): Do not call equals_wpa; skip
15703 gimple body matching if there is no body.
15704 (sem_function::init): Add logic to hash tthunk info.
15705 (sem_function::parse): Also parse thunks.
15706 * ipa-icf.h (equals_private): Update declaration.
15708 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15710 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
15711 asterisk from name so this can be generated directly.
15712 (*altivec_stvx_<mode>_internal): Likewise.
15713 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
15714 that this is never called during or after reload/lra.
15715 (rs6000_frame_related): Remove split_reg
15716 argument and logic that references it.
15717 (emit_frame_save): Remove last parameter from call to
15718 rs6000_frame_related.
15719 (rs6000_emit_prologue): Remove last parameter from eight calls to
15720 rs6000_frame_related. Force generation of stvx instruction for
15721 Altivec register saves. Remove split_reg handling, which is no
15723 (rs6000_emit_epilogue): Force generation of lvx instruction for
15724 Altivec register restores.
15726 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15728 * config/rs6000/rs6000.opt (mcrypto): Change option description to
15729 match category changes in ISA 2.07B.
15731 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15733 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
15735 (cmp_op, cmp_type): New code attributes.
15736 (NEON_VCMP, NEON_VACMP): New int iterators.
15737 (cmp_op_unsp): New int attribute.
15738 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
15739 (neon_vceq<mode>): Delete.
15740 (neon_vc<cmp_op><mode>_insn): New pattern.
15741 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
15742 (neon_vcgeu<mode>): Delete.
15743 (neon_vcle<mode>): Likewise.
15744 (neon_vclt<mode>: Likewise.
15745 (neon_vcage<mode>): Likewise.
15746 (neon_vcagt<mode>): Likewise.
15747 (neon_vca<cmp_op><mode>): New define_expand.
15748 (neon_vca<cmp_op><mode>_insn): New pattern.
15749 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
15751 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15753 * tree.h (attribute_value_equal): Declare.
15754 * tree.c (attribute_value_equal): Export.
15756 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15758 * ipa-icf.c (sem_item::compare_attributes): New function.
15759 (sem_item::compare_referenced_symbol_properties): Compare variable
15761 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
15762 (sem_function::param_used_p): New function.
15763 (sem_function::equals_wpa): Fix attribute comparsion; match
15764 parameter type codes; do not compare paremter flags when
15765 they are not used; compare edge flags; compare indirect calls.
15766 (sem_item::update_hash_by_addr_refs): Hash reference type.
15767 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
15768 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
15769 reference use type.
15770 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
15771 * ipa-icf.h (compare_attributes, param_used_p): Declare.
15773 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15775 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
15777 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
15778 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
15779 (sem_item::compare_referenced_symbol_properties): New.
15780 (sem_item::hash_referenced_symbol_properties): New.
15781 (sem_item::compare_cgraph_references): Rename to ...
15782 (sem_item::compare_symbol_references): ... this one; use
15783 compare_referenced_symbol_properties.
15784 (sem_function::equals_wpa): Do not compare
15785 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
15786 DECL_IS_OPERATOR_NEW; compare pointer sizes.
15787 (sem_item::update_hash_by_addr_refs): Call
15788 hash_referenced_symbol_properties.
15789 (sem_item::update_hash_by_local_refs): Cleanup.
15790 (sem_function::merge): Do not mix up symbol properties.
15791 (sem_variable::equals_wpa): Use compare_symbol_references.
15792 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
15793 (sem_item::hash_referenced_symbol_properties): New.
15794 (sem_item::compare_symbol_references): New.
15795 (sem_item::compare_cgraph_references): Remove.
15797 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
15800 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
15801 Emit size of local.
15803 2015-04-23 Nick Clifton <nickc@redhat.com>
15805 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
15806 ATTRIBUTE_UNUSED to x parameter.
15807 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
15809 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15811 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
15812 TARGET_CRYPTO to TARGET_P8_VECTOR>
15813 (crypto_vpermxor_<mode>): Likewise.
15814 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
15815 (BU_CRYPTO_3A): Likewise.
15816 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
15817 (BU_CRYPTO_OVERLOAD_3A): New #define.
15818 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
15819 (VPMSUMH): Likewise.
15820 (VPMSUMW): Likewise.
15821 (VPMSUMD): Likewise.
15822 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
15823 (VPERMXOR_V4SI): Likewise.
15824 (VPERMXOR_V8HI): Likewise.
15825 (VPERMXOR_V16QI): Likewise.
15826 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
15827 BU_CRYPTO_OVERLOAD_2A.
15828 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
15829 BU_CRYPTO_OVERLOAD_3A.
15830 * config/rs6000/rs6000.opt (mcrypto): Change description of
15833 2015-04-23 Richard Biener <rguenther@suse.de>
15835 * passes.def: Remove copy propagation passes run directly after CCP.
15836 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
15838 (ccp_visit_phi_node): Rework to handle first executable edge
15841 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
15843 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
15844 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
15845 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
15846 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
15847 (thumb_legimitimize_reload_address): Remove.
15848 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
15850 (thumb_legimitimize_reload_address): Remove.
15852 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15854 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
15856 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15858 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
15860 (store_multiple): Likewise.
15862 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15864 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
15865 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
15866 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
15867 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
15868 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
15869 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
15870 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
15871 Specify issue_rate value.
15872 (arm_issue_rate): Look up issue rate from tuning structs. Remove
15873 large switch statement.
15874 (arm_marvell_pj4_tune): New struct.
15875 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
15878 2015-04-23 Richard Biener <rguenther@suse.de>
15880 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
15881 (vect_find_last_store_in_slp_instance): Rename to ...
15882 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
15883 (vect_analyze_slp_cost_1): Use vector_load for constant defs
15884 and vec_construct for external defs when estimating prologue cost.
15885 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
15886 Compute costs here only when vectorizing loops.
15887 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
15888 have been determined.
15889 (vect_schedule_slp_instance): Simplify vectorized code placement
15890 and prepare for in-BB external defs.
15891 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
15892 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
15893 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
15895 (vect_model_load_cost): Likewise.
15896 (vectorizable_store): Instead add it here.
15897 (vectorizable_load): Likewise.
15898 (vect_is_simple_use): Dump def type textually.
15900 2015-04-23 Richard Biener <rguenther@suse.de>
15902 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
15903 * cfgloop.c (verify_loop_structure): Verify the root loop node.
15904 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
15905 instead of get_eh_region_from_lp_number.
15906 * loop-init.c (fix_loop_structure): If we removed a loop, reset
15909 2015-04-23 Anton Blanchard <anton@samba.org>
15911 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
15912 need for -mprofile-kernel to save LR to stack.
15914 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15916 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
15918 (insn_is_swappable_p): Return 1 for a convert from double to
15919 single precision when all of its uses are splats of BE element
15922 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15924 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
15926 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15929 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
15930 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
15931 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
15933 (rs6000_builtin_mask_for_load): Return 0 for targets with
15934 efficient unaligned VSX accesses so that the vectorizer will use
15935 direct unaligned loads.
15936 (rs6000_builtin_support_vector_misalignment): Always return true
15937 for targets with efficient unaligned VSX accesses.
15938 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
15939 stores on targets with efficient unaligned VSX accesses is almost
15940 always the same as the cost of an aligned load or store, so model
15942 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
15943 unaligned vectors if we have efficient unaligned VSX accesses.
15944 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
15945 undocumented option.
15947 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15950 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
15952 * config.gcc (LIBC_MUSL): New tm_defines macro.
15953 * config/linux.h (OPTION_MUSL): Define.
15954 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
15955 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
15956 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
15958 * config/linux.opt (mmusl): New option.
15959 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
15960 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
15962 * configure: Regenerate.
15964 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
15966 * config.gcc (LIBC_MUSL): New tm_defines macro.
15967 * config/linux.h (OPTION_MUSL): Define.
15968 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
15969 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
15970 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
15972 * config/linux.opt (mmusl): New option.
15973 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
15974 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
15976 * configure: Regenerate.
15978 2015-04-22 Yury Gribov <y.gribov@samsung.com>
15980 * doc/invoke.texi (-fsanitize-sections): Update description.
15981 * asan.c (set_sanitized_sections): Parse incoming arg.
15982 (section_sanitized_p): Support wildcards.
15984 2015-04-22 Tom de Vries <tom@codesourcery.com>
15986 PR tree-optimization/65823
15987 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
15988 equality between ap_copy and ap.
15990 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15993 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
15995 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15998 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
16000 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16003 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
16004 remove already contained t-files.
16006 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16008 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
16009 Remove unneeded forward declarations.
16010 (suitable_for_tail_call_opt_p): Commentary typo fix.
16012 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16014 * varasm.c (emit_bss): Remove redundant guard.
16016 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16018 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
16020 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16022 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
16024 2015-04-22 Hale Wang <hale.wang@arm.com>
16025 Terry Guo <terry.guo@arm.com>
16027 PR rtl-optimization/64818
16028 * combine.c (can_combine_p): Don't combine user-specified
16029 register if it is in an asm input.
16031 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
16034 * passes.def (early_optimizations): Add pass_dse.
16036 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16038 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
16039 * reorg.c (redundant_insn): Remove ifdef
16040 INSN_REFERENCES_ARE_DELAYED.
16041 * resource.c (mark_referenced_resources): Likewise.
16043 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16045 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
16046 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
16047 * resource.c (mark_set_resources): Likewise.
16049 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16051 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
16052 * cfgcleanup.c (flow_find_cross_jump): Likewise.
16053 (flow_find_head_matching_sequence): Likewise.
16054 (try_head_merge_bb): Likewise.
16055 * combine.c (can_combine_p): Likewise.
16056 (try_combine): Likewise.
16057 (distribute_notes): Likewise.
16058 * df-problems.c (can_move_insns_across): Likewise.
16059 * final.c (final): Likewise.
16060 * gcse.c (insert_insn_end_basic_block): Likewise.
16061 * ira.c (find_moveable_pseudos): Likewise.
16062 * reorg.c (try_merge_delay_insns): Likewise.
16063 (fill_simple_delay_slots): Likewise.
16064 (fill_slots_from_thread): Likewise.
16065 * sched-deps.c (sched_analyze_2): Likewise.
16067 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16069 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
16070 PIC_OFFSET_TABLE_REGNUM.
16072 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16074 * alias.c (init_alias_target): Remove ifdef
16075 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
16076 * df-scan.c (df_insn_refs_collect): Likewise.
16077 (df_get_regular_block_artificial_uses): Likewise.
16078 (df_get_eh_block_artificial_uses): Likewise.
16079 (df_get_entry_block_def_set): Likewise.
16080 (df_get_exit_block_use_set): Likewise.
16081 * emit-rtl.c (gen_rtx_REG): Likewise.
16082 * ira.c (ira_setup_eliminable_regset): Likewise.
16083 * reginfo.c (init_reg_sets_1): Likewise.
16084 * regrename.c (rename_chains): Likewise.
16085 * reload1.c (reload): Likewise.
16086 (eliminate_regs_in_insn): Likewise.
16087 * resource.c (mark_referenced_resources): Likewise.
16088 (init_resource_info): Likewise.
16090 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16092 * defaults.h (MASK_RETURN_ADDR): New definition.
16093 * except.c (expand_builtin_extract_return_addr): Remove ifdef
16096 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16098 * defaults.h (RETURN_ADDR_OFFSET): New definition.
16099 * except.c (expand_builtin_extract_return_addr): Remove ifdef
16100 RETURN_ADDR_OFFSET.
16101 (expand_builtin_frob_return_addr): Likewise.
16103 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16105 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
16106 (try_redirect_by_replacing_jump): Likewise.
16107 (rtl_tidy_fallthru_edge): Likewise.
16108 * combine.c (insn_a_feeds_b): Likewise.
16109 (find_split_point): Likewise.
16110 (simplify_set): Likewise.
16111 * cprop.c (cprop_jump): Likewise.
16112 * cse.c (cse_extended_basic_block): Likewise.
16113 * df-problems.c (can_move_insns_across): Likewise.
16114 * function.c (emit_use_return_register_into_block): Likewise.
16115 * haifa-sched.c (sched_init): Likewise.
16116 * ira.c (find_moveable_pseudos): Likewise.
16117 * loop-invariant.c (find_invariant_insn): Likewise.
16118 * lra-constraints.c (curr_insn_transform): Likewise.
16119 * postreload.c (reload_combine_recognize_const_pattern):
16121 * reload.c (find_reloads): Likewise.
16122 * reorg.c (delete_scheduled_jump): Likewise.
16123 (steal_delay_list_from_target): Likewise.
16124 (steal_delay_list_from_fallthrough): Likewise.
16125 (redundant_insn): Likewise.
16126 (fill_simple_delay_slots): Likewise.
16127 (fill_slots_from_thread): Likewise.
16128 (delete_computation): Likewise.
16129 * sched-rgn.c (add_branch_dependences): Likewise.
16131 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16133 * genconfig.c (main): Always define HAVE_cc0.
16134 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
16136 * cfgcleanup.c (flow_find_cross_jump): Likewise.
16137 (flow_find_head_matching_sequence): Likewise.
16138 (try_head_merge_bb): Likewise.
16139 * cfgrtl.c (rtl_merge_blocks): Likewise.
16140 (try_redirect_by_replacing_jump): Likewise.
16141 (rtl_tidy_fallthru_edge): Likewise.
16142 * combine.c (do_SUBST_MODE): Likewise.
16143 (insn_a_feeds_b): Likewise.
16144 (combine_instructions): Likewise.
16145 (can_combine_p): Likewise.
16146 (try_combine): Likewise.
16147 (find_split_point): Likewise.
16149 (simplify_set): Likewise.
16150 (distribute_notes): Likewise.
16151 * cprop.c (cprop_jump): Likewise.
16152 * cse.c (cse_extended_basic_block): Likewise.
16153 * df-problems.c (can_move_insns_across): Likewise.
16154 * final.c (final): Likewise.
16155 (final_scan_insn): Likewise.
16156 * function.c (emit_use_return_register_into_block): Likewise.
16157 * gcse.c (insert_insn_end_basic_block): Likewise.
16158 * haifa-sched.c (sched_init): Likewise.
16159 * ira.c (find_moveable_pseudos): Likewise.
16160 * loop-invariant.c (find_invariant_insn): Likewise.
16161 * lra-constraints.c (curr_insn_transform): Likewise.
16162 * optabs.c (prepare_cmp_insn): Likewise.
16163 * postreload.c (reload_combine_recognize_const_pattern):
16165 * reload.c (find_reloads): Likewise.
16166 (find_reloads_address_1): Likewise.
16167 * reorg.c (delete_scheduled_jump): Likewise.
16168 (steal_delay_list_from_target): Likewise.
16169 (steal_delay_list_from_fallthrough): Likewise.
16170 (try_merge_delay_insns): Likewise.
16171 (redundant_insn): Likewise.
16172 (fill_simple_delay_slots): Likewise.
16173 (fill_slots_from_thread): Likewise.
16174 (delete_computation): Likewise.
16175 (relax_delay_slots): Likewise.
16176 * sched-deps.c (sched_analyze_2): Likewise.
16177 * sched-rgn.c (add_branch_dependences): Likewise.
16179 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16181 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
16182 that is trivially ded on non cc0 targets.
16183 (simplify_set): Likewise.
16184 (mark_used_regs_combine): Likewise.
16185 * cse.c (new_basic_block): Likewise.
16186 (fold_rtx): Likewise.
16187 (cse_insn): Likewise.
16188 (cse_extended_basic_block): Likewise.
16189 (set_live_p): Likewise.
16190 * rtlanal.c (canonicalize_condition): Likewise.
16191 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
16193 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16195 * conditions.h: Define macros even if HAVE_cc0 is undefined.
16196 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
16197 * final.c: Likewise.
16198 * jump.c: Likewise.
16199 * recog.c: Likewise.
16200 * recog.h: Declare functions even when HAVE_cc0 is undefined.
16201 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
16203 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16205 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
16206 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
16207 * builtins.c (expand_builtin): Remove check if
16208 EH_RETURN_DATA_REGNO is defined.
16209 * df-scan.c (df_bb_refs_collect): Likewise.
16210 (df_get_exit_block_use_set): Likewise.
16211 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
16212 * ira-lives.c (process_bb_node_lives): Likewise.
16213 * lra-lives.c (process_bb_lives): Likewise.
16215 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
16217 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
16218 FIRST_PSEUDO_REG): New.
16219 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
16220 (ARG_POINTER_REGNUM): Define to ARGP_REG.
16221 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
16222 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
16223 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
16224 (FIRST_INT_REG): New.
16225 (LAST_INT_REG): New.
16226 (FIRST_*_REG): Define using *_REG.
16227 (LAST_*_REG): Ditto.
16228 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
16229 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
16230 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
16232 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16234 * expmed.c: (synth_mult): Only assume overlapping
16235 shift with previous steps in alg_sub_t_m2 case.
16237 2015-04-21 Richard Biener <rguenther@suse.de>
16239 PR tree-optimization/65650
16240 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
16241 transitions involving copies.
16242 (set_lattice_value): Adjust for copy lattice state.
16243 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
16244 if that doesn't dominate the merge point.
16245 (bit_value_unop): Adjust what we treat as varying mask.
16246 (bit_value_binop): Likewise.
16247 (bit_value_assume_aligned): Likewise.
16248 (evaluate_stmt): When we simplified to a SSA name record a copy
16249 instead of dropping to varying.
16250 (visit_assignment): Simplify.
16252 * gimple-match.h (gimple_simplify): Add another callback.
16253 * gimple-fold.c (fold_stmt_1): Adjust caller.
16254 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
16255 for the 2nd callback.
16256 * gimple-match-head.c (gimple_simplify): Add a callback that is
16257 used to valueize the stmt operands and use it that way.
16259 2015-04-21 Richard Biener <rguenther@suse.de>
16261 PR tree-optimization/65788
16262 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
16264 2015-04-21 Richard Biener <rguenther@suse.de>
16266 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
16267 vec_construct cost by vec_stmt_cost.
16269 2015-04-21 Richard Biener <rguenther@suse.de>
16271 * cfghooks.h (create_basic_block): Replace with two overloads
16272 for RTL and GIMPLE.
16273 (split_block): Likewise.
16274 * cfghooks.c (split_block): Rename to ...
16275 (split_block_1): ... this.
16276 (split_block): Add two type-safe overloads for RTL and GIMPLE.
16277 (split_block_after_labels): Call split_block_1.
16278 (create_basic_block): Rename to ...
16279 (create_basic_block_1): ... this.
16280 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
16281 (create_empty_bb): Call create_basic_block_1.
16282 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
16283 split_block_after_labels.
16284 * omp-low.c (expand_parallel_call): Likewise.
16285 (expand_omp_target): Likewise.
16286 (simd_clone_adjust): Likewise.
16287 * tree-chkp.c (chkp_get_entry_block): Likewise.
16288 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
16289 create_basic_block overload.
16290 (cgraph_node::expand_thunk): Likewise.
16291 * tree-cfg.c (make_blocks): Likewise.
16292 (handle_abnormal_edges): Likewise.
16293 * tree-inline.c (copy_bb): Likewise.
16295 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16297 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
16299 (*xor_one_cmplsidi3_ze): Likewise.
16301 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
16303 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
16304 use df_remove_problem rather than manually removing problems, leaving
16305 holes in df->problems_in_order[].
16307 2015-04-21 Tom de Vries <tom@codesourcery.com>
16309 PR tree-optimization/65802
16310 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
16312 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16314 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
16316 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
16317 at '.'. Assert that there's enough space for everything.
16319 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
16321 PR tree-optimization/64950
16323 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
16326 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
16329 2015-04-20 Shiva Chen <shiva0217@gmail.com>
16331 PR rtl-optimization/64916
16332 * cfgcleanup.c (values_equal_p): New function.
16333 (can_replace_by): Use it.
16335 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
16338 * doc/invoke.texi ([-Wnarrowing]): Update.
16340 2015-04-20 Jeff Law <law@redhat.com>
16342 PR tree-optimization/65658
16343 * tree-ssa-threadupdate.c (redirection_block_p): Remove
16344 redundant test for GIMPLE_ASSIGN in last change.
16346 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
16348 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
16349 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
16350 (legitimize_tls_address): Ditto.
16351 (ix86_expand_move): Ditto.
16352 (ix86_expand_binary_operator): Remove reload_in_progress checks.
16353 (ix86_expand_unary_operator): Ditto.
16354 * config/i386/predicates.md (index_register_operand): Ditto.
16356 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
16358 * reorg.c (try_merge_delay_insns): Improve correctness checking
16359 for targets with multiple delay slots.
16361 2015-04-20 Jeff Law <law@redhat.com>
16363 PR tree-optimization/65658
16364 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
16367 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
16369 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
16370 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
16373 2015-04-20 Jakub Jelinek <jakub@redhat.com>
16376 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
16378 2015-04-20 Richard Biener <rguenther@suse.de>
16380 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
16381 * gimple-fold.c (gimple_build_valueize): New function.
16382 (gimple_build): Always use gimple_build_valueize as valueize hook.
16384 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
16387 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
16388 and overwrite variable parts if <= 1/2 the elements are variable.
16390 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
16392 PR rtl-optimization/65805
16393 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
16394 Don't use difference of offset and previous offset if
16395 update_sp_offset is non-zero.
16396 (eliminate_regs_in_insn): Ditto.
16397 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
16398 lra_eliminate_regs_1 call.
16399 * lra-constraints.c (get_equiv_with_elimination): Ditto.
16401 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
16403 * hash-table.h: Remove version of hash_table that stored value_type *.
16404 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
16405 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
16406 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
16407 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
16408 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
16409 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
16410 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
16411 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
16412 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
16413 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
16414 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
16415 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
16416 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
16417 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
16418 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
16419 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
16421 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16422 Jakub Jelinek <jakub@redhat.com>
16425 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
16426 subsequent SH_NONE operand does not overwrite an existing *special
16428 (adjust_extract): Handle case where a vec_extract operation is
16429 wrapped in a PARALLEL.
16431 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
16434 * config/i386/i386.c (ix86_binds_local_p): Define only if
16435 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
16437 2015-04-17 Jeff Law <law@redhat.com>
16439 PR tree-optimization/47679
16440 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
16441 * tree-ssa-scopedtables.c: New file.
16442 * tree-ssa-scopedtables.h: New file.
16443 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
16444 (const_and_copies): Change name/type.
16445 (record_const_or_copy): Move into tree-ssa-scopedtables.c
16446 (record_const_or_copy_1): Similarly.
16447 (restore_vars_to_original_value): Similarly.
16448 (pass_dominator::execute): Create and destroy const_and_copies table.
16449 (thread_across_edge): Update passing of const_and_copies.
16450 (record_temporary_equivalence): Use method calls rather than
16451 manipulating const_and_copies directly.
16452 (record_equality, cprop_into_successor_phis): Similarly.
16453 (dom_opt_dom_walker::before_dom_children): Similarly.
16454 (dom_opt_dom_walker::after_dom_children): Similarly.
16455 (eliminate_redundant_computations): Similarly.
16456 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
16457 (record_temporary_equivalence): Likewise.
16458 (invalidate_equivalences): Likewise.
16459 (record_temporary_equivalences_from_phis): Update due to type
16460 change of const_and_copies. Use method calls rather than
16461 manipulating the stack directly.
16462 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
16463 (thread_through_normal_block, thread_across_edge): Likewise.
16464 (thread_across_edge): Likewise.
16465 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
16466 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
16468 (identify_jump_threads): Update due to type change of equiv_stack.
16469 (finalize_jump_threads): Delete the equiv_stack when complete.
16471 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
16473 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
16474 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
16475 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
16477 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
16480 * config.gcc: Exit with a comment when we do not have a major version
16481 number for the FreeBSD target.
16483 2015-04-17 Jakub Jelinek <jakub@redhat.com>
16486 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
16487 maybe_allows_mem bitfields.
16488 (maybe_allows_none_start, maybe_allows_none_end,
16489 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
16490 maybe_allows_mem_end): New variables.
16491 (compute_maybe_allows): New function.
16492 (add_constraint): Use it to initialize maybe_allows_reg and
16493 maybe_allows_mem fields.
16494 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
16495 is_address constraints such that those that allow neither mem nor
16496 reg come first, then those that only allow reg but not mem, then
16497 those that only allow mem but not reg, then the rest.
16498 (write_allows_reg_mem_function): New function.
16499 (write_tm_preds_h): Call it.
16500 * stmt.c (parse_output_constraint, parse_input_constraint): Use
16501 the generated insn_extra_constraint_allows_reg_mem function
16502 instead of always setting *allows_reg = true; *allows_mem = true;
16503 for unknown extra constraints.
16505 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
16508 * output.h (default_binds_local_p_3): New.
16509 * varasm.c (default_binds_local_p_3): Make it public. Take an
16510 argument to indicate if common symbol may be local. If common
16511 symbol may be local, treat non-external variable as defined
16513 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
16514 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
16515 * config/i386/i386.c (ix86_binds_local_p): New.
16516 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
16517 ix86_binds_local_p.
16519 2015-04-17 Jakub Jelinek <jakub@redhat.com>
16522 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
16523 trying mem_loc_descriptor on XEXP (rtl, 0).
16525 2015-04-17 Martin Liska <mliska@suse.cz>
16527 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
16528 Release symbol_compare_collection.
16529 * ipa-reference.c: Add TODO that a vector should be released.
16531 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
16534 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
16535 to new AVR-LibC file layout (bug #44574).
16536 (*avrlibc_devicelib): Same.
16537 * config/avr/avr-mcus.def: Adjust comments.
16538 * config/avr/avr.opt (nodevicelib): Adjust help.
16540 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
16542 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
16544 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
16547 * gimplify.c (gimplify_init_constructor): Always emit a
16548 side-effecting constructor.
16550 2015-04-17 Tom de Vries <tom@codesourcery.com>
16552 PR tree-optimization/64950
16553 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
16554 in cfun->curr_properties.
16555 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
16556 if we generate an IFN_VA_ARG.
16557 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
16558 function if PROP_gimple_lva is not set in src function.
16560 2015-04-17 Tom de Vries <tom@codesourcery.com>
16561 Michael Matz <matz@suse.de>
16563 PR tree-optimization/64950
16564 * gimple-iterator.c (update_modified_stmts): Remove static.
16565 * gimple-iterator.h (update_modified_stmts): Declare.
16566 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
16567 (gimplify_va_arg_internal): New function.
16568 (gimplify_va_arg_expr): Use IFN_VA_ARG.
16569 * gimplify.h (gimplify_va_arg_internal): Declare.
16570 * internal-fn.c (expand_VA_ARG): New unreachable function.
16571 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
16572 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
16573 (expand_ifn_va_arg): New function.
16574 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
16575 (pass_stdarg::execute): Call expand_ifn_va_arg.
16576 (pass_data_lower_vaarg): New pass_data.
16577 (pass_lower_vaarg): New gimple_opt_pass.
16578 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
16579 (make_pass_lower_vaarg): New function.
16580 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
16581 properties_required field.
16582 * passes.def (all_passes): Add pass_lower_vaarg.
16583 * tree-pass.h (PROP_gimple_lva): Add define.
16584 (make_pass_lower_vaarg): Declare.
16586 2015-04-17 Tom de Vries <tom@codesourcery.com>
16588 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
16589 * calls.c (call_expr_flags): Same.
16591 2015-04-17 Tom de Vries <tom@codesourcery.com>
16593 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
16594 (pass_stdarg::execute): ... here.
16596 2015-04-17 Tom de Vries <tom@codesourcery.com>
16597 Michael Matz <matz@suse.de>
16599 * tree-cfg.c (make_blocks_1): Factor out of ...
16600 (make_blocks): ... here.
16601 (make_edges_bb): Factor out of ...
16602 (make_edges): ... here.
16603 (gimple_find_sub_bbs): New function.
16604 * tree-cfg.h (gimple_find_sub_bbs): Declare.
16606 2015-04-17 Tom de Vries <tom@codesourcery.com>
16608 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
16610 2015-04-17 Yury Gribov <y.gribov@samsung.com>
16612 * asan.c (set_sanitized_sections): New function.
16613 (section_sanitized_p): Ditto.
16614 (asan_protect_global): Optionally sanitize user-defined
16616 * asan.h (set_sanitized_sections): Declare new function.
16617 * common.opt (fsanitize-sections): New option.
16618 * doc/invoke.texi (-fsanitize-sections): Document new option.
16619 * opts-global.c (handle_common_deferred_options): Handle new
16622 2015-04-17 Jakub Jelinek <jakub@redhat.com>
16625 * dwarf2out.c (loc_list_from_tree): Return NULL
16626 for DEBUG_EXPR_DECL.
16628 2015-04-17 Christian Bruel <christian.bruel@st.com>
16630 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
16633 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16635 * ira-color.c (setup_left_conflict_sizes_p): Do not process
16636 node itself when computing left conflict subnode size.
16638 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
16640 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
16641 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
16642 *fop_<mode>_1_sse using enabled attribute. Use
16643 register_mixssei387nonimm_operand operand 1 predicate. Change
16644 alternative 3 constraints from "x" to "v".
16646 2015-04-16 Richard Biener <rguenther@suse.de>
16648 PR tree-optimization/65774
16649 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
16650 bit-value tracking on.
16652 2015-04-16 Richard Biener <rguenther@suse.de>
16654 PR tree-optimization/64277
16655 * tree-vrp.c (check_array_ref): Fix anti-range handling,
16656 simplify upper bound handling.
16657 (search_for_addr_array): Simplify.
16658 (check_array_bounds): Handle ADDR_EXPRs here.
16659 (check_all_array_refs): Simplify.
16661 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
16663 * config/i386/i386.c (print_reg): Rewrite function.
16665 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16667 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
16668 Invert the condition.
16670 2015-04-16 Renlin Li <renlin.li@arm.com>
16672 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
16673 simplifications for UNSIGNED_FLOAT.
16675 2015-04-16 Nick Clifton <nickc@redhat.com>
16677 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
16679 (enum rl78_cpu_type): New.
16680 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
16681 (umulhi3_shift_virt): Remove m constraint from operand 1.
16682 (umulqihi3_virt): Likewise.
16683 * config/rl78/rl78.c (rl78_option_override): Add code to process
16684 -mcpu and -mmul options.
16685 (rl78_alloc_physical_registers): Add code to handle divhi and
16686 divsi valloc attributes.
16687 (set_origin): Likewise.
16688 * config/rl78/rl78.h (RL78_MUL_G14): Define.
16689 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
16690 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
16692 (ASM_SPEC): Pass -mcpu on to assembler.
16693 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
16694 (mulqi3_rl78): Likewise.
16695 (mulhi3_g13): Likewise.
16696 (mulhi3): Generate the G13 or G14 versions of the insn directly.
16697 (mulsi3): Likewise.
16698 (mulhi3_g14): Add clobbers of AX and BC.
16699 (mulsi3_g14): Likewise.
16700 (mulsi3_g13): Likewise.
16701 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
16702 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
16703 * config/rl78/rl78.opt (mmul): Initialise value to
16705 (mcpu): New option.
16706 (m13, m14, mrl78): New option aliases.
16707 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
16708 (MULTILIB_DIRNAMES): Add g13 and g14.
16709 * doc/invoke.texi: Document -mcpu and -mmul options.
16711 2015-04-16 Richard Biener <rguenther@suse.de>
16713 * tree-ssa-ccp.c (likely_value): See if we have operands that
16714 are marked as never simulate again and return CONSTANT in this
16716 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
16717 not have any operands that will be simulated again as
16718 not being simulated again.
16720 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
16722 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
16723 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
16724 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
16726 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
16728 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
16729 *float<SWI48:mode><MODEF:mode>2_sse.
16730 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
16732 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
16735 2015-04-15 Tom de Vries <tom@codesourcery.com>
16738 * function.c (push_dummy_function): New function.
16739 (init_dummy_function_start): Use push_dummy_function.
16740 (pop_dummy_function): New function. Factored out of ...
16741 (expand_dummy_function_end): ... here.
16742 * function.h (push_dummy_function, pop_dummy_function): Declare.
16743 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
16744 pop_dummy_function.
16745 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
16747 2015-04-15 Jeff Law <law@redhat.com>
16749 PR tree-optimization/47679
16750 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
16751 need for forward declaration in upcoming changes.
16752 (record_conditions, record_edge_info): Likewise.
16754 PR rtl-optimization/42522
16755 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
16756 SIGN_EXTRACT as a whole object rather than simplifying
16759 2015-04-15 Jakub Jelinek <jakub@redhat.com>
16762 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
16763 and GIMPLE_PREDICT use break instead of return true. For
16764 GIMPLE_EH_DISPATCH, compare dispatch region.
16766 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
16768 * doc/extend.texi (__sync Builtins): Simplify some text. Update
16769 details about the implementation. Make clear preference for
16770 __atomic builtins. Reduce possibility of future change.
16772 2015-04-15 Nick Clifton <nickc@redhat.com>
16774 * config/rx/rx.opt (mallow-string-insns): New option.
16775 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
16776 builtin if string instructions are denied.
16777 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
16778 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
16780 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
16781 * config/rx/rx.md (movstr): Enable pattern only if string
16782 instructions are allowed.
16783 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
16784 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
16785 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
16786 (MULTILIB_DIRNAMES): Add no-strings.
16787 * doc/invoke.texi: Document -mno-allow-string-insns.
16789 2015-04-15 Alan Modra <amodra@gmail.com>
16793 PR middle-end/36043
16794 * calls.c (load_register_parameters): Don't load past end of
16795 mem unless suitably aligned.
16797 2015-04-15 Nick Clifton <nickc@redhat.com>
16799 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
16800 decrement instruction as being frame related.
16801 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
16803 If zero extending a function address enclose the operation in
16805 (rl78_preferred_reload_class): New function.
16806 (TARGET_PREFERRED_RELOAD_CLASS): Define.
16807 * config/rl78/rl78.md: Remove useless constraints in expanders.
16808 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
16809 (mulhi3_rl78): Likewise.
16810 (mulhi3_g13): Likewise.
16811 (mulsi3_rl78): Likewise.
16812 (es_addr): Move to before the multiply patterns.
16814 2015-04-15 Alan Modra <amodra@gmail.com>
16816 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
16817 and sequence_stack. Add seq.
16818 (seq_stack): Delete.
16819 * function.c (prepare_function_start): Don't access x_last_insn.
16820 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
16821 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
16822 * emit_rtl.c (start_sequence, push_topmost_sequence,
16823 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
16824 sequence accessors.
16825 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
16826 remove_insn): Likewise. Simplify.
16827 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
16828 and pop_topmost_sequence.
16829 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
16831 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
16833 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
16836 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
16839 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
16841 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
16842 (LEGACY_INT_REGNO_P): Ditto.
16843 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
16844 (ANY_MASK_REG_P): Remove.
16845 (BND_REG_P): Rename from ANY_BND_REG_P.
16846 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
16847 legacy integer registers. Do not handle MMX_REG_P in a special way.
16848 Merge 64byte and 32byte SSE handling.
16850 2015-04-14 Nick Clifton <nickc@redhat.com>
16852 * expr.c (expand_assignment): Force an address offset computation
16853 into a register before changing its mode.
16854 (expand_expr_real_1): Likewise.
16856 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
16858 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
16859 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
16860 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
16861 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
16862 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
16863 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
16864 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
16865 and __aarch64_vget_lane_any.
16867 2015-04-14 Jakub Jelinek <jakub@redhat.com>
16869 PR rtl-optimization/65761
16870 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
16871 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
16873 2015-04-14 Richard Biener <rguenther@suse.de>
16875 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
16876 (graphite_can_represent_scev): Use POINTER_TYPE_P.
16878 2015-04-14 Richard Biener <rguenther@suse.de>
16880 PR tree-optimization/65758
16881 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
16883 (ccp_lattice_meet): Likewise.
16884 (bit_value_unop): Likewise.
16885 (bit_value_binop): Likewise.
16886 (bit_value_assume_aligned): Likewise.
16888 2015-04-14 Christian Bruel <christian.bruel@st.com>
16890 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
16893 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
16895 PR tree-optimization/63387
16896 * match.pd ((x unord x) | (y unord y) -> (x unord y),
16897 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
16899 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
16901 * config/i386/predicates.md (any_QIreg_operand): Rename from
16902 q_regs_operand. Do not process subregs.
16903 (QIreg_operand): Use QI_REGNO_P predicate.
16904 (ext_QIreg_operand): Ditto.
16905 (ext_register_operand): Ditto.
16906 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
16907 (AND splitters): Ditto.
16908 (AND with -65536 splitter): Add SWI48 mode for operand 0.
16909 (AND with -256 splitter): Use any_QIreg_operand predicate and
16910 SWI248 mode for operand 0.
16911 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
16912 mode for operand 0.
16913 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
16915 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
16917 * doc/plugins.texi: Rewrite first introductory paragraph.
16919 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16921 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
16922 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
16924 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16926 * ipa-profie.c (ipa_profile): Check number of parameters
16927 and possible polymorphic call targets before
16930 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
16932 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
16933 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
16935 2015-04-13 Richard Biener <rguenther@suse.de>
16937 PR tree-optimization/65204
16938 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
16939 takens for bit-CCP.
16941 2015-04-13 Richard Biener <rguenther@suse.de>
16944 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
16945 and cond_not_taken_branch_cost to 4 and 2.
16946 (bdver2_cost): Likewise.
16947 (bdver3_cost): Likewise.
16948 (bdver4_cost): Likewise.
16950 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16952 * hash-table.h (hash_table constructor): Add mem stats.
16953 (alloc_entries): Likewise.
16955 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16957 * ipa-cp.c (ipcp_driver): Relase prev_edge.
16958 * passes.c (execute_one_pass): Only add transform if pass has one.
16960 2015-04-12 Joseph Myers <joseph@codesourcery.com>
16962 * config/i386/i386.c (ix86_option_override_internal): Don't set
16963 -fprefetch-loop-arrays if optimizing for size.
16965 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16966 Gerald Pfeifer <gerald@pfeifer.com>
16968 * doc/contrib.texi (Contributors): Add Martin Jambor and
16971 2015-04-12 Jakub Jelinek <jakub@redhat.com>
16973 * BASE-VER: Set to 6.0.0.
16975 PR tree-optimization/65747
16976 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
16977 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
16979 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
16981 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
16982 sentence. Improve grammar.
16984 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
16986 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
16988 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
16991 * ipa-inline-transform.c (speculation_removed): Remove static var.
16992 (check_speculations): New function.
16993 (clone_inlined_nodes): Do not check spculations.
16994 (inline_call): Call check_speculations.
16995 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
16996 consider non-invariants.
16998 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
16999 Martin Liska <mliska@suse.cz>
17002 * ipa-icf.c (sem_item::compare_cgraph_references): function and
17003 variable can not match.
17004 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
17005 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
17007 2015-04-11 Jakub Jelinek <jakub@redhat.com>
17009 PR tree-optimization/65735
17010 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
17011 Remove visited_phis argument, add visited_bbs, avoid recursing into the
17012 same bb rather than just into the same phi node.
17013 (thread_through_normal_block): Adjust caller.
17015 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
17017 * doc/contrib.texi (Contributors): Add Ira Rosen.
17019 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
17021 * gcov.c (find_source): Fix miswording in error message.
17022 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
17023 (ix86_expand_sse_comi_round): Fix typo in error message.
17025 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
17027 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
17029 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
17031 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
17033 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
17036 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
17037 Print bad_spills_num and insn_pseudos_num.
17039 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17042 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
17043 when creating +1 values for SImode.
17045 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
17048 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
17051 2015-04-10 Jakub Jelinek <jakub@redhat.com>
17052 Iain Sandoe <iain@codesourcery.com>
17055 * configure: Regenerate.
17057 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
17060 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
17062 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
17064 * doc/contrib.texi (Contributors): Add John Marino.
17066 2015-04-09 Jakub Jelinek <jakub@redhat.com>
17068 PR tree-optimization/65709
17069 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
17070 TREE_TYPE (TREE_TYPE (t)).
17072 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
17075 * lra-int.h (lra_bad_spill_regno_start): New.
17076 * lra.c (lra_bad_spill_regno_start): New.
17077 (lra): Set up lra_bad_spill_regno_start. Set up
17078 lra_constraint_new_regno_start unconditionally.
17079 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
17082 2015-04-09 Marek Polacek <polacek@redhat.com>
17083 Jakub Jelinek <jakub@redhat.com>
17085 PR middle-end/65554
17086 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
17087 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
17090 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
17092 PR rtl-optimization/65693
17093 * combine.c (is_parallel_of_n_reg_sets): Move outside of
17096 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
17099 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
17100 device specs file if "device-specs%s" didn't resolve to a path.
17102 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
17105 * config/i386/i386.c (fixup_modeless_constant): New.
17106 (ix86_expand_args_builtin): Fixup modeless constant operand.
17107 (ix86_expand_round_builtin): Ditto.
17108 (ix86_expand_special_args_builtin): Ditto.
17109 (ix86_expand_builtin): Ditto.
17111 2015-04-09 Jakub Jelinek <jakub@redhat.com>
17114 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
17115 any pow2 integer in between 2 and 0x80000000U inclusive.
17117 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
17119 PR rtl-optimization/65693
17120 * combine.c (is_parallel_of_n_reg_sets): Change first argument
17121 from an rtx_insn * to an rtx.
17122 (try_combine): Adjust both callers. Use it once more.
17124 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17126 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
17127 (chkp_make_static_const_bounds): Search existing
17128 symbol by assembler name. Use make_decl_one_only.
17129 (chkp_get_zero_bounds_var): Remove node search which
17130 is now performed in chkp_make_static_const_bounds.
17131 (chkp_get_none_bounds_var): Likewise.
17133 2015-04-08 Michael Witten <mfwitten@gmail.com>
17135 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
17138 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17140 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
17142 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
17144 * doc/extend.texi (__sync Builtins): Fix grammar.
17146 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17148 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
17150 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17152 * varasm.c (emit_local): Move definition of align.
17154 2015-04-08 Julian Brown <julian@codesourcery.com>
17156 * config/nvptx/mkoffload.c (process): Support variable mapping.
17158 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
17160 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
17162 (alpha_write_one_linkage): Correct typo.
17164 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17166 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
17168 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
17170 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
17172 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17174 * tree-chkp.h (chkp_insert_retbnd_call): New.
17175 * tree-chkp.c (chkp_insert_retbnd_call): New.
17176 * ipa-split.c (insert_bndret_call_after): Remove.
17177 (split_function): Use chkp_insert_retbnd_call.
17178 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
17179 bounds for instrumented functions.
17181 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
17184 * calls.c (initialize_argument_information): When producing tail
17185 call also turn SSA_NAMES passed by references to original PARM_DECLs
17187 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
17190 * lra-remat.c (do_remat): Process input and non-input insn
17191 registers separately.
17193 2015-04-07 Jakub Jelinek <jakub@redhat.com>
17196 * valtrack.c (debug_lowpart_subreg): New function.
17197 (dead_debug_insert_temp): Use it.
17199 PR middle-end/65680
17200 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
17201 into signed HOST_WIDE_INT the same as negative bit_offset.
17203 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
17205 * ipa-comdats.c (ipa_comdats): Visit all thunks
17206 to set proper comdat group.
17208 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17211 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
17212 on constants for NEON VSTRUCT modes.
17214 2015-04-07 Jakub Jelinek <jakub@redhat.com>
17215 Iain Sandoe <iain@codesourcery.com>
17218 * configure: Regenerate.
17220 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
17223 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
17224 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
17225 that LFD is used to load double constants instead of LFS. Add
17226 defaults for all costs structures. Add comments for missing
17227 initialization fields.
17228 (size32_cost): Likewise.
17229 (size64_cost): Likewise.
17230 (rs64a_cost): Likewise.
17231 (mpccore_cost): Likewise.
17232 (ppc403_cost): Likewise.
17233 (ppc405_cost): Likewise.
17234 (ppc440_cost): Likewise.
17235 (ppc476_cost): Likewise.
17236 (ppc601_cost): Likewise.
17237 (ppc603_cost): Likewise.
17238 (ppc604_cost): Likewise.
17239 (ppc604e_cost): Likewise.
17240 (ppc620_cost): Likewise.
17241 (ppc630_cost): Likewise.
17242 (ppccell_cost): Likewise.
17243 (ppc750_cost): Likewise.
17244 (ppc7450_cost): Likewise.
17245 (ppc8540_cost): Likewise.
17246 (ppce300c2c3_cost): Likewise.
17247 (ppce500mc_cost): Likewise.
17248 (ppce500mc64_cost): Likewise.
17249 (ppce5500_cost): Likewise.
17250 (ppce6500_cost): Likewise.
17251 (titan_cost): Likewise.
17252 (power4_cost): Likewise.
17253 (power6_cost): Likewise.
17254 (power7_cost): Likewise.
17255 (power8_cost): Likewise.
17256 (ppca2_cost): Likewise.
17257 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
17259 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
17260 instead of XXLOR to copy SFmode to clear out dirty bits created
17261 when SFmode denormals are generated.
17262 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
17263 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
17265 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
17267 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
17268 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
17269 * config/aarch64/aarch64-tune.md: Regenerate.
17271 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
17273 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
17274 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
17275 * config/arm/arm-cores.def (exynos-m1): New core.
17276 * config/arm/arm-tune.md: Regenerate.
17277 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
17278 * config/arm/bpabi.h: Likewise.
17280 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
17282 * ipa-cp (set_single_call_flag): Remove too
17283 restrictive assert.
17285 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
17287 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
17288 GOMP_offload_unregister from the destructor.
17290 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
17292 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
17293 flags for instrumentation thunk.
17294 (chkp_produce_thunks): Likewise.
17296 2015-04-05 Martin Liska <mliska@suse.cz>
17299 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
17300 has computed data structure.
17301 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
17303 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
17305 * invoke.texi (inline-unit-growth): Increase growth to 20%
17306 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
17308 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
17311 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
17313 (lra_rematerialization_iter): New.
17314 * lra.c (lra): Initialize lra_rematerialization_iter.
17315 Stop updating lra_constraint_new_regno_start after switching of
17316 inheritance and rematerialization.
17317 * lra-remat.c (lra_rematerialization_iter): New.
17318 (lra_remat): Add printing pass iteration. Do rematerialization
17319 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
17321 2015-04-04 Richard Biener <rguenther@suse.de>
17323 PR tree-optimization/64909
17324 PR tree-optimization/65660
17325 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
17326 to take a cost vector for scalar iteration cost.
17327 (vect_get_single_scalar_iteration_cost): Likewise.
17328 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
17329 Compute the scalar iteration cost into a cost vector.
17330 (vect_get_known_peeling_cost): Use the scalar cost vector to
17331 account for the cost of the peeled iterations.
17332 (vect_estimate_min_profitable_iters): Likewise.
17333 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
17336 2015-04-04 Alan Modra <amodra@gmail.com>
17340 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
17341 0.0 constant unless TARGET_VSX.
17342 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
17345 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17348 * ipa-inline-transform.c (inline_call): Skip sanity check to work
17351 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17354 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
17355 speculative indirect edges to avoid ordering issue.
17357 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17360 * ipa-inline.c (edge_badness): Add combined size to the denominator.
17362 2015-04-03 Jakub Jelinek <jakub@redhat.com>
17364 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
17365 TYPE_ARTIFICIAL on the .omp_data* types.
17367 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17369 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
17370 instrumentation thunks.
17372 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17374 * config/i386/i386.c (ix86_expand_call): Avoid nested
17375 PARALLEL in returned call value.
17377 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17379 * lto-cgraph.c (input_cgraph_1): Always link instrumented
17380 assembler name with original one.
17382 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17384 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
17386 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17388 Revert parts of r216820.
17389 * config/i386/i386.md (movqi_internal): Correct type calculation
17390 for alternatives 3 and 5.
17392 2015-04-02 Jakub Jelinek <jakub@redhat.com>
17394 PR preprocessor/61977
17395 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
17396 predefine __vector/__bool/__pixel macros nor context sensitive
17397 macros for CLK_ASM.
17398 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
17400 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
17402 * config/pa/pa.c (pa_output_move_double): Directly handle register
17403 indexed memory operand. Simplify handling of scaled register indexed
17406 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17409 * config/i386/linux-common.h (MPX_SPEC): New.
17410 (CHKP_SPEC): Add MPX_SPEC.
17411 * doc/invoke.texi (-fcheck-pointer-boudns): Document
17412 possible issues with '-z bndplt' support in linker.
17414 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17416 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
17417 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
17418 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
17419 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
17420 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
17422 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
17424 * config/i386/sync.md (UNSPEC_MOVA): Remove.
17425 (atomic_load<mode>): Change operand 0 predicate to
17426 nonimmediate_operand and fix up the destination when needed.
17428 (atomic_loaddi_fpu): Use UNSPEC_LDA.
17429 (atomic_store<mode>): Change operand 1 predicate to
17430 nonimmendate_operand and move the source to register when needed.
17432 (atomic_store<mode>_1): Use UNSPEC_STA.
17433 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
17434 Fix moves from memory operand. Use UNSPEC_STA.
17436 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
17438 * expmed.c (strict_volatile_bitfield_p): Check that the access will
17439 not cross a MODESIZE boundary.
17440 (store_bit_field, extract_bit_field): Added assertions in the
17441 strict volatile bitfields code path.
17443 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
17446 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
17447 Increase args array size by one to avoid buffer overflow.
17449 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
17451 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
17453 * ipa-inline.c (edge_badness): Add wrapper penalty.
17454 (sum_callers): Move up.
17455 (inline_small_functions): Set single_caller.
17456 * ipa-inline.h (inline_summary): Add single_caller.
17457 * ipa-split.c (split_function): Set split_part.
17458 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
17459 * cgraph.h (cgraph_node): Add split_part.
17461 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
17464 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
17465 Do not split operands 0 and operands 2 to halfmode.
17466 (atomic_compare_and_swap<mode>): Update for
17467 atomic_compare_and_swap<dwi>_doubleword changes.
17469 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
17471 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
17472 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
17473 no caching is done.
17475 2015-03-31 Martin Liska <mliska@suse.cz>
17478 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
17479 has already filled up function summary.
17480 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
17482 2015-03-31 Richard Biener <rguenther@suse.de>
17484 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
17487 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
17489 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
17491 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
17492 (s390_asm_output_function_label): Adapt to new signature of
17493 s390_function_num_hotpatch_hw
17494 Optimise the code generating assembler output.
17495 Add comments to assembler file.
17497 2015-03-31 Richard Biener <rguenther@suse.de>
17499 PR middle-end/65626
17500 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
17501 of the noreturn call so it is last and cleanup_control_flow_bb
17502 can do the CFG part.
17504 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
17507 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
17508 same_comdat_group for external symbols.
17509 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
17510 infinite same_comdat_group traversal loop.
17512 2015-03-31 Jakub Jelinek <jakub@redhat.com>
17515 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
17516 automatically to $headers.
17518 2015-03-30 Jakub Jelinek <jakub@redhat.com>
17521 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
17522 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
17524 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
17526 * ipa-prop.c (param_type_may_change_p): Likewise.
17527 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
17528 (remove_unused_scope_block_p): Add in_ctor_dtor_block
17529 argument. Before inlining, preserve
17530 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
17531 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
17533 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
17535 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17538 * ipa-inline.c (edge_badness): Base denominator on callee's
17541 2015-03-27 Martin Jambor <mjambor@suse.cz>
17544 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
17545 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
17546 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
17547 node_calling_single_call.
17548 * ipa-cp.c (count_callers): New function.
17549 (set_single_call_flag): Likewise.
17550 (initialize_node_lattices): Count callers and set single_flag_call if
17552 (incorporate_penalties): New function.
17553 (good_cloning_opportunity_p): Use it, dump new flags.
17554 (propagate_constants_topo): Set node_within_scc flag if appropriate.
17555 * doc/invoke.texi (ipa-cp-recursion-penalty,
17556 ipa-cp-single-call-pentalty): Document.
17558 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17561 * symtab.c (symtab_node::get_partitioning_class): Register vars
17563 * varpool.c (symbol_table::output_variables) Do not assemble unefined
17564 decls for non-symbols.
17566 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
17569 * output.h (default_binds_local_p_2): New.
17570 * varasm.c (default_binds_local_p_2): Renamed to ...
17571 (default_binds_local_p_3): This. Don't return true on protected
17572 data symbol if protected data may be external.
17573 (default_binds_local_p): Use default_binds_local_p_3.
17574 (default_binds_local_p_1): Likewise.
17575 (default_binds_local_p_2): New.
17576 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
17577 default_binds_local_p_2 if TARGET_MACHO is undefined.
17579 2015-03-27 Jakub Jelinek <jakub@redhat.com>
17582 * config/i386/i386.c (legitimize_pic_address): If base
17583 is SYMBOL_REF or LABEL_REF using %rip addressing, force
17584 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
17586 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17589 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
17592 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17595 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
17596 of optimized out indirect call.
17597 (redirect_to_unreachable): Always build symbol table node for
17598 BUILT_IN_UNREACHABLE
17600 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
17603 * ira-costs.c (record_reg_classes): Process all constraint string
17606 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
17608 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
17612 * config/c6x/constraints.md (S3): New constraint.
17613 * config/c6x/c6x.md (real_jump): Use it.
17615 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17617 PR middle-end/65595
17618 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
17619 do redirection if the call is not optimized out.
17621 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
17624 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
17625 (fchkp-check-incomplete-type): Add LTO.
17626 (fchkp-zero-input-bounds-for-main): Likewise.
17627 (fchkp-first-field-has-own-bounds): Likewise.
17628 (fchkp-narrow-bounds): Likewise.
17629 (fchkp-narrow-to-innermost-array): Likewise.
17630 (fchkp-use-static-bounds): Likewise.
17631 (fchkp-use-static-const-bounds): Likewise.
17632 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
17634 2015-03-27 Marek Polacek <polacek@redhat.com>
17636 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
17638 2015-03-27 Marek Polacek <polacek@redhat.com>
17641 * ubsan.c (ubsan_create_edge): New function.
17642 (instrument_bool_enum_load): Call it.
17643 (instrument_nonnull_arg): Likewise.
17644 (instrument_nonnull_return): Likewise.
17645 (instrument_object_size): Likewise.
17647 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17649 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
17652 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17655 * lto-streamer.h (class lto_location_cache): New.
17656 (struct data_in): Add location_cache.
17657 (lto_input_location): Update prototype.
17658 (stream_input_location_now): New.
17659 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
17660 pointer to location.
17661 (stream_input_location): Update.
17662 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
17663 (warn_odr): Apply location cache before warning.
17664 (lto_input_location): Update prototype.
17665 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
17666 Use stream_input_location_now.
17667 * lto-streamer-in.c (lto_location_cache::current_cache): New static
17669 (lto_location_cache::cmp_loc): New function.
17670 (lto_location_cache::apply_location_cache): New function.
17671 (lto_location_cache::accept_location_cache): New function.
17672 (lto_location_cache::revert_location_cache): New function.
17673 (lto_location_cache::input_location): New function.
17674 (lto_input_location): Do location caching.
17675 (stream_input_location_now): New function.
17676 (input_eh_region, input_struct_function_base): Use
17677 stream_input_location_now.
17678 (lto_data_in_create): use new.
17679 (lto_data_in_delete): Use delete.
17680 * tree-streamer-in.c (unpack_ts_block_value_fields,
17681 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
17682 lto_input_ts_exp_tree_pointers): Update for cached location api.
17684 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17687 * passes.def: Add pass_nothrow.
17688 * ipa-pure-const.c: (pass_data_nothrow): New.
17689 (pass_nothrow): New.
17690 (pass_nothrow::execute): New.
17691 (make_pass_nothrow): New.
17692 * tree-pass.h (make_pass_nothrow): Declare.
17694 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17696 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
17697 edge to change by speculation resolution or redirection.
17698 (edge_set_predicate): Likewise.
17699 (inline_summary_t::duplicate): Likewise.
17700 (remap_edge_summaries): Likewise.
17702 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17704 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
17706 (can_inline_edge_p): Relax option matching for always inline functions.
17708 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
17711 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
17712 Check operand 4 and operand 0 for equality.
17713 (avx512f_vextract<shuffletype>32x4_1_maskm):
17714 Check operand 6 and operand 0 for equality.
17715 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
17717 (vec_extract_hi_<mode>_maskm): Ditto.
17719 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17721 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
17722 dead calls back to live.
17723 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
17725 (cgraph_node::verify_node): ... here; verify only callee edges,
17727 * cif-code.def (CILK_SPAWN): New code.
17729 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17731 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
17732 (edge_set_predicate): Use it to mark unreachable edges.
17733 (inline_summary_t::duplicate): Remove unnecesary code.
17734 (remap_edge_summaries): Likewise.
17735 (dump_inline_summary): Report contains_cilk_spawn.
17736 (compute_inline_parameters): Compute contains_cilk_spawn.
17737 (inline_read_section, inline_write_summary): Stream
17738 contains_cilk_spawn.
17739 * ipa-inline.c (can_inline_edge_p): Do not touch
17740 DECL_STRUCT_FUNCTION that may not be available;
17741 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
17742 remove check for callee_fun->can_throw_non_call_exceptions and
17743 replace it by optimization attribute check; check for flag_exceptions.
17744 * ipa-inline-transform.c (inline_call): Maintain
17745 DECL_FUNCTION_PERSONALITY
17746 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
17748 2015-03-26 Jakub Jelinek <jakub@redhat.com>
17750 PR tree-optimization/65551
17751 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
17752 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
17754 2015-03-26 Richard Biener <rguenther@suse.de>
17756 PR middle-end/65555
17757 * tree-cfg.c (verify_gimple_call): Do not require a call to
17758 have no LHS if it wasn't recognized as control altering yet.
17760 2015-03-26 Jakub Jelinek <jakub@redhat.com>
17762 PR tree-optimization/64715
17763 * passes.def: Add another instance of pass_object_sizes before ccp1.
17764 * tree-object-size.c (pass_object_sizes::execute): In
17765 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
17766 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
17767 __bos result and the computed constant. Remove redundant
17768 checks, obsoleted by gimple_call_builtin_p test.
17770 * var-tracking.c (variable_tracking_main_1): Don't track
17771 variables for targetm.no_register_allocation targets.
17773 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
17775 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
17776 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
17778 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
17781 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
17782 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
17783 0.0 is correctly setup.
17784 (extenddftf2_internal): Likewise.
17786 2015-03-25 Sebastian Pop <s.pop@samsung.com>
17788 PR tree-optimization/65177
17789 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
17791 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
17792 edges not adjacent on the path to the original code.
17794 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
17797 * doc/install.texi (Building a native compiler): Document new
17798 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
17799 configuration assumes that the host supports the linker plugin.
17801 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
17804 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
17805 chain for generated call.
17807 2015-03-25 Richard Biener <rguenther@suse.de>
17809 * passes.c (pass_manager::execute_early_local_passes): Guard
17810 execution of pass_chkp_instrumentation_passes with
17811 flag_check_pointer_bounds.
17812 (pass_chkp_instrumentation_passes::gate): Likewise.
17814 2015-03-25 Martin Liska <mliska@suse.cz>
17816 PR tree-optimization/65538
17817 * symbol-summary.h (function_summary::~function_summary):
17818 Relese memory for allocated summaries.
17819 (function_summary::release): New function.
17821 2015-03-25 Jakub Jelinek <jakub@redhat.com>
17824 * lto-streamer-out.c (DFS::worklist): New struct.
17825 (DFS::worklist_vec): New data member.
17826 (DFS::next_dfs_num): Remove.
17827 (DFS::DFS): Rewritten using worklist instead of recursion,
17828 using most of code from DFS::DFS_write_tree.
17829 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
17830 pass it to DFS_write_tree calls.
17831 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
17832 quick initial checks push it into worklist_vec and return.
17834 2015-03-25 Richard Biener <rguenther@suse.de>
17836 PR middle-end/65519
17837 * genmatch.c (expr::gen_transform): Re-write to avoid
17838 using gimple_build.
17840 2015-03-25 Bin Cheng <bin.cheng@arm.com>
17842 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
17844 2015-03-25 Bin Cheng <bin.cheng@arm.com>
17846 * config/arm/arm.opt (print_tune_info): New option.
17847 * config/arm/arm.c (arm_print_tune_info): New function.
17848 (arm_file_start): Call arm_print_tune_info.
17849 * config/arm/arm-protos.h (struct tune_params): Add comment.
17850 * doc/invoke.texi (@item -mprint-tune-info): New item.
17851 (-mtune): mention it in ARM Option Summary.
17853 2015-03-25 DJ Delorie <dj@redhat.com>
17855 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
17858 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
17859 Martin Liska <mliska@suse.cz>
17861 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
17862 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
17863 (sem_item::add_type): New function.
17864 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
17865 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
17866 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
17867 (sem_function::equals_wpa): Fix typo.
17868 * ipa-icf.h (sem_item::add_type): New function.
17869 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
17872 2015-03-24 Jakub Jelinek <jakub@redhat.com>
17874 PR tree-optimization/65533
17875 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
17876 with swapped operands, call vect_free_slp_tree on
17877 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
17880 2015-03-24 Richard Biener <rguenther@suse.de>
17882 PR middle-end/65517
17883 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
17884 for fixup if necessary.
17886 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
17888 * doc/extend.texi (Function Attributes): Add @cindex entries
17889 for all attributes and regularize their format. Delete text
17890 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
17891 information about "eightbit_data", "tiny_data", and "model"
17892 variable attributes to the Variable Attributes section. Fix
17893 some obvious typos and copy-editing issues.
17894 (Variable Attributes, Type Attributes): Likewise add/fix
17895 @cindex entries for all attributes.
17897 2015-03-23 Jakub Jelinek <jakub@redhat.com>
17900 * tree-chkp.c (chkp_build_returned_bound): Ignore
17901 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
17903 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
17906 * config/sh/predicates.md (simple_mem_operand,
17907 displacement_mem_operand): Add test for reg.
17908 (short_displacement_mem_operand): Test for displacement_mem_operand
17909 before invoking sh_disp_addr_displacement.
17910 * config/sh/constraints.md (Sdd, Sra): Simplify.
17911 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
17912 Remove redundant displacement_mem_operand tests.
17914 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
17917 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
17918 the same -mmcu=MCU more than once.
17920 2015-03-23 Jakub Jelinek <jakub@redhat.com>
17923 * ipa-devirt.c: Remove duplicate demangle.h include.
17926 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
17928 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
17929 REG_POINTER on *destptr after adjusting it for prologue size.
17932 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
17933 ultimate_alias_target ()->order ints instead of
17934 ultimate_alias_target () pointers.
17936 2015-03-23 Richard Biener <rguenther@suse.de>
17938 PR tree-optimization/65518
17939 * tree-vect-stmts.c (vectorizable_load): Reject single-element
17940 interleaving cases we generate absymal code for.
17942 2015-03-23 Richard Biener <rguenther@suse.de>
17944 PR tree-optimization/65494
17945 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
17947 (vect_analyze_slp_instance): But do that here, always and once.
17949 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17951 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
17952 adding T or multiplying by T+1 and subracting T.
17954 2015-03-22 Jeff Law <law@redhat.com>
17956 PR rtl-optimization/64317
17957 * Makefile.in (OBJS): Add gcse-common.c
17958 * gcse.c: Include gcse-common.h
17959 (struct modify_pair_s): Move structure definition to gcse-common.h
17960 (compute_transp): Move function to gcse-common.c.
17961 (canon_list_insert): Similarly.
17962 (record_last_mem_set_info): Break out some code and put it into
17963 gcse-common.c. Call into the new common code.
17964 (compute_local_properties): Pass additional arguments to compute_transp.
17965 * postreload-gcse.c: Include gcse-common.h and df.h
17966 (modify_mem_list_set, blocks_with_calls): New variables.
17967 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
17968 (get_bb_avail_insn): Pass in the expression index too.
17969 (alloc_mem): Allocate memory for the new bitmaps and lists.
17970 (free_mem): Free memory for the new bitmaps and lists.
17971 (insert_expr_in_table): Record a bitmap index for each entry we
17973 (record_last_mem_set_info): Call into common code in gcse-common.c.
17974 (get_bb_avail_insn): If no available insn was found in the requested
17975 BB. If BB has a single predecessor, see if the expression is
17976 transparent in BB and available in that single predecessor.
17977 (compute_expr_transp): New wrapper for compute_transp.
17978 (eliminate_partially_redundant_load): Pass expression's bitmap_index
17979 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
17980 (gcse_after_reload_main): If there are elements in the hash table,
17981 then compute transparency for all the elements in the hash table.
17982 * gcse-common.h: New file.
17983 * gcse-common.c: New file.
17985 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
17987 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
17989 (System Headers): Likewise.
17991 (Traditional macros): Likewise.
17992 (Invocation): Likewise.
17993 (Option Index): Likewise.
17994 * doc/cppopts.texi (-M): Likewise.
17995 (-finput-charset): Likewise.
17996 (--help): Likewise.
17997 * doc.invoke.texi (AVR Options): Likewise.
17998 (V850 Options): Likewise.
18000 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
18003 * ipa-devirt.c: Include demangle.h
18004 (odr_type_d): Add field rtti_broken.
18005 (odr_subtypes_equivalent_p): Do not require name to match.
18006 (compare_virtual_tables): Fix typo; if type already has ODR violation,
18007 bypass the tests; be ready for function referneces in vtables that are
18008 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
18009 (warn_odr): Give up for nameless types.
18010 (warn_types_mismatch): Report mismatch in mangled names;
18011 report mismatch in anonymous namespaces; look into component types to
18012 give useful error; report when mismatch is dragged in from other ODR
18014 (odr_types_equivalent_p): Match types for being polymorphic; avoid
18015 duplicated diagnostics.
18016 (add_type_duplicate): Reorder checks so more informative ones come
18017 first; fix typo; do not output "the extra base is defined here" when
18019 (BINFO_N_BASE_BINFOS): Relax sanity check.
18021 2015-03-22 Martin Liska <mliska@suse.cz>
18022 Jakub Jelinek <jakub@redhat.com>
18024 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
18025 masks that can potentially include a builtin.
18026 (ix86_add_new_builtins): Introduce fast filter for isa values
18027 that cannot trigger builtin inclusion.
18029 2015-03-22 Martin Liska <mliska@suse.cz>
18031 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
18032 (sem_item::update_hash_by_local_refs): Likewise.
18033 (sem_variable::get_hash): Empty line is fixed.
18034 (sem_item_optimizer::execute): Include adding of hash references.
18035 (sem_item_optimizer::update_hash_by_addr_refs): New function.
18036 (sem_item_optimizer::build_hash_based_classes): Use local hash.
18037 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
18038 (sem_item::update_hash_by_local_refs): Likewise.
18040 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18043 * ipa-comdats.c (enqueue_references): Walk through thunks.
18044 (ipa_comdats): Likewise.
18045 (set_comdat_group_1): New function.
18047 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18050 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
18053 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
18054 Gerald Pfeifer <gerald@pfeifer.com>
18056 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
18058 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
18059 Sandra Loosemore <sandra@codesourcery.com>
18061 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
18062 function parameter declaration.
18063 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
18064 Update arguments to nios2_adjust_call_address().
18065 (sibcall_internal): Rename from *sibcall.
18066 (sibcall_value_internal): Rename from *sibcall_value.
18067 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
18068 (nios2_large_got_address): Add target temp reg parameter.
18069 (nios2_got_address): Adjust call to nios2_large_got_address, add
18070 force_reg around it.
18071 (nios2_load_pic_address): Add target temp reg parameter, replace call
18072 to nios2_got_address with corresponding code.
18073 (nios2_legitimize_constant_address): Update call to
18074 nios2_load_pic_address.
18075 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
18076 to use temp reg for PIC loading purposes.
18077 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
18078 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
18079 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
18081 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18083 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
18084 usage of "the @option{...}".
18085 (-Wopenmp-simd): Likewise.
18086 (-fsanitize-recover): Likewise.
18087 (-fsanitize-undefined-trap-on-error): Likewise.
18089 (tracer-dynamic-coverage-feedback): Likewise.
18090 (reorder-block-duplicate-feedback): Likewise.
18091 (loop-unroll-jam-size): Likewise.
18094 (-mabs=legacy): Likewise.
18095 (-mupper-regs-df): Likewise.
18096 (-mupper-regs-sf): Likewise.
18097 (-mpointers-to-nested-functions): Likewise.
18099 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18101 * doc/extend.texi (Cilk Plus Builtins): Add markup.
18103 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18105 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
18106 additional index entries and cross-references.
18107 (-fchkp-check-incomplete-type): Likewise.
18108 (-fchkp-first-field-has-own-bounds): Likewise.
18109 (-fchkp-narrow-to-innermost-array): Likewise.
18110 (-fchkp-use-fast-string-functions): Likewise.
18111 (-fchkp-use-nochk-string-functions): Likewise.
18112 (-fchkp-use-static-const-bounds): Likewise.
18113 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
18114 (-fchkp-instrument-marked-only): Likewise.
18115 (-fchkp-use-wrappers): Likewise.
18116 (-static-libmpx): Likewise.
18117 (-static-libmpxwrappers): Likewise.
18118 * doc/extend.texi (bnd_legacy): Likewise.
18119 (bnd_instrument): Likewise.
18120 (bnd_variable_size): Likewise.
18121 (Pointer Bounds Checker builtins): Likewise.
18123 2015-03-21 Tom de Vries <tom@codesourcery.com>
18125 PR tree-optimization/65458
18126 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
18127 * cgraph.h (cgraph_node): Add parallelized_function field.
18128 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
18129 (input_overwrite_node): Read parallelized_function field.
18130 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
18131 parallelized_function on cgraph_node for child_fn.
18132 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
18133 Remove include of gt-tree-parloops.h.
18134 (parallelized_functions): Remove static variable.
18135 (parallelized_function_p): Rewrite using parallelized_function field of
18137 (create_loop_fn): Remove adding to parallelized_functions.
18138 * Makefile.in (GTFILES): Remove tree-parloops.c
18140 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
18142 PR rtl-optimization/64366
18143 * lra.c (lra_update_insn_regno_info): Consider regs in
18144 CALL_INSN_FUNCTION_USAGE memory.
18146 2015-03-20 Richard Biener <rguenther@suse.de>
18148 PR middle-end/64715
18149 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
18150 for type comparison and gcc_checking_assert.
18151 (chrec_fold_plus_poly_poly): Likewise.
18152 (chrec_fold_multiply_poly_poly): Likewise.
18153 (chrec_convert_1): Likewise.
18154 * gimplify.c (gimplify_expr): Remove premature folding of
18155 &X + CST to &MEM[&X, CST].
18157 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18159 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
18161 (ipa_inline): Recompute inline_failed codes.
18162 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
18163 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
18166 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
18168 PR rtl-optimization/60851
18169 * recog.c (constrain_operands): Accept a pseudo register before reload
18170 for LRA enabled targets.
18172 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
18175 * config/rs6000/predicates.md (easy_fp_constant): Remove special
18176 -ffast-math handling that kept non-0 constants live in the RTL
18177 until reload. Remove logic testing the number of instructions it
18178 took to create a constant in a GPR that was never used, due to a
18179 test for soft-float earlier.
18180 (memory_fp_constant): Delete, no longer used.
18182 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
18183 alternatives for loading non-0 constants into GPRs for hard
18184 floating point that is no longer needed due to changes in
18185 easy_fp_constant. Add support for loading 0.0 into GPRs.
18186 (mov<mode>_hardfloat32): Likewise.
18187 (mov<mode>_hardfloat64): Likewise.
18188 (mov<mode>_64bit_dm): Likewise.
18189 (movtd_64bit_nodm): Likewise.
18190 (pre-reload move FP constant define_split): Delete define_split,
18191 since it is no longer used.
18192 (extenddftf2_internal): Remove GHF constraints that are not valid
18195 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
18197 PR rtl-optimization/63491
18198 * lra-constraints.c (check_and_process_move): Use src instead of
18199 sreg. Remove some dead code.
18201 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
18204 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
18205 (sem_variable::merge): Likewise.
18207 2015-03-19 Martin Liska <mliska@suse.cz>
18210 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
18211 all fields of cgraph_thunk_info.
18213 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
18215 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
18216 clone instrumented thunks.
18218 2015-03-19 Richard Biener <rguenther@suse.de>
18221 2015-03-10 Richard Biener <rguenther@suse.de>
18223 PR middle-end/63155
18224 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
18225 * tree-ssa-coalesce.c: Include timevar.h.
18226 (attempt_coalesce): Handle graph being NULL.
18227 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
18228 Split out abnormal coalescing to ...
18229 (perform_abnormal_coalescing): ... this function.
18230 (coalesce_ssa_name): Perform abnormal coalescing without computing
18232 (verify_ssa_coalescing_worker): New function.
18233 (verify_ssa_coalescing): Likewise.
18235 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18236 Jakub Jelinek <jakub@redhat.com>
18239 * tsan.c (instrument_gimple): Clear tail call flag on
18242 2015-03-19 Jakub Jelinek <jakub@redhat.com>
18245 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
18246 call in the return bb.
18247 (find_split_points): Add RETURN_BB argument, don't call
18249 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
18250 if true append TSAN_FUNC_EXIT internal call after the call to
18251 the split off function.
18252 (execute_split_functions): Call find_return_bb here.
18253 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
18254 Adjust find_split_points and split_function calls.
18256 2015-03-18 DJ Delorie <dj@redhat.com>
18258 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
18259 (iorqi3_virt): Likewise.
18261 2015-03-18 Tom de Vries <tom@codesourcery.com>
18263 * tree-parloops.c (parallelize_loops): Make static.
18264 * tree-parloops.h (parallelize_loops): Remove extern declaration.
18266 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
18268 PR middle-end/64491
18270 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
18272 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
18273 condition would be removed due to undefined behaviour.
18275 2015-03-18 Martin Liska <mliska@suse.cz>
18278 * cgraph.c (cgraph_node::get_create): Remove unnecessary
18279 xstrdup_for_dump wrapper.
18280 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
18282 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
18283 with xstrdup_for_dump.
18284 (sem_variable::equals): Likewise.
18285 (sem_item_optimizer::read_section): Use symtab_node::name instead of
18287 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
18288 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
18289 symtab_node::asm_name with xstrdup_for_dump.
18290 (congruence_class::dump): Use symtab_node::name instead of
18292 * ipa-icf.h (symtab_node::name): Remove.
18293 (symtab_node::asm_name): Likewise.
18295 2015-03-18 Jakub Jelinek <jakub@redhat.com>
18297 PR tree-optimization/65450
18298 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
18300 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
18301 it instead of duplicate_ssa_name_ptr_info.
18304 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
18306 2015-03-18 Richard Biener <rguenther@suse.de>
18308 * tree-data-ref.h (struct access_matrix): Remove.
18309 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
18310 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
18311 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
18312 (am_vector_index_for_loop): Likewise.
18313 (struct data_reference): Remove access_matrix member.
18314 (DR_ACCESS_MATRIX): Remove.
18315 (lambda_vector_new): Add comment.
18316 (lambda_matrix_new): Use XOBNEWVEC.
18318 2015-03-18 Richard Biener <rguenther@suse.de>
18320 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
18321 (pass_ch::execute): Cleanup the CFG only if we did sth.
18322 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
18324 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18326 * expmed.c (synth_mult): Use std::swap instead of manually
18327 swapping algorithms.
18329 2015-03-18 Jakub Jelinek <jakub@redhat.com>
18332 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
18334 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
18337 * config/avr/avr.opt (-nodevicelib): New option.
18338 * doc/invoke.texi (AVR Options): Document it.
18339 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
18340 libgcc.a, libc.a, libm.a.
18341 * config/avr/specs.h: Same.
18342 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
18343 which don't (directly) depend on the device. Print more help.
18344 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
18345 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
18346 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
18348 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
18349 for specs file name.
18350 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
18351 * config/avr/avr-mcus.def: Adjust initializers and comments.
18353 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
18355 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
18356 DECL_ONE_ONLY to check if decl is one only.
18357 * ipa-split.c (consider_split): Limit splitt of one only functions.
18359 2015-03-16 Jakub Jelinek <jakub@redhat.com>
18361 PR tree-optimization/65427
18362 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
18364 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
18366 2015-03-16 Marek Polacek <polacek@redhat.com>
18368 * cgraph.h (add_new_static_var): Remove declaration.
18369 * varpool.c (add_new_static_var): Remove function.
18371 2015-03-16 Jakub Jelinek <jakub@redhat.com>
18373 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
18374 instead of vec<tree> * with vec_alloc and release for args.
18377 PR middle-end/65431
18378 * omp-low.c (delete_omp_context): Only splay_tree_delete
18379 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
18380 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
18382 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
18385 * cfgexpand.c (align_base): New function.
18386 (alloc_stack_frame_space): Call it.
18387 (expand_stack_vars): Align prev_frame to be sure
18388 data->asan_vec elements aligned properly.
18390 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
18392 PR middle-end/65409
18393 * expr.c (store_field): Do not do a direct block copy if the source is
18394 a PARALLEL with BLKmode.
18396 2015-03-16 Tom de Vries <tom@codesourcery.com>
18398 PR middle-end/65414
18400 2015-03-12 Tom de Vries <tom@codesourcery.com>
18402 PR rtl-optimization/64895
18403 * lra-lives.c (check_pseudos_live_through_calls): Use
18404 actual_call_used_reg_set instead of call_used_reg_set, if available.
18406 2015-03-16 Alan Modra <amodra@gmail.com>
18409 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
18410 Modify Z->r bswapdi splitter to use dest in place of scratch.
18411 In r->Z and Z->r bswapdi splitter rename word_high, word_low
18412 to word1, word2 and rearrange logic to suit.
18413 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
18414 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
18415 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
18416 Add one '?' on r->r. Modify Z->r splitter to avoid need for
18419 2015-03-14 Jakub Jelinek <jakub@redhat.com>
18421 PR tree-optimization/65369
18422 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
18423 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
18424 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
18426 PR tree-optimization/65418
18427 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
18428 are casts in the first PLUS_EXPR operand, ensure tbias and
18429 *totallowp are in the inner type.
18431 PR rtl-optimization/65401
18432 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
18433 argument. If true, adjust_address_nv of x with big-endian
18434 correction for the mode widening to GET_MODE (y).
18435 (make_field_assignment): Don't do MEM mode widening here.
18436 Use MEM_P instead of GET_CODE == MEM.
18438 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
18440 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
18441 the external decls.
18443 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18446 * config/arm/arm.c (arm_gen_constant, AND case): Use
18447 ARM_SIGN_EXTEND when constructing AND mask.
18449 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18451 * graph.c (print_graph_cfg): Make function names visible and append
18452 parenthesis to it. Also make groups of basic blocks belonging to the
18453 same function visible.
18455 2015-03-12 Richard Biener <rguenther@suse.de>
18457 PR middle-end/44563
18458 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
18459 to avoid quadratic behavior with inline expansion splitting blocks.
18460 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
18461 with the successor if the predecessor will be merged with it.
18462 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
18463 entry block with its successor.
18465 2015-03-13 Richard Biener <rguenther@suse.de>
18467 PR middle-end/44563
18468 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
18469 (cleanup_tree_cfg_1): Do not call it.
18470 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
18471 (fixup_noreturn_call): Mark the stmt as control altering.
18472 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
18474 (pass_data_fixup_cfg): Produce a dump file.
18475 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
18476 (need_noreturn_fixup): New global.
18477 (pass_dominator::execute): Fixup queued noreturn calls.
18478 (optimize_stmt): Queue calls that became noreturn for fixup.
18479 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
18480 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
18481 (el_to_fixup): New global.
18482 (eliminate_dom_walker::before_dom_childre): Queue calls that
18483 became noreturn for fixup.
18484 (eliminate): Fixup queued noreturn calls.
18485 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
18486 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
18487 (substitute_and_fold_dom_walker::before_dom_children): Queue
18488 alls that became noreturn for fixup.
18489 (substitute_and_fold): Fixup queued noreturn calls.
18491 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
18493 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
18494 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
18495 are building; for methods check ODR type of class they belong to if
18496 they may lead to a polymorphic call.
18497 (sem_function::compare_polymorphic_p): Be bit smarter about testing
18498 when function may lead to a polymorphic call.
18499 (sem_function::compare_type_list): Remove.
18500 (sem_variable::equals): Update use of compatible_types_p.
18501 (sem_variable::parse_tree_refs): Remove.
18502 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
18504 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
18506 (func_checker::compatible_polymorphic_types_p): Break out from ...
18507 (unc_checker::compatible_types_p): ... here.
18508 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
18510 (unc_checker::compatible_types_p): Update.
18511 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
18514 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18516 PR rtl-optimization/65235
18517 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
18518 When first element of vec_concat is const_int, calculate its size
18519 using second element.
18521 2015-03-12 Richard Biener <rguenther@suse.de>
18523 PR middle-end/65270
18524 * fold-const.c (operand_equal_p): Fix ordering of resetting
18525 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
18527 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
18529 * config/s390/s390.c (s390_reorg): Move code to output nops after label
18531 (s390_asm_output_function_label): Likewise.
18532 * config/s390/s390.c (s390_asm_output_function_label):
18533 Fix function label alignment with -mhtopatch.
18534 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
18535 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
18536 ("nop_2_byte"): New define_insn.
18537 ("nop_4_byte"): Likewise.
18538 ("nop_6_byte"): Likewise.
18539 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
18540 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
18542 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
18545 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
18548 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
18551 * toplev.c (process_options): Restrict Pointer Bounds Checker
18552 usage with Address Sanitizer.
18554 2015-03-12 Richard Biener <rguenther@suse.de>
18556 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
18558 * omp-low.c (expand_omp_taskreg): Split block before removing
18560 (expand_omp_target): Likewise.
18561 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
18562 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
18563 stmt to split_block.
18565 2015-03-12 Tom de Vries <tom@codesourcery.com>
18567 PR rtl-optimization/64895
18568 * lra-lives.c (check_pseudos_live_through_calls): Use
18569 actual_call_used_reg_set instead of call_used_reg_set, if available.
18571 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
18573 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
18574 (cgraph_node::remove): Likewise.
18575 (cgraph_node::get_untransformed_body): Likewise.
18576 * varpool.c (varpool_node::remove): Likewise.
18577 (varpool_node::get_constructor): Add sanity check.
18579 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
18581 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
18583 (-fabi-compat-version): Likewise.
18584 (-ffriend-injection): Likewise.
18585 (-Wdeclaration-after-statement): Likewise.
18586 (-fomit-frame-pointer): Likewise.
18587 (-ftree-coalesce-inlined-vars): Likewise.
18588 (-fvisibility=): Likewise.
18589 * doc/extend.texi (Typeof): Likewise.
18590 (Zero Length): Likewise.
18591 (Escaped Newlines): Likewise.
18592 (Compound Literals): Likewise.
18593 (Function Attributes): Likewise.
18594 (Label Attributes): Likewise.
18595 (Type Attributes): Likewise.
18596 (Function Names): Likewise.
18597 (Other Builtins): Likewise.
18598 (Function Specific Option Pragmas): Likewise.
18599 (C++ Interface): Likewise.
18601 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
18603 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
18605 2015-03-11 Marek Polacek <polacek@redhat.com>
18607 PR tree-optimization/65388
18608 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
18610 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
18613 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
18614 * configure: Regenerate.
18615 * config.in: Regenerate.
18616 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
18617 [-mn-flash]: Document it.
18618 [__AVR_ARCH__]: Document avrtiny.
18620 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
18621 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
18622 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
18624 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18626 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
18628 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18631 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
18632 allow reloads of PLUS in floating point/VSX registers.
18634 2015-03-11 Junmo Park <junmoz.park@samsung.com>
18636 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
18637 crypto_sha256_fast.
18638 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
18640 2015-03-11 Richard Biener <rguenther@suse.de>
18642 PR tree-optimization/65310
18643 * tree-sra.c (build_ref_for_offset): Also preserve larger
18646 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
18648 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
18650 2015-03-10 Jakub Jelinek <jakub@redhat.com>
18653 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
18655 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
18657 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
18659 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
18660 (sem_function::equals_wpa): ... here.
18662 2015-03-10 Marek Polacek <polacek@redhat.com>
18663 Jakub Jelinek <jakub@redhat.com>
18666 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
18667 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
18670 2015-03-10 Jakub Jelinek <jakub@redhat.com>
18673 * config/rs6000/t-linux: For powerpc64* target set
18674 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
18676 2015-03-10 Richard Biener <rguenther@suse.de>
18678 PR middle-end/44563
18679 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
18680 for redirect_all_calls.
18682 2015-03-10 Marek Polacek <polacek@redhat.com>
18684 * gdbinit.in (pcfun): Define and document.
18686 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
18688 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
18689 of libgomp-plugin.h.
18690 (find_target_compiler): Support a case when the path to gcc is
18691 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
18692 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
18693 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
18695 (main): Use GCC_INSTALL_NAME as target_driver_name.
18696 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
18698 (mkoffload.o): Remove obsolete include path and defines.
18699 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
18701 2015-03-10 Richard Biener <rguenther@suse.de>
18703 PR middle-end/63155
18704 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
18705 * tree-ssa-coalesce.c: Include timevar.h.
18706 (attempt_coalesce): Handle graph being NULL.
18707 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
18708 Split out abnormal coalescing to ...
18709 (perform_abnormal_coalescing): ... this function.
18710 (coalesce_ssa_name): Perform abnormal coalescing without computing
18712 (verify_ssa_coalescing_worker): New function.
18713 (verify_ssa_coalescing): Likewise.
18715 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
18718 * config.gcc (extra_options) [avr]: Remove.
18719 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
18720 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
18721 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
18723 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
18724 (-mmcu=): Add Var and MissingArgError properties.
18726 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
18727 * config/avr/t-multilib: Regenerate.
18728 * config/avr/specs.h: New file.
18729 * config/avr/driver-avr.c: New file.
18730 * config/avr/genopt.sh: Remove file.
18731 * config/avr/avr-tables.opt: Remove file.
18732 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
18733 * config/avr/avr-c.c: Same.
18734 * avr-arch.h: Same.
18735 (avr_current_device): Remove proto.
18736 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
18737 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
18738 (EXTRA_SPEC_FUNCTIONS): Define.
18739 (avr_devicespecs_file): New specs function proto.
18740 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
18741 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
18742 (avr_current_device): Remove definition and usage.
18743 (avr_set_core_architecture): New static function.
18744 (avr_option_override): Use it.
18745 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
18746 (mcu_name): New static array.
18747 (comparator, avr_archs_str, avr_mcus_str): New static functions.
18748 (avr_inform_devices, avr_inform_core_architectures): New functions.
18749 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
18750 (avrlibc.h) [WITH_AVRLIBC]: Include.
18751 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
18752 (print_mcu): Rewrite from scratch.
18753 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
18754 Forward to avr-specific specs defined in device-specs file.
18755 * config/avr/t-avr (driver-avr.o): New rule.
18756 (avr-devices.o): Depend on avr-arch.h.
18757 (avr-mcus): No more depend on avr-tables.opt.
18758 (avr-tables.opt): Remove rule.
18759 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
18761 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18763 * c-family/c.opt (fchkp-use-wrappers): New.
18764 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
18765 (chkp_wrap_function): New.
18766 (chkp_build_instrumented_fndecl): Support wrapped
18768 * doc/invoke.texi (-fcheck-pointer-bounds): New.
18769 (-fchkp-check-incomplete-type): New.
18770 (-fchkp-first-field-has-own-bounds): New.
18771 (-fchkp-narrow-bounds): New.
18772 (-fchkp-narrow-to-innermost-array): New.
18773 (-fchkp-optimize): New.
18774 (-fchkp-use-fast-string-functions): New.
18775 (-fchkp-use-nochk-string-functions): New.
18776 (-fchkp-use-static-bounds): New.
18777 (-fchkp-use-static-const-bounds): New.
18778 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
18779 (-fchkp-check-read): New.
18780 (-fchkp-check-write): New.
18781 (-fchkp-store-bounds): New.
18782 (-fchkp-instrument-calls): New.
18783 (-fchkp-instrument-marked-only): New.
18784 (-fchkp-use-wrappers): New.
18785 (-static-libmpx): New.
18786 (-static-libmpxwrappers): New.
18788 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18790 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
18791 (CHKP_SPEC): Add wrappers library.
18792 * c-family/c.opt (static-libmpxwrappers): New.
18794 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18796 * config/i386/linux-common.h (LIBMPX_LIBS): New.
18797 (LIBMPX_SPEC): New.
18799 * gcc.c (CHKP_SPEC): New.
18800 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
18801 * c-family/c.opt (static-libmpx): New.
18803 2015-03-10 Richard Biener <rguenther@suse.de>
18805 PR middle-end/44563
18806 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
18808 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
18809 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
18810 (cgraph_add_edge_to_call_site_hash): Likewise.
18811 (cgraph_node::get_edge): Likewise.
18812 (cgraph_edge::set_call_stmt): Likewise.
18813 (cgraph_edge::remove_caller): Likewise.
18815 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
18817 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
18818 (callee_saved_gpr_regs_size): ... this.
18819 (callee_saved_regs_first_regno): Rename to ...
18820 (callee_saved_first_gpr_regno): ... this.
18821 (callee_saved_regs_last_regno) Rename to ...
18822 (callee_saved_last_gpr_regno): ... this.
18823 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
18825 (nds32_initial_elimination_offset): Likewise.
18826 (nds32_expand_prologue): Likewise.
18827 (nds32_expand_epilogue): Likewise.
18828 (nds32_expand_prologue_v3push): Likewise.
18829 (nds32_expand_epilogue_v3pop): Likewise.
18830 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
18831 Adjust renamed variables.
18832 (nds32_output_stack_pop): Likewise.
18834 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
18836 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
18839 2015-03-10 Jakub Jelinek <jakub@redhat.com>
18841 PR rtl-optimization/65321
18842 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
18844 * var-tracking.c (use_narrower_mode): Likewise.
18846 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
18848 PR tree-optimization/65355
18849 * varasm.c (notice_global_symbol): Do not produce RTL.
18850 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
18852 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
18853 check for section anchors.
18855 2015-03-10 Alan Modra <amodra@gmail.com>
18858 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
18859 to be single-arch by default. Set cpu_is_64bit for powerpc64
18860 given --with-cpu=native.
18861 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
18862 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
18864 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
18865 rs6000_isa_flags rather than TARGET_64BIT.
18867 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
18868 Kaz Kojima <kkojima@gcc.gnu.org>
18870 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
18872 2015-03-09 Jakub Jelinek <jakub@redhat.com>
18875 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
18876 on a TREE_BINFO, instead use BINFO_TYPE.
18878 2015-03-09 Richard Biener <rguenther@suse.de>
18880 PR middle-end/65270
18881 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
18882 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
18883 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
18884 of that. When comparing dereferences compare alignment.
18885 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
18887 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
18889 * ipa-inline-analysis.c (check_callers): Check
18890 node->can_remove_if_no_direct_calls_and_refs_p.
18891 (growth_likely_positive): Reorganize to call
18892 can_remove_if_no_direct_calls_p later.
18893 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
18894 will_be_removed_from_program_if_no_direct_calls_p): Add
18895 will_inline parameter.
18896 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
18897 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
18898 Handle inliner case correctly.
18900 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
18902 PR tree-optimization/63743
18903 * cfgexpand.c (reorder_operands): Also reorder if only second operand
18904 had its definition forwarded by TER.
18906 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
18909 * ipa-utils.h (types_odr_comparable): Add strict argument.
18910 * ipa-devirt.c: Fix whitespace;
18911 (odr_hasher): Remove.
18912 (odr_name_hasher, odr_vtable_hasher): New hashers.
18913 (can_be_name_hashed_p): New predicate.
18914 (hash_type_name): remove.
18915 (hash_odr_name): New.
18916 (odr_name_hasher::hash): new.
18917 (can_be_vtable_hashed_p): New.
18918 (hash_odr_vtable): New.
18919 (odr_vtable_hasher::hash): New.
18920 (types_same_for_odr): Add strict parameter.
18921 (types_odr_comparable): Likewise.
18922 (odr_name_hasher::equal): New.
18923 (odr_vtable_hasher::equal): New.
18924 (odr_name_hasher::remove): New.
18925 (odr_hash_type): Change to hash_table<odr_name_hasher>.
18926 (odr_vtable_hash_type): New.
18927 (odr_vtable_hash): New.
18928 (odr_subtypes_equivalent_p): Do strict comparsion.
18929 (add_type_duplicate): Merge type names; cleanup; avoid type
18931 (register_odr_type): Initialize vtable hash.
18932 (build_type_inheritance_graph): Likewise
18933 (get_odr_type): Reorg to use two hashes.
18934 (dump_possible_polymorphic_call_targets): Move sanity check after debug
18936 (ipa_devirt): Dump type_inheritance_graph.
18937 (types_same_for_odr): Add strict mode.
18939 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
18942 * cgraph.h (symtab_node): Add definition_alignment,
18943 can_increase_alignment_p and increase_alignment.
18944 * symtab.c (symtab_node::can_increase_alignment_p,
18945 increase_alignment_1, symtab_node::increase_alignment,
18946 symtab_node::definition_alignment): New.
18947 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
18948 can_increase_alignment_p.
18949 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
18950 * tree-vect-stmts.c (ensure_base_align): Likewise.
18951 * varasm.c (function_section_1): Use definition_alignment.
18952 (assemble_start_function): Likewise.
18953 (emit_local): likewise.
18954 (build_constant_desc): Likewsie.
18955 (output_constant_def_contents): Likewise.
18956 (place_block_symbol): Likewise.
18957 (output_object_block): Likewise.
18959 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
18962 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
18963 when outputting debug.
18965 2015-03-07 Marek Polacek <polacek@redhat.com>
18966 Martin Uecker <uecker@eecs.berkeley.edu>
18969 * doc/invoke.texi: Update description of -fsanitize=bounds.
18971 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
18973 * tree-ssa-phiopt.c (neg_replacement): Remove.
18974 (tree_ssa_phiopt_worker): Remove negate optimization.
18976 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
18979 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
18981 2015-03-06 Richard Biener <rguenther@suse.de>
18983 PR middle-end/64928
18984 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
18985 and liveout_obstack members.
18986 (calculate_live_on_exit): Remove.
18987 (calculate_live_ranges): Change declaration.
18988 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
18989 (new_tree_live_info): Adjust.
18990 (calculate_live_ranges): Delete livein when not wanted.
18991 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
18992 Deal with partly deleted live info.
18993 (loe_visit_block): Remove temporary bitmap by using
18994 bitmap_ior_and_compl_into.
18995 (live_worklist): Adjust accordingly.
18996 (calculate_live_on_exit): Make static.
18997 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
18998 we do not need livein.
19000 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
19002 * real.c (real_from_string): Fix typo in assertion.
19004 2015-03-06 Alex Velenko <alex.velenko@arm.com>
19006 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
19009 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19011 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
19013 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
19016 * lra-assigns.c (find_hard_regno_for): Rename to
19017 find_hard_regno_for_1. Add a new parameter.
19018 (find_hard_regno_for): New function using find_hard_regno_for_1.
19020 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
19022 PR rtl-optimization/65067
19023 * expmed.c (store_bit_field, extract_bit_field): Reworked the
19024 strict volatile bitfield handling.
19026 2015-03-05 Martin Liska <mliska@suse.cz>
19029 * ipa-icf.c (sem_variable::equals): Compare variables types.
19031 2015-03-05 Richard Henderson <rth@redhat.com>
19034 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
19035 correctly check weak symbol binding.
19037 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
19039 PR middle-end/65315
19040 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
19043 2015-03-05 Martin Liska <mliska@suse.cz>
19045 * ipa-inline.c (inline_small_functions): Set default value to
19046 prevent warning during bootstrap.
19047 * tree.h: Add pragma guard that ignores false positives during
19050 2015-03-05 Richard Biener <rguenther@suse.de>
19052 PR tree-optimization/65310
19053 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19054 Properly preserve alignment of the base of the access.
19056 2015-03-05 Richard Biener <rguenther@suse.de>
19059 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
19060 Compare dependence info.
19062 2015-03-05 Richard Biener <rguenther@suse.de>
19064 PR middle-end/65233
19065 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
19067 (walk_ssa_copies): Revert last chage. Instead do not walk
19068 SSA names registered for SSA update.
19070 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19073 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
19074 vtable references for their containing type.
19075 (sem_function::equals_wpa): Compare TYPE_RESTRICT
19076 and type attributes.
19078 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
19080 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
19081 before negating it.
19082 * stor-layout.c (finalize_record_size): Revert latest change.
19084 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
19086 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
19088 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19090 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
19091 for correct comdat handling.
19092 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
19094 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
19095 (used_from_object_file_p_worker): Remove.
19096 (cgraph_node::only_called_directly_or_alised): Add
19097 used_from_object_file_p.
19098 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
19099 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
19100 can_remove_if_no_direct_calls_and_refs_p.
19102 2015-03-04 Nick Clifton <nickc@redhat.com>
19104 * config/rl78/rl78.h (enum reg_class): Remove real registers from
19105 General register class.
19106 * config/rl78/rl78-real.md: Replace general register constraints
19107 with real+virtual register constraints.
19109 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19111 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
19112 from checking for -mhtm option.
19114 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19116 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
19117 (struct ipa_sra_check_caller_data): Add has_thunk field.
19118 (ipa_sra_check_caller): Check for thunk.
19119 (ipa_sra_preliminary_function_checks): Give up on function with
19121 (ipa_early_sra): Use call_for_symbol_and_aliases.
19123 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
19126 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
19127 called for __stack_chk_guard symbol.
19129 2015-03-03 DJ Delorie <dj@redhat.com>
19131 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
19133 (*addhi3_real): Likewise.
19134 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
19135 pattern to match incrementing memory.
19136 * config/rl78/predicates.md (rl78_1_2_operand): New.
19137 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
19138 it's the same and only mem.
19139 (rl78_alloc_physical_registers_op2): If there's effectively only
19140 one MEM, transcode it into HL.
19141 (rl78_far_p): Reject addresses that aren't legitimate.
19143 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
19145 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
19148 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
19150 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
19152 Implement call0 ABI for xtensa
19153 * config/xtensa/constraints.md ("a" constraint): Include stack
19154 pointer in case of call0 ABI.
19155 ("q" constraint): Make empty in case of call0 ABI.
19156 ("D" constraint): Include stack pointer in case of call0 ABI.
19157 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
19158 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
19160 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
19162 (xtensa_regno_to_class): Make it a local variable in the
19163 function xtensa_regno_to_class.
19164 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
19165 macro, function prototype and implementation.
19166 (reg_nonleaf_alloc_order): Make it a local variable in the
19167 function order_regs_for_local_alloc.
19168 (xtensa_conditional_register_usage): New function.
19169 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
19170 (xtensa_valid_move): Allow direct moves to stack pointer
19171 register in call0 ABI.
19172 (xtensa_setup_frame_addresses): Only spill register windows in
19174 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
19175 call0 ABI respectively.
19176 (xtensa_function_arg_1): Only mark a7 register for copying in
19178 (xtensa_call_save_reg): New function.
19179 (compute_frame_size): Add space for callee saved register
19180 storage to the frame size in call0 ABI.
19181 (xtensa_expand_prologue): Generate code to set up stack frame
19182 and save callee-saved registers in call0 ABI.
19183 (xtensa_expand_epilogue): New function.
19184 (xtensa_set_return_address): New function.
19185 (xtensa_return_addr): Calculate return address in call0 ABI.
19186 (xtensa_builtin_saveregs): Only mark a7 register for copying and
19187 emit copying code in windowed ABI.
19188 (order_regs_for_local_alloc): Add preferred register allocation
19189 order for non-leaf function in call0 ABI.
19190 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
19191 (xtensa_asm_trampoline_template): Add trampoline generation for
19193 (xtensa_trampoline_init): Add trampoline initialization for
19195 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
19197 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
19198 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
19199 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
19200 ABI call-used registers.
19201 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
19202 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
19204 (REG_CLASS_CONTENTS): Include all registers into the preferred
19205 reload registers set, adjust the set in the
19206 xtensa_conditional_register_usage.
19207 (xtensa_regno_to_class): Drop variable declaration.
19208 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
19210 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
19212 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
19213 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
19214 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
19215 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
19216 location in call0 ABI.
19217 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
19218 stack adjustment size when handling exception.
19219 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
19220 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
19222 ("return" pattern): Generate ret.n/ret in call0 ABI.
19223 ("epilogue" pattern): Expand epilogue.
19224 ("nonlocal_goto" pattern): Use default in call0 ABI.
19225 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
19226 emit eh_set_a0_* depending on ABI.
19227 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
19228 ("eh_set_a0_call0", "blockage"): New patterns.
19230 2015-03-03 Martin Liska <mliska@suse.cz>
19233 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
19235 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19238 * config/rs6000/rs6000-tables.opt: Regenerate table.
19240 2015-03-03 Renlin Li <renlin.li@arm.com>
19242 * doc/md.texi (@item ^): Change ? into ^.
19244 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
19246 * doc/tm.texi: Regenerated.
19248 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
19250 * builtins.c (expand_builtin_return_addr): Add
19251 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
19252 surrounding #ifdef.
19253 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
19255 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
19257 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
19259 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
19262 2015-03-03 Martin Jambor <mjambor@suse.cz>
19263 Eric Botcazou <ebotcazou@adacore.com>
19265 * tree-sra.c (ipa_sra_check_caller_data): New type.
19266 (has_caller_p): Removed.
19267 (ipa_sra_check_caller): New function.
19268 (ipa_sra_preliminary_function_checks): Use it.
19270 2015-03-03 Martin Liska <mliska@suse.cz>
19272 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
19273 instead of if branch.
19275 2015-03-03 Martin Liska <mliska@suse.cz>
19278 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
19280 2015-03-23 Jeff Law <law@redhat.com>
19282 PR tree-optimization/65241
19283 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
19284 hash table if INSERT is true.
19286 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19289 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
19291 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19294 * config/avr/avr.c (context.h, tree-pass.h): Include them.
19295 (avr_pass_data_recompute_notes): New static variable.
19296 (avr_pass_recompute_notes): New class.
19297 (avr_register_passes): New static function.
19298 (avr_option_override): Call it.
19300 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19302 Fix various problems with specs file generation.
19305 * config.gcc (extra_gcc_objs) [avr]: Remove.
19306 * config/avr/driver-avr.c: Remove file.
19307 * config/avr/t-avr (driver-avr.o): Remove rule.
19308 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
19309 INCLUDES to build. Depend on TM_H.
19310 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
19311 build warnings. Fix non-matching types and non-existing %-codes.
19313 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
19314 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
19315 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
19316 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
19317 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
19318 (LIBGCC_SPEC): Remove definitions.
19320 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
19322 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
19323 to create a register in testing mode.
19325 2015-03-03 Martin Liska <mliska@suse.cz>
19326 Jan Hubicka <hubicka@ucw.cz>
19329 * cgraph.c (cgraph_node::has_thunk_p): New function.
19330 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
19331 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
19332 (sem_function::merge): Assert is changed.
19334 2015-03-03 Martin Liska <mliska@suse.cz>
19335 Martin Jambor <mjambor@suse.cz>
19338 * ipa-icf.c (sem_item_optimizer::execute): Change function
19339 return value to boolean.
19340 (sem_item_optimizer::merge_classes): Likewise.
19341 (ipa_icf_driver): Return TODO_remove_functions in case there's
19342 a merge operation processed.
19343 * ipa-icf.h: Change function return value to boolean.
19345 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19348 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
19349 processor type for 64-bit little endian PowerPC.
19351 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
19352 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
19353 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
19354 printing built-in mask so it does not pass NULL pointers.
19356 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
19359 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
19362 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
19363 !ISA_HAS_FP_CONDMOVE.
19365 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
19367 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
19370 2015-03-02 Ulrich Drepper <drepper@gmail.com>
19372 * doc/invoke.texi (Options for Code Generation Conventions):
19373 Fix URL of DSO paper.
19375 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19378 * ipa-inline.c (check_callers): Looks for recursion.
19379 (inline_to_all_callers): Give up on uninlinable or recursive edges.
19380 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
19381 summary of inline clones.
19382 (do_estimate_growth_1): Fix recursion check.
19384 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19387 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
19390 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19391 Aldy Hernandez <aldyh@redhat.com>
19394 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
19395 when checking TYPE_BINFO.
19397 2015-03-02 Richard Biener <rguenther@suse.de>
19400 * ipa-icf-gimple.c: Include builtins.h.
19401 (func_checker::compare_memory_operand): Compare base alignment.
19403 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
19406 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
19407 are never passed by reference.
19409 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
19412 * tree-chkp.c (chkp_check_lower): Don't check against
19413 zero bounds for already instrumented functions.
19414 (chkp_check_upper): Likewise.
19415 (chkp_fini): Clean pass local data to avoid wrong reusage.
19417 2015-02-28 Martin Liska <mliska@suse.cz>
19418 Jan Hubicka <hubicka@ucw.cz>
19420 * ipa-icf.c (sem_variable::equals): Improve debug output;
19421 get variable constructor.
19422 (sem_variable::parse): Do not filter out too early; give up on
19423 volatile and register vars.
19424 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
19426 * ipa-icf.h (sem_variable::init): Do not set ctor.
19427 (sem_variable::ctor): Remove.
19429 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
19431 PR middle-end/65233
19432 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
19434 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19436 * ipa-icf.c: Include stor-layout.h
19437 (sem_function::compare_cgraph_references): Rename to ...
19438 (sem_item::compare_cgraph_references): ... this one.
19439 (sem_variable::equals_wpa): New function
19440 (sem_variable::equals): Do not check stuff already verified by
19442 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
19443 * ipa-icf.h (sem_item): Add compare_cgraph_references.
19444 (sem_function): Remove compare_cgraph_references.
19445 (sem_variable): Turns equals_wpa into non-inline.
19447 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19449 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
19450 (sem_item::add_expr): New function.
19451 (sem_function::hash_stmt): Handle operands of most statements.
19452 (sem_variable::get_hash): Hash the actual constructor.
19453 * ipa-icf.h (sem_item): Add add_expr.
19454 (sem_function): Update prototype of hash_stmt
19456 2015-02-28 Martin Liska <mliska@suse.cz>
19457 Jan Hubicka <hubicka@ucw.cz>
19460 * ipa-icf-gimple.c (func_checker::compare_function_decl):
19462 (func_checker::compare_variable_decl): Skip symtab vars.
19463 (func_checker::compare_cst_or_decl): Update.
19464 * ipa-icf.c (sem_function::parse): Do not consider aliases.
19465 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
19466 use correct symtab predicates.
19467 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
19468 (sem_variable::parse): Update comment.
19469 (sem_item_optimizer::build_graph): Consider ultimate aliases
19472 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19474 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
19477 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19479 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
19480 (sem_variable::merge) Likewise.
19482 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19484 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
19485 target; also match flag_ipa_devirt.
19487 2015-03-01 Martin Liska <mliska@suse.cz>
19488 Jan Hubicka <hubicka@ucw.cz>
19490 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
19491 Validate variable alignment.
19492 * ipa-icf.c (sem_function::equals_private): Be more precise
19493 about non-common function attributes.
19494 (sem_variable::equals): Likewise.
19496 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19499 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
19500 across COMDAT group boundary.
19502 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19505 * ipa-icf.c (clear_decl_rtl): New function.
19506 (sem_function::merge): Clear RTL before forming alias.
19507 (sem_variable::merge): Clear RTL before forming alias.
19509 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19512 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
19514 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
19516 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
19519 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19521 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
19522 a typo in the description.
19524 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19527 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
19528 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
19529 * lra-constraints.c: Include "params.h".
19530 (EBB_PROBABILITY_CUTOFF): Use
19531 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
19532 (lra_inheritance): Use '<' instead of '<=' for
19533 EBB_PROBABILITY_CUTOFF.
19534 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
19537 2015-02-27 Martin Liska <mliska@suse.cz>
19539 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
19540 vector length condition.
19542 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
19544 * doc/extend.texi (x86 transactional memory intrinsics):
19545 Reorganize discussion of _xbegin. Clarify that the return
19546 value is a bit mask. Expand example and move to end of section.
19548 2015-02-26 Jakub Jelinek <jakub@redhat.com>
19549 Aldy Hernandez <aldyh@redhat.com>
19551 PR rtl-optimization/65220
19552 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
19554 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19557 * lra-remat.c (update_scratch_ops): New.
19558 (do_remat): Call it.
19559 * lra.c (lra_register_new_scratch_op): New. Take code from ...
19560 (remove_scratches): ... here.
19561 * lra-int.h (lra_register_new_scratch_op): New prototype.
19563 2015-02-27 Marek Polacek <polacek@redhat.com>
19566 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
19567 -Wformat-signedness anymore.
19569 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19571 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
19573 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
19575 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19577 * config/s390/s390.c (enum s390_builtin):
19578 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
19579 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
19580 (s390_init_builtins): Generate new builtin functions.
19581 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
19582 (s390_sfpc, s390_efpc): New pattern definitions.
19584 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19586 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
19587 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
19588 (s390_builtin_decls): New array.
19589 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
19590 (s390_builtin_decl): New function.
19591 (TARGET_BUILTIN_DECL): Define macro.
19593 2015-02-27 Richard Biener <rguenther@suse.de>
19595 PR middle-end/63175
19596 * builtins.c (get_object_alignment_2): Make sure to re-apply
19597 the ANDed mask after recursing to its operand gets us a new
19598 misalignment bit position.
19600 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
19601 Martin Liska <mliska@suse.cz>
19604 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
19605 Use address_matters_p.
19606 (redirect_all_callers, set_addressable): New functions.
19607 (sem_function::merge): Reorganize and fix merging issues.
19608 (sem_variable::merge): Likewise.
19609 (sem_variable::compare_sections): Remove.
19610 * common.opt (fmerge-all-constants, fmerge-constants): Remove
19612 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
19614 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
19616 (address_matters_1): New function.
19617 (symtab_node::address_matters_p): New function.
19618 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
19619 check for merged flag.
19620 * cgraph.h (address_matters_p): Declare.
19621 (symtab_node::address_taken_from_non_vtable_p): Remove.
19622 (symtab_node::address_can_be_compared_p): New method.
19623 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
19624 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
19626 (comdat_can_be_unshared_p_1) Use address_matters_p.
19627 (update_vtable_references): Fix formating.
19628 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
19629 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
19630 * cgraphclones.c: Preserve merged and icf_merged flags.
19632 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
19634 * doc/extend.texi (Function Attributes): Fix spelling and typos.
19635 (Label Attributes): Likewise.
19636 (Cilk Plus Builtins): Likewise.
19637 (ARC SIMD Built-in Functions): Likewise.
19638 (ARM C Language Extensions (ACLE)): Likewise.
19639 (PowerPC Built-in Functions): Likewise.
19640 (PowerPC Hardware Transactional Memory Built-in Functions):
19643 2015-02-26 Jakub Jelinek <jakub@redhat.com>
19645 PR tree-optimization/65216
19646 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
19647 new stmt and new SSA_NAME for lhs whenever the arguments have
19648 changed and weren't just swapped. Fix comment typo.
19650 PR tree-optimization/65215
19651 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
19652 for PDP endian targets.
19653 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
19654 Fix up formatting issues.
19655 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
19656 size is smaller than the original, adjust MEM_REF offset by the
19657 difference of sizes. Use is_gimple_mem_ref_addr instead of
19658 is_gimple_min_invariant test to avoid adding address temporaries.
19660 2015-02-26 Martin Liska <mliska@suse.cz>
19661 Jan Hubicka <hubicka@ucw.cz>
19664 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
19665 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
19666 (sem_item_optimizer::process_cong_reduction): Include division by
19667 sensitive references.
19668 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
19669 * ipa-ref.c (ipa_ref::address_matters_p): New function.
19670 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
19672 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
19675 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
19677 * config/avr/avr.c: Same.
19678 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
19679 Refuse any constant address not in 0..0xbf.
19680 * config/avr/avr.md (*mov<mode>, *movsf): Remove
19681 tiny_valid_direct_memory_access_range from insn conditions.
19682 (mov<mode>): Don't special-case expansion of avrtiny addresses.
19684 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
19687 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
19688 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
19689 * config/sh/predicates.md (const_logical_operand): New predicate.
19690 * config/sh/sh.md: Add new peephole2 patterns.
19692 2015-02-26 Marek Polacek <polacek@redhat.com>
19695 * ipa-inline.c (early_inliner): Recompute inline parameters.
19697 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19700 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
19701 instructions with TImode operands are included in the analysis.
19703 2015-02-26 Sebastian Pop <s.pop@samsung.com>
19705 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
19706 of an EDGE_FSM_THREAD.
19708 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19710 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
19712 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
19715 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
19717 2015-02-26 Sebastian Pop <s.pop@samsung.com>
19719 PR tree-optimization/65048
19720 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
19721 (thread_through_all_blocks): Call valid_jump_thread_path.
19722 Remove invalid FSM jump-thread paths.
19724 2015-02-26 Jakub Jelinek <jakub@redhat.com>
19726 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
19727 (ipa_write_optimization_summaries): Likewise.
19728 * tree-streamer.h: Include data-streamer.h.
19729 (streamer_mode_table): Declare extern variable.
19730 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
19731 * lto-streamer-out.c (lto_output_init_mode_table,
19732 lto_write_mode_table): New functions.
19733 (produce_asm_for_decls): Call lto_write_mode_table when streaming
19735 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
19736 (lto_create_simple_input_block): Add mode_table argument to the
19737 lto_input_block constructors.
19738 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
19740 * data-streamer-in.c (string_for_index): Likewise.
19741 * ipa-inline-analysis.c (inline_read_section): Likewise.
19742 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
19743 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
19744 * lto-streamer-in.c (lto_read_body_or_constructor,
19745 lto_input_toplevel_asms): Likewise.
19746 (lto_input_mode_table): New function.
19747 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
19748 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
19749 Use bp_pack_machine_mode.
19750 * real.h (struct real_format): Add name field.
19751 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
19752 (class lto_input_block): Add mode_table member.
19753 (lto_input_block::lto_input_block): Add mode_table_ argument,
19754 initialize mode_table.
19755 (struct lto_file_decl_data): Add mode_table field.
19756 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
19757 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
19758 unpack_ts_decl_common_value_fields,
19759 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
19760 * tree-streamer.c (streamer_mode_table): New variable.
19761 * real.c (ieee_single_format, mips_single_format,
19762 motorola_single_format, spu_single_format, ieee_double_format,
19763 mips_double_format, motorola_double_format,
19764 ieee_extended_motorola_format, ieee_extended_intel_96_format,
19765 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
19766 ibm_extended_format, mips_extended_format, ieee_quad_format,
19767 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
19768 decimal_single_format, decimal_double_format, decimal_quad_format,
19769 ieee_half_format, arm_half_format, real_internal_format): Add name
19771 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
19773 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
19776 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
19777 reordering for selective scheduling.
19779 2015-02-26 Terry Guo <terry.guo@arm.com>
19781 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
19782 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
19783 (arm_arch_no_volatile_ce): Declare new global variable.
19784 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
19785 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
19786 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
19787 (TARGET_NO_VOLATILE_CE): New macro.
19788 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
19789 volatile memory access in IT block
19791 2015-02-25 Kai Tietz <ktietz@redhat.com>
19793 PR tree-optimization/61917
19794 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
19795 that reduc_def_stmt is null.
19797 2015-02-25 Martin Liska <mliska@suse.cz>
19799 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
19800 hard register variables.
19802 2015-02-25 Kai Tietz <ktietz@redhat.com>
19805 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
19806 (symtab::noninterposable_alias): Likewise.
19808 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
19811 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
19813 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
19815 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
19818 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
19819 as split condition; force split via '#' in output pattern.
19821 2015-02-25 Richard Biener <rguenther@suse.de>
19822 Kai Tietz <ktietz@redhat.com>
19824 PR tree-optimization/61917
19825 * tree-vect-loop.c (vectorizable_reduction): Allow
19826 vect_internal_def without reduction to exit graceful.
19828 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
19831 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
19832 only with NONDEBUG_INSN_P.
19834 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
19836 Use variadic macros with avr-log.c.
19838 * config/avr/avr-protos.h (avr_vdump): New prototype.
19839 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
19840 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
19841 * config/avr/avr-log.c: Adjust comments.
19842 (avr_vdump): New function.
19843 (avr_vadump): Pass caller as 2nd argument instead of format string.
19844 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
19845 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
19847 2015-02-25 Jakub Jelinek <jakub@redhat.com>
19850 * target.def (target_option_stream_in): New target hook.
19851 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
19852 targetm.target_option.post_stream_in if non-NULL.
19853 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
19854 * doc/tm.texi: Updated.
19855 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
19857 (TARGET_OPTION_POST_STREAM_IN): Redefine.
19859 2015-02-24 Jeff Law <law@redhat.com>
19862 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
19863 of operand 0 and operand 2.
19864 (zero_cost_loop_end, loop_end): Similarly.
19866 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
19868 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
19871 2015-02-24 DJ Delorie <dj@redhat.com>
19873 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
19874 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
19875 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
19876 instead of hardcoding SImode.
19878 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
19880 * omp-low.c (create_omp_child_function): Tag entrypoint
19881 functions with a special attribute.
19883 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
19886 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
19888 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
19890 PR rtl-optimization/65123
19891 * lra-remat.c (operand_to_remat): Check hard regs in insn
19894 2015-02-24 Nick Clifton <nickc@redhat.com>
19896 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
19899 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
19902 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
19903 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
19904 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
19905 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
19906 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
19907 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
19908 (BUILT_IN_GOACC_PARALLEL): Specify as
19909 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
19910 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
19911 * builtin-types.def
19912 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
19913 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
19914 Remove function types.
19915 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
19916 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
19917 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
19918 New function types.
19920 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
19922 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
19924 2015-02-24 Jakub Jelinek <jakub@redhat.com>
19926 PR tree-optimization/65170
19927 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
19928 if val[1] < 0, clear also val[2] and return 3.
19930 2015-02-24 Alan Modra <amodra@gmail.com>
19933 * config/rs6000/rs6000.c (get_memref_parts): Only return true
19934 when *base is a reg. Handle nested plus addresses. Simplify
19937 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
19939 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
19940 use natural alignment when optimizing for size.
19942 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
19945 * config/sh/sh.md (movsicc_true+3): Remove peephole.
19946 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
19947 * config/sh/sh.c (replace_n_hard_rtx): Remove.
19949 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
19952 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
19953 too big for a wide_int. Implement missing wrapping operation.
19955 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
19958 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
19959 instead of const_int 4294901760.
19961 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
19963 * config/avr/t-avr: Fix typo in comment.
19965 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
19967 * doc/rtl.texi (fma): Clarify documentation.
19969 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
19972 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
19973 over input_location.
19975 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
19977 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
19978 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
19979 restrict alignments to absolute_biggest_alignment.
19980 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
19982 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
19983 * doc/tm.texi: Regenerate.
19984 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
19986 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
19989 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
19991 2015-02-20 Richard Biener <rguenther@suse.de>
19993 PR tree-optimization/65136
19994 * tree-ssa-propagate.c: Include cfgloop.h.
19995 (replace_phi_args_in): Avoid replacing loop latch edge PHI
19996 arguments with constants.
19998 2015-02-20 Jakub Jelinek <jakub@redhat.com>
19999 Martin Liska <mliska@suse.cz>
20002 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
20003 don't try to create_thunk if stdarg_p. If
20004 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
20005 redirect_callers if possible.
20006 (sem_item_optimizer::execute): Call unregister_hooks here...
20007 (ipa_icf_driver): ... instead of here.
20009 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20011 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
20012 Mark operand 0 as earlyclobber in 2nd alternative.
20013 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
20014 Write negated shift amount into QI lowpart operand 0 and use it
20016 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20018 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
20020 * cgraph.h (clone_function_name_1): Declare.
20021 * cgraphclones.c (clone_function_name_1): New function.
20022 (clone_function_name): Use it.
20023 * lto-partition.c: Include "stringpool.h".
20024 (must_not_rename, maybe_rewrite_identifier)
20025 (validize_symbol_for_target): New static functions.
20026 (privatize_symbol_name): Use must_not_rename.
20027 (promote_symbol): Call validize_symbol_for_target.
20028 (lto_promote_cross_file_statics): Likewise.
20029 (lto_promote_statics_nonwpa): Likewise.
20031 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
20034 * config/avr/avr.md (pushhi_insn): New insn.
20035 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
20037 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
20038 Jakub Jelinek <jakub@redhat.com>
20040 * tree-streamer.c (preload_common_nodes): Don't preload
20041 TI_VA_LIST* for offloading.
20042 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
20045 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
20047 * config/pa/pa.c (pa_emit_move_sequence): Always force
20048 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
20051 * config/pa/pa.c (pa_reloc_rw_mask): New function.
20052 (TARGET_ASM_RELOC_RW_MASK): Define.
20053 (pa_cannot_force_const_mem): Revert previous change.
20055 2015-02-19 Martin Jambor <mjmabor@suse.cz>
20056 Jan Hubicka <hubicka@ucw.cz>
20059 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
20060 across jump functions.
20062 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
20064 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
20066 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
20068 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
20070 2015-02-19 Richard Henderson <rth@redhat.com>
20072 PR middle-end/65074
20073 * varasm.c (default_binds_local_p_2): Don't test node->definition;
20074 test DECL_EXTERNAL independent of symtab_node.
20076 2015-02-19 Jakub Jelinek <jakub@redhat.com>
20079 * varpool.c (varpool_node::get_constructor): Return early
20080 if this->lto_file_data is NULL.
20082 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20084 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
20085 (rank_for_schedule_debug): Update.
20086 (ready_sort): Make static. Move sorting logic to ...
20087 (ready_sort_debug, ready_sort_real): New static functions.
20088 (schedule_block): Sort both debug insns and real insns in preparation
20089 for ready list trimming. Improve debug output.
20090 * sched-int.h (ready_sort): Remove global declaration.
20092 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
20094 * ipa-icf.c (sem_function::equals_private): Adjust.
20095 (sem_function::bb_dict_test): Take a vec<int> * instead of
20097 * ipa-icf.h (bb_dict_test): Likewise.
20099 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20101 PR gcov-profile/64634
20102 * tree-eh.c (frob_into_branch_around): Fix up typos
20103 in function comment.
20104 (lower_catch): Put eh_seq resulting from EH lowering of
20105 the cleanup sequence after the cleanup rather than before it.
20107 2015-02-18 Tom de Vries <tom@codesourcery.com>
20109 * common.opt (fstdarg-opt): New option.
20110 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
20111 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
20112 (@item -fstdarg-opt): New item.
20114 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
20117 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
20118 for common symbols.
20120 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20122 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
20124 (ALL_HOST_OBJS): Add mkoffload.o.
20125 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
20127 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
20129 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
20130 (compare_virtual_tables): Be smarter about skipping typeinfos;
20131 do sane output on virtual table table mismatch.
20132 (warn_odr): Be ready for forward declarations of enums;
20133 output sane info on base mismatch and virtual table mismatch.
20134 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
20135 when only one type is polymorphic.
20136 (get_odr_type): Fix hashtable corruption.
20137 (dump_odr_type): Dump mangled names.
20139 2015-02-18 Richard Biener <rguenther@suse.de>
20141 PR tree-optimization/65063
20142 * tree-predcom.c (determine_unroll_factor): Return 1 if we
20143 have replaced looparound PHIs.
20145 2015-02-18 Martin Liska <mliska@suse.cz>
20147 * lto-streamer.c (lto_streamer_init): Encapsulate
20148 streamer_check_handled_ts_structures with checking macro.
20150 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20153 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
20154 section if !implicit_section.
20155 (cgraph_node::create_version_clone_with_body): Likewise.
20156 * trans-mem.c (ipa_tm_create_version): Likewise.
20158 2015-02-18 Richard Biener <rguenther@suse.de>
20160 PR tree-optimization/62217
20161 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
20164 2015-02-18 Marek Polacek <polacek@redhat.com>
20167 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
20168 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
20169 is in range [-16K, -1]. Don't issue run-time error if
20170 (ptr > ptr + offset).
20172 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
20174 * doc/install.texi (nvptx-*-none): New section.
20175 * doc/invoke.texi (Nvidia PTX Options): Likewise.
20176 * config/nvptx/nvptx.opt: Update.
20178 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
20179 (access_check): New functions, copied from
20180 config/i386/intelmic-mkoffload.c.
20181 (main): For non-installed testing, look in all COMPILER_PATHs for
20184 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
20186 2015-02-18 Andrew Pinski <apinski@cavium.com>
20187 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
20189 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
20190 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
20192 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
20194 * ipa-visibility.c (function_and_variable_visibility): Only
20195 check locality if node is not already local.
20196 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
20197 call_for_symbol_and_aliases instead of
20198 call_for_symbol_thunks_and_aliases.
20199 (ipa_inline): Likewise.
20200 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20201 first walk aliases.
20202 * ipa.c (symbol_table::remove_unreachable_nodes): Use
20203 call_for_symbol_and_aliases.
20204 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
20205 (ipa_propagate_frequency_1): Use it; use opt_for_fn
20206 (ipa_propagate_frequency): Update.
20207 (ipa_profile): Add opt_for_fn gueards.
20209 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
20211 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
20212 * doc/invoke.texi (SH options): Document it.
20213 * config/sh/sh.c (sh_insn_length_adjustment): Check
20214 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
20216 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
20218 * common.opt (fipa-cp-alignment): New.
20219 * ipa-cp.c (ipcp_store_alignment_results): Check
20220 flag_ipa_cp_alignment.
20221 * opts.c (default_options_table): Enable -fipa-cp-alignment for
20223 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
20224 * doc/invoke.texi: Document -fipa-cp-alignment.
20226 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
20229 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
20230 to nil. Adjust comments.
20232 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
20234 * ipa-visibility.c (function_and_variable_visibility): Only
20235 check locality if node is not already local.
20236 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
20237 call_for_symbol_and_aliases instead of
20238 call_for_symbol_thunks_and_aliases.
20239 (ipa_inline): Likewise.
20240 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20241 first walk aliases.
20242 * ipa.c (symbol_table::remove_unreachable_nodes): Use
20243 call_for_symbol_and_aliases.
20244 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
20245 (ipa_propagate_frequency_1): Use it; use opt_for_fn
20246 (ipa_propagate_frequency): Update.
20247 (ipa_profile): Add opt_for_fn guards.
20249 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
20251 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
20252 skipping of "strange" tokens.
20254 2015-02-17 Jeff Law <law@redhat.com>
20256 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
20259 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
20261 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
20262 as forcing a HARD_DEP between instructions, thereby
20263 disallowing rewriting to break dependencies.
20265 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
20267 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
20268 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
20269 variables in boundary that have no inlitalizer encoded and are
20271 * varasm.c (default_binds_local_p_2): External definitions do not
20272 count as definitions here.
20274 2015-02-16 Jeff Law <law@redhat.com>
20276 PR tree-optimization/64823
20277 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
20279 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
20280 threading through blocks with PHIs, but no statements.
20281 (thread_through_normal_block): Distinguish between blocks where
20282 we did not process all the statements and blocks with no statements.
20284 2015-02-16 Jakub Jelinek <jakub@redhat.com>
20285 James Greenhalgh <james.greenhalgh@arm.com>
20288 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
20289 section if not linkonce. Fix up formatting.
20290 (cgraph_node::create_version_clone_with_body): Copy section.
20291 * trans-mem.c (ipa_tm_create_version): Likewise.
20293 2015-02-16 Richard Biener <rguenther@suse.de>
20295 PR tree-optimization/65077
20296 * tree-ssa-structalias.c (get_constraint_for_1): Handle
20297 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
20298 (find_func_aliases): Allow float values to carry pointers again.
20300 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
20302 * doc/install.texi (Specific): Reorder targets list to put
20303 aarch64 in alphabetical order. Add a link to aarch64*-*-*
20306 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
20307 David Edelsohn <dje.gcc@gmail.com>
20310 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
20311 mapping class to external variable or function reference.
20312 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
20315 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
20318 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
20319 ASM_WEAKEN_DECL if defined.
20321 2015-02-16 Richard Biener <rguenther@suse.de>
20324 * varasm.c (default_file_start): For LTO produced units
20325 emit <artificial> as file directive.
20327 2015-02-16 Richard Biener <rguenther@suse.de>
20329 PR tree-optimization/63593
20330 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
20331 stmts and releasing SSA names until...
20332 (execute_pred_commoning): ... after processing all chains.
20334 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
20337 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
20338 external functions.
20340 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
20342 * doc/bugreport.texi: Adjust section titles throughout the file
20343 to use "Title Case".
20344 * doc/extend.texi: Likewise.
20345 * doc/gcov.texi: Likewise.
20346 * doc/implement-c.texi: Likewise.
20347 * doc/implement-cxx.texi: Likewise.
20348 * doc/invoke.texi: Likewise.
20349 * doc/objc.texi: Likewise.
20350 * doc/standards.texi: Likewise.
20351 * doc/trouble.texi: Likewise.
20353 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
20355 * cgraph.h (symtab_node::has_aliases_p): Simplify.
20356 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
20357 * tree.c (lookup_binfo_at_offset): Make static.
20358 (get_binfo_at_offset): Do not shadow offset; add explanatory
20361 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
20363 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
20364 for all floading point loads and stores except those using a register
20366 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
20369 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
20371 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
20372 (do_estimate_growth_1): Record if any uninlinable edge was seen.
20373 (estimate_growth): Handle uninlinable edges correctly.
20374 (check_callers): New.
20375 (growth_likely_positive): Handle aliases correctly.
20377 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
20379 * ipa-chkp.c: Use iterate_direct_aliases.
20380 * symtab.c (resolution_used_from_other_file_p): Move inline.
20381 (symtab_node::create_reference): Fix formating.
20382 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
20383 (symtab_node::iterate_reference): Move inline.
20384 (symtab_node::iterate_referring): Move inline.
20385 (symtab_node::iterate_direct_aliases): Move inline.
20386 (symtab_node::used_from_object_file_p_worker): Inline into ...
20387 (symtab_node::used_from_object_file_p): ... this one; move inline.
20388 (symtab_node::call_for_symbol_and_aliases): Move inline;
20389 use iterate_direct_aliases.
20390 (symtab_node::call_for_symbol_and_aliases_1): New method.
20391 (cgraph_node::call_for_symbol_and_aliases): Move inline;
20392 use iterate_direct_aliases.
20393 (cgraph_node::call_for_symbol_and_aliases_1): New method.
20394 (varpool_node::call_for_node_and_aliases): Rename to ...
20395 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
20396 use iterate_direct_aliases.
20397 (varpool_node::call_for_symbol_and_aliases_1): New method.
20398 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
20399 (ipa_discover_readonly_nonaddressable_var): Update.
20400 * ipa-devirt.c: Fix formating.
20401 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
20403 (cgraph_node::call_for_symbol_and_aliases): Move inline.
20404 (cgraph_node::call_for_symbol_and_aliases_1): New function..
20405 * cgraph.h (used_from_object_file_p_worker): Remove.
20406 (resolution_used_from_other_file_p): Move inline.
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): Move inline.
20413 * tree-emutls.c (ipa_lower_emutls): Update.
20414 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
20415 (varpool_node::call_for_node_and_aliases): Remove.
20417 2015-02-14 Jakub Jelinek <jakub@redhat.com>
20419 PR tree-optimization/62209
20420 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
20421 op == range->exp, insert seq and gimplified code after labels
20422 instead of after the phi.
20424 2015-02-13 Jeff Law <law@redhat.com>
20427 Revert my change for tree-optimization/64823.
20429 2015-02-13 Jakub Jelinek <jakub@redhat.com>
20431 PR tree-optimization/65053
20432 * tree-ssa-phiopt.c (value_replacement): When moving assign before
20433 cond, either reset VR on lhs or set it to phi result VR.
20435 2015-02-13 Jeff Law <law@redhat.com>
20437 PR tree-optimization/64823
20438 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
20439 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
20440 threading through blocks with PHIs, but no statements.
20441 (thread_through_normal_block): Distinguish between blocks where
20442 we did not process all the statements and blocks with no statements.
20444 PR rtl-optimization/47477
20445 * match.pd (convert (plus/minus (convert @0) (convert @1): New
20446 simplifier to narrow arithmetic.
20448 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
20451 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
20452 polymorphic call info when type is not known to be preserved.
20454 2015-02-13 Maritn Jambor <mjambor@suse.cz>
20457 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
20458 (inline_call): Use it.
20460 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
20462 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
20463 GOMP_DEVICE_NVIDIA_PTX.
20465 2015-02-13 Jakub Jelinek <jakub@redhat.com>
20468 * stmt.c (emit_case_nodes): Use void_type_node instead of
20469 NULL_TREE as LABEL_DECL type.
20471 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
20473 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
20475 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
20476 symbolic references to data to be forced to constant memory on the
20479 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
20481 PR tree-optimization/65002
20482 * tree-cfg.c (pass_data_fixup_cfg): Don't update
20484 * tree-sra.c (some_callers_have_no_vuse_p): New.
20485 (ipa_early_sra): Reject functions whose callers
20486 assume function is read only.
20488 2015-02-13 Richard Biener <rguenther@suse.de>
20491 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
20492 for LTO produced CUs.
20494 2015-02-13 Bin Cheng <bin.cheng@arm.com>
20496 PR tree-optimization/64705
20497 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
20498 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
20499 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
20500 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
20501 expand_simple_operations.
20503 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
20504 Richard Henderson <rth@redhat.com>
20507 * cgraphunit.c (cgraph_node::finalize_function): Set definition
20508 before notice_global_symbol.
20509 (varpool_node::finalize_decl): Likewise.
20510 * varasm.c (default_binds_local_p_2): Rename from
20511 default_binds_local_p_1, add weak_dominate argument. Use direct
20512 returns instead of assigning to local variable. Unify varpool and
20513 cgraph paths via symtab_node. Reject undef weak variables before
20514 testing visibility. Reorder tests for simplicity.
20515 (default_binds_local_p): Use default_binds_local_p_2.
20516 (default_binds_local_p_1): Likewise.
20517 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
20519 (default_elf_asm_output_external): Emit visibility when specified.
20521 2015-02-13 Alan Modra <amodra@gmail.com>
20523 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
20524 code setting up r11 for out-of-line fp restore.
20526 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
20528 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
20529 (muser-mode): Likewise.
20531 2015-02-13 Alan Modra <amodra@gmail.com>
20533 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
20534 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
20536 2015-02-12 David Howells <dhowells@redhat.com>
20538 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
20540 * tree-ssa-uninit.c (dump_predicates): Likewise.
20541 * opts.c (print_filtered_help): Likewise.
20543 2015-02-12 Jakub Jelinek <jakub@redhat.com>
20545 * dwarf2out.c (output_die): Use "%s", name instead of name to
20546 avoid -Wformat-security warning.
20548 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
20549 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20550 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
20551 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20553 2015-02-12 Jason Merrill <jason@redhat.com>
20555 * common.opt (-flifetime-dse): New.
20557 2015-02-12 Jakub Jelinek <jakub@redhat.com>
20560 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
20562 PR tree-optimization/65014
20563 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
20564 use original second operand of arg0 or arg1 instead of
20565 that adjusted by STRIP_NOPS.
20567 2015-02-11 Jeff Law <law@redhat.com>
20570 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
20571 that needs to be queued, just queue it for a single cycle.
20573 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
20575 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
20576 bodies of thunks; comment on why.
20577 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
20578 symbols are extern.
20580 2015-02-11 Richard Henderson <rth@redhat.com>
20583 * tree-eh.c (mark_reachable_handlers): Mark source and destination
20584 regions of __builtin_eh_copy_values.
20586 2015-02-11 Jakub Jelinek <jakub@redhat.com>
20588 PR middle-end/65003
20589 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
20590 ultimate alias is MEM with SYMBOL_REF satisfying
20591 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
20592 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
20594 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
20596 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
20597 "diagnostic-core.h".
20598 (main): Initialize progname, and call diagnostic_initialize.
20600 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
20601 instead of __OPENMP_TARGET__.
20603 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
20604 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
20605 hard-coding PTX_ID.
20607 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
20609 * doc/sourcebuild.texi (pie_enabled): Document.
20611 2015-02-11 Martin Liska <mliska@suse.cz>
20614 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
20615 a return value for call to a function that is noreturn.
20617 2015-02-11 Richard Biener <rguenther@suse.de>
20620 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
20623 2015-02-11 Andrew Pinski <apinski@cavium.com>
20626 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
20627 Change the first argument type to size_type_node and add another
20629 (aarch64_simd_expand_builtin): Handle the new argument to
20630 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
20631 print an out when the first two arguments are not
20632 nonzero integer constants.
20633 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
20634 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
20636 2015-02-11 Jakub Jelinek <jakub@redhat.com>
20639 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
20640 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
20641 (ix86_set_current_function): Rewritten.
20642 (ix86_add_new_builtins): Temporarily clear current_target_pragma
20643 when creating builtin fndecls.
20645 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
20648 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
20650 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
20651 have no comdat group.
20652 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
20653 (lto_output_varpool_node): Always output alias info.
20654 (output_refs): Output refs of boundary aliases, too.
20655 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
20656 (output_symtab): Output call eges in thunks in boundary.
20657 (get_alias_symbol): Remove.
20658 (input_node, input_varpool_node): Do not special case weakrefs.
20659 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
20660 alias and thunks targets in the boundary; do not take removed symbols
20661 from their comdat groups.
20662 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
20663 (cgraph_node::global_info): Remove.
20664 (cgraph_node::rtl_info): Look through aliases and thunks.
20665 * cgrpah.h (global_info): Remove.
20666 (non_local_p): Remove.
20668 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
20669 Sandra Loosemore <sandra@codesourcery.com>
20671 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
20672 to inline asm. List dialects in proper order.
20674 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
20675 Sandra Loosemore <sandra@codesourcery.com>
20677 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
20679 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
20681 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
20682 modified) reference to Solaris.
20684 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
20686 * doc/extend.texi (Extended Asm): Fix typos.
20688 2015-02-10 Jakub Jelinek <jakub@redhat.com>
20691 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
20693 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
20696 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
20697 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
20698 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
20699 * config/sh/constraints.md (Ara, Add): New constraints.
20700 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
20702 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
20703 atomic_mem_operand_0. Don't use force_reg on the memory address.
20704 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
20705 Sra constraint. Convert to insn_and_split. Add workaround for
20707 (atomic_compare_and_swap<mode>_hard): Copy to
20708 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
20709 Use atomic_mem_operand_0 predicate.
20710 (atomic_compare_and_swap<mode>_soft_gusa,
20711 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
20712 AraAdd constraints.
20713 (atomic_compare_and_swap<mode>_soft_tcb,
20714 atomic_compare_and_swap<mode>_soft_imask,
20715 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
20716 atomic_mem_operand_0 predicate and SraSdd constraints.
20717 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
20719 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
20720 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
20721 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
20722 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
20723 force_reg on the memory address.
20724 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
20725 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
20726 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
20727 atomic_mem_operand_1 predicate and Sra constraint.
20728 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
20729 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
20730 Use atomic_mem_operand_1 predicate.
20731 (atomic_<fetchop_name><mode>_hard): Copy to
20732 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
20733 Use atomic_mem_operand_1 predicate.
20734 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
20735 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
20736 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
20737 insn_and_split. Use atomic_mem_operand_1 predicate.
20738 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
20739 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
20740 Use atomic_mem_operand_1 predicate.
20741 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
20742 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
20743 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
20744 in generated insn with original mem operand before emitting the insn.
20745 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
20746 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
20747 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
20748 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
20749 Use atomic_mem_operand_1 predicate and AraAdd constraints.
20750 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
20751 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
20752 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
20753 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
20754 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
20755 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
20756 atomic_not_fetch<mode>_soft_tcb,
20757 atomic_<fetchop_name>_fetch<mode>_soft_imask,
20758 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
20759 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
20760 Use atomic_mem_operand_1 predicate and SraSdd constraints.
20762 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
20764 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
20765 and 3 earlyclobber operands.
20767 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
20769 * common.opt (fstack-reuse): Mark as optimization.
20771 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
20774 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
20776 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
20778 PR tree-optimization/64326
20779 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
20781 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
20783 PR gcov-profile/61889
20784 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
20786 2015-02-10 Richard Biener <rguenther@suse.de>
20788 PR tree-optimization/64995
20789 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
20790 value we use is final.
20791 (visit_reference_op_store): Always valueize op.
20792 (visit_use): Properly valueize vuses.
20794 2015-02-10 Richard Biener <rguenther@suse.de>
20796 PR tree-optimization/64909
20797 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
20798 pass a scalar-stmt count estimate to the cost model.
20799 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
20801 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
20803 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
20804 enabled by default together with var-tracking.
20806 2015-02-10 Nick Clifton <nickc@redhat.com>
20808 * config/rl78/rl78.c: Remove DIV attribute code accidentally
20809 included in previous rl78 commit.
20811 2015-02-10 Richard Biener <rguenther@suse.de>
20813 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
20814 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
20815 return the bitpack.
20817 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
20819 PR gcov-profile/61889
20820 * config.in: regenerate.
20821 * configure.in: Likewise.
20822 * configure.ac: Check for ftw.h.
20823 * gcov-tool.c: Check for ftw.h before using nftw.
20825 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
20828 * ipa-visibility.c (update_visibility_by_resolution_info): Only
20829 assert when not in lto mode.
20831 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20833 * ira-color.c (setup_left_conflict_sizes_p): Simplify
20834 initialization/assignment of conflict_size.
20836 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
20839 * ipa-cp.c (gather_caller_stats): Skip thunks.
20840 (propagate_constants_topo): Skip aliases.
20842 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
20845 * config/sh/sh.c (sh_option_override): Don't change
20846 -freorder-blocks-and-partition to -freorder-blocks even when
20847 unwinding is enabled.
20848 (sh_can_follow_jump): Return false if the followee jump is
20849 a crossing jump when -freorder-blocks-and-partition is specified.
20850 * config/sh/sh.md (*jump_compact_crossing): New insn.
20852 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
20853 Kaz Kojima <kkojima@gcc.gnu.org>
20856 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
20857 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
20858 (sh_can_redirect_branch): Rename to ...
20859 (sh_can_follow_jump): ... this. Constify argument types.
20860 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
20861 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
20862 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
20863 * doc/tm.texi: Regenerate.
20865 2015-02-09 Jakub Jelinek <jakub@redhat.com>
20868 * builtins.c (expand_builtin): Call targetm.expand_builtin
20869 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
20871 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20874 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
20876 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20879 * ipa-icf.c (set_local): New function.
20880 (sem_function::merge): Use it.
20882 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20884 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
20885 (add_type_duplicate): Fix comparison of BINFOs.
20887 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20889 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
20890 on getting VOID pointer.
20892 2015-02-09 Jakub Jelinek <jakub@redhat.com>
20895 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
20898 2015-02-09 Richard Biener <rguenther@suse.de>
20900 * genmatch.c (replace_id): Copy expr_type.
20902 2015-02-09 Richard Biener <rguenther@suse.de>
20904 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
20905 (streamer_write_tree_bitfields): Declare.
20906 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
20907 properly unpack padding.
20908 (unpack_value_fields): Inline ...
20909 (streamer_read_tree_bitfields): ... here.
20910 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
20911 and properly add padding bits.
20912 (streamer_pack_tree_bitfields): Fold into ...
20913 (streamer_write_tree_bitfields): ... this new function,
20914 exposing the bitpack object.
20915 * lto-streamer-out.c (lto_write_tree_1): Call
20916 streamer_write_tree_bitfields.
20918 2015-02-09 Richard Biener <rguenther@suse.de>
20920 PR tree-optimization/54000
20921 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
20922 (struct ivopts_data): Add loop_loc member.
20923 (tree_ssa_iv_optimize_loop): Dump loop location.
20924 (create_new_ivs): Likewise, also dump number of IVs generated.
20926 2015-02-09 Martin Liska <mliska@suse.cz>
20928 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
20929 just if not yet registered.
20930 (ipa_icf_generate_summary): Register callgraph hooks.
20932 2015-02-08 Andrew Pinski <apinski@cavium.com>
20934 * config/aarch64/aarch64.c (gty_dummy): Delete.
20936 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20939 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
20940 (cgraph_node::local_p): Remove thunk related FIXME.
20942 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20945 * i386.c (ix86_function_regparm): Look through aliases to see if callee
20946 is local and optimized.
20947 (ix86_function_sseregparm): Likewise; also use target's SSE math
20948 settings; error out instead of silently generating wrong code
20950 (init_cumulative_args): Look through aliases.
20952 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20955 * ipa-split.c (execute_split_functions): Split if function has aliases.
20957 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20960 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
20961 aliases before trying to expand it.
20962 (cgraph_node::expand_thunk): Fix formating.
20964 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
20966 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
20967 (Using Assembly Language with C): Expand introduction.
20968 (Basic Asm): Copy-edit. Add more information about uses of
20970 (Extended Asm): Copy-edit. Document new escape syntax and
20972 (Global Reg Vars): Copy-edit.
20973 (Local Reg Vars): Likewise.
20975 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
20979 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
20980 (DBX_CONTIN_CHAR): Define.
20982 2015-02-06 Sebastian Pop <s.pop@samsung.com>
20983 Brian Rzycki <b.rzycki@samsung.com>
20985 PR tree-optimization/64878
20986 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
20987 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
20988 Stop recursion at loop phi nodes after having visited a loop phi node.
20990 2015-02-06 Jakub Jelinek <jakub@redhat.com>
20992 * toplev.c (process_options): Change flag_ipa_ra before creating
20993 optimization_{default,current}_node.
20996 * cgraphunit.c (cgraph_node::expand_thunk): If
20997 restype is not is_gimple_reg_type nor the thunk_fndecl
20998 returns aggregate_value_p, set restmp to a temporary variable
20999 instead of resdecl.
21001 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
21003 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
21005 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21008 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
21009 add a general secondary reload handler for SDmode, unless we have
21010 both read/write support for SDmode.
21012 2015-02-06 Jakub Jelinek <jakub@redhat.com>
21014 PR middle-end/64937
21015 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
21016 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
21017 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
21018 1 before, push it to abstract_vec.
21019 (dwarf2out_abstract_function): Adjust caller. Don't call
21020 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
21021 DECL_ABSTRACT_P flags for all abstract_vec elts.
21023 2015-02-06 Renlin Li <renlin.li@arm.com>
21025 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
21027 * tree-ssa.c (execute_update_addresses_taken): Likewise.
21029 2015-02-06 Jeff Law <law@redhat.com>
21032 * config/h8300/h8300.c (push): New argument "in_prologue".
21033 Pass "in_prologue" along to "F".
21034 (h8300_push_pop): Corresponding changes.
21035 (h8300_expand_prologue): Likewise.
21036 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
21038 2015-02-06 Jakub Jelinek <jakub@redhat.com>
21040 PR rtl-optimization/64957
21042 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
21043 IOR rather than for AND.
21045 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
21048 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
21049 of shift-add and (add + shift) operations. Rename local variable.
21051 2015-02-05 Jeff Law <law@redhat.com>
21054 * config/h8300/constraints.md (U): Correctly dectect
21055 "eightbit_data" memory addresses.
21056 * config/h8300/h8300.c (eightbit_constant_address_p): Also
21057 handle (const (plus (symbol_ref (x)))) where x is declared
21058 as an 8-bit data memory address.
21059 * config/h8300/h8300.md (call, call_value): Correctly detect
21060 "funcvec" functions.
21063 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
21064 24 to 28 bits for the H8/300.
21066 2015-02-06 Alan Modra <amodra@gmail.com>
21069 * config/rs6000/rs6000.c (chain_already_loaded): New function.
21070 (rs6000_call_aix): Use it.
21072 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
21074 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
21077 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
21079 * config/h8300/constraints.md ("U" constraint): Use strict
21080 variant of REG_OK_FOR_BASE_P after reload has started.
21082 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
21084 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
21085 define to zero if !TARGET_NEON.
21086 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
21088 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21089 Trevor Saunders <tsaunders@mozilla.com>
21092 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
21094 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21097 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
21098 when removing varpool nodes.
21100 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21103 * varpool.c (varpool_node::remove): Fix order of variables.
21105 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21108 * ipa-inline.c (inline_small_functions): Fix ordering issue between
21109 speculation resolution and key updates.
21111 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21113 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
21114 about not letting any speculative edges unupdated.
21116 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21119 * gcov-io.c (gcov_var): Export.
21121 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21123 PR middle-end/64922
21124 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
21125 edges that become speculative.
21127 2015-02-04 Jakub Jelinek <jakub@redhat.com>
21129 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
21130 or DW_LANG_Fortran08.
21131 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
21133 (gen_compile_unit_die): Handle "GNU Fortran2003" and
21134 "GNU Fortran2008" language strings.
21135 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
21136 * langhooks.h (lang_GNU_Fortran): New prototype.
21137 * langhooks.c (lang_GNU_Fortran): New function.
21138 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
21141 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
21143 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
21144 (RTX_OK_FOR_OLO10_P): Likewise.
21146 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
21148 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
21150 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21152 PR middle-end/64922
21153 * gimple.c: Include gimple-ssa.h.
21154 (maybe_remove_unused_call_args): New function.
21155 * gimple.h (maybe_remove_unused_call_args): Declare.
21156 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
21157 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
21158 * gimple-fold.c (gimple_fold_call): Likewise.
21160 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
21162 PR rtl-optimization/64905
21163 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
21164 pointer alignment if it isn't needed.
21166 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
21168 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
21169 cortex-a72.cortex-a53.
21170 * config/aarch64/aarch64-tune.md: Regenerate.
21171 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
21173 2015-02-04 Nick Clifton <nickc@redhat.com>
21175 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
21178 2015-02-04 Jakub Jelinek <jakub@redhat.com>
21180 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
21181 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
21182 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
21184 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
21185 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
21186 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
21187 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
21188 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
21189 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
21190 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
21191 * tree-core.h (enum built_in_function): In between
21192 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
21193 for builtins that use DEF_BUILTIN_CHKP macro.
21195 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
21198 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
21199 operands for tcc_comparison exprs. Fix typos.
21202 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
21203 of two XORs that have an intervening AND or IOR.
21206 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
21207 simplification of XOR of AND to not allocate new rtx before
21208 committing to a simplification.
21210 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21212 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
21213 manual swaps in all peepholes.
21215 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21217 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
21218 of manual swapping implementation.
21219 (aarch64_expand_vec_perm_const_1): Likewise.
21221 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
21223 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
21224 (generic_addrcost_table): Remove NAMED_PARAM.
21225 (cortexa57_addrcost_table): Likewise.
21226 (xgene1_addrcost_table): Likewise.
21227 (generic_regmove_table): Likewise.
21228 (cortexa53_regmove_table): Likewise.
21229 (xgene1_regmove_table): Likewise.
21230 (generic_vector_table): Likewise.
21231 (cortexa57_vector_table): Likewise.
21232 (xgene1_vector_table): Likewise.
21233 (generic_tunings): Likewise.
21234 (cortexa53_tunings): Likewise.
21235 (cortexa57_tunings): Likewise.
21236 (xgene1_tunings): Likewise.
21238 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
21240 * config/arm/arm-cores.def: Add cortex-a72 and
21241 cortex-a72.cortex-a53.
21242 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
21243 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
21244 * config/arm/arm-tune.md: Regenerate.
21245 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
21246 "cortex-a72.cortex-a53".
21247 * doc/invoke.texi (ARM Options/-mtune): Likewise.
21249 2015-02-04 Nick Clifton <nickc@redhat.com>
21252 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
21254 (nonimmediate_di_operand): Likewise.
21256 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
21257 prefixes of known F5 using MSP430 MCUs.
21259 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21261 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
21262 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
21263 instead of __builtin_sqrt.
21265 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
21267 * varasm.c (do_assemble_alias): Follow transparent alias
21269 (default_assemble_visibility): Follow transparent alias
21270 chain for decl name.
21272 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
21274 PR middle-end/62103
21275 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
21276 to compute size of referenced value in the constant case.
21278 2015-02-03 Jakub Jelinek <jakub@redhat.com>
21280 PR rtl-optimization/64756
21281 * cse.c (invalidate_dest): New function.
21282 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
21283 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
21284 invalidate and do not record it.
21286 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
21289 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
21290 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
21291 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
21292 atomic_nand<mode>_soft_tcb): New insns.
21293 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
21294 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
21295 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
21296 Split into atomic_not_fetchsi_hard if operands[0] is unused.
21297 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
21298 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
21299 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
21300 atomic_not<mode>_hard if operands[0] is unused.
21301 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
21302 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
21303 if operands[0] is unused.
21304 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
21305 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
21306 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
21307 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
21309 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
21310 into atomic_not<mode>_soft_tcb if operands[0] is unused.
21311 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
21312 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
21313 if operands[0] is unused.
21314 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
21315 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
21316 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
21317 atomic_nand_fetchsi_hard if operands[0] is unused.
21318 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
21319 atomic_nand<mode>_hard if operands[0] is unused.
21320 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
21321 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
21322 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
21323 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
21324 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
21325 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
21326 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
21327 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
21328 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
21329 atomic_not<mode>_hard if operands[0] is unused.
21330 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
21331 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
21333 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
21334 into atomic_not<mode>_soft_tcb if operands[0] is unused.
21335 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
21336 atomic_nand<mode>_hard if operands[0] is unused.
21337 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
21338 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
21340 2015-02-03 David Malcolm <dmalcolm@redhat.com>
21343 * Makefile.in (GCC_OBJS): Add gcc-main.o.
21344 * gcc-main.c: New file, containing "main" taken from gcc.c.
21345 * gcc.c (do_self_spec): Free decoded_options.
21346 (class driver): Move declaration to gcc.h.
21347 (main): Move declaration and implementation to new file
21349 (driver_get_configure_time_options): New function.
21350 * gcc.h (class driver): Move this declaration here, from
21352 (driver_get_configure_time_options): New declaration.
21354 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
21356 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
21357 cross-module inlining.
21358 * cgraph.h (cgraph_node): Add flag merged.
21359 * ipa-icf.c (sem_function::merge): Maintain it.
21361 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
21363 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
21364 instead of OBJECT_P.
21366 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
21369 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
21370 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
21371 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
21372 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
21374 2015-02-03 Jakub Jelinek <jakub@redhat.com>
21377 * combine.c (reg_n_sets_max): New variable.
21378 (can_change_dest_mode, reg_nonzero_bits_for_combine,
21379 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
21380 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
21381 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
21382 (rest_of_handle_combine): Initialize reg_n_sets_max.
21384 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
21386 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
21387 if some always_inline was inlined, apply changes before inlining
21390 2015-02-02 David Malcolm <dmalcolm@redhat.com>
21393 * config/arm/arm.c (arm_option_override): Set
21394 arm_selected_arch/cpu/tune to NULL on entry.
21396 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
21397 Andrew Pinski <pinskia@gcc.gnu.org>
21398 Jakub Jelinek <jakub@gcc.gnu.org>
21401 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
21402 integer typing for small model. Use IN_RANGE.
21404 2015-02-02 Richard Biener <rguenther@suse.de>
21406 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
21407 * tree-vrp.c (vrp_valueize_1): Likewise.
21409 2015-02-02 Alan Modra <amodra@gmail.com>
21411 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
21412 than mem for toc_restore.
21413 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
21414 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
21415 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
21417 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
21420 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
21421 explicit default options.
21423 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
21426 * ipa-utils.c (ipa_merge_profiles): Add release argument.
21427 * ipa-icf.c (sem_function::merge): Do not release body when merging.
21428 * ipa-utils.h (ipa_merge_profiles): Update prototype.
21430 2015-02-01 Jakub Jelinek <jakub@redhat.com>
21433 * cfgexpand.c (deep_ter_debug_map): New variable.
21434 (avoid_deep_ter_for_debug): New function.
21435 (expand_debug_expr): If TERed SSA_NAME is in
21436 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
21437 instead of trying to expand SSA_NAME's def stmt.
21438 (expand_debug_locations): When expanding debug bind
21439 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
21440 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
21442 (pass_expand::execute): Call avoid_deep_ter_for_debug on
21443 all debug bind stmts. Delete deep_ter_debug_map after
21444 expand_debug_location if non-NULL and clear it.
21446 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
21449 * config/sh/sync.md (atomic_fetch_notsi_hard,
21450 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
21451 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
21452 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
21453 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
21454 atomic_not_fetch<mode>_soft_imask): New insns.
21456 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21458 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
21459 (rank_for_schedule_debug): Split from ...
21460 (rank_for_schedule): ... this.
21461 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
21462 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
21464 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
21466 * doc/md.texi (Machine Constraints): Alphabetize table by target.
21467 * doc/extend.texi (x86 Variable Attributes): Move section to
21468 correct alphabetization after renaming.
21469 (x86 Type Attributes): Likewise.
21470 (Target Builtins): Re-alphabetize menu.
21471 (x86 Built-in Functions): Move section to correct alphabetization
21473 (x86 transactional memory intrinsics): Likewise.
21474 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
21475 and x86 Windows Options in table and menu.
21476 (x86 Options): Move section to correct alphabetization after
21478 (x86 Windows Options): Likewise.
21480 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
21482 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
21483 preferred names of the architecture and its 32- and 64-bit
21485 * doc/invoke.texi: Likewise.
21486 * doc/md.texi: Likewise.
21488 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
21491 * config/i386/predicates.md (address_no_seg_operand): Reject
21492 non-CONST_INT_P operands in invalid mode.
21494 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
21496 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
21497 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
21498 * config/i386/predicates.md (address_no_seg_operand): Call
21499 address_operand with VOIDmode.
21500 (vsib_address_operand): Ditto.
21501 (address_mpx_no_base_operand): Ditto.
21502 (address_mpx_no_index_operand): Ditto.
21504 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
21507 * lra-constraints.c (original_subreg_reg_mode): New.
21508 (simplify_operand_subreg): Try to simplify subreg of const. Use
21509 original_subreg_reg_mode for it.
21510 (swap_operands): Update original_subreg_reg_mode.
21511 (curr_insn_transform): Set up original_subreg_reg_mode.
21513 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
21516 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
21518 (process_alt_operands): Use it.
21519 (curr_insn_transform): Check the optional reload pseudo class is
21522 2015-01-30 Joseph Myers <joseph@codesourcery.com>
21524 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
21525 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
21527 * toplev.h (init_asm_output): Update comment on use of
21528 UNKNOWN_LOCATION with fatal_error.
21529 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
21530 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
21531 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
21532 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
21533 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
21534 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
21535 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
21536 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
21537 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
21538 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
21539 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
21540 fatal_error changed to pass input_location as first argument.
21542 2015-01-30 Martin Liska <mliska@suse.cz>
21544 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
21545 in #pragma GCC diagnostic guards.
21547 2015-01-30 Richard Biener <rguenther@suse.de>
21549 PR tree-optimization/64829
21550 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
21551 not add a widening conversion pattern but hand off extra
21552 widenings to callers.
21553 (vect_recog_widen_mult_pattern): Handle extra widening produced
21554 by vect_handle_widen_op_by_const.
21555 (vect_recog_widen_shift_pattern): Likewise.
21556 (vect_pattern_recog_1): Remove excess vertical space in dumping.
21557 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21558 (vect_init_vector_1): Likewise.
21559 (vect_get_vec_def_for_operand): Likewise.
21560 (vect_finish_stmt_generation): Likewise.
21561 (vectorizable_load): Likewise.
21562 (vect_analyze_stmt): Likewise.
21563 (vect_is_simple_use): Likewise.
21565 2015-01-29 Jeff Law <law@redhat.com>
21567 * combine.c (try_combine): Fix typo in comment.
21569 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
21572 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
21573 (rs6000_stack_info): Add assert.
21574 (rs6000_output_savres_externs): New function, split off from...
21575 (rs6000_output_function_prologue): ... here. Do not call it for
21578 2015-01-29 Jeff Law <law@redhat.com>
21581 * combine.c (try_combine): If I0 is a memory load and I3 a store
21582 to a related address, increase the "goodness" of doing a 4-insn
21583 combination with I0-I3.
21584 (make_field_assignment): Handle SUBREGs in the ior+and case.
21586 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
21588 PR tree-optimization/64746
21589 * tree-if-conv.c (mask_exists): New function.
21590 (predicate_mem_writes): Save created mask with given size for further
21592 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
21593 (ifcvt_repair_bool_pattern): Collect all statements that are root
21594 of bool pattern and use iterative algorithm to remove multiple uses
21595 of predicates, display number of required iterations.
21597 2015-01-29 Richard Biener <rguenther@suse.de>
21599 PR tree-optimization/64853
21600 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
21601 stmt will get simulated again.
21602 * tree-ssa-ccp.c (valueize_op_1): Likewise.
21604 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21606 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
21607 return_in_pc. Remove redundant assignments.
21608 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
21609 (arm_expand_epilogue): Don't compare boolean with true in if condition.
21611 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
21613 * config/i386/i386.c (ix86_mode_after): Make static.
21615 2015-01-29 Richard Biener <rguenther@suse.de>
21617 PR tree-optimization/64844
21618 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
21619 dump cost model analysis.
21620 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21621 Do not register adjusted load/store costs here.
21623 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
21624 Uros Bizjak <ubizjak@gmail.com>
21626 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
21627 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
21628 using x86_use_pseudo_pic_reg.
21629 * config/i386/i386.c (ix86_conditional_register_usage): Remove
21630 support for fixed PIC register.
21631 (ix86_use_pseudo_pic_reg): Not static any more.
21633 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
21635 PR middle-end/64805
21636 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
21637 to avoid error in cgraph node verification.
21639 2015-01-29 Marek Polacek <polacek@redhat.com>
21641 * doc/standards.texi: Reflect that the default for C is gnu11.
21643 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
21646 * reorg.c (switch_text_sections_between_p): New function.
21647 (relax_delay_slots): Call it when testing if the jump insn
21648 is removable. Use targetm.can_follow_jump when testing if
21649 the conditional branch can follow an unconditional jump.
21651 2015-01-27 Caroline Tice <cmtice@google.com>
21653 Committing VTV Cywin/Ming patch for Patrick Wollgast
21654 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
21655 if -fvtable-verify=preinit/std is used.
21656 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
21657 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
21658 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
21659 if -fvtable-verify=preinit/std is used.
21660 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
21661 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
21662 if -fvtable-verify=preinit/std is used.
21663 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
21664 * config/i386/mingw32.h (LIB_SPEC): Likewise.
21665 * varasm.c (assemble_variable): Add code to properly set the comdat
21666 section and name for the .vtable_map_vars section in case the
21667 target is PE or COFF.
21669 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
21672 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
21673 make sane BB profile.
21674 (cgraph_node::expand_thunk): Make sane BB profile.
21675 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
21676 * cgraph.h (init_lowered_empty_function): Update prototype.
21677 * config/i386/i386.c (make_resolver_func): Update call.
21678 * predict.c (gate): Disable branch prediction pass if
21679 profile is already there.
21681 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
21683 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
21684 * opth-gen.awk: Likewise.
21685 * common.opt: Mark flag_fp_contract_mode as Optimization.
21687 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
21689 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
21690 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
21692 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
21695 * config/sh/predicates.md (atomic_arith_operand,
21696 atomic_logical_operand): Remove.
21697 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
21698 (atomic_arith_operand_0): New predicate.
21699 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
21700 Use atomic_arith_operand_0 for input values.
21701 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
21702 atomic_compare_and_swap<mode>_soft_gusa,
21703 atomic_compare_and_swap<mode>_soft_tcb,
21704 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
21705 arith_reg_operand instead of register_operand.
21706 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
21707 atomic_arith_operand_0 for newval input.
21708 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
21709 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
21710 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
21711 arith_reg_operand instead of register_operand.
21712 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
21713 fetchop_predicate_1, fetchop_constraint_1_llcs,
21714 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
21715 fetchop_constraint_1_imask): New code iterator attributes.
21716 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
21717 register_operand. Use fetchop_predicate_1.
21718 (atomic_fetch_<fetchop_name>si_hard,
21719 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
21720 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
21721 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
21722 and arith_reg_operand instead of register_operand. Use
21723 fetchop_predicate_1, fetchop_constraint_1_gusa.
21724 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
21725 and arith_reg_operand instead of register_operand. Use
21726 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
21728 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
21729 and arith_reg_operand instead of register_operand. Use
21730 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
21732 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
21733 register_operand. Use atomic_logical_operand_1.
21734 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
21735 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
21736 arith_reg_operand instead of register_operand.
21737 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
21738 Use arith_reg_dest and arith_reg_operand instead of register_operand.
21739 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
21740 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
21741 register_operand. Use fetchop_predicate_1.
21742 (atomic_<fetchop_name>_fetchsi_hard,
21743 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
21744 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21745 fetchop_constraint_1_llcs.
21746 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
21747 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21748 fetchop_constraint_1_gusa.
21749 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
21750 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21751 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
21752 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
21753 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21754 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
21755 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
21756 register_operand. Use atomic_logical_operand_1.
21757 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
21758 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
21759 arith_reg_operand instead of register_operand.
21760 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
21761 arith_reg_operand instead of register_operand. Use logical_operand
21762 and K08. Adjust asm sequence to allow R0 usage.
21763 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
21764 arith_reg_operand instead of register_operand. Use logical_operand
21767 2015-01-28 Jakub Jelinek <jakub@redhat.com>
21770 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
21771 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
21772 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
21773 only get_full_len HOST_WIDE_INTs from get_val () array rather than
21774 all bits in *val_wide.
21776 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
21778 * varpool.c (tls_model_names): Fix names.
21779 (varpool_node::dump): Dump tls- prefix for tls models.
21781 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
21782 Bernd Schmidt <bernds@codesourcery.com>
21783 Nathan Sidwell <nathan@codesourcery.com>
21785 * config/nvptx/mkoffload.c: New file.
21786 * config/nvptx/t-nvptx: Add build rules for it.
21787 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
21788 (extra_programs): Add mkoffload.
21789 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
21791 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
21793 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
21795 PR middle-end/64809
21796 * cfgexpand.c (reorder_operands): Skip debug gimples.
21798 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
21800 PR tree-optimization/64277
21801 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
21802 range info when possible to refine estimation.
21804 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
21806 PR tree-optimization/64718
21807 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
21808 be a 16bit unsigned integer when n->range is 16.
21809 (bswap_replace): Convert src to that type if necessary for all bswap
21810 sizes. Fix rotation right notation in nearby comment. Use bswap_type
21811 set in pass_optimize_bswap::execute ().
21813 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
21815 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
21816 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
21817 integer and floating point variants.
21818 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
21820 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
21822 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
21823 for all vector modes.
21825 2015-01-28 Jakub Jelinek <jakub@redhat.com>
21828 * doc/sourcebuild.texi (comdat_group): Document.
21830 2015-01-28 Terry Guo <terry.guo@arm.com>
21832 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
21834 2015-01-27 David Malcolm <dmalcolm@redhat.com>
21836 * toplev.c (print_version): Add param "show_global_state", and
21837 only print GGC and plugin information if it is true.
21838 (init_asm_output): Pass in "true" for the new param when calling
21840 (process_options): Likewise.
21841 (toplev::main): Likewise.
21842 * toplev.h (print_version): Add new param to decl.
21844 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
21848 * tree.c (lookup_binfo_at_offset): New function.
21849 (get_binfo_at_offset): Use it.
21851 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
21854 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
21855 on vtable being vtable.
21857 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
21859 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
21860 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
21861 -mhotpatch= option.
21862 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
21863 -mno-hotpatch options. Change syntax of -mhotpatch= option.
21864 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
21866 (s390_hotpatch_trampoline_halfwords_max): Renamed.
21867 (s390_hotpatch_hw_max): New name.
21868 (s390_hotpatch_trampoline_halfwords): Renamed.
21869 (s390_hotpatch_hw_before_label): New name.
21870 (get_hotpatch_attribute): Removed.
21871 (s390_hotpatch_hw_after_label): New name.
21872 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
21874 (s390_attribute_table): Ditto.
21875 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
21876 (s390_function_num_hotpatch_hw): New name.
21877 Remove special handling of inline functions and hotpatching.
21878 Return number of nops before and after the function label.
21879 (s390_can_inline_p): Removed.
21880 (s390_asm_output_function_label): Emit a configurable number of nops
21881 after the function label.
21882 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
21883 (TARGET_CAN_INLINE_P) Removed.
21884 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
21886 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21887 Jiong Wang <jiong.wang@arm.com>
21889 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
21891 (cb<optab><mode>1): Likewise.
21892 * config/aarch64/iterators.md (bcond): New define_code_attr.
21894 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21896 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
21899 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21901 * config/s390/s390.c (s390_register_move_cost): Increase costs for
21904 2015-01-27 Richard Biener <rguenther@suse.de>
21906 * tree-vrp.c (update_value_range): Intersect the range with
21907 old recorded SSA name range information.
21909 2015-01-27 Nick Clifton <nickc@redhat.com>
21911 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
21912 BC, DE and HL registers directly, not via AX.
21913 When decrementing the stack pointer by a large amount, transfer SP
21914 into AX and perform the subtraction there.
21915 (rl78_expand_epilogue): Perform the inverse of the above
21918 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21920 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
21922 2015-01-27 Jakub Jelinek <jakub@redhat.com>
21923 Yury Gribov <y.gribov@samsung.com>
21926 * ubsan.c (ubsan_source_location): Refactor code.
21927 (ubsan_type_descriptor): Update type size. Refactor code.
21929 2015-01-27 Richard Biener <rguenther@suse.de>
21931 PR tree-optimization/56273
21932 PR tree-optimization/59124
21933 PR tree-optimization/64277
21934 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
21935 from the first VRP pass.
21937 2015-01-27 Jakub Jelinek <jakub@redhat.com>
21940 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
21941 handle the first argument in the same loop as all the other arguments.
21943 PR rtl-optimization/61058
21944 * jump.c (cleanup_barriers): Update basic block boundaries
21945 if BLOCK_FOR_INSN is non-NULL on PREV.
21947 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
21949 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
21950 bounds narrowing, already instrumented calls and calls to
21951 not instrumentable functions.
21953 2015-01-27 Jakub Jelinek <jakub@redhat.com>
21955 PR tree-optimization/64807
21956 * wide-int.cc (wi::divmod_internal): Clear
21957 b_dividend[dividend_blocks_needed].
21959 2015-01-26 DJ Delorie <dj@redhat.com>
21961 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
21962 volatile memory references.
21964 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
21967 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
21969 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
21970 shifts if it already fits into K08.
21972 2015-01-26 Jakub Jelinek <jakub@redhat.com>
21975 * ipa-inline.c (inline_small_functions): Print "unknown" even
21976 if edge->call_stmt is non-NULL, but has builtins or unknown
21979 PR middle-end/64421
21980 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
21981 with asterisk, skip the first character.
21983 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
21986 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
21989 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
21992 * config/i386/i386.md (*movdi_internal): Also check operand 0
21993 to determine TYPE_LEA operand.
21994 (*movsi_internal): Ditto.
21996 2015-01-26 Jakub Jelinek <jakub@redhat.com>
21998 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
21999 OPTION_MASK_QUAD_MEMORY_ATOMIC.
22001 2015-01-26 Renlin Li <renlin.li@arm.com>
22003 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
22005 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
22008 2015-01-26 Richard Biener <rguenther@suse.de>
22010 PR middle-end/64764
22011 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
22012 combining two BIT_AND_EXPR predicates.
22014 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
22017 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
22019 2015-01-26 Terry Guo <terry.guo@arm.com>
22021 * config/arm/arm.c (arm_file_start): Update the assignment of
22022 Tag_ABI_HardFP_use.
22024 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
22026 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
22028 config/arm/arm.md: Include the new Cortex-A57 model.
22029 (generic_sched): Don't use generic_sched when tuning for
22032 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
22033 Uros Bizjak <ubizjak@gmail.com>
22035 * config/i386/i386.c (get_builtin_code_for_version): Add
22036 support for BMI and BMI2 multiversion functions.
22038 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22040 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
22041 (extract_bit_field): Likewise.
22042 (extract_low_bits): Likewise.
22043 (expand_mult): Likewise.
22044 (expand_mult_highpart_adjust): Likewise.
22046 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
22048 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
22049 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
22050 * config/i386/i386.c (processor_model): Add
22051 M_INTEL_COREI7_BROADWELL.
22052 (arch_names_table): Add "broadwell".
22054 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
22063 * config/sh/sh-protos.h
22064 (sh_extending_set_of_reg::can_use_as_unextended_reg,
22065 sh_extending_set_of_reg::use_as_unextended_reg,
22066 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
22067 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
22068 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
22069 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
22070 (sh_treg_insns): New class.
22071 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
22072 (scope_counter): New class.
22073 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
22074 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
22075 sh_extending_set_of_reg::can_use_as_unextended_reg,
22076 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
22077 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
22078 sh_split_treg_set_expr): New functions.
22079 (addsubcosts): Handle treg_set_expr.
22080 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
22081 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
22082 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
22083 (sh_insn_operands_modified_between_p): Make non-static.
22084 * config/sh/predicates.md (zero_extend_movu_operand): Allow
22085 simple_mem_operand in addition to displacement_mem_operand.
22086 (zero_extend_operand): Don't allow zero_extend_movu_operand.
22087 (treg_set_expr, treg_set_expr_not_const01,
22088 arith_reg_or_treg_set_expr): New predicates.
22089 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
22090 arith_or_int_operand instead of logical_operand. Convert to
22091 insn_and_split. Try to optimize constant operand in splitter.
22092 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
22093 (*tstqi_t_zero): Delete.
22094 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
22095 (tstsi_t_and_not): Delete.
22096 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
22097 Convert to insn_and_split.
22098 (unnamed split, tstsi_t_zero_extract_xor,
22099 tstsi_t_zero_extract_subreg_xor_little,
22100 tstsi_t_zero_extract_subreg_xor_big): Delete.
22101 (*tstsi_t_shift_mask): New insn_and_split.
22102 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
22103 to recombine with surrounding insns when splitting.
22104 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
22105 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
22106 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
22107 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
22108 (*cbranch_div0s: Delete.
22109 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
22110 Try to recombine with surrounding insns when splitting. Add operand
22112 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
22113 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
22114 *addc_r_r_msb, *addc_2r_msb): Delete.
22115 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
22117 (*addc_negreg_t): New insn_and_split.
22118 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
22119 Try to recombine with surrounding insns when splitting.
22120 Add operand order variants.
22121 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
22122 insn_and_split patterns.
22123 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
22124 surrounding insns when splitting.
22125 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
22126 (*rotcl): Likewise. Add zero_extract variant.
22127 (*ashrsi2_31): New insn_and_split.
22128 (*negc): Convert to insn_and_split. Use treg_set_expr.
22129 (*zero_extend<mode>si2_disp_mem): Update comment.
22130 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
22132 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
22133 with surrounding insns when splitting.
22134 (any_treg_expr_to_reg): New insn_and_split.
22135 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
22136 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
22137 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
22138 *zero_extract_2): New single bit zero extract patterns.
22139 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
22140 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
22141 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
22142 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
22144 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
22145 register_operand for set source.
22147 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
22149 * i386.opt (prefetch_sse): New targetsave.
22150 * i386.c (ix86_function_specific_save): Save prefetch_sse.
22151 (ix86_function_specific_restore): Restore prefetch_sse and initialize
22152 ix86_cost/ix86_tune_cost.
22154 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22156 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
22157 Support the JIT by using 0 as the language type.
22159 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
22162 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
22163 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
22164 (mark_regno_live, process_bb_lives): Pass new parameter value to
22165 make_hard_regno_born.
22167 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22169 PR rtl-optimization/63637
22170 PR rtl-optimization/60663
22171 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
22172 if elt->cost is MAX_COST for ASM_OPERANDS.
22173 (find_sets_in_insn): Fix up comment typo.
22174 (cse_insn): Don't set src_volatile for all non-volatile
22175 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
22176 or with "memory" clobber. Set elt->cost to MAX_COST
22177 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
22178 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
22180 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
22182 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
22185 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
22187 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
22188 libgcc/config/i386/elf-lib.h.
22190 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22193 * gcc.c (print_configuration): Don't print a blank line at the end
22195 (run_attempt): ... but here unstead.
22197 PR middle-end/64734
22198 * omp-low.c (scan_sharing_clauses): Don't ignore
22199 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
22200 on target data/update constructs.
22202 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
22205 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
22206 (DEBUG_RELOAD): Removed define.
22207 (m32c_limit_reload_class): Enable traces with if DEBUG0.
22208 (m32c_function_arg): Added a type cast.
22209 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
22210 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
22211 * config/m32c/bitops.md (andqi3_16): Likewise.
22212 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
22213 (push_a01_l): Likewise.
22215 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22218 * main.c (main): Construct toplev instances with init_signals=true.
22219 * toplev.c (general_init): Add param "init_signals", and use it to
22220 conditionalize the calls to signal and host_hooks.extra_signals.
22221 (toplev::toplev): Add param "init_signals".
22222 (toplev::main): When invoking general_init, pass m_init_signals
22223 to control whether signal-handlers are installed.
22224 * toplev.h (toplev::toplev): Add param "init_signals".
22225 (toplev::m_init_signals): New field.
22227 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22230 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
22231 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
22232 latter may be affected by the former (e.g. on i686).
22234 2015-01-23 Martin Liska <mliska@suse.cz>
22236 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
22237 false positive during profiledbootstrap.
22239 2015-01-23 Tom de Vries <tom@codesourcery.com>
22242 * lto-opts.c (lto_write_options): Output non-explicit conservative
22244 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
22245 (append_compiler_options): Pass -fopenacc through.
22247 2015-01-23 Tom de Vries <tom@codesourcery.com>
22250 * lto-opts.c (lto_write_options): Output non-explicit conservative
22252 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
22253 (append_compiler_options): Pass -fopenmp through.
22255 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22258 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
22261 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
22262 * diagnostic.def (DK_ICE_NOBT): New kind.
22263 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
22264 like DK_ICE, but never print backtrace.
22265 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
22266 (internal_error_no_backtrace): New function.
22267 * gcc.c (execute): Use internal_error_no_backtrace instead of
22270 2015-01-22 Jeff Law <law@redhat.com>
22273 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
22274 improve code density for small immediate to memory case.
22275 (insv): Better handle bitfield assignments when the field is
22276 being set to all ones.
22277 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
22280 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22281 Jakub Jelinek <jakub@redhat.com>
22283 PR middle-end/64729
22284 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
22285 for !TARGET_LIBC_PROVIDES_SSP version and
22286 -fstack-protector-{all,strong,explicit} otherwise.
22287 * config/freebsd.h (LINK_SSP_SPEC): Handle
22288 -fstack-protector-{strong,explicit}.
22290 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
22291 H.J. Lu <hongjiu.lu@intel.com>
22294 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
22297 2015-01-22 Wei Mi <wmi@google.com>
22299 PR rtl-optimization/64557
22300 * dse.c (record_store): Call get_addr for mem_addr.
22301 (check_mem_read_rtx): Likewise.
22303 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
22305 * fold-const.c (const_binop): Add early return for non-tcc_binary.
22307 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
22309 * toplev.c (init_local_tick): Process the failure when read
22310 fails for random_seed.
22312 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
22313 'pretty_name' to avoid memory overflow.
22315 2015-01-22 Richard Biener <rguenther@suse.de>
22317 PR middle-end/64728
22318 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
22319 abnormal coalescing on undefined SSA names.
22321 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
22325 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
22327 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
22329 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
22331 PR middle-end/63325
22332 * fold-const.c (fold_checksum_tree): Don't include value of
22333 expr->decl_with_vis.symtab_node in the checksum.
22335 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22337 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
22339 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
22342 * gcc.c (insert_comments): New function.
22343 (try_generate_repro): Call it.
22344 (append_text): Removed.
22346 2015-01-22 Richard Biener <rguenther@suse.de>
22348 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
22349 with IL incompatible options. Properly honor user optimize
22352 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
22354 PR rtl-optimization/64682
22355 * combine.c (distribute_notes): When moving a death note for
22356 a register that is set in the new I2, make sure to put it
22357 before that new I2.
22359 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
22361 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
22362 not TARGET_DEFAULT.
22364 2015-01-21 Jakub Jelinek <jakub@redhat.com>
22367 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
22368 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
22369 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
22372 * doc/invoke.texi (-fsanitize=vptr): Document.
22374 PR rtl-optimization/62078
22375 * dse.c: Include cfgcleanup.h.
22376 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
22377 anything call purge_all_dead_edges and cleanup_cfg at the end
22380 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
22382 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
22385 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
22387 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
22390 2015-01-21 David Sherwood <david.sherwood@arm.com>
22391 Tejas Belagod <Tejas.Belagod@arm.com>
22393 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
22394 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
22395 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
22398 2015-01-21 David Sherwood <david.sherwood@arm.com>
22399 Tejas Belagod <Tejas.Belagod@arm.com>
22401 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
22402 (aarch64_reverse_mask): New decls.
22403 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
22404 (insn_count): New mode_attr.
22405 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
22406 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
22407 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
22408 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
22409 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
22410 (aarch64_simd_st4): New patterns.
22411 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
22412 (aarch64_reverse_mask): New functions.
22414 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
22416 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
22418 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
22419 addressing modes for BE.
22420 (aarch64_print_operand): Add 'R' specifier.
22421 (aarch64_simd_disambiguate_copy): Delete.
22422 (aarch64_simd_emit_reg_reg_move): New function.
22423 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
22424 in define_splits for structural moves.
22425 (mov<mode>): Use less restrictive predicates.
22426 (*aarch64_mov<mode>): Simplify and only allow for LE.
22427 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
22429 2015-01-21 Alan Hayward <alan.hayward@arm.com>
22431 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
22433 2015-01-21 Richard Henderson <rth@redhat.com>
22436 * ccmp.c (used_in_cond_stmt_p): Remove.
22437 (expand_ccmp_expr): Don't use it.
22439 2015-01-21 Nick Clifton <nickc@redhat.com>
22441 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
22444 2015-01-21 Richard Biener <rguenther@suse.de>
22446 PR middle-end/64313
22447 * tree-core.h (builtin_info, builtin_info_type): Turn from
22448 an object with two arrays into an array of an object with
22449 decl and two flags, implicit_p and declared_p.
22450 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
22451 set_builtin_decl, set_builtin_decl_implicit_p,
22452 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
22453 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
22454 * builtins.c (builtin_info): Adjust.
22455 * gimplify.c (gimplify_addr_expr): References to builtins
22456 that have been declared by the user makes them eligible for
22457 use by the compiler. Call set_builtin_decl_implicit_p on them.
22459 2015-01-20 Jeff Law <law@redhat.com>
22462 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
22463 allow pc-relative addresses in operand predicates or constraints.
22465 2015-01-21 Bin Cheng <bin.cheng@arm.com>
22467 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
22468 neon on aarch32 processors for stringops.
22470 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22473 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
22475 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22478 * ipa-inline.c: Include lto-streamer.h
22479 (report_inline_failed_reason): Output source file differences and
22480 flags on optimization/target node mismatch.
22481 (can_inline_edge_p): Consider caller to be the outer inline function;
22482 be less restrictive about matching opimize and optimize_size attributes.
22483 (inline_account_function_p): Break out from ...
22484 (inline_small_functions): ... here.
22485 * ipa-inline-transform.c (clone_inlined_nodes): Use
22486 inline_account_function_p.
22487 (inline_call): Use optimize attribution; use inline_account_function_p.
22488 (inline_transform): Use opt_for_fn.
22489 * ipa-inline.h (inline_account_function_p): Declare.
22491 2015-01-20 Jakub Jelinek <jakub@redhat.com>
22494 * dwarf2out.c (decl_piece_node): Don't put bitsize into
22495 mode if bitsize <= 0.
22496 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
22497 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
22498 sizes and positions.
22500 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
22502 * config/nios2/nios2.c (nios2_asm_file_end): Implement
22503 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
22505 (TARGET_ASM_FILE_END): Define.
22507 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22509 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
22510 (struct tune_params): Use the enum.
22511 * arm.c (arm_*_tune): Update.
22512 (arm_option_override): Update.
22514 2015-01-20 Richard Biener <rguenther@suse.de>
22517 * ipa-reference.c (add_static_var): Inline ...
22518 (analyze_function): ... here after splitting out from ...
22519 (is_proper_for_analysis): ... this.
22521 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
22524 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
22525 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
22526 replace the conditional with it's true branch.
22527 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
22528 (arm_lra_p): Remove.
22530 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
22532 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
22534 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22536 * config/tilegx/mul-tables.c: Move symtab.h include after
22537 coretypes.h include.
22538 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
22539 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
22540 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
22541 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
22542 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
22544 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
22548 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
22550 PR rtl-optimization/64081
22551 * loop-iv.c (def_pred_latch_p): New function.
22552 (latch_dominating_def): Allow specific cases with non-single
22554 (iv_get_reaching_def): Likewise.
22555 (check_complex_exit_p): New function.
22556 (check_simple_exit): Use check_complex_exit_p to allow certain cases
22557 with exits not executing on any iteration.
22559 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22562 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
22563 to set branch cost.
22565 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22568 * i386.c (gate): Check flag_expensive_optimizations and
22570 (ix86_option_override_internal): Drop optimize_size condition
22571 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
22572 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
22573 MASK_PREFER_AVX128.
22574 (ix86_avx256_split_vector_move_misalign,
22575 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
22576 * sse.md (all uses of TARGET_PREFER_AVX128): Add
22577 optimize_insn_for_speed_p check.
22579 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
22581 * config/mips/mips.h (FP_ASM_SPEC): New define.
22582 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
22585 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
22588 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
22589 nullptr for insn when reaching the first insn.
22590 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
22591 (sh_insn_operands_modified_between_p): Add nullptr check.
22592 (sh_find_extending_set_of_reg): Fix log message. Don't accept
22593 sign extending mem load if the insn contains any UNSPEC or
22596 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22598 * params.def (inline-unit-growth): Drop to 15%.
22599 * invoke.texi (inline-unit-growth): Document change.
22601 2015-01-19 Martin Liska <mliska@suse.cz>
22604 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
22605 function for second argument of OBJ_TYPE_REF.
22607 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22610 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
22611 whether function is an alias.
22613 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22615 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
22618 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
22620 PR rtl-optimization/64671
22621 * lra-remat.c (operand_to_remat): Don't consider jump and call
22624 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
22627 * config/rs6000/default64.h: Include rs6000-cpus.def.
22628 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
22629 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
22630 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
22632 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
22634 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
22635 pseudo-op to specify assembler dialect.
22637 2015-01-19 Martin Liska <mliska@suse.cz>
22640 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
22641 Handle safe potentially removed nodes during filtering.
22643 2015-01-19 Martin Liska <mliska@suse.cz>
22645 * doc/extend.texi (no_icf): Add new attribute description.
22646 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
22647 where the pass attempts to merge a function with no_icf attribute.
22649 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22652 * doc/md.texi (ARM Options): Document register constraints.
22654 2015-01-19 Jiong Wang <jiong.wang@arm.com>
22655 Andrew Pinski <apinski@cavium.com>
22658 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
22659 (ashl<mode>3): Don't expand if operands[2] is not constant.
22661 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22664 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
22665 Match xor-and-xor RTL pattern.
22667 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
22669 PR rtl-optimization/64081
22670 * loop-iv.c (def_pred_latch_p): New function.
22671 (latch_dominating_def): Allow specific cases with non-single
22673 (iv_get_reaching_def): Likewise.
22674 (check_complex_exit_p): New function.
22675 (check_simple_exit): Use check_complex_exit_p to allow certain cases
22676 with exits not executing on any iteration.
22678 2015-01-19 Jakub Jelinek <jakub@redhat.com>
22680 * common.opt (fgraphite): Fix a typo.
22682 2015-01-19 Felix Yang <felix.yang@huawei.com>
22684 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
22686 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
22687 uminp, smax_nanp, smin_nanp): New builtins.
22688 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
22689 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
22690 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
22691 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
22692 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
22693 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
22694 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
22695 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
22696 vpminnms_f32): Rewrite using builtin functions.
22698 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
22701 * omp-low.c (offload_symbol_decl): Remove variable.
22702 (get_offload_symbol_decl): Remove function.
22703 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
22704 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
22705 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
22706 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
22707 BUILT_IN_GOACC_UPDATE don't pass it at all.
22709 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
22711 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
22714 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
22716 * ipa-chkp.c (chkp_produce_thunks): Add early param
22717 to split thunks production into two passes. Keep
22718 'always_inline' function bodies after the first pass.
22719 (pass_data_ipa_chkp_early_produce_thunks): New.
22720 (pass_ipa_chkp_early_produce_thunks): New.
22721 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
22722 chkp_produce_thunks signature.
22723 (make_pass_ipa_chkp_early_produce_thunks): New.
22724 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
22725 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
22726 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
22728 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
22730 * cgraph.c (cgraph_node::dump): Dump profile flags.
22732 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
22735 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
22736 reg appear first in the parallel.
22738 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
22740 * ipa-reference.c (set_reference_optimization_summary,
22741 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
22743 (ignore_module_statics): New static var.
22744 (propagate_bits): If ipa-reference is disabled, do not look into local
22746 (analyze_function): Disable analysis when ipa_reference is disabled.
22747 (generate_summary): Do not dump when reference is disabled;
22748 collect vars accessed from functions with ipa-reference disabled.
22749 (get_read_write_all_from_node): When ipa-reference is disabled, use the
22751 (gate): Enable for LTO.
22752 (ignore_edge_p): New function.
22753 (propagate): Skip functions w/o ipa-reference analysis.
22754 * optc-save-gen.awk: Handle optimize_debug correctly.
22755 * opth-gen.awk: Likewise.
22756 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
22757 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
22758 fira-share-save-slots, fira-share-spill-slots,
22759 fmodulo-sched-allow-regmoves, fpartial-inlining,
22760 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
22761 ftracer, ftree-parallelize-loops, fassociative-math,
22762 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
22764 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
22765 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
22767 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
22770 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
22773 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
22775 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
22777 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
22779 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
22780 Remove duplicate option listings.
22782 2015-01-18 Felix Yang <felix.yang@huawei.com>
22784 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
22785 (autofdo_source_profile::get_callsite_total_count,
22786 function_instance::get_function_instance_by_decl,
22787 string_table::get_index, string_table::get_index_by_decl,
22788 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
22789 Fix comment typos. Reformatting and minor code rearrangement.
22791 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22793 * config/rs6000/rs6000.md (probe_stack): Delete.
22794 (probe_stack_address): New.
22796 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22798 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
22799 to test for 32-bit ABIs, not !TARGET_POWERPC64.
22801 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22803 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
22804 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
22805 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
22807 (rs6000_libcall_value): Use the new function.
22809 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
22811 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
22813 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
22815 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
22816 implement a more precise life analysis for it during backward scan.
22818 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
22820 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
22822 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
22824 PR rtl-optimization/52773
22825 * calls.c (emit_library_call_value): When pushing arguments use
22826 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
22827 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
22828 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
22830 2015-01-17 Jeff Law <law@redhat.com>
22832 PR rtl-optimization/32790
22833 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
22834 not ZERO_EXTEND in SET_DESTs.
22836 2015-01-17 Alan Modra <amodra@gmail.com>
22838 * cprop.c (do_local_cprop): Revert last change.
22840 2015-01-16 DJ Delorie <dj@redhat.com>
22841 Nick Clifton <nickc@redhat.com>
22843 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
22844 (addhi3_real): Likewise. Fix [HL+0] syntax.
22845 (subqi3_real): Likewise.
22846 (subhi3_real): Likewise.
22847 (cbranchqi4_real): Likewise. Allow saddr,#imm.
22848 (cbranchhi4_real): Likewise.
22849 (cbranchhi4_real_inverted): Likewise.
22850 (cbranchsi4_real_lt): Likewise.
22851 (cbranchsi4_real_ge): Likewise.
22852 (cbranchsi4_real_ge): Likewise.
22853 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
22854 (sub<mode>3_virt): Likewise.
22855 (cbranchqi4_virt): Likewise.
22856 (cbranchhi4_virt): Likewise.
22857 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
22858 always use '[reg+imm]' even when imm is zero.
22859 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
22860 (rl78_general_operand): New.
22861 (rl78_nonimmediate_operand): New.
22862 (rl78_nonfar_operand): Use them.
22863 (rl78_nonfar_nonimm_operand): Likewise.
22864 (rl78_stack_based_mem): Fix.
22865 * config/rl78/constraints.md (Ibqi): New.
22870 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
22871 (iorqi3): Likewise.
22872 (xorqi3): Likewise.
22873 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
22875 * config/rl78/constrains (Qs8): New constraint.
22876 * config/rl78/rl78.c (rl78_flags_already_set): New function.
22877 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
22878 * config/rl78/rl78-real.md (update_Z): New attribute.
22879 Update patterns to set it.
22880 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
22881 shorter compare and branch sequence can be used.
22882 (cbranchhi4_real): Likewise.
22883 (cbranchhi4_real_inverted): Likewise.
22885 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
22886 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
22888 * config/rl78/rl78.c (rl78_get_name_encoding): New.
22889 (rl78_option_override): Allow -mes0 only if C.
22890 (characterize_address): Support subregs of symbol_refs.
22891 (rl78_addr_space_address_mode): Move. Add __near.
22892 (rl78_far_p): Likewise.
22893 (rl78_addr_space_pointer_mode): Likewise.
22894 (rl78_as_legitimate_address): Likewise.
22895 (rl78_addr_space_subset_p): Likewise.
22896 (rl78_addr_space_convert): Likewise.
22897 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
22898 symbols with -mes0.
22899 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
22901 (rl78_alloc_physical_registers_op1): Change logic to prefer
22902 symbol[BC] addressing.
22903 (frodata_section): New.
22904 (rl78_asm_init_sections): Initialize it.
22905 (rl78_select_section): Put __far readonly symbols in .frodata.
22906 (rl78_make_type_far): New.
22907 (rl78_insert_attributes): Force all readonly symbols to be
22909 (rl78_asm_out_integer): New.
22910 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
22911 * config/rl78/rl78.opt (-mes0): New.
22913 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
22914 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
22915 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
22916 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
22917 (rl78_saddr_p): New.
22918 (rl78_output_aligned_common): New.
22919 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
22920 (rl78_handle_saddr_attribute): New.
22921 (rl78_handle_naked_attribute): New.
22922 (rl78_attribute_table): Add saddr.
22923 (rl78_print_operand_1): Don't print '!' on saddr operands.
22924 (rl78_print_operand_1): Strip encodings.
22926 (rl78_strip_name_encoding): New.
22927 (rl78_attrlist_to_encoding): New.
22928 (rl78_encode_section_info): New.
22929 (rl78_asm_init_sections): New.
22930 (rl78_select_section): New.
22931 (rl78_output_labelref): New.
22932 (rl78_output_aligned_common): New.
22933 (rl78_asm_out_integer): New.
22934 (rl78_asm_ctor_dtor): New.
22935 (rl78_asm_constructor): New.
22936 (rl78_asm_destructor): New.
22938 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
22939 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
22940 (transcode_memory_rtx): Update.
22941 (rl78_expand_epilogue): Use A_REG instead of 0.
22943 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22945 * config/arm/arm-protos.h (struct tune_params): New field
22946 sched_autopref_queue_depth.
22947 * config/arm/arm.c (sched-int.h): Include header.
22948 (arm_first_cycle_multipass_dfa_lookahead_guard,)
22949 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
22950 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
22951 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
22952 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
22953 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
22954 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
22955 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
22956 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
22957 * config/arm/t-arm (arm.o): Update.
22958 * haifa-sched.c (update_insn_after_change): Update.
22959 (rank_for_schedule): Use auto-prefetcher model, if requested.
22960 (autopref_multipass_init): New static function.
22961 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
22962 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
22963 variable for debug dumps.
22964 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
22965 (autopref_multipass_dfa_lookahead_guard): New global function that
22966 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
22967 (init_h_i_d): Update.
22968 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
22969 * sched-int.h (enum autopref_multipass_data_status): New const enum.
22970 (autopref_multipass_data_): Structure for auto-prefetcher data.
22971 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
22972 (struct _haifa_insn_data:autopref_multipass_data): New field.
22973 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
22974 (autopref_multipass_dfa_lookahead_guard): Declare.
22976 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22978 * rtlanal.c (get_base_term): Handle SCRATCH.
22980 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22982 * config/aarch64/aarch64.c
22983 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
22984 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
22986 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
22987 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
22989 2015-01-17 Alan Modra <amodra@gmail.com>
22991 * cprop.c (do_local_cprop): Disallow replacement of fixed
22994 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22997 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
23000 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
23002 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
23003 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
23005 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23007 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
23008 * config/arm/thumb1.md: ... Here.
23010 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23012 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
23013 TImode for TARGET_32BIT.
23015 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23017 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
23018 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
23020 (rs6000_abi_word_mode): New function.
23022 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23024 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
23025 instead of UNITS_PER_WORD to describe the size of stack slots.
23027 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23029 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
23030 as rs6000_promote_function_mode. Move comment to there.
23031 (rs6000_promote_function_mode): New function.
23033 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23035 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
23036 -mpowerpc64 is active.
23038 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
23040 PR middle-end/64353
23041 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
23044 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
23046 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
23047 introduced in revision 219724.
23049 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23050 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23053 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
23054 destination is not a GP reg.
23055 (*movdi_aarch64): Likewise.
23057 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
23060 * config/rs6000/default64.h: Revert ISA change.
23062 2015-01-16 Richard Biener <rguenther@suse.de>
23064 PR middle-end/64614
23065 * tree-ssa-uninit.c: Include tree-cfg.h.
23066 (MAX_SWITCH_CASES): New define.
23067 (convert_control_dep_chain_into_preds): Handle switch statements.
23068 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
23069 (normalize_one_pred_1): Do not split bit-manipulations.
23072 2015-01-16 Richard Biener <rguenther@suse.de>
23074 PR tree-optimization/64568
23075 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
23076 complex load rewriting for TARGET_MEM_REFs.
23078 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
23080 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
23082 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
23085 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
23087 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
23088 (aarch64_lra_p): Remove.
23090 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
23093 * ipa-chkp.h (chkp_instrumentable_p): New.
23094 * ipa-chkp.c: Include tree-inline.h.
23095 (chkp_instrumentable_p): New.
23096 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
23097 Fix processing of not instrumentable functions.
23098 (chkp_versioning): Use chkp_instrumentable_p. Warn about
23099 not instrumentable functions.
23100 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
23101 chkp_instrumentable_p.
23102 * tree-inline.h (copy_forbidden): New.
23103 * tree-inline.c (copy_forbidden): Not static anymore.
23105 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23107 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
23110 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
23112 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
23113 type OP_OUT to OP_INOUT.
23115 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
23117 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
23118 (high x) y) to y if x and y have the same base.
23120 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
23122 * config/arm/cortex-a57.md: New.
23123 * config/aarch64/aarch64.md: Include it.
23124 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
23125 * config/aarch64/aarch64-tune.md: Regenerate.
23127 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
23130 * ccmp.c (expand_ccmp_next): New function.
23131 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
23132 and compare insn sequence.
23133 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
23134 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
23135 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
23136 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
23137 (*ccmp_ior): Changed to ccmp_ior<mode>.
23138 (cmp<mode>): New pattern.
23139 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
23141 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
23143 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
23145 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
23146 _mm256_bsrli_epi128): New.
23147 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
23149 2015-01-15 Jiong Wang <jiong.wang@arm.com>
23151 * expmed.c (store_bit_field_using_insv): Improve warning message.
23152 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
23154 2015-01-15 Jiong Wang <jiong.wang@arm.com>
23156 PR rtl-optimization/64011
23157 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
23158 there is partial overflow.
23160 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23162 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
23164 (nds32_expand_epilogue_v3pop): Likewise.
23165 * config/nds32/nds32.md (sibcall): Define this for sibling call
23167 (sibcall_register): Likewise.
23168 (sibcall_immediate): Likewise.
23169 (sibcall_value): Likewise.
23170 (sibcall_value_register): Likewise.
23171 (sibcall_value_immediate): Likewise.
23172 (sibcall_epilogue): Likewise.
23173 (epilogue): Pass false to indicate this is not a sibcall epilogue.
23174 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
23175 (nds32_expand_epilogue_v3pop): Likewise.
23177 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23179 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
23180 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
23181 (return_internal): New.
23182 (return): Define this named pattern.
23183 (simple_return): Define this named pattern.
23184 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
23185 pattern instead of unspec_volatile_func_return.
23186 (nds32_expand_epilogue_v3pop): Likewise.
23187 (nds32_can_use_return_insn): New function.
23189 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23191 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
23192 * config/nds32/nds32.md (pop25return): New.
23193 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
23194 pop25return pattern.
23196 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23198 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
23199 -mforbid-fp-as-gp, and -mex9 options.
23201 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23203 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
23204 remove -mgp-direct option.
23206 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23208 * doc/invoke.texi (--param early-inlining-insns): Update default value.
23209 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
23211 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23213 * ipa-inline.c (inline_small_functions): Work around hints
23216 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
23219 * doc/invoke.texi (Option Summary): Document new Nios II
23221 (Nios II Options): Likewise.
23222 * config/nios2/nios2.opt: Add -mgpopt= option support.
23223 Modify existing -mgpopt and -mno-gpopt options to be aliases.
23224 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
23225 * config/nios2/nios2.c (nios2_option_override): Adjust
23226 -mgpopt defaulting.
23227 (nios2_in_small_data_p): Return true for explicit small data
23228 sections even with -G0.
23229 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
23232 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23235 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
23237 (inline_call): Fix removal of aliases.
23239 2015-01-15 Jakub Jelinek <jakub@redhat.com>
23241 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
23242 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
23243 * opts.c (common_handle_option): Add -fsanitize=vptr.
23244 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
23245 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
23246 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
23247 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
23248 (ubsan_expand_vptr_ifn): New prototype.
23249 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
23250 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
23251 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
23252 expand_LOOP_VECTORIZED): Make argument nameless, remove
23254 (expand_UBSAN_VPTR): New function.
23255 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
23257 (UBSAN_VPTR): New internal function.
23258 * sanopt.c (tree_map_traits): Renamed to ...
23259 (sanopt_tree_map_traits): ... this.
23260 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
23261 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
23262 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
23263 (maybe_optimize_ubsan_vptr_ifn): New function.
23264 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
23265 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
23267 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
23268 internal calls like pure functions for aliasing, even when they
23269 have other side-effects that prevent making them ECF_PURE.
23270 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
23271 (ubsan_expand_vptr_ifn): New function.
23273 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
23275 PR rtl-optimization/64110
23276 * stmt.c (parse_output_constraint): Process '^' and '$'.
23277 (parse_input_constraint): Ditto.
23278 * lra-constraints.c (process_alt_operands): Process the new
23280 * ira-costs.c (record_reg_classes): Process the new constraint
23282 * genoutput.c (indep_constraints): Add '^' and '$'.
23283 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
23284 * doc/md.texi: Add description of the new constraints.
23286 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
23287 Bernd Schmidt <bernds@codesourcery.com>
23288 Cesar Philippidis <cesar@codesourcery.com>
23289 James Norris <jnorris@codesourcery.com>
23290 Tom de Vries <tom@codesourcery.com>
23291 Ilmir Usmanov <i.usmanov@samsung.com>
23292 Dmitry Bocharnikov <dmitry.b@samsung.com>
23293 Evgeny Gavrin <e.gavrin@samsung.com>
23294 Jakub Jelinek <jakub@redhat.com>
23296 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
23297 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23298 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23299 New function types.
23300 * builtins.c: Include "gomp-constants.h".
23301 (expand_builtin_acc_on_device): New function.
23302 (expand_builtin, is_inexpensive_builtin): Handle
23303 BUILT_IN_ACC_ON_DEVICE.
23304 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
23306 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
23308 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
23309 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
23310 i386/intelmic-offload.h.
23311 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
23312 to libgomp and its dependencies.
23313 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
23314 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
23315 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
23316 * config/ia64/hpux.h (LIB_SPEC): Likewise.
23317 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
23318 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
23319 * doc/generic.texi: Update for OpenACC changes.
23320 * doc/gimple.texi: Likewise.
23321 * doc/invoke.texi: Likewise.
23322 * doc/sourcebuild.texi: Likewise.
23323 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
23324 GF_OMP_FOR_KIND_OACC_LOOP.
23325 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
23326 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
23327 GF_OMP_TARGET_KIND_OACC_UPDATE,
23328 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
23330 * gimple.c: Update comments for OpenACC changes.
23331 * gimple.def: Likewise.
23332 * gimple.h: Likewise.
23333 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
23334 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
23335 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
23336 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
23337 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
23339 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
23340 * gimplify.c: Include "gomp-constants.h".
23341 Update comments for OpenACC changes.
23342 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
23343 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
23344 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
23345 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
23346 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
23347 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
23348 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
23349 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
23350 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
23352 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
23353 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
23354 OMP_CLAUSE_SET_MAP_KIND.
23355 (gimplify_oacc_cache): New function.
23356 (gimplify_omp_for): Handle OACC_LOOP.
23357 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
23359 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
23360 OACC_EXIT_DATA, OACC_UPDATE.
23361 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
23362 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
23363 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
23364 (gimplify_body): Consider flag_openacc next to flag_openmp.
23365 * lto-streamer-out.c: Include "gomp-constants.h".
23366 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
23367 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
23368 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
23369 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
23370 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
23371 (BUILT_IN_ACC_ON_DEVICE): New builtins.
23372 * omp-low.c: Include "gomp-constants.h".
23373 Update comments for OpenACC changes.
23374 (struct omp_context): Add reduction_map, gwv_below, gwv_this
23376 (extract_omp_for_data, use_pointer_for_field, install_var_field)
23377 (new_omp_context, delete_omp_context, scan_sharing_clauses)
23378 (create_omp_child_function, scan_omp_for, scan_omp_target)
23379 (check_omp_nesting_restrictions, lower_reduction_clauses)
23380 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
23381 Update for OpenACC changes.
23382 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
23383 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
23384 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
23385 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
23386 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
23387 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
23389 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
23390 Handle GF_OMP_FOR_KIND_OACC_LOOP.
23391 (expand_omp_target, lower_omp_target): Handle
23392 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
23393 GF_OMP_TARGET_KIND_OACC_UPDATE,
23394 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
23395 GF_OMP_TARGET_KIND_OACC_DATA.
23396 (pass_expand_omp::execute, execute_lower_omp)
23397 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
23399 (offload_symbol_decl): New variable.
23400 (oacc_get_reduction_array_id, oacc_max_threads)
23401 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
23402 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
23403 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
23404 (oacc_gimple_assign, oacc_initialize_reduction_data)
23405 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
23407 (is_targetreg_ctx): Remove function.
23408 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
23409 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
23410 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
23411 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
23412 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
23413 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
23414 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
23415 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
23416 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
23417 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
23418 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
23419 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
23420 * tree-core.h: Update comments for OpenACC changes.
23421 (enum omp_clause_map_kind): Remove.
23422 (struct tree_omp_clause): Change type of map_kind member from enum
23423 omp_clause_map_kind to unsigned char.
23424 * tree-inline.c: Update comments for OpenACC changes.
23425 * tree-nested.c: Likewise. Include "gomp-constants.h".
23426 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
23427 (convert_tramp_reference_stmt, convert_gimple_call): Update for
23428 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
23429 OMP_CLAUSE_SET_MAP_KIND.
23430 * tree-pretty-print.c: Include "gomp-constants.h".
23431 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
23432 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
23433 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
23434 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
23435 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
23436 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
23437 instead of OMP_CLAUSE_MAP_*.
23438 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
23439 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
23440 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
23441 * tree-streamer-in.c: Include "gomp-constants.h".
23442 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
23443 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
23444 * tree-streamer-out.c: Include "gomp-constants.h".
23445 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
23447 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
23448 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
23449 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
23450 * tree.c (omp_clause_num_ops): Update accordingly.
23451 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
23453 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
23454 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
23455 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
23456 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
23457 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
23458 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
23459 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
23460 (OMP_CLAUSE_SET_MAP_KIND): New macro.
23461 * varpool.c (varpool_node::get_create): Consider flag_openacc next
23463 * config/i386/intelmic-offload.h: New file.
23464 * config/nvptx/offload.h: Likewise.
23466 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23468 * explow.h: Remove duplicate contents.
23469 * dojump.h: Likewise.
23471 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
23473 * arm.c (arm_xgene_tune): Add default initializer for instruction
23476 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23480 * ipa.c (symbol_table::remove_unreachable_nodes):
23481 Do not put abstract origins into boundary.
23483 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
23485 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
23486 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
23488 2015-01-15 Steve Ellcey <sellcey@mips.com>
23490 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
23491 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
23492 builtins.def, and chkp-builtins.def.
23494 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
23496 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
23499 2015-01-15 Richard Biener <rguenther@suse.de>
23501 PR tree-optimization/61743
23502 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
23503 information on PHIs for some simple cases.
23505 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23507 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
23509 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
23510 * config/arm/arm-cores.def (xgene1): New entry.
23511 * config/arm/arm-tables.opt: Regenerate.
23512 * config/arm/arm-tune.md: Regenerate.
23513 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
23515 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
23517 * tree-if-conv.c: Include hash-map.h.
23518 (aggressive_if_conv): New variable.
23519 (fold_build_cond_expr): Add simplification of non-zero condition.
23520 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
23521 destination block is not always executed.
23522 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
23523 than two predecessors if AGGRESSIVE_IF_CONV is true.
23524 (if_convertible_stmt_p): Fix commentary.
23525 (all_preds_critical_p): New function.
23526 (has_pred_critical_p): New function.
23527 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
23528 BB can have more than two predecessors and all incoming edges can be
23530 (predicate_bbs): Skip predication for loop exit block, use build2_loc
23531 to compute predicate for true edge.
23532 (find_phi_replacement_condition): Delete this function.
23533 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
23534 Allow interchange PHI arguments if EXTENDED is false.
23535 Change check that block containing reduction statement candidate
23536 is predecessor of phi-block since phi may have more than two arguments.
23537 (phi_args_hash_traits): New helper structure.
23538 (struct phi_args_hash_traits): New type.
23539 (phi_args_hash_traits::hash): New function.
23540 (phi_args_hash_traits::equal_keys): New function.
23541 (gen_phi_arg_condition): New function.
23542 (predicate_scalar_phi): Add handling of phi nodes with more than two
23543 arguments, delete COND and TRUE_BB arguments, insert body of
23544 find_phi_replacement_condition to predicate ordinary phi nodes.
23545 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
23546 delete call of find_phi_replacement_condition and invoke
23547 predicate_scalar_phi with two arguments.
23548 (insert_gimplified_predicates): Add assert that non-predicated block
23549 don't have statements to insert.
23550 (ifcvt_split_critical_edges): New function.
23551 (ifcvt_split_def_stmt): Likewise.
23552 (ifcvt_walk_pattern_tree): Likewise.
23553 (stmt_is_root_of_bool_pattern): Likewise.
23554 (ifcvt_repair_bool_pattern): Likewise.
23555 (ifcvt_local_dce): Likewise.
23556 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
23557 is copy of inner or outer loop force_vectorize field, invoke
23558 ifcvt_split_critical_edges, ifcvt_local_dce and
23559 ifcvt_repair_bool_pattern for aggressive if-conversion.
23561 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
23563 * config/aarch64/aarch64.md: Include xgene1.md.
23564 * config/aarch64/xgene1.md: New file.
23566 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23568 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
23569 xgene1 (APM XGene-1) core definition.
23570 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
23571 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
23572 * doc/invoke.texi: Document -mcpu=xgene1.
23574 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23576 * dojump.h: New header file.
23577 * explow.h: Likewise.
23578 * expr.h: Remove includes.
23579 Move expmed.c prototypes to expmed.h.
23580 Move dojump.c prototypes to dojump.h.
23581 Move alias.c prototypes to alias.h.
23582 Move explow.c prototypes to explow.h.
23583 Move calls.c prototypes to calls.h.
23584 Move emit-rtl.c prototypes to emit-rtl.h.
23585 Move varasm.c prototypes to varasm.h.
23586 Move stmt.c prototypes to stmt.h.
23587 (saved_pending_stack_adjust): Move to dojump.h.
23588 (adjust_address): Move to explow.h.
23589 (adjust_address_nv): Move to emit-rtl.h.
23590 (adjust_bitfield_address): Likewise.
23591 (adjust_bitfield_address_size): Likewise.
23592 (adjust_bitfield_address_nv): Likewise.
23593 (adjust_automodify_address_nv): Likewise.
23594 * explow.c (expr_size): Move to expr.c.
23595 (int_expr_size): Likewise.
23596 (tree_expr_size): Likewise.
23597 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23598 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
23599 * genemit.c (main): Generate includes statistics.h, real.h,
23600 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
23602 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
23603 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
23604 explow.h, emit-rtl.h, stmt.h.
23605 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
23606 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
23607 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
23608 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
23609 emit-rtl.h, varasm.h, stmt.h.
23610 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
23611 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
23612 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
23613 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
23614 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
23615 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
23616 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
23617 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
23618 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
23619 tm.h tree.h varasm.h vec.h wide-int.h.
23620 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23621 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
23622 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
23623 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
23624 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
23625 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
23626 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
23627 * loop-iv.c: Likewise.
23628 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
23629 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
23630 statistics.h stmt.h tree.h varasm.h wide-int.h.
23631 * lra-constraints.c: Likewise.
23632 * lra-eliminations.c: Likewise.
23633 * lra-lives.c: Likewise.
23634 * lra-remat.c: Likewise.
23635 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23636 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
23637 statistics.h stmt.h tree.h varasm.h wide-int.h.
23638 * hw-doloop.c: Likewise.
23639 * ira-color.c: Likewise.
23640 * ira-emit.c: Likewise.
23641 * loop-doloop.c: Likewise.
23642 * loop-invariant.c: Likewise.
23643 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23644 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
23645 statistics.h stmt.h tree.h varasm.h wide-int.h.
23646 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
23647 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
23648 statistics.h stmt.h tree.h varasm.h wide-int.h.
23649 * combine-stack-adj.c: Likewise.
23652 * ifcvt.c: Likewise.
23653 * ira-costs.c: Likewise.
23654 * jump.c: Likewise.
23655 * lra-coalesce.c: Likewise.
23656 * lra-spills.c: Likewise.
23657 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23658 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
23659 stmt.h varasm.h wide-int.h.
23660 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23661 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
23663 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
23664 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
23665 statistics.h stmt.h varasm.h wide-int.h.
23666 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
23667 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
23668 varasm.h wide-int.h.
23669 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
23670 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23671 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
23672 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
23673 statistics.h stmt.h.
23674 * config/tilepro/tilepro.c: Likewise.
23675 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
23676 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
23677 * config/pdp11/pdp11.c: Likewise.
23678 * config/xtensa/xtensa.c: Likewise.
23679 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
23680 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
23682 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23683 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
23684 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
23685 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23686 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
23687 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
23688 * rtl-chkp.c: Likewise.
23689 * tree-chkp-opt.c: Likewise.
23690 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
23691 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
23692 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
23693 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23694 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
23695 statistics.h stmt.h.
23696 * tree-vect-data-refs.c: Likewise.
23697 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
23698 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23699 rtl.h statistics.h stmt.h varasm.h.
23700 * internal-fn.c: Likewise.
23701 * ipa-icf-gimple.c: Likewise.
23702 * lto-section-out.c: Likewise.
23703 * tree-data-ref.c: Likewise.
23704 * tree-nested.c: Likewise.
23705 * tree-outof-ssa.c: Likewise.
23706 * tree-predcom.c: Likewise.
23707 * tree-pretty-print.c: Likewise.
23708 * tree-scalar-evolution.c: Likewise.
23709 * tree-ssa-strlen.c: Likewise.
23710 * tree-vect-loop.c: Likewise.
23711 * tree-vect-patterns.c: Likewise.
23712 * tree-vect-slp.c: Likewise.
23713 * tree-vect-stmts.c: Likewise.
23714 * tsan.c: Likewise.
23715 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23716 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
23718 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
23719 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23720 statistics.h stmt.h varasm.h.
23721 * loop-unroll.c: Likewise.
23722 * ubsan.c: Likewise.
23723 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
23724 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
23726 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23727 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
23728 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
23729 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
23730 statistics.h stmt.h.
23731 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
23732 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
23733 statistics.h stmt.h varasm.h.
23734 * gimple-match-head.c: Likewise.
23735 * lto-cgraph.c: Likewise.
23736 * lto-section-in.c: Likewise.
23737 * lto-streamer-in.c: Likewise.
23738 * lto-streamer-out.c: Likewise.
23739 * tree-affine.c: Likewise.
23740 * tree-cfg.c: Likewise.
23741 * tree-cfgcleanup.c: Likewise.
23742 * tree-if-conv.c: Likewise.
23743 * tree-into-ssa.c: Likewise.
23744 * tree-ssa-alias.c: Likewise.
23745 * tree-ssa-copyrename.c: Likewise.
23746 * tree-ssa-dse.c: Likewise.
23747 * tree-ssa-forwprop.c: Likewise.
23748 * tree-ssa-live.c: Likewise.
23749 * tree-ssa-math-opts.c: Likewise.
23750 * tree-ssa-pre.c: Likewise.
23751 * tree-ssa-sccvn.c: Likewise.
23752 * tree-tailcall.c: Likewise.
23753 * tree-vect-generic.c: Likewise.
23754 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23755 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
23756 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23757 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
23758 * varasm.c: Likewise.
23759 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23760 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
23762 * init-regs.c: Likewise.
23764 * omp-low.c: Likewise.
23765 * stack-ptr-mod.c: Likewise.
23766 * tree-ssa-reassoc.c: Likewise.
23767 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23768 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
23770 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23771 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
23772 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23773 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
23774 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23775 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
23776 * tree-ssa-phiopt.c: Likewise.
23777 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23778 fixed-value.h hashtab.h real.h statistics.h stmt.h.
23779 * config/fr30/fr30.c: Likewise.
23780 * config/frv/frv.c: Likewise.
23781 * expr.c: Likewise.
23782 * final.c: Likewise.
23783 * optabs.c: Likewise.
23784 * passes.c: Likewise.
23785 * simplify-rtx.c: Likewise.
23786 * stmt.c: Likewise.
23787 * toplev.c: Likewise.
23788 * var-tracking.c: Likewise.
23789 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23790 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23791 * lower-subreg.c: Likewise.
23792 * postreload-gcse.c: Likewise.
23794 * reginfo.c: Likewise.
23795 * store-motion.c: Likewise.
23796 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23797 fixed-value.h hashtab.h real.h stmt.h varasm.h.
23798 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23799 fixed-value.h hashtab.h statistics.h stmt.h.
23800 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23801 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
23802 * except.c: Likewise.
23803 * explow.c: Likewise.
23804 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23805 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
23807 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23808 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
23809 * tree-ssa-structalias.c: Likewise.
23810 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23811 fixed-value.h insn-config.h real.h statistics.h.
23812 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23813 fixed-value.h insn-config.h real.h statistics.h stmt.h.
23814 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23815 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
23816 * cfgbuild.c: Likewise.
23817 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23818 fixed-value.h real.h rtl.h statistics.h stmt.h.
23819 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23820 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23821 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23822 fixed-value.h real.h statistics.h stmt.h.
23823 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23824 fixed-value.h real.h statistics.h stmt.h varasm.h.
23825 * cprop.c: Likewise.
23826 * modulo-sched.c: Likewise.
23827 * postreload.c: Likewise.
23828 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
23829 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
23830 statistics.h stmt.h varasm.h.
23831 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
23832 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23833 rtl.h statistics.h stmt.h varasm.h.
23834 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
23835 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
23837 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
23838 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
23840 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
23841 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
23843 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
23844 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23845 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23846 function.h real.h statistics.h stmt.h varasm.h.
23847 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23848 insn-config.h real.h statistics.h stmt.h.
23849 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23850 statistics.h stmt.h.
23851 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
23852 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
23853 statistics.h stmt.h varasm.h.
23854 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
23855 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
23856 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23857 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
23858 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
23859 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
23860 statistics.h stmt.h varasm.h.
23861 * ipa-polymorphic-call.c: Likewise.
23862 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
23863 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23864 statistics.h stmt.h.
23865 * config/c6x/c6x.c: Likewise.
23866 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
23867 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23868 statistics.h stmt.h varasm.h.
23869 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
23870 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
23872 * ipa-split.c: Likewise.
23873 * tree-eh.c: Likewise.
23874 * tree-ssa-dce.c: Likewise.
23875 * tree-ssa-loop-niter.c: Likewise.
23876 * tree-vrp.c: Likewise.
23877 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
23878 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
23880 * config/nds32/nds32-fp-as-gp.c: Likewise.
23881 * config/nds32/nds32-intrinsic.c: Likewise.
23882 * config/nds32/nds32-isr.c: Likewise.
23883 * config/nds32/nds32-md-auxiliary.c: Likewise.
23884 * config/nds32/nds32-memory-manipulation.c: Likewise.
23885 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23886 * config/nds32/nds32-predicates.c: Likewise.
23887 * config/nds32/nds32.c: Likewise.
23888 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
23889 fixed-value.h hashtab.h real.h statistics.h.
23890 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
23891 fixed-value.h hashtab.h real.h statistics.h stmt.h.
23892 * config/arm/arm.c: Likewise.
23893 * config/avr/avr.c: Likewise.
23894 * config/bfin/bfin.c: Likewise.
23895 * config/h8300/h8300.c: Likewise.
23896 * config/i386/i386.c: Likewise.
23897 * config/ia64/ia64.c: Likewise.
23898 * config/iq2000/iq2000.c: Likewise.
23899 * config/m32c/m32c.c: Likewise.
23900 * config/m32r/m32r.c: Likewise.
23901 * config/m68k/m68k.c: Likewise.
23902 * config/mcore/mcore.c: Likewise.
23903 * config/mep/mep.c: Likewise.
23904 * config/mips/mips.c: Likewise.
23905 * config/mn10300/mn10300.c: Likewise.
23906 * config/moxie/moxie.c: Likewise.
23907 * config/pa/pa.c: Likewise.
23908 * config/rl78/rl78.c: Likewise.
23909 * config/rx/rx.c: Likewise.
23910 * config/s390/s390.c: Likewise.
23911 * config/sh/sh.c: Likewise.
23912 * config/sparc/sparc.c: Likewise.
23913 * config/spu/spu.c: Likewise.
23914 * config/stormy16/stormy16.c: Likewise.
23915 * config/v850/v850.c: Likewise.
23916 * config/vax/vax.c: Likewise.
23917 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
23918 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23919 * config/msp430/msp430.c: Likewise.
23920 * predict.c: Likewise.
23921 * value-prof.c: Likewise.
23922 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
23923 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
23924 * config/microblaze/microblaze.c: Likewise.
23925 * config/nios2/nios2.c: Likewise.
23926 * config/rs6000/rs6000.c: Likewise.
23927 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23928 insn-config.h real.h rtl.h statistics.h stmt.h.
23929 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23930 insn-config.h real.h statistics.h stmt.h.
23931 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
23932 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
23933 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
23934 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23935 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
23936 fixed-value.h real.h statistics.h stmt.h.
23937 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
23938 fixed-value.h statistics.h stmt.h.
23939 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
23942 2015-01-15 Jakub Jelinek <jakub@redhat.com>
23944 * gengtype.c (create_user_defined_type): Workaround
23945 -Wmaybe-uninitialized false positives.
23946 * cse.c (fold_rtx): Likewise.
23947 * loop-invariant.c (gain_for_invariant): Likewise.
23949 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
23951 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
23952 set the memory attributes in all cases but clear MEM_EXPR if need be.
23954 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
23956 PR tree-optimization/64434
23957 * cfgexpand.c (reorder_operands): New function.
23958 (expand_gimple_basic_block): Insert call of reorder_operands if
23961 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
23963 * config/mips/micromips.md (*swp): Remove explicit parallel.
23964 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
23965 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
23966 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
23967 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
23968 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
23969 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
23970 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
23971 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
23972 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
23973 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
23974 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
23975 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
23976 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
23977 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
23978 (mips_wrdsp): Likewise.
23979 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
23981 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
23982 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
23983 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
23984 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
23985 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
23986 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
23987 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
23988 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
23989 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
23991 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
23993 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
23994 (mips_print_operand): Support 'y' to print exact log2 in decimal
23996 * config/mips/mips.h (ISA_HAS_LSA): New define.
23997 (ISA_HAS_DLSA): Likewise.
23998 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
23999 * config/mips/predicates.md (const_immlsa_operand): New predicate.
24001 2015-01-15 Martin Liska <mliska@suse.cz>
24004 * optc-save-gen.awk: Add support for array types.
24006 2015-01-15 Richard Biener <rguenther@suse.de>
24008 PR middle-end/64365
24009 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
24010 for MEM_REF access functions with the same base can never partially
24013 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
24015 * common.opt: New option -fstack-protector-explicit.
24016 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
24017 (stack_protect_decl_phase): Handle stack_protect attribute for
24018 explicit stack protection requests.
24019 (expand_used_vars): Similarly.
24020 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
24021 * doc/extend.texi: Add documentation for "stack_protect" attribute.
24022 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
24024 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
24027 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
24029 (sh_extending_set_of_reg): New struct.
24030 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
24031 sh_remove_reg_dead_or_unused_notes): New Declarations.
24032 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
24033 sh_find_extending_set_of_reg, sh_split_tst_subregs,
24034 sh_extending_set_of_reg::use_as_extended_reg): New functions.
24035 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
24036 convert to insn_and_split and use new function sh_split_tst_subregs.
24038 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
24040 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
24042 (Optimization Options): Move -fuse-ld documentation to...
24043 (Link Options): ...here.
24045 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24047 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
24049 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
24050 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
24051 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
24052 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
24053 instead of ZR for the memory operand of LL/SC.
24054 (compare_and_swap_12, sync_add<mode>): Likewise.
24055 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
24056 (sync_new_<optab>_12, sync_nand_12): Likewise.
24057 (sync_old_nand_12, sync_new_nand_12): Likewise.
24058 (sync_sub<mode>, sync_old_add<mode>): Likewise.
24059 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
24060 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
24061 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
24062 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
24063 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
24064 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
24065 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
24066 * doc/md.texi (ZC): Update description.
24068 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
24070 * builtins.c (expand_builtin_atomic_exchange): Remove error when
24071 memory model is CONSUME.
24072 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
24073 expand_builtin_atomic_store): Change invalid memory model errors to
24075 (expand_builtin_atomic_clear): Change invalid model errors to warnings
24076 and issue warning for CONSUME.
24078 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
24080 * lto-cgraph: Update function comments for
24081 lto_symtab_encoder_encode_*.
24083 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
24085 * Makefile.in (site.exp): Do not set ENABLE_LTO.
24087 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
24089 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
24090 * lto-cgraph.c (select_what_to_stream): Remove argument, use
24091 lto_stream_offload_p instead.
24092 * lto-streamer.h (select_what_to_stream): Remove argument.
24093 * passes.c (ipa_write_summaries): Likewise.
24094 * tree-pass.h (ipa_write_summaries): Likewise.
24096 2015-01-14 Richard Biener <rguenther@suse.de>
24098 PR tree-optimization/59354
24099 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
24100 groups larger than the slp group size as having gaps.
24102 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
24104 PR middle-end/59448
24105 * builtins.c (get_memmodel): Promote consume to acquire always.
24107 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24110 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
24113 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24116 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
24118 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
24119 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
24120 AVX512VBMI, as it implies AVX512BW.
24122 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24125 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
24126 (vec_unpacks_hi_v16sf): Ditto.
24128 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24130 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
24133 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24135 * doc/invoke.texi (mapcs): Mention deprecation.
24136 (mapcs-frame): Likewise.
24138 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
24141 * config/arm/arm.c (callee_saved_reg_p): Define.
24142 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
24143 register is callee saved instead of !call_used_regs[reg].
24144 (thumb1_compute_save_reg_mask): Likewise.
24146 2015-01-14 Hale Wang <hale.wang@arm.com>
24148 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
24151 2015-01-14 Richard Biener <rguenther@suse.de>
24154 * tree-inline.c (insert_debug_decl_map): Check destination
24155 function MAY_HAVE_DEBUG_STMTS.
24156 (insert_init_debug_bind): Likewise.
24157 (insert_init_stmt): Remove redundant check.
24158 (remap_gimple_stmt): Drop debug stmts if the destination
24159 function has var-tracking assignments disabled.
24161 2015-01-14 Martin Liska <mliska@suse.cz>
24163 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
24164 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
24166 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24169 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
24170 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
24172 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24174 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
24175 level from an ARCH; do not inject the default.
24176 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
24177 MIPS_ISA_LEVEL_SPEC.
24178 (MIPS_ISA_NAN2008_SPEC): Update comment.
24179 (BASE_DRIVER_SELF_SPECS): Likewise.
24180 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
24181 MIPS_DEFAULT_ISA_LEVEL_SPEC.
24182 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
24183 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
24184 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
24186 2015-01-14 Richard Biener <rguenther@suse.de>
24188 PR tree-optimization/64493
24189 PR tree-optimization/64495
24190 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
24191 assign the proper vectorized PHI to the inner loop exit PHIs.
24193 2015-01-14 Joey Ye <joey.ye@arm.com>
24195 * config/arm/arm.c (arm_compute_save_reg_mask):
24196 Do not save lr in case of tail call.
24197 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
24199 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
24201 * tree-vrp.c (check_array_ref): Emit more warnings
24202 for warn_array_bounds >= 2.
24203 * common.opt: New option -Warray-bounds=.
24204 * doc/invoke.texi: Document -Warray-bounds=.
24206 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
24208 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
24209 (mforbid-fp-as-gp): Remove.
24211 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
24212 (nds32_symbol_load_store_p): Remove.
24213 (nds32_fp_as_gp_check_available): Clean up implementation.
24214 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
24216 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
24217 fp-as-gp and ex9 cases.
24219 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24221 * tree-profile.c (init_ic_make_global_vars): Drop workaround
24222 for bintuils bug 14342.
24223 (init_ic_make_global_vars): Likewise.
24224 (gimple_init_edge_profiler): Likewise.
24225 (gimple_gen_ic_func_profiler): Likewise.
24227 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24229 * ipa-inline.c (inline_small_functions): Swap the operands in
24232 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24235 * ipa-inline-analysis.c (node_growth_cache): Remove.
24236 (initialize_growth_caches): Do not initialize it.
24237 (free_growth_caches): Do not free it.
24238 (do_estimate_growth): Rename to ...
24239 (estimate_growth): ... this one; drop growth cache code.
24240 (growth_likely_positive): Always go the heuristics way.
24241 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
24242 (reset_edge_caches): Do not reset node growth.
24243 (heap_edge_removal_hook): Do not maintain cache.
24244 (inline_small_functions): Likewise; strenghten sanity check.
24245 (ipa_inline): Do not maintain caches.
24246 * ipa-inline.h (node_growth_cache): Remove.
24247 (do_estimate_growth): Remove to ...
24248 (estimate_growth): this one; remove inline version.
24249 (reset_node_growth_cache): Remove.
24251 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24254 * ipa-inline.c (inline_small_functions): Update callee keys after
24255 resolving speculation
24256 (inline_small_functions): Always check monotonicity of the queue.
24258 2015-01-13 Marek Polacek <polacek@redhat.com>
24260 PR middle-end/64391
24261 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
24263 2015-01-13 Jakub Jelinek <jakub@redhat.com>
24265 PR rtl-optimization/64286
24266 * ree.c (combine_reaching_defs): Move part of comment earlier,
24267 remove !SCALAR_INT_MODE_P check.
24268 (add_removable_extension): Don't add vector mode
24269 extensions if all uses of the source register aren't the same
24272 2015-01-13 Renlin Li <renlin.li@arm.com>
24274 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
24275 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
24277 2015-01-13 Martin Liska <mliska@suse.cz>
24279 * ipa-icf.c (sem_function::equals_private): Call new functions
24280 cl_target_option_print_diff and cl_optimization_print_diff.
24281 * optc-save-gen.awk (cl_target_option_print_diff): New function.
24282 (cl_optimization_print_diff): Likewise.
24283 * opth-gen.awk: Likewise.
24285 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
24287 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
24288 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
24289 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
24290 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
24291 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
24292 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
24294 2015-01-13 Andrew Pinski <apinski@cavium.com>
24296 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
24297 instead of src mode.
24299 2015-01-13 Richard Biener <rguenther@suse.de>
24302 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
24305 2015-01-13 Andrew Pinski <apinski@cavium.com>
24307 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
24309 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
24311 2015-01-13 Jakub Jelinek <jakub@redhat.com>
24313 PR middle-end/63974
24314 * cfgexpand.c (expand_computed_goto): Don't call
24315 convert_memory_address here.
24317 2015-01-13 Richard Biener <rguenther@suse.de>
24319 PR tree-optimization/64406
24320 * tree-loop-distibution.c (pass_loop_distribution::execute):
24321 Reset the SCEV hashtable if we distributed anything.
24323 2015-01-13 Richard Biener <rguenther@suse.de>
24325 PR tree-optimization/64404
24326 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
24327 SLP types for CSEd loads.
24329 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
24331 PR tree-optimization/64436
24332 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
24333 merge of two symbolic numbers for a bitwise OR to ...
24334 (perform_symbolic_merge): This. Also fix computation of the range and
24335 end of the symbolic number corresponding to the result of a bitwise OR.
24337 2015-01-13 Richard Biener <rguenther@suse.de>
24339 PR tree-optimization/64568
24340 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
24341 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
24343 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24345 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
24346 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
24348 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24350 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
24351 target-specific symbol_ref flag.
24352 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
24353 resides in rodata section.
24354 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
24355 (nds32_encode_section_info): New function.
24357 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24359 * config/nds32/nds32.md (call): Use pseudo instruction bal which
24360 clobbers TA_REGNUM if large code model is specified.
24361 (call_register): Likewise.
24362 (call_immediate): Likewise.
24363 (call_value): Likewise.
24364 (call_value_register): Likewise.
24365 (call_value_immediate): Likewise.
24367 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24369 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
24370 (TARGET_CMODEL_MEDIUM): New macro.
24371 (TARGET_CMODEL_LARGE): New macro.
24372 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
24373 code model setting in assembly code.
24375 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24377 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24378 Remove MASK_GP_DIRECT flag.
24379 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
24380 one of the multilib default options.
24381 * config/nds32/nds32.opt (mgp-direct): Remove.
24382 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
24383 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
24385 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24387 * config/nds32/nds32.opt (mcmodel): Add new option.
24388 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
24389 to describe code model.
24391 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
24394 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
24396 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
24398 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
24399 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24400 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
24401 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
24402 __builtin_sh_set_fpscr.
24404 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
24406 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
24407 after a funtion name just to indicate it is a function.
24408 ([-fsanitize-undefined-trap-on-error]): Likewise.
24409 ([-fdbg-cnt=]): Likewise.
24410 ([-mmemcpy]): Likewise.
24411 ([-mflush-func]): Likewise.
24412 ([-msynci]): Likewise.
24414 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
24416 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
24419 2015-01-12 Jakub Jelinek <jakub@redhat.com>
24421 PR tree-optimization/64563
24422 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
24423 instead of != VR_VARYING.
24426 * config/i386/i386.c (ix86_expand_prologue): Add
24427 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
24429 PR tree-optimization/64454
24430 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
24431 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
24432 for signed or [0, op1 - 1] for unsigned modulo.
24433 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
24434 even if op1 does not satisfy integer_pow2p.
24437 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
24439 2015-01-12 Jeff Law <law@redhat.com>
24442 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
24443 (trunchiqi2, truncsihi2): Similarly.
24445 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
24446 rather than calling F.
24448 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
24450 * tsan.c (instrument_expr): Use force_gimple_operand.
24451 Use may_be_nonaddressable_p instead of is_gimple_addressable.
24453 2015-01-12 Richard Biener <rguenther@suse.de>
24455 PR tree-optimization/64530
24456 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
24459 2015-01-12 Richard Biener <rguenther@suse.de>
24461 PR middle-end/64357
24462 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
24465 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24467 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
24468 Cortex-A17 tuning parameters.
24469 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
24471 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24473 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
24474 * config/arm/arm.c (arm_macro_fusion_p): New function.
24475 (arm_macro_fusion_pair_p): Likewise.
24476 (TARGET_SCHED_MACRO_FUSION_P): Define.
24477 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
24478 (ARM_FUSE_NOTHING): Likewise.
24479 (ARM_FUSE_MOVW_MOVT): Likewise.
24480 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
24481 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
24482 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
24483 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
24484 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
24485 arm_cortex_a5_tune): Specify fuseable_ops value.
24487 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
24490 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
24491 test for PIE with copy reloc.
24492 * configure: Regenerated.
24494 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24496 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
24498 (arm_tls_descseq_addr): Likewise.
24499 (arm_gen_movmemqi): Likewise.
24500 (arm_expand_epilogue_apcs_frame): Likewise.
24501 (arm_expand_epilogue): Likewise.
24502 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
24505 2015-01-12 Martin Liska <mliska@suse.cz>
24508 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
24509 volatility for correct operands.
24511 2015-01-12 Martin Liska <mliska@suse.cz>
24513 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
24514 indication that a function is not leaf.
24515 (sem_function::compare_polymorphic_p): Likewise.
24517 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24519 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
24520 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
24521 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
24522 fold-const.h, tree-check.h.
24524 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
24528 * ipa-inline.c (compute_uninlined_call_time,
24529 compute_inlined_call_time): Use counts for extra precision when
24531 (big_speedup_p): Fix formating.
24532 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
24533 (relative_time_benefit): Remove.
24534 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
24535 merge guessed and read profile paths.
24536 (inline_small_functions): Count only !optimize_size functions into
24537 initial size; be more lax about sanity check when profile is used;
24538 be sure to update inlined function profile when profile is read.
24540 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
24543 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
24544 cost when edge becomes direct.
24545 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
24546 is resolved or when introducing new speculation.
24548 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
24552 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
24553 '||' to fix typo issue.
24555 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
24556 accept and return NULL.
24558 2015-01-12 Martin Liska <mliska@suse.cz>
24560 * cgraph.c (cgraph_edge::remove_callee): Move function to header
24561 file for being inlined.
24562 (cgraph_set_edge_callee): Delete.
24563 (cgraph_edge::redirect_callee): Move function to header file
24565 (cgraph_edge::make_direct): Use new function.
24566 (cgraph_edge::dump_edge_flags): New function created from
24567 static dump_edge_flags function.
24568 (cgraph_node::dump): Use new function.
24569 (cgraph_edge::verify_count_and_frequency): New function created
24570 from verify_edge_count_and_frequency.
24571 (cgraph_edge::verify_corresponds_to_fndecl): New function created
24572 from verify_edge_corresponds_to_fndecl.
24573 (verify_edge_corresponds_to_fndecl): Delete.
24574 (cgraph_node::verify_node): Use new function.
24575 * cgraph.h (cgraph_edge::set_callee): New function.
24576 (cgraph_edge::dump_edge_flags): Likewise.
24577 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
24579 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
24581 * ipa-utils.c (estimate_function_body_sizes): Do not
24582 free node params when called late with early=true.
24584 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
24586 * doc/md.texi (Instruction Patterns): Rewrite text for
24588 (Example): Likewise.
24590 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
24592 * doc/invoke.texi (Option Summary): Break long lines.
24593 [(-fdiagnostics-color)]: Put long literal in @smallexample
24595 [(-fsanitize-recover)]: Likewise.
24596 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
24597 [(-ffast-math)]: Likewise.
24598 [(--param max-inline-insns-recursive)]: Likewise.
24599 [(--param max-inline-recursive-depth)]: Likewise.
24600 [(-mno-text-section-literals)]: Likewise.
24602 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
24604 * doc/install.texi: Update for libgomp being renamed from "GNU
24605 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
24607 * doc/sourcebuild.texi: Likewise.
24609 2015-01-10 Anthony Green <green@moxielogic.com>
24611 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
24612 mul.x availability for moxiebox configuration.
24614 2015-01-09 Anthony Green <green@moxielogic.com>
24616 * config/moxie/moxie.md: Tabify assembly output.
24618 2015-01-09 Anthony Green <green@moxielogic.com>
24620 * config/moxie/moxie.md (CC_REG): Correct register definition.
24622 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
24624 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
24625 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
24628 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
24630 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
24632 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
24633 Jakub Jelinek <jakub@redhat.com>
24635 PR middle-end/64412
24636 * lto-streamer.h (lto_stream_offload_p): New declaration.
24637 * lto-streamer.c (lto_stream_offload_p): New variable.
24638 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
24639 at the same time as section_name_prefix.
24640 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
24641 if lto_stream_offload_p.
24642 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
24643 stream TREE_TARGET_OPTION if lto_stream_offload_p.
24644 (write_ts_function_decl_tree_pointers): Don't
24645 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
24646 * tree-streamer-in.c (unpack_value_fields): Don't stream
24647 TREE_TARGET_OPTION in if ACCEL_COMPILER.
24648 (lto_input_ts_function_decl_tree_pointers): Don't stream
24649 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
24650 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
24651 instead of section_name_prefix string comparisons.
24653 2015-01-09 Jakub Jelinek <jakub@redhat.com>
24655 PR rtl-optimization/64536
24656 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
24659 2015-01-09 Michael Collison <michael.collison@linaro.org>
24661 PR tree-optimization/64322
24662 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
24663 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
24665 2015-01-09 Tom de Vries <tom@codesourcery.com>
24667 PR rtl-optimization/64539
24668 * regcprop.c (kill_clobbered_values): Factor out of ...
24669 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
24670 instead of note_stores with kill_clobbered_value.
24672 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
24674 * ginclude/unwind-arm-common.h: Revert previous commit.
24676 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
24678 * config.gcc (arm*-*-freebsd*): New configuration.
24679 * config/arm/freebsd.h: New file.
24680 * config.host: Add extra components for arm*-*-freebsd*.
24681 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
24682 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
24684 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24686 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
24688 * config/rs6000/t-rtems: Add e6500 multilibs.
24690 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24692 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
24695 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24697 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
24698 MULTILIB_EXCEPTIONS.
24700 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24702 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
24703 MULTILIB_EXCEPTIONS.
24705 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24707 * config/arm/t-rtems-eabi: Rename to...
24708 * config/arm/t-rtems: ...this.
24709 * config/arm/rtems-eabi.h: Rename to...
24710 * config/arm/rtems.h: ...this.
24711 * config.gcc (arm*-*-rtems*): Reflect changes above.
24713 2015-01-09 Richard Biener <rguenther@suse.de>
24715 PR tree-optimization/64410
24716 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
24718 (execute_update_addresses_taken): Deal with that.
24719 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
24720 loads/stores for complex variables.
24722 2015-01-09 Martin Liska <mliska@suse.cz>
24724 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
24726 (func_checker::compare_memory_operand): New function.
24727 (func_checker::compare_operand): Split case to newly
24729 (func_checker::compare_cst_or_decl): New function.
24730 (func_checker::compare_gimple_call): Identify
24732 (func_checker::compare_gimple_assign): Likewise.
24733 * ipa-icf-gimple.h: New function.
24735 2015-01-09 Martin Liska <mliska@suse.cz>
24738 * sreal.c (sreal::dump): Change unsigned format to signed for
24740 (sreal::to_double): Replace exp2 with scalbln.
24742 2015-01-09 Martin Liska <mliska@suse.cz>
24744 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
24745 * ipa-icf.c (sem_function::equals_private): Add support for target and
24746 (sem_item_optimizer::merge_classes): Remove redundant function
24747 optimization flags comparison.
24748 * tree.h (target_opts_for_fn): New function.
24750 2015-01-09 Tom de Vries <tom@codesourcery.com>
24752 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
24754 2015-01-09 Kito Cheng <kito@0xlab.org>
24756 PR rtl-optimization/64348
24757 * lra-constraints.c (split_reg): Fix caller-save store/restore
24758 instruction generation.
24760 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
24762 PR gcov-profile/61790
24763 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
24764 long long. Fallback to int64_t if host doesn't have long long and
24765 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
24767 2015-01-08 Jakub Jelinek <jakub@redhat.com>
24769 PR tree-optimization/63989
24770 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
24771 from 1000 to 10000.
24772 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
24773 (get_stridx): If we don't have a record for certain SSA_NAME,
24774 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
24775 constant offset, call get_stridx_plus_constant.
24776 (get_stridx_plus_constant): New function.
24777 (zero_length_string): Don't use get_stridx here.
24780 PR middle-end/64388
24781 * dse.c (struct insn_info): Mention frame_read set also
24782 before reload for tail calls on some targets.
24783 (scan_insn): Revert 2014-12-22 change. Set frame_read
24784 also before reload for tail calls if
24785 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
24786 instead of add_non_frame_wild_read for non-const/memset
24787 tail calls after reload.
24789 2015-01-08 Jason Merrill <jason@redhat.com>
24791 * ubsan.c (do_ubsan_in_current_function): New.
24792 (pass_ubsan::gate): Use it.
24793 * ubsan.h: Declare it.
24794 * convert.c (convert_to_integer): Use it.
24796 2015-01-08 Jakub Jelinek <jakub@redhat.com>
24799 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
24800 compare_code when it is unconditionally overwritten afterwards.
24801 Use ix86_reverse_condition instead of reverse_condition. Don't
24802 change code if *reverse_condition* returned UNKNOWN and don't
24803 swap ct/cf and negate diff in that case.
24805 2015-01-08 Mike Stump <mikestump@comcast.net>
24807 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
24808 (pass_tsan_O0::gate): Likewise.
24809 * extend.texi (Function Attributes): Add no_sanitize_thread
24812 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
24814 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
24815 for registering builtins.
24816 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
24817 add -fopenmp to the argv_obstack used when invoking
24818 compile_for_target.
24820 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
24821 add "-m32" or "-m64" to argv_obstack.
24822 (generate_host_descr_file): Likewise, when invoking host_compiler.
24823 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
24826 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
24828 * config/sh/sh-mem.cc: Use constant as second operand when emitting
24831 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
24834 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
24835 constant load if constant operand fits into I08.
24837 2015-01-08 Jakub Jelinek <jakub@redhat.com>
24840 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
24841 and TREE_THIS_VOLATILE for MEM_REFs.
24842 (build5_stat): Fix up initialization of TREE_READONLY and
24843 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
24845 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
24848 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
24849 of r for the second alternative of the destination operand.
24851 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
24854 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
24856 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
24858 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
24860 ([-fivar-visibility], [-fvisibility]): Likewise.
24862 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
24864 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
24865 the file where @code, @command, etc is more appropriate.
24867 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
24869 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
24870 of -mrecip= documentation.
24872 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24875 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
24876 correct reload handler if -m32 -mpowerpc64 is used.
24878 2015-01-06 Tom de Vries <tom@codesourcery.com>
24880 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
24882 2015-01-08 Christian Bruel <christian.bruel@st.com>
24885 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
24887 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
24889 PR tree-optimization/63259
24890 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
24891 if optab exists for 16bit byteswap.
24893 2015-01-06 Jakub Jelinek <jakub@redhat.com>
24895 * opts.c (common_handle_option): Add support for
24896 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
24897 * doc/invoke.texi: Document -fno-sanitize=all,
24898 -f{,no-}sanitize-recover=all. Document that
24899 -fsanitize=float-cast-overflow is not enabled
24900 by -fsanitize=undefined. Fix up documentation
24901 of -f{,no-}sanitize-recover.
24903 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
24905 * config.gcc: Add Visium support.
24906 * configure.ac: Likewise.
24907 * configure: Regenerate.
24908 * doc/extend.texi (interrupt attribute): Add Visium.
24909 * doc/invoke.texi: Document Visium options.
24910 * doc/install.texi: Document Visium target.
24911 * doc/md.texi: Document Visium constraints.
24912 * common/config/visium: New directory.
24913 * config/visium: Likewise.
24915 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
24917 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
24918 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
24920 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
24922 * combine.c (combine_validate_cost): Do not count the cost of a
24923 split I2 twice. Do not display it twice in the dump, either.
24925 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
24927 Revert parts of r219199.
24928 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
24930 ([-Wtraditional]): Restore markup on <limits.h>.
24932 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
24935 * doc/invoke.texi: Document -Wsuggest-override.
24937 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
24939 PR rtl-optimization/64287
24940 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
24941 (process_options): Disable flag_ipa_ra if profiling.
24943 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
24945 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
24947 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
24949 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
24950 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
24951 put under #if TARGET_LOOPS guard.
24953 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
24955 * config/i386/i386.c (output_387_binary_op): Use std::swap.
24957 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
24959 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
24960 * rtl.h (refers_to_regno_p): Add overload.
24962 * bt-load.c: Likewise.
24963 * combine.c: Likewise.
24964 * df-scan.c: Likewise.
24965 * sched-deps.c: Likewise.
24966 * config/s390/s390.c: Likewise.
24967 * config/m32r/m32r.c: Likewise.
24968 * config/rs6000/spe.md: Likewise.
24969 * config/rs6000/rs6000.c: Likewise.
24970 * config/pa/pa.c: Likewise.
24971 * config/stormy16/stormy16.c: Likewise.
24972 * config/cris/cris.c: Likewise.
24973 * config/arc/arc.md: Likewise.
24974 * config/arc/arc.c: Likewise.
24975 * config/sh/sh.md: Likewise.
24976 * config/sh/sh.c: Likewise.
24977 * config/frv/frv.c: Likewise.
24979 2015-01-05 Jakub Jelinek <jakub@redhat.com>
24982 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
24983 call as cleanup of the whole body.
24984 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
24985 * tsan.c (replace_func_exit): New function.
24986 (instrument_func_exit): Moved earlier.
24987 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
24988 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
24990 (tsan_pass): Don't call instrument_func_exit.
24991 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
24992 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
24996 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
24997 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
24998 it to libubsan handler instead of EXPR. Fold comparisons earlier,
24999 if the result is integer_zerop, return NULL_TREE.
25000 * convert.c (convert_to_integer): Pass expr as ARG.
25002 PR tree-optimization/64465
25003 * tree-inline.c (redirect_all_calls): During inlining
25004 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
25005 changed the stmt to a non-throwing call.
25007 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
25009 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
25010 etc markup throughout the file.
25012 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
25014 Enable experimental TSAN support for Ada.
25015 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
25017 2015-01-05 Jakub Jelinek <jakub@redhat.com>
25019 PR tree-optimization/64494
25020 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
25021 clear SSA_NAME_ANTI_RANGE_P flag.
25023 2015-01-05 Marek Polacek <polacek@redhat.com>
25025 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
25027 2015-01-05 Jakub Jelinek <jakub@redhat.com>
25029 Update copyright years.
25031 * gcc.c (process_command): Update copyright notice dates.
25032 * gcov-dump.c: Ditto.
25034 * doc/cpp.texi: Bump @copying's copyright year.
25035 * doc/cppinternals.texi: Ditto.
25036 * doc/gcc.texi: Ditto.
25037 * doc/gccint.texi: Ditto.
25038 * doc/gcov.texi: Ditto.
25039 * doc/install.texi: Ditto.
25040 * doc/invoke.texi: Ditto.
25042 * auto-profile.c, auto-profile.h: Fix up Copyright line.
25044 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
25046 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
25048 ([-fvtable-verify], [-fvtv-debug]): Likewise.
25049 ([-Wabi]): Likewise.
25050 ([-fmessage-length]): Likewise.
25051 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
25052 ([-Wno-discarded-qualifiers]): Likewise.
25053 ([-Wnodiscarded-array-qualifiers]): Likewise.
25054 ([-Wno-virtual-move-assign]): Likewise.
25055 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
25056 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
25057 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
25058 ([-fsanitize-undefined-trap-on-error]): Likewise.
25059 ([-floop-interchange]): Likewise.
25060 ([-ftree-coalesce-inlined-vars]): Likewise.
25061 ([-fvect-cost-model]): Likewise.
25062 ([-flto]): Likewise.
25063 ([--param]): Likewise.
25064 (Spec Files): Likewise.
25065 ([-mstrict-align]): Likewise.
25066 ([-mfix-cortex-a53-835769]): Likewise.
25067 ([-march], [-mtune]): Likewise.
25068 ([-mpic-register]): Likewise.
25069 ([-munaligned-access]): Likewise.
25070 ([-msp8]): Likewise.
25071 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
25072 (AVR Built-in Macros): Likewise.
25073 ([-mpreferred-stack-boundary]): Likewise.
25074 ([-mtune-crtl]): Likewise.
25075 ([-mashf]): Likewise.
25076 ([-mmcu=]): Likewise.
25077 ([-minrt]): Likewise.
25078 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
25079 ([-mupper-regs]): Likewise.
25080 ([-matomic-model]): Likewise.
25081 ([-mdiv]): Likewise.
25082 ([-mzdcbranch]): Likewise.
25083 ([-mdisable-callt]): Likewise.
25084 ([-msoft-float]): Likewise.
25085 ([-m8byte-align]): Likewise.
25086 ([-fstack-reuse]): Likewise.
25088 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25090 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
25091 Fix markup, light copy-editing.
25092 ([-fauto-profile]): Rewrite to fix formatting and content
25095 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25097 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
25098 Copy-edit description.
25099 ([-fisolate-erroneous-paths-attribute]): Likewise.
25100 * common.opt (fisolate-erroneous-paths-dereference):
25101 Copy-edit description.
25102 (fisolate-erroneous-paths-attribute): Likewise.
25104 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25106 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
25109 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25111 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
25112 ([-fvtv-debug]): Likewise.
25113 ([-Wc++-compat]): Likewise.
25114 ([-Wc++11-compat]): Likewise.
25115 ([-Wc++14-compat]): Likewise.
25116 ([-Wno-sized-deallocation]): Likewise.
25117 ([-femit-class-debug-always]): Likewise.
25118 ([-femit-struct-debug-detailed]): Likewise.
25119 ([-fno-keep-inline-dllexport]): Likewise.
25120 ([-fira-algorithm]): Likewise.
25121 ([-fira-region]): Likewise.
25122 ([-flra-remat]): Likewise.
25123 ([-fipa-ra]): Likewise.
25124 ([-fhoist-adjacent-loads]): Likewise.
25125 ([-fisolate-erroneous-paths-dereference]): Likewise.
25126 ([-fisolate-erroneous-paths-attribute]): Likewise.
25127 ([-ftree-switch-conversion]): Likewise.
25128 ([-ftree-tail-merge]): Likewise.
25129 ([-ftree-loop-if-convert]): Likewise.
25130 ([-ftree-loop-if-convert-stores]): Likewise.
25131 ([-ftree-loop-distribution]): Likewise.
25132 ([-ftree-loop-distribute-patterns]): Likewise.
25133 ([-flto-compression-level]): Likewise.
25134 ([-flto-report]): Likewise.
25135 ([-flto-report-wpa]): Likewise.
25136 ([-fuse-linker-plugin]): Likewise.
25137 ([-mfix-cortex-a53-835769]): Likewise.
25138 ([-mno-fix-cortex-a53-835769]): Likewise.
25139 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
25140 explicit listing; add a note to the discussion indicating they
25141 exist. Reorder table to group similar options. Add missing
25142 @opindex entries. Add @need commands throughout the table to
25143 allow it to be split across multiple pages.
25144 ([-m8bit-idiv]): Fix @opindex.
25145 ([-mavx256-split-unaligned-load]): Likewise.
25146 ([-mavx256-split-unaligned-store]): Likewise.
25147 ([-mstack-protector-guard]): Likewise.
25148 ([-mcpu=]): Likewise.
25149 ([-mcpu]): Likewise.
25150 ([-mpointer-size=]): Likewise.
25152 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
25154 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
25155 instead of `m' constraint. Likewise for unnamed movb comparison
25156 patterns using reg_before_reload_operand predicate.
25157 * config/pa/predicates.md (reg_before_reload_operand): Tighten
25158 predicate to reject register index and LO_SUM DLT memory forms
25161 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
25163 * doc/invoke.texi (Option Summary): Fix spelling of
25164 -fdevirtualize-at-ltrans.
25165 ([-fdevirtualize]): Fix markup.
25166 ([-fdevirtualize-speculatively]): Fix typo.
25167 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
25168 implementor-speaky.
25169 * common.opt (fdevirtualize-at-ltrans): Likewise.
25170 * ipa-devirt.c: Fix typos in comments throughout the file.
25171 (ipa_devirt): Fix typos in format strings for dump output.
25173 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
25175 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
25176 discussion of defaults, light copy-editing.
25178 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25180 * tsan.c (instrument_expr): corrected previous checkin.
25182 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25184 Instrument bit field and unaligned accesses for TSAN.
25185 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
25186 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
25187 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
25188 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
25189 unaligned memory regions.
25191 2015-01-01 Anthony Green <green@moxielogic.com>
25193 * config/moxie/predicates.md (moxie_general_movsrc_operand):
25194 Restrict move source register offsets to 16 bits.
25196 Copyright (C) 2015 Free Software Foundation, Inc.
25198 Copying and distribution of this file, with or without modification,
25199 are permitted in any medium without royalty provided the copyright
25200 notice and this notice are preserved.