1 2015-12-09 Martin Liska <mliska@suse.cz>
4 * ipa-icf.c (sem_function::param_used_p): Return true
5 if ipa_node_params_sum equals to NULL.
7 2015-12-09 Richard Biener <rguenther@suse.de>
9 PR tree-optimization/68583
10 * tree-if-conv.c (ifc_dr): Make flags bool, add w_unconditionally
11 flag and rename predicates to w_predicate, rw_predicate and
13 (DR_WRITTEN_AT_LEAST_ONCE): Rename to ...
14 (DR_BASE_W_UNCONDITIONALLY): ... this.
15 (DR_W_UNCONDITIONALLY): Add.
16 (hash_memrefs_baserefs_and_store_DRs_read): Adjust. Compute
17 unconditionally written separately from read or written.
18 (ifcvt_memrefs_wont_trap): Properly treat reads.
19 (ifcvt_could_trap_p): Inline ...
20 (if_convertible_gimple_assign_stmt_p): ... here. Refactor
21 to avoid code duplication.
22 (if_convertible_loop_p_1): Adjust and properly initialize
25 2015-12-09 Richard Biener <rguenther@suse.de>
27 * tree-vect-stmts.c (vectorizable_load): Set new vinfo only
28 if it was not yet set.
29 * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
30 overwrite an existing entry.
32 2015-12-09 Chung-Lin Tang <cltang@codesourcery.com>
34 * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
35 * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
36 * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
38 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
41 * symtab.c (symtab_node::equal_address_to): New parameter
43 * cgraph.h (symtab_node::equal_address_to): Update prototype.
45 2015-12-08 DJ Delorie <dj@redhat.com>
47 * config/rx/rx.opt (-mjsr): Add.
48 * config/rx/predicates.md (rx_call_operand): Avoid overflowing
50 * config/rx/rx.c (rx_function_ok_for_sibcall): Likewise for
52 * doc/invoke.texi (-mjsr): Document it.
54 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
57 * lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
58 lto_symtab_prevailing_decl): MOve to lto-symtab.h.
59 * lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
60 DECL_ABSTRACT_ORIGIN is not error_mark_node.
62 2015-12-08 David Malcolm <dmalcolm@redhat.com>
64 * tree-nested.c (convert_tramp_reference_stmt): Fix indentation.
66 2015-12-08 David Malcolm <dmalcolm@redhat.com>
68 * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
71 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
74 * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets
77 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
80 * varpool.c (varpool_node::get_availability): Recurse only on
81 weakrefs with definition in the target.
82 (symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.
84 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
87 * ipa-visibility.c (can_replace_by_local_alias): Look through
88 transparent aliases; refuse weakrefs.
89 (update_visibility_by_resolution_info): Skip transparent aliases in the
92 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
95 * symtab.c (symtab_node::verify_base): Fix thinko in a conditional.
96 (symtab_node::noninterposable_alias): Do not accept transparent
99 2015-12-08 Nathan Sidwell <nathan@acm.org>
101 * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
102 decl_offset, init_part, object_size, object_finished): Replace
104 (struct init_frag): ... this new struct variable.
105 (begin_decl_field, output_decl_chunk): Replace with ...
106 (output_init_frag): ... this new function.
107 (nvptx_assemble_value): Reimplement.
108 (nvptx_assemble_integer, nvptx_output_skip): Adjust.
109 (nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
110 (nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.
112 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
116 * cfgexpand.c (set_rtl): Always accept mode mismatch for SSA names
117 with BLKmode promoted mode based on RESULT_DECLs.
119 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
122 * config/i386/i386.c (ix86_option_override_internal): Enable
123 -maccumulate-outgoing-args when %ebp is fixed due to stack
124 realignment requirements.
126 2015-12-08 Tom de Vries <tom@codesourcery.com>
128 PR tree-optimization/68640
129 * omp-low.c (install_var_field): Clear the restrict qualifier on the var
132 2015-12-08 Kirill Yukhin <kirill.yukhin@intel.com>
134 * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode>_1"): Fix
135 assembler to make source always 128bit.
137 2015-12-08 Jakub Jelinek <jakub@redhat.com>
141 * common.opt (Wframe-larger-than=): Add Warning.
142 * opts.h (control_warning_option): Add ARG argument.
143 * opts-common.c (cmdline_handle_error): New function.
144 (read_cmdline_option): Use it.
145 (control_warning_option): Likewise. Add ARG argument.
146 If non-NULL, decode it if needed and pass through
147 to handle_generated_option. Handle CLVC_ENUM like
149 * opts.c (common_handle_option): Adjust control_warning_option
151 (enable_warning_as_error): Likewise.
153 2015-12-08 Matthew Wahab <matthew.wahab@arm.com>
155 * config/aarch64/aarch64-options-extensions.def: Remove
156 AARCH64_FL_RDMA from "fp" and "simd". Remove "pan", "lor",
158 * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
159 (AARCH64_FL_LOR): Remove.
160 (AARCH64_FL_RDMA): Remove.
161 (AARCH64_FL_V8_1): New.
162 (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
163 and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
164 (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
165 * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
166 section on -march=native. Group descriptions of permitted
167 architecture names together. Expand description of
169 (AArch64 -mtune): Slightly rework section on -march=native.
170 (AArch64 -mcpu): Slightly rework section on -march=native.
171 (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
172 State that -march=armv8.1-a enables "crc" and "lse".
174 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
176 * doc/invoke.texi (SPARC options): Fix typo.
178 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
180 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
181 (output_probe_stack_range): Rotate the loop and simplify.
183 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
185 * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
186 infinity filterning code.
188 2015-12-08 Ilya Enkovich <enkovich.gnu@gmail.com>
190 PR tree-optimization/68766
191 * tree-vectorizer.c (vectorize_loops): Check for
192 if-converted loops when debug counters are used.
194 2015-12-07 DJ Delorie <dj@redhat.com>
196 * config/rl78/constraints.md (Wfr): Change to be a non-memory
198 * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
199 * config/rl78/rl78.c (rl78_one_far_p): Define.
200 * config/rl78/rl78-virt (movqi_virt): Fix far memory
202 (movhi_virt): Likewise.
203 (zero_extendqihi2_virt): Likewise.
204 (extendqihi2_virt): Likewise.
205 (add<mode>3_virt): Likewise.
206 (sub<mode>3_virt): Likewise.
207 (andqi3_virt): Likewise.
208 (iorqi3_virt): Likewise.
209 (xorqi3_virt): Likewise.
210 * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
211 overflow in large files.
213 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
216 * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
217 * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
218 * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
219 * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
221 2015-12-07 Steve Ellcey <sellcey@imgtec.com>
223 * reorg.c (optimize_skip): Do not put frame related instructions
224 in annulled delay slots.
225 (steal_delay_list_from_target): Ditto.
226 (fill_slots_from_thread): Ditto.
228 2015-12-07 Evandro Menezes <e.menezes@samsung.com>
230 * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
231 * config/aarch64/aarch64.md: Include "exynos-m1.md".
232 * config/arm/arm.md: Likewise.
233 * config/arm/exynos-m1.md: New file.
235 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
237 * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
239 2015-12-07 Nathan Sidwell <nathan@acm.org>
241 * config//nvptx/nvptx.c (write_return): New.
242 (write_fn_proto, nvptx_declare_function_name): Call it.
244 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
247 * symtab.c (ultimate_transparent_alias_target): New inline function.
248 (symbol_table::assembler_names_equal_p): New method; break out from ...
249 (symbol_table::decl_assembler_name_equal): ... here.
250 (symbol_table::change_decl_assembler_name): Also update names and
251 translation links of transparent aliases.
252 (symtab_node::dump_base): Dump transparent_alias.
253 (symtab_node::verify_base): Implement basic transparent alias
255 (symtab_node::make_decl_local): Support localization of weakrefs;
256 recurse to transparent aliases; set TREE_STATIC.
257 (symtab_node::ultimate_alias_target_1): Handle visibility of
259 (symtab_node::resolve_alias): New parmaeter transparent; handle
260 transparent aliases; recurse to aliases of aliases to fix comdat
262 (symtab_node::get_partitioning_class): Handle transparent aliases.
263 * ipa-visibility.c (cgraph_externally_visible_p,
264 varpool_node::externally_visible_p): Visibility of transparent alias
265 depends on its target.
266 (function_and_variable_visibility): Do not tweak visibility of
268 (function_and_variable_visibility): Likewise.
269 * ipa.c (symbol_table::remove_unreachable_nodes): Clear
270 transparent_alias flag.
271 * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
272 Support transparent aliases.
273 * cgraph.h (symtab_node): Update prototype of resolve_alias;
274 add transparent_alias flag.
275 (symbol_table: Add assembler_names_equal_p.
276 (symtab_node::real_symbol_p): Skip transparent aliases.
277 * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
278 (handle_alias_pairs): Set transparent_alias for weakref.
279 (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
281 * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
282 skip symbols not put into boundary; stream transparent_alias.
283 (lto_output_varpool_node): Likewise.
284 (input_overwrite_node, input_varpool_node): Stream transparent alias.
285 * varpool.c (ctor_for_folding, varpool_node::get_availability,
286 varpool_node::assemble_aliases,
287 symbol_table::remove_unreferenced_decls): Handle transparent aliase.
288 (varpool_node::create_alias): Set transparent_alias.
290 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
294 * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
295 SSA names based on RESULT_DECLs.
296 * function.c (expand_function_start): Do not create BLKmode REGs
297 for GIMPLE registers when coalescing is enabled.
299 2015-12-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
301 * final.c (shorten_branches): Fix check for basic asm.
302 * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
305 2015-12-07 Nathan Sidwell <nathan@acm.org>
307 * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
310 2015-12-07 David Malcolm <dmalcolm@redhat.com>
312 * pretty-print.c (text_info::set_range): Rename to...
313 (text_info::set_location): ...this, converting 2nd param
314 from source_range to a location_t.
315 * pretty-print.h (text_info::set_location): Convert
316 from inline function to external definition.
317 (text_info::set_range): Delete.
319 2015-12-07 Nathan Sidwell <nathan@acm.org>
321 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
322 complex and vector types. Cope with packed structs.
324 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
327 * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
328 Force destination to 512 bits register.
330 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
333 * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
334 (define_insn "kunpcksi"): Ditto.
335 (define_insn "kunpckdi"): Ditto.
337 2015-12-06 Kaz Kojima <kkojima@gcc.gnu.org>
339 * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
341 2015-12-06 Victoria Stepanyan <victoria.stepanyan@amd.com>
343 * common/config/i386/i386-common.c
344 (OPTION_MASK_ISA_CLZERO_SET): New.
345 (ix86_handle_option): Handle clzero.
346 * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
347 (x86_64-*-*): Likewise.
348 * config/i386/clzerointrin.h: New header.
349 * config/i386/cpuid.h (bit_CLZERO): Define.
350 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
352 * config/i386/i386.opt (clzero): New.
353 * config/i386/i386-c.c: Define __CLZERO__ if needed.
354 * config/i386/i386.c (ix86_target_string): Define -mclzero option.
356 (ix86_option_override_internal): Handle new option.
357 (processor_alias_table): Added PTA_CLZERO.
358 (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
359 (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
360 (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
361 IX86_BUILTIN_CLZERO built-ins.
362 * config/i386/i386.h (TARGET_CLZERO): New.
363 * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
364 (clzero): New pattern.
365 (clzero_<mode>): New pattern.
366 * config/i386/x86intrin.h: Include clzerointrin.h.
367 * doc/extend.texi: Document clzero builtins.
368 * doc/invoke.texi: Document -mclzero option.
370 2015-12-05 Jan Hubicka <hubicka@ucw.cz>
372 * ipa-icf.c (sem_function::merge): Check that local_original exists.
374 2015-12-05 David Edelsohn <dje.gcc@gmail.com>
377 * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
379 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
381 * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
382 (sqrt<mode>2): Replace define_insn with define_expand that may call
385 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
386 Sebastian Pop <s.pop@samsung.com>
388 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
390 (get_rename_from_scev): Check that all the ops in an expression
391 have their uses dominated by corresponding defs.
393 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
394 Sebastian Pop <s.pop@samsung.com>
396 PR tree-optimization/68693
397 * graphite-scop-detection.c (dot_all_sese): New
398 (dot_all_scops_1): Renamed to dot_all_sese.
399 (dot_all_scops): Removed.
402 (scop_detection::get_nearest_dom_with_single_entry): Check that
403 preds are from different loop levels.
404 (scop_detection::get_nearest_pdom_with_single_exit): Check that
405 succs are from different loop levels.
406 (scop_detection::print_sese): Inlined.
407 (scop_detection::print_edge): New.
408 (scop_detection::merge_sese): Added dumps.
409 * graphite.h: Add declarations.
411 2015-12-04 James Greenhalgh <james.greenhalgh@arm.com>
413 * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
416 2015-12-04 Vladimir Makarov <vmakarov@redhat.com>
418 PR rtl-optimization/68349
419 * lra-eliminations.c (move_plus_up): New function.
420 (lra_eliminate_regs_1): Use the function.
422 2015-12-04 Nathan Sidwell <nathan@acm.org>
424 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
425 (init_output_initializer): ... this.
426 (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
427 nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
428 nvptx_assemble_decl_begin.
430 2015-12-04 Dmitry Vyukov <dvyukov@google.com>
432 * sancov.c: New file.
433 * Makefile.in (OBJS): Add sancov.o.
434 * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
435 * passes.def (sancov_pass): Add.
436 * tree-pass.h (sancov_pass): Add.
437 * common.opt (-fsanitize-coverage=trace-pc): Add.
438 * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
439 * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
440 flag_sanitize_coverage.
442 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
445 * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
446 (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
447 * config/arm/arm.md (probe_stack_range): Adjust.
448 * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
449 (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
450 (probe_stack_range_<PTR:mode>): Adjust.
452 2015-12-04 David Malcolm <dmalcolm@redhat.com>
454 * convert.c (convert_to_real_1): When converting from a
455 REAL_TYPE, preserve the location of EXPR in the result.
456 * tree.c (get_pure_location): Make non-static.
457 (set_source_range): Return the resulting location_t.
458 (make_location): New function.
459 * tree.h (get_pure_location): New decl.
460 (get_finish): New inline function.
461 (set_source_range): Convert return type from void to location_t.
462 (make_location): New decl.
464 2015-12-04 Jakub Jelinek <jakub@redhat.com>
467 * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
468 input_location to inform.
469 (process_options): Use warning_at (UNKNOWN_LOCATION instead of
470 warning ( and error_at (UNKNOWN_LOCATION instead of error (.
471 Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
473 2015-12-04 Jan Hubicka <hubicka@ucw.cz>
475 * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
476 * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
477 * cgraph.c (cgraph_node::dump): Dump merged_comdat.
478 * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
479 comdat and non-comdat.
480 * cgraph.h (cgraph_node): Rename merged to merged_comdat.
481 * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
484 2015-12-04 Segher Boessenkool <segher@kernel.crashing.org>
486 * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
487 instead of register_operand. Remove empty constraints. Use std::swap.
488 (cstore_si_as_di, cstore<mode>4_signed_imm,
489 cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
490 gpc_reg_operand instead of register_operand.
491 (cstore<mode>4 for FP): Use gpc_reg_operand instead of
492 register_operand. Remove empty constraints.
494 2015-12-04 Nick Clifton <nickc@redhat.com>
496 * config.gcc (extra_gcc_objs): Define for MSP430.
497 * common/config/msp430/msp430-common.c (msp430_handle_option):
498 Pass both -mmcu and -mcpu on to the back end if they are both defined.
499 * config/msp430/msp430.c (hwmult_name): New function.
500 (msp430_option_override): If an unrecognised MCU name is
501 detected only warn if the user has not provided suitable
502 -mhwmult and -mcpu options. Use msp430_warn_mcu to control
503 warning messages. Generate warnings about conflicts between
504 -mmcu and -mcpu and -mhwmult options.
505 If neither -mcpu nor -mmcu have been specified but -mhwmult=
506 f5series has the select the 430X isa.
507 (msp430_no_hwmult): If -mmcu has not been specified and
508 msp430_hwmult_type is AUTO then return true.
509 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
510 (LIB_SPEC): Add hardware multiply library selection.
511 * config/msp430/t-msp430: Delete hardware multiply multilibs.
512 Add rule to build driver-msp430.o
513 * config/msp430/driver-msp430.c: New file.
514 * config/msp430/msp430.opt (warn-mcu): New option.
515 * doc/invoke.texi: Update description of -mhwmult=auto.
516 Document -mwarn-mcu option.
518 2015-12-04 Segher Boessenkool <segher&kernel.crashing.org>
520 * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
521 (cstore<mode>4): Call it.
523 2015-12-04 Jakub Jelinek <jakub@redhat.com>
525 * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
527 PR tree-optimization/68680
528 * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
529 BUILT_IN_ALLOCA{,_WITH_ALIGN}. Don't check for __builtin_alloca
532 PR tree-optimization/68671
533 * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
534 blocks starting with the successor of first bb we've modified
535 and ending with last_bb call reset_flow_sensitive_info_in_bb.
537 2015-12-04 Jeff Law <law@redhat.com>
539 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
540 indicating if a gimple conditional was optimized to true/false.
541 (reassociate_bb): Bubble up return value from
542 maybe_optimize_range_tests.
543 (do_reassoc): Similarly, but for reassociate_bb.
544 (execute_reassoc): Return TODO_cleanup_cfg as needed.
546 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
548 * config/aarch64/aarch64.c (aarch64_override_options_internal):
549 Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
550 * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
551 does not affect the assembler directives.
553 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
555 * config/s390/s390.c (s390_asm_file_start): Implement hook function to
556 emit .machine and .machinemode to the top of the assembler file.
557 (TARGET_ASM_FILE_START): Provide target hook.
558 (s390_asm_output_machine_for_arch): Protect with
559 HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
561 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
563 * config/s390/s390.opt (s390_arch_string): Remove.
564 (s390_tune_string): Likewise.
565 (s390_cost_pointer): Add Variable.
566 (s390_tune_flags): Add TargetVariable.
567 (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
568 (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
569 (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
570 (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
571 (mwarn-framesize=): Save option.
572 (mno-stack-guard, mno-stack-guard): New option.
573 (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
574 (mwarn-framesize=): Convert to UInteger (negative values are rejected
576 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
577 macros changeable through the GCC target pragma into a separate
579 (s390_cpu_cpp_builtins): Likewise.
580 (s390_pragma_target_parse): New function, implement GCC target pragma
582 (s390_register_target_pragmas): Register s390_pragma_target_parse if
584 * common/config/s390/s390-common.c (s390_handle_option):
586 Move setting s390_arch_flags to s390.c.
587 Remove s390_tune_flags.
588 Allow 0 as argument to -mstack-size (switch to default value).
589 Allow 0 as argument to -mstack-guard (switch off).
590 Remove now unnecessary explicit parsing code for -mwarn-framesize.
591 * config/s390/s390-protos.h (s390_handle_option): Export.
592 (s390_valid_target_attribute_tree): Export.
593 (s390_reset_previous_fndecl): Export.
594 * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
595 and end of HTM and VX builtins.
596 (s390_asm_output_function_prefix): Declare hook.
597 (s390_asm_declare_function_size): Likewise.
598 * config/s390/s390-builtins.h (B_GROUP): Use macro.
599 * config/s390/s390-opts.h: Add comment about processor_type usage.
600 * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
601 (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
602 (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
603 (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
604 (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
605 (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
606 (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
607 (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
608 (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
609 (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
610 (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
611 (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
612 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
613 * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
615 (vec_all_nan): Rewrite as macro using statement expressions to avoid
616 that the vector keyword needs to be defined when including the file.
617 (vec_all_numeric): Likewise.
618 (vec_any_nan): Likewise.
619 (vec_any_numeric): Likewise.
620 * config/s390/s390.c (s390_previous_fndecl): New static variable.
621 (s390_set_current_function): New function.
622 (s390_cost): Wrapper macro to allow defining the cost table pointer in
624 (processor_table): Table for march= and mtune= parsing.
625 (s390_init_builtins): Enable all builtins and types unconditionally.
626 (s390_expand_builtin): Generate an error message if builtin is not
627 supported by current options.
628 Correct an error message.
629 (s390_function_specific_restore): New function to set s390_cost.
630 (s390_asm_output_machine_for_arch): New function for emitting .machine
631 and .machinmode directives to the assembler file.
632 (s390_asm_output_function_prefix): Likewise.
633 (s390_asm_declare_function_size): Likewise.
634 (s390_asm_output_function_label): Add mdebug output for feature testing.
635 (s390_option_override): Move implementation into internal function.
636 (s390_option_override_internal): Likewise.
637 Implement option overriding based on current options.
638 (s390_valid_target_attribute_inner_p): New function implementing target
640 (s390_valid_target_attribute_tree): Likewise.
641 (s390_valid_target_attribute_p): Likewise.
642 (s390_reset_previous_fndecl): Likewise.
643 (s390_set_current_function): Likewise.
644 (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
645 (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
646 (TARGET_OPTION_RESTORE): Likewise.
647 * doc/extend.texi: S390: Document target attribute and pragma.
648 * config.in: Regenerated.
649 * configure: Regenerated.
650 * configure.ac: S390: Check for .machinemode and .machine in gas.
651 S390: Check for architecture modifiers support in gas.
653 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
655 * doc/extend.texi ("simd"): Describe new flags.
657 2015-12-04 Ilya Enkovich <enkovich.gnu@gmail.com>
659 * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
660 operand checked for alignment.
662 2015-12-04 Nathan Sidwell <nathan@acm.org>
664 * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
665 emission too. Change 'no_arg_types' to 'prototyped'.
666 (write_fn_proto): Use write_one_arg for stdarg, static chain &
668 (nvptx_declare_function_name): Use write_one_arg for prologue copies.
670 2015-12-04 Richard Biener <rguenther@suse.de>
672 * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
673 member and initialize it.
674 (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
676 (sccvn_dom_walker::before_dom_children): If unreachable_dom
677 is set BB is not reachable either. Set unreachable_dom
678 if not set and BB is unreachable.
680 2015-12-04 Richard Biener <rguenther@suse.de>
682 * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
683 query with GATHER_STATISTICS.
685 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
688 * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
689 fields, add keep_stack and reorder them.
690 (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
691 set it to false. Do not insert a stack save/restore pair if it has
692 been set to true by the gimplification of the statements.
693 Restore it to the saved value on exit if it is still false.
694 (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
695 (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case. Set
696 either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
697 * doc/extend.texi (Variable Length): Document new behavior.
698 * doc/generic.texi (Blocks): Document new handling of VLAs.
700 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
701 Tristan Gingold <gingold@adacore.com>
704 * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
706 * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
707 UNSPEC_PROBE_STACK_RANGE.
708 (blockage): New instruction.
709 (probe_stack_range_<PTR:mode>): Likewise.
710 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
712 (aarch64_output_probe_stack_range): Likewise.
713 (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
714 static builtin stack checking is enabled.
715 * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
718 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
721 * config/arm/arm.md (*call_mem): Delete pattern.
722 (*call_value_mem): Likewise.
723 * config/arm/arm.c (output_call_mem): Delete.
724 * config/arm/arm-protos.h (output_call_mem): Delete prototype.
726 2015-12-04 Bin Cheng <bin.cheng@arm.com>
728 * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
729 aarch64_sync_memory_operand.
731 2015-12-04 Jakub Jelinek <jakub@redhat.com>
734 * config/i386/i386.c (canonicalize_vector_int_perm): New function.
735 (expand_vec_perm_1): Use it and recurse if everything else
736 failed. Use nd.perm instead of perm2.
737 (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
738 instead of gen_lowpart for the target.
739 (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
740 and recurse if everything else failed.
742 2015-12-04 Richard Biener <rguenther@suse.de>
745 * builtins.c (get_pointer_alignment_1): Take care of byte to
746 bit alignment computation overflow.
748 2015-12-04 Richard Biener <rguenther@suse.de>
751 * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
752 a constant with single_use.
754 2015-12-04 Bin Cheng <bin.cheng@arm.com>
755 Jiong Wang <jiong.wang@arm.com>
757 * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
758 address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
760 2015-12-03 Jan Hubicka <hubicka@ucw.cz>
762 * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
763 Add short circuit for !flag_strict_aliasing
764 (get_alias_set): Remove flag_strict_aliasing check.
765 (new_alias_set): Likewise.
767 2015-12-03 Evandro Menezes <e.menezes@samsung.com>
769 * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
770 * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
771 (exynosm1_regmove_cost): Likewise.
772 (exynosm1_vector_cost): Likewise.
773 (exynosm1_tunings): Likewise.
774 * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
775 * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
777 2015-12-03 Alan Lawrence <alan.lawrence@arm.com>
778 Richard Biener <richard.guenther@gmail.com>
780 * cfgexpand.c (pass_expand::execute): Replace call to
781 redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
782 * tree-ssa.c (delete_tree_ssa): Likewise.
783 * function.c (set_cfun): Call redirect_edge_var_map_empty.
784 * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
785 * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
786 (redirect_edge_var_map_empty): New.
787 * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
788 (redirect_edge_var_map_empty): New.
790 2015-12-03 Jeff Law <law@redhat.com>
792 PR tree-optimization/68599
793 * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
794 in call to loop_optimizer_init.
795 * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
796 optimization to drop the assumptions/infinite notations if
797 the loop has a single exit.
799 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
801 * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
802 the pattern cannot FAIL.
803 (vec_store_lanes@var{m}@var{n}): Likewise.
804 (maskload@var{m}@var{n}): Likewise.
805 (maskstore@var{m}@var{n}): Likewise. Fix a cut-&-paste error
806 in the name of the pattern.
807 (rsqrt@var{m}2): Document that mode m must be a scalar or vector
808 floating-point mode and that all operands have that mode.
809 (fmin@var{m}3, fmax@var{m}3): Likewise. Document that the
811 (sqrt@var{m}2): Document that mode m must be a scalar or vector
812 floating-point mode, that all operands have that mode, and that
813 the patterns cannot FAIL. Remove previous documentation referring
814 to @code{double} and @code{float}.
815 (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
816 (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
817 (copysign@var{m}3): Likewise.
818 (exp@var{m}2): Likewise. Explicitly state the base.
819 (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
820 (btrunc@var{m}2, rint@var{m}2): Likewise.
821 (round@var{m}2): Likewise. Fix incorrect description of rounding
823 (ceil@var{m}2): As for round@var{m}2.
824 (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
825 the instruction must not raise an inexact condition.
826 (scalb@var{m}3): Document previously-undocumented pattern
827 (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
828 (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
829 (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
830 (significand@var{m}2): Likewise.
831 (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
832 mode m and operand 0 is defined more freely. Document that @var{m}
833 can be a scalar or vector integer mode and that the pattern is not
835 (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
836 (clrsb@var{m}2): Likewise, except that the description of the
837 mode was missing in this case.
839 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
841 * internal-fn.def (RSQRT): New function.
842 * optabs.def (rsqrt_optab): New optab.
843 * doc/md.texi (rsqrtM2): Document.
844 * target.def (builtin_reciprocal): Replace gcall argument with
845 a function decl. Restrict hook to machine functions.
846 * doc/tm.texi: Regenerate.
847 * targhooks.h (default_builtin_reciprocal): Update prototype.
848 * targhooks.c (default_builtin_reciprocal): Likewise.
849 * tree-ssa-math-opts.c: Include internal-fn.h.
850 (internal_fn_reciprocal): New function.
851 (pass_cse_reciprocals::execute): Call it, and build a call to an
852 internal function on success. Only call targetm.builtin_reciprocal
853 for machine functions.
854 * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
856 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
857 Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
858 (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
860 * config/aarch64/aarch64.c (use_rsqrt_p): New function.
861 (aarch64_builtin_reciprocal): Replace gcall argument with a
862 function decl. Use use_rsqrt_p. Remove optimize_size check.
863 Only handle machine functions. Update call to aarch64_builtin_rsqrt.
864 (aarch64_optab_supported_p): New function.
865 (TARGET_OPTAB_SUPPORTED_P): Define.
866 * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
867 (rsqrt<mode>2): ...this.
868 * config/i386/i386.c (use_rsqrt_p): New function.
869 (ix86_builtin_reciprocal): Replace gcall argument with a
870 function decl. Use use_rsqrt_p. Remove optimize_insn_for_size_p
871 check. Only handle machine functions.
872 (ix86_optab_supported_p): Handle rsqrt_optab.
873 * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
874 (rs6000_builtin_reciprocal): Replace gcall argument with a
875 function decl. Remove optimize_insn_for_size_p check.
876 Only handle machine functions.
877 (rs6000_optab_supported_p): New function.
879 2015-12-03 Bernd Schmidt <bschmidt@redhat.com>
883 * config/i386/i386.c (ix86_mitigate_rop): Don't call
884 compute_bb_for_insn again. Call df_insn_rescan_all.
885 * config/i386/i386.md (set_got_rex64): Override modrm_class.
887 * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
889 2015-12-03 Nathan Sidwell <nathan@acm.org>
891 * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
892 * config/nvptx/nvptx.c (enum nvptx_data_area): New.
893 (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
894 (nvptx_option_override): Set data ares for worker vars.
895 (nvptx_addr_space_from_sym): Delete.
896 (nvptx_encode_section_info): New.
897 (section_for_sym, section_for_decl): New.
898 (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
899 (nvptx_section_from_addr_space): Delete.
900 (nvptx_section_for_decl): Delete.
901 (nvptx_output_aligned, nvptx_declare_object_name,
902 nvptx_assemble_undefined_decl): Use section_for_decl, remove
904 (nvptx_print_operand): Add 'D', adjust 'A'.
905 (nvptx_expand_worker_addr): Adjust unspec generation.
906 (TARGET_ENCODE_SECTION_INFO): Override.
907 * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
908 ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
909 * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
910 UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
911 UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
912 UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
913 (UNSPEC_TO_GENERIC): New.
914 (nvptx_register_or_symbolic_operand): Delete.
915 (cvt_code, cvt_name, cvt_str): Delete.
916 (convaddr_<cvt_name><mode> [P]): Delete.
917 (convaddr_<mode> [P]): New.
919 2015-12-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
921 PR rtl-optimization/68624
922 * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
923 blocks if they exist and simplify the logic choosing the order to emit
926 2015-12-03 Richard Biener <rguenther@suse.de>
928 PR tree-optimization/66051
929 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
930 on load group size. Do not pass in vectorization_factor.
931 (vect_transform_slp_perm_load): Do not require any permute support.
932 (vect_build_slp_tree): Do not pass in vectorization factor.
933 (vect_analyze_slp_instance): Do not compute vectorization
934 factor estimate. Use vector size instead of vectorization factor
935 estimate to split store groups for BB vectorization.
937 2015-12-03 Ilya Enkovich <enkovich.gnu@gmail.com>
939 * cfgexpand.c (expand_gimple_stmt_1): Return statement with
940 DECL as return value is allowed to have NULL bounds.
942 2015-12-03 Tom de Vries <tom@codesourcery.com>
944 * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
945 (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
946 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
948 2015-12-03 Richard Biener <rguenther@suse.de>
950 PR tree-optimization/67800
951 PR tree-optimization/68333
952 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
953 restriction to reduction contexts but allow SLP reductions as well.
954 (vect_recog_sad_pattern): Likewise.
955 (vect_recog_widen_sum_pattern): Likewise.
957 2015-12-03 Richard Biener <rguenther@suse.de>
959 PR tree-optimization/68639
960 * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
961 belonging to different loops.
962 (vect_analyze_data_ref_accesses): Likewise.
964 2015-12-02 Kirill Yukhin <kirill.yukhin@intel.com>
966 * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
967 Remove "prefix_extra".
968 (define_insn "vec_extract_hi_<mode>_mask"): New.
969 (define_insn "vec_extract_hi_<mode>"): Remove masking.
971 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
973 * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
974 (propagate_pure_const): Use it; fix comments and optimize loops.
976 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
978 * ipa-pure-const.c (ignore_edge): Rename to ...
979 (ignore_edge_for_nothrow) ... this one; also ignore eges to
980 interposable functions or ones that can not throw.
981 (propagate_nothrow): Fix handling of availability.
983 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
986 * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
988 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
989 Sebastian Pop <s.pop@samsung.com>
991 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
993 (gcc_expression_from_isl_expr_op): Same.
995 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
996 Sebastian Pop <s.pop@samsung.com>
998 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
999 that insertion point is still in the region.
1001 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1002 Sebastian Pop <s.pop@samsung.com>
1004 PR tree-optimization/68550
1005 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
1006 (copy_bb_and_scalar_dependences): Do not code generate loop peeled
1009 2015-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1011 * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
1012 * configure: Regenerate.
1013 * config.in: Regenerate.
1014 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
1016 (rs6000_output_function_prologue): Use it instead of checking
1017 cfun->machine->r2_setup_needed. Use internal labels instead of
1018 GNU as local label extension. Handle ELFv2 large code model.
1019 (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
1020 (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
1022 2015-12-02 Jakub Jelinek <jakub@redhat.com>
1025 * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
1027 (expand_unop): Use them.
1029 2015-12-02 Marek Polacek <polacek@redhat.com>
1032 * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
1034 2015-12-02 Nathan Sidwell <nathan@acm.org>
1036 * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
1038 (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
1040 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1041 Sebastian Pop <s.pop@samsung.com>
1043 * graphite-dependences.c (scop_get_reads): Add extra dumps.
1044 (scop_get_must_writes): Same.
1045 (scop_get_may_writes): Same.
1046 (compute_deps): Same.
1047 * graphite-sese-to-poly.c (bounds_are_valid): New.
1048 (pdr_add_data_dimensions): Call bounds_are_valid.
1050 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1051 Sebastian Pop <s.pop@samsung.com>
1053 * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
1054 * graphite-poly.c (apply_poly_transforms): Same.
1055 * graphite.c (gate_graphite_transforms): Same.
1056 * toplev.c (process_options): Same.
1058 2015-12-02 Eric Botcazou <ebotcazou@adacore.com>
1060 * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
1061 (mips_output_probe_stack_range): Rotate the loop and simplify.
1063 2015-12-02 David Sherwood <david.sherwood@arm.com>
1065 * config/aarch64/aarch64.md: New pattern.
1066 * config/aarch64/aarch64-simd.md: Likewise.
1067 * config/aarch64/iterators.md: New unspecs, iterators.
1069 2015-12-02 Pierre-Marie de Rodat <derodat@adacore.com>
1071 * dwarf2out.c (dwar2out_var_location): In addition to notes,
1072 process indirect calls whose target is compile-time known.
1073 Enhance pattern matching to get the SYMBOL_REF they embed.
1074 (gen_subprogram_die): Handle such calls.
1075 * final.c (final_scan_insn): For call instructions, invoke the
1076 var_location debug hook only after the call has been emitted.
1078 2015-12-02 Tom de Vries <tom@codesourcery.com>
1080 * gimplify.c (enum gimplify_omp_var_data): Add enum value
1082 (oacc_default_clause): Fix default for scalars in oacc kernels.
1083 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
1085 2015-12-02 Tom de Vries <tom@codesourcery.com>
1087 * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
1088 parameter base_pointers_restrict.
1089 (omp_target_base_pointers_restrict_p): New function.
1090 (scan_omp_target): Call scan_sharing_clauses with
1091 base_pointers_restrict arg.
1093 2015-12-02 Nathan Sidwell <nathan@acm.org>
1095 * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
1096 (nvptx_underlying_object_mode): Delete.
1097 * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
1099 (nvptx_declare_function_name): Use output_reg. Remove punning buffer.
1100 (nvptx_output_mov_insn): New.
1101 (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
1102 Use output_reg. Merge 't' and 'u' handling.
1103 * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
1104 (struct machine_function): Remvoe punning_buffer_size.
1105 (REGISTER_NAMES): Remove %punbuffer.
1106 * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
1107 UNSPEC_CPLX_HIGHPART): Delete.
1108 (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
1109 nvptx_output_mov_insn.
1110 (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
1111 Use nvptx_output_mov_insn.
1112 (highpartscsf2, set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
1114 (mov<mode> [SDCM]): Delete.
1116 2015-12-02 Richard Biener <rguenther@suse.de>
1118 * tree.h (tree_invariant_p): Declare.
1119 * tree.c (tree_invariant_p): Export.
1120 * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
1121 create SAVE_EXPRs but reject patterns if we would need to.
1123 2015-12-02 Tom de Vries <tom@codesourcery.com>
1125 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
1126 (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
1128 2015-12-02 Segher Boessenkool <segher@kernel.crashing.org>
1130 * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
1131 (cstore<mode>4): Use it.
1133 2015-12-02 Richard Biener <rguenther@suse.de>
1135 PR tree-optimization/68625
1136 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
1137 cleanup_control_flow_bb.
1138 (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
1139 on all BBs, then cleanup_tree_cfg_bb and finally iterate
1140 over the worklist doing both.
1142 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
1144 PR tree-optimization/68432
1145 * coretypes.h (optimization_type): New enum.
1146 * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
1147 * doc/tm.texi: Regenerate.
1148 * target.def (optab_supported_p): New hook.
1149 * targhooks.h (default_optab_supported_p): Declare.
1150 * targhooks.c (default_optab_supported_p): New function.
1151 * predict.h (function_optimization_type): Declare.
1152 (bb_optimization_type): Likewise.
1153 * predict.c (function_optimization_type): New function.
1154 (bb_optimization_type): Likewise.
1155 * optabs-query.h (convert_optab_handler): Define an overload
1156 that takes an optimization type.
1157 (direct_optab_handler): Likewise.
1158 * optabs-query.c (convert_optab_handler): Likewise.
1159 (direct_optab_handler): Likewise.
1160 * internal-fn.h (direct_internal_fn_supported_p): Take an
1161 optimization_type argument.
1162 * internal-fn.c (direct_optab_supported_p): Likewise.
1163 (multi_vector_optab_supported_p): Likewise.
1164 (direct_internal_fn_supported_p): Likewise.
1165 * builtins.c (replacement_internal_fn): Update call to
1166 direct_internal_fn_supported_p.
1167 * gimple-match-head.c (build_call_internal): Likewise.
1168 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
1169 * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
1170 * tree.c (maybe_build_call_expr_loc): Likewise.
1171 * config/i386/i386.c (ix86_optab_supported_p): New function.
1172 (TARGET_OPTAB_SUPPORTED_P): Define.
1173 * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
1174 (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
1175 (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
1176 (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
1177 (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
1178 (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
1180 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
1182 * Makefile.in (GENSUPPORT_H): New macro.
1183 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
1184 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
1185 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
1186 (build/genconstants.o, build/genextract.o, build/genflags.o)
1187 (build/gentarget-def.o): Use it.
1188 (build/genemit.o): Likewise. Depend on internal-fn.def.
1189 * genopinit.c: Move block comment to optabs.def.
1190 (optab_tag, optab_def): Move to gensupport.h
1191 (pattern): Likewise, renaming to optab_pattern.
1192 (match_pattern): Move to gensupport.c
1193 (gen_insn): Use find_optab.
1194 (patterns, pattern_cmp): Replace pattern with optab_pattern.
1195 (main): Likewise. Use num_optabs.
1196 * optabs.def: Add comment that was previously in genopinit.c.
1197 * gensupport.h (optab_tag): Moved from genopinit.c
1198 (optab_def): Likewise, expanding commentary.
1199 (optab_pattern): Likewise, after renaming from pattern.
1200 (optabs, num_optabs, find_optab): Declare.
1201 * gensupport.c (optabs): Moved from genopinit.c.
1202 (num_optabs): New variable.
1203 (match_pattern): Moved from genopinit.c.
1204 (find_optab): New function, extracted from genopinit.c:gen_insn.
1205 * genemit.c (nofail_optabs): New variable.
1206 (emit_c_code): New function.
1207 (gen_expand): Check whether the instruction is an optab that isn't
1208 allowed to fail. Call emit_c_code.
1209 (gen_split): Call emit_c_code here too.
1210 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
1212 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1214 * config/s390/predicates.md (const_mask_operand): New predicate.
1215 * config/s390/s390-builtins.def: Set a smaller bitmask
1217 * config/s390/vector.md: Change predicate from immediate_operand
1218 to either const_int_operand or const_mask_operand. Add special
1219 insn conditions on patterns which have to exclude certain values.
1220 * config/s390/vx-builtins.md: Likewise.
1222 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1224 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
1227 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1229 * config/s390/s390-builtin-types.def: New builtin types added.
1230 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
1231 * config/s390/s390.c (s390_expand_builtin): Always truncate
1232 constants to the mode in the pattern.
1233 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
1234 respective builtin __builtin_s390_vec_splat_*.
1236 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1238 * config/s390/s390-builtin-types.def: Sort builtin types.
1240 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1242 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
1243 condition for the RT flag.
1245 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1247 * config/s390/constraints.md ("jKK"): New constraint.
1248 * config/s390/s390.c (tm-constrs.h): Include for
1249 satisfies_constraint_*.
1250 (s390_legitimate_constant_p): Allow jKK constants. Use
1251 satisfies_constraint_* also for the others.
1252 (legitimate_reload_vector_constant_p): Likewise.
1253 (print_operand): Allow h output modifier on vectors.
1254 * config/s390/vector.md ("mov<mode>"): Add vrepi.
1256 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1258 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
1261 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1263 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
1264 ("bswaphi2"): New pattern.
1265 New splitter for HI reg-reg bswap.
1267 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
1270 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
1271 if it is the first parameter.
1273 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
1275 PR tree-optimization/68577
1276 * tree-vect-stmts.c (simple_integer_narrowing): New function.
1277 (vectorizable_call): Restrict internal function handling
1278 to NONE and NARROW cases, using simple_integer_narrowing
1279 to test for the latter. Add cost of narrowing operation
1280 and insert it where necessary.
1282 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
1284 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
1285 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
1286 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
1288 2015-12-01 Nathan Sidwell <nathan@acm.org>
1290 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
1291 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
1292 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
1293 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
1294 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
1295 (init_output_initializer): Call write_var_marker.
1296 (nvptx_output_aligned_decl): New.
1297 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
1299 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
1301 * c-common.c (parse_optimize_options): Do not silently ignore
1302 -fstrict-aliasing changes.
1304 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
1306 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
1307 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
1308 stream TYPE_ALIAS_SET.
1309 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
1310 stream TYPE_ALIAS_SET.
1312 2015-12-01 Nathan Sidwell <nathan@acm.org>
1314 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
1317 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1319 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
1320 indirection for large and small code models.
1321 (adjust_vperm): Likewise.
1323 2015-12-01 Julian Brown <julian@codesourcery.com>
1324 Cesar Philippidis <cesar@codesourcery.com>
1325 James Norris <James_Norris@mentor.com>
1327 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
1328 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
1329 (is_gimple_omp_oacc): Add support for above.
1330 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
1331 (omp_notice_variable): Diagnose undefined implicit uses of
1332 use_device variables in offloaded regions.
1333 (gimplify_scan_omp_clauses): Add host_data, use_device
1334 support. Diagnose undefined mapping of use_device variables in
1336 (gimplify_omp_workshare): Add host_data support.
1337 (gimplify_expr): Likewise.
1338 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
1339 * omp-low.c (lookup_decl_in_outer_ctx)
1340 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
1342 (scan_sharing_clauses): Support use_device.
1343 (check_omp_nesting_restrictions): Support host_data.
1344 (expand_omp_target): Support host_data.
1345 (lower_omp_target): Skip over outer host_data regions when looking
1346 up decls. Support use_device.
1347 (make_gimple_omp_edges): Support host_data.
1348 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
1350 2015-12-01 Marek Polacek <polacek@redhat.com>
1353 * cgraphunit.c (check_global_declaration): Only depend
1354 on TREE_THIS_VOLATILE for VAR_DECLs.
1356 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
1358 PR tree-optimization/68474
1359 * tree-call-cdce.c (use_internal_fn): Protect call to
1360 gen_shrink_wrap_conditions.
1362 2015-12-01 Christian Bruel <christian.bruel@st.com>
1365 * config/arm/arm.opt (unaligned_access): Save.
1366 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
1367 * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
1368 (arm_option_override_internal): ... here.
1369 * config/arm/arm.h (TARGET_32BIT_P): New macro.
1371 2015-12-01 Richard Biener <rguenther@suse.de>
1373 PR tree-optimization/68379
1374 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1375 always base loads on the first used DR of a group.
1376 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
1377 Compute alignment of the first scalar element unconditionally.
1379 2015-12-01 Richard Biener <rguenther@suse.de>
1382 * genmatch.c (struct capture_info): Add match_use_count.
1383 (capture_info::walk_match): Increment match_use_count.
1384 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
1385 replacements in a save_expr if they occur more often than
1386 in the original expression.
1388 2015-12-01 Richard Biener <rguenther@suse.de>
1391 * ipa-split.c (split_function): Handle main part not returning.
1393 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
1396 * tree-vect-stmts.c (vect_init_vector): Cast boolean
1397 scalars to a proper value before building a vector.
1399 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
1401 * genattrtab.c (check_attr_test): Take an attr_desc instead of
1402 an is_const flag. Put the file_location argument first.
1403 Update recursive calls. Improve error messages.
1404 (check_attr_value): Take a file location and use it instead
1405 of attr->loc. Improve error messages. Update calls to
1407 (check_defs): Update call to check_attr_value.
1408 (make_canonical): Likewise.
1409 (gen_attr): Likewise.
1411 (gen_insn_reserv): Update call to check_attr_test.
1413 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1415 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
1417 2015-12-01 Richard Biener <rguenther@suse.de>
1420 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
1422 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
1424 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
1425 odr_type_p): Move to ...
1426 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
1427 odr_type_p): here; miscro-optimize.
1429 2015-12-01 Bin Cheng <bin.cheng@arm.com>
1431 PR tree-optimization/68529
1432 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
1433 Compute no-overflow information for control iv.
1434 (number_of_iterations_lt, number_of_iterations_le): Add new param.
1435 (number_of_iterations_cond): Pass new argument to above functions.
1437 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
1439 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
1440 inlining -fno-strict-aliasing into -fstrict-aliasing body.
1442 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
1443 Sebastian Pop <s.pop@samsung.com>
1445 PR tree-optimization/68565
1446 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
1447 codegen_error. Fail when rhs of division operations is integer_zerop.
1448 (ternary_op_to_tree): Early return on codegen_error.
1449 (unary_op_to_tree): Same.
1450 (nary_op_to_tree): Same.
1451 (gcc_expression_from_isl_expr_op): Same.
1452 (gcc_expression_from_isl_expression): Same.
1453 (graphite_create_new_loop): On codegen_error continue generating
1455 (graphite_create_new_loop_guard): Same.
1456 (build_iv_mapping): Same.
1457 (graphite_create_new_guard): Same.
1459 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
1460 Sebastian Pop <s.pop@samsung.com>
1462 * graphite-isl-ast-to-gimple.c: Fix dump messages.
1463 * graphite-scop-detection.c: Same.
1464 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
1466 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
1468 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
1469 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
1470 (convert_local_omp_clauses): Likewise.
1472 2015-11-30 Tom de Vries <tom@codesourcery.com>
1474 PR tree-optimization/46032
1475 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
1477 (find_func_aliases_for_call): ... here.
1478 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
1479 BUILT_IN_GOMP_PARALLEL.
1480 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
1483 2015-11-30 Jakub Jelinek <jakub@redhat.com>
1485 PR tree-optimization/68501
1486 * target.def (builtin_reciprocal): Replace the 3 arguments with
1487 a gcall * one, adjust description.
1488 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
1490 * targhooks.c (default_builtin_reciprocal): Likewise.
1491 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
1492 targetm.builtin_reciprocal even on internal functions, adjust
1493 the arguments and allow replacing an internal function with normal
1495 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
1496 with a gcall * one. Handle internal fns too.
1497 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
1498 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
1499 * doc/tm.texi (builtin_reciprocal): Document.
1501 2015-11-30 Richard Biener <rguenther@suse.de>
1503 PR tree-optimization/68592
1504 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
1505 on the pattern def sequence.
1507 2015-11-30 Nathan Sidwell <nathan@acm.org>
1509 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
1510 (write_one_arg): Reorder parms, add 'sep' param.
1511 (nvptx_write_function_decl): Rename to ...
1512 (write_fn_proto): ... here. Do name replacement. Emit linaer
1513 comment marker. Deal with both decls and defns. Simplify argument
1515 (write_function_decl_and_comment): Delete.
1516 (write_func_decl_from_insn): Rename to ...
1517 (write_fn_proto_from_insn): ... here. Don't do name replacement.
1518 (nvptx_record_fndecl): Call write_fn_proto.
1519 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
1520 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
1521 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
1523 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
1525 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
1526 (define_insn "*k<logic><mode>"): Use new iterator.
1528 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1531 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
1532 (sparc_adjust_cost): Add missing space.
1534 2015-11-30 Richard Biener <rguenther@suse.de>
1537 * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
1539 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
1541 * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
1542 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
1543 base ref, DR pairs and store base_predicate for write type DRs.
1544 (ifcvt_memrefs_wont_trap): Guard checks with
1545 -ftree-loop-if-convert-stores flag.
1547 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1549 * cgraph.c (cgraph_node::make_local): No name is unique during
1550 incremental linking.
1551 * cgraph.h (can_be_discarded_p): Update comment; also common and
1552 WEAK in named sections can be discarded; when doing incremental
1553 link do not rely on resolution being the final one.
1554 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
1555 When symbol can be discarded, do not rely on resolution info.
1556 * symtab.c (symtab_node::nonzero_address): Take into account that
1557 symbol can be discarded.
1558 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
1559 definition correctly.
1560 (function_and_variable_visibility): Do not set unique_name when
1561 incrementally linking.
1563 2015-11-29 Nathan Sidwell <nathan@acm.org>
1565 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
1566 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
1567 (ctrap<mode>): Use const0_operand.
1569 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1571 * ipa-devirt.c (add_type_duplicate): Remove redundant
1574 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
1577 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
1578 recog_memoized test for insn and check recog_memoized for dep_insn.
1580 2015-11-28 Nathan Sidwell <nathan@acm.org>
1582 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
1583 (FRAME_POINTER_CFA_OFFSET): Define.
1584 (struct nvptx_args): Use 'tree' type.
1585 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
1587 2015-11-28 Tom de Vries <tom@codesourcery.com>
1589 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
1591 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
1593 * doc/invoke.texi (Option Summary): Use negative form of
1594 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
1595 sort alphabetically and re-justify.
1597 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
1599 PR rtl-optimization/68536
1600 * lra.c (lra_emit_add): Add code for null base.
1601 * lra-constraints.c (curr_insn_transform): Skip operators for
1604 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1607 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1609 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1611 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1612 are not modified by the final modified insns in the basic blocks.
1614 2015-11-27 Nathan Sidwell <nathan@acm.org>
1616 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
1618 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
1619 (nvptx_maybe_convert_symbolic_operand): Simplify.
1620 (nvptx_addr_space_from_address): Delete.
1621 (nvptx_print_operand): Adjust 'A' case.
1623 2015-11-27 Richard Biener <rguenther@suse.de>
1625 PR tree-optimization/68559
1626 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
1627 peeling for gap checks ...
1628 * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
1629 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
1630 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
1632 2015-11-27 Nathan Sidwell <nathan@acm.org>
1634 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
1635 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
1636 (nvptx_record_fndecl): Don't return value, remove force
1637 argument. Require fndecl.
1638 (nvptx_record_libfunc): New.
1639 (nvptx_record_needed_decl): Deteermine how to record decl here.
1640 (nvptx_maybe_record_fnsym): New.
1641 (nvptx_expand_call): Don't record libfuncs here,
1642 (nvptx_maybe_convert_symbolic_operand): Use
1643 nvptx_maye_record_fnsym.
1644 (nvptx_assemble_integer): Reimplement with single switch.
1645 (nvptx_output_call_insn): Register libfuncs here.
1646 (nvptx_file_end): Adjust nvptx_record_fndecl call.
1647 * config/nvptx/nvptx.md (expand_movdi): Don't call
1648 nvptx_record_needed_decl.
1650 2015-11-27 Richard Biener <rguenther@suse.de>
1652 PR tree-optimization/68553
1653 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
1654 generation for 1:1 permutations.
1655 (vect_transform_slp_perm_load): Detect 1:1 permutations.
1657 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
1659 * gimple.h (nonbarrier_call_p): Declare.
1660 * gimple.c (nonbarrier_call_p): New function.
1661 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
1662 Also increment call phase for ASMs with vdef and potential barrier
1665 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1667 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1669 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1670 are not modified by the final modified insns in the basic blocks.
1672 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1674 PR rtl-optimization/68506
1675 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
1676 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
1679 2015-11-27 Martin Liska <mliska@suse.cz>
1682 * vec.h (release_vec_vec): New function.
1684 2015-11-27 Jakub Jelinek <jakub@redhat.com>
1686 PR tree-optimization/68552
1687 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
1688 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
1689 or whether v0 == v1.
1691 2015-11-27 Martin Liska <mliska@suse.cz>
1693 * tree-ssa-uninit.c: Fix whitespaces in the source file.
1694 The change is just automatical.
1696 2015-11-27 Martin Liska <mliska@suse.cz>
1698 * tree-chkp.c (chkp_make_static_bounds): Release buffer
1701 2015-11-27 Martin Liska <mliska@suse.cz>
1703 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1704 Do not release memory for comp_alias_ddrs.
1705 * tree-vect-loop.c (destroy_loop_vec_info): Release
1706 the memory for all loop_vec_info.
1708 2015-11-27 Martin Liska <mliska@suse.cz>
1710 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
1711 of a local-scope vec.
1712 (struct final_warning_record): Use auto_vec instead of vec.
1714 2015-11-27 Richard Biener <rguenther@suse.de>
1716 PR tree-optimization/68553
1717 * tree-vect-slp.c (vect_get_mask_element): Remove.
1718 (vect_transform_slp_perm_load): Implement in a simpler way.
1720 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
1722 PR rtl-optimization/67753
1723 PR rtl-optimization/64164
1724 * function.c (assign_parm_setup_block): Right-shift
1725 upward-padded big-endian args when bypassing the stack slot.
1727 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
1729 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
1730 `-mcompact-branches='.
1731 (MIPS Options): Likewise.
1733 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1735 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
1737 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
1739 * doc/install.texi (Prerequisites): Increase ISL requirement to
1742 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1744 * config/aarch64/arm_neon.h
1745 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
1746 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
1747 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1748 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
1749 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
1750 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
1751 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
1752 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
1753 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1754 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
1755 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
1756 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
1758 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1760 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
1761 (vqrdmlahq_s16, vqrdmlahq_s32): New.
1762 (vqrdmlsh_s16, vqrdmlsh_s32): New.
1763 (vqrdmlshq_s16, vqrdmlshq_s32): New.
1765 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1767 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
1770 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
1773 * tree-nested.c (finalize_nesting_tree_1): Append a field to
1774 hold the frame base address.
1775 * dwarf2out.c (gen_subprogram_die): Generate for
1776 DW_AT_static_link a location description that computes the value
1779 2015-11-26 Tom de Vries <tom@codesourcery.com>
1782 2015-11-25 Tom de Vries <tom@codesourcery.com>
1784 * cfgloop.c (find_single_latch): New function, factored out of ...
1785 (flow_loops_find): ... here.
1786 (verify_loop_structure): Improve verification of loop->latch.
1787 * cfgloop.h (find_single_latch): Declare.
1788 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1790 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1792 * config/aarch64/aarch64-simd-builtins.def:
1793 Add missing changes from r230962.
1795 2015-11-26 Nathan Sidwell <nathan@acm.org>
1797 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
1798 arg with name. Don't deal with split regs. Tweak formatting.
1799 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
1800 (nvptx_output_call_insn): Don't deal with split regs here.
1802 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1804 * config/aarch64/aarch64-simd-builtins.def
1805 (sqrdmlah, sqrdmlsh): New.
1806 (sqrdmlah_lane, sqrdmlsh_lane): New.
1807 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
1809 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1811 * config/aarch64/aarch64-simd.md
1812 (aarch64_sqmovun<mode>): Fix some white-space.
1813 (aarch64_<sur>qmovun<mode>): Likewise.
1814 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
1815 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
1816 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
1817 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
1818 (UNSPEC_SQRDMLSH): New.
1822 2015-11-26 Richard Biener <rguenther@suse.de>
1824 PR tree-optimization/66721
1825 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
1826 iteration cost earlier. Re-do analysis without SLP when
1827 vectorization using SLP fails and without has a chance to succeed.
1829 2015-11-26 Richard Biener <rguenther@suse.de>
1831 * genmatch.c (dt_simplify::gen_1): For generic wrap all
1832 multi-result-use captures in a SAVE_EXPR.
1834 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1836 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
1837 (TARGET_SIMD_RDMA): New.
1839 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1841 * combine.c (subst): Do not return clobber of zero in widening mult
1842 case. Just return x unchanged if it is a no-op substitution.
1844 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
1847 * config/i386/i386.h (enum reg_class): Add
1848 bounds registers to ALL_REGS.
1850 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1852 PR tree-optimization/68128
1853 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
1854 * gimplify.c: Include gimple-walk.h.
1855 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
1856 (omp_notice_variable): Set flags to n->value if n already
1857 exists in target region, but we need to jump to do_outer.
1858 (omp_shared_to_firstprivate_optimizable_decl_p,
1859 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
1861 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
1862 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1863 not modified in the body. Call omp_mark_stores for outer
1864 contexts on OMP_CLAUSE_SHARED clauses if they could be written
1865 in the body or on OMP_CLAUSE_LASTPRIVATE.
1866 (gimplify_adjust_omp_clauses): Add body argument, call
1867 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
1868 Set OMP_CLAUSE_SHARED_READONLY
1869 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1870 not modified in the body. Call omp_mark_stores for outer
1871 contexts on OMP_CLAUSE_SHARED clauses if they could be written
1872 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
1873 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
1874 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
1875 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
1876 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
1877 * tree-nested.c (convert_nonlocal_omp_clauses,
1878 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
1879 non-local vars or local vars referenced from nested routines.
1880 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
1881 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
1882 TREE_READONLY, don't call use_pointer_for_field with non-NULL
1883 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
1885 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
1887 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
1888 about signed left shift stronger and clarify the cases when they're
1891 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1892 Bernd Schmidt <bschmidt@redhat.com>
1894 PR rtl-optimization/67226
1895 * calls.c (store_one_arg): Take into account
1896 crtl->args.pretend_args_size when checking for overlap between
1897 arg->value and argblock + arg->locate.offset during sibcall
1900 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
1902 * config/aarch64/aarch64.md (cbranch<mode>4): Use
1903 aarch64_fp_compare_operand.
1904 (store_pairsf): Use aarch64_reg_or_fp_zero.
1905 (store_pairdf): Likewise.
1906 (cstore<mode>4): Use aarch64_fp_compare_operand.
1907 (cmov<mode>6): Likewise.
1908 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
1910 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
1911 Sebastian Pop <s.pop@samsung.com>
1913 PR tree-optimization/68453
1914 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
1915 not redirect edges already pointing to their destination.
1916 (translate_isl_ast_node_for): Split edges after loops to create
1917 basic blocks for close phi nodes. Save merge points at the end of
1919 (translate_isl_ast_node_if): Save merge points at the end of the
1921 (add_close_phis_to_outer_loops): New.
1922 (add_close_phis_to_merge_points): New.
1923 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
1924 (copy_bb_and_scalar_dependences): Do not split basic blocks on
1925 loop close phi locations.
1927 2015-11-25 Jan Hubicka <jh@suse.cz>
1929 * ipa-visibility.c (cgraph_externally_visible_p,
1930 varpool_node::externally_visible_p): When doing incremental linking,
1931 hidden symbols may be still used later.
1932 (update_visibility_by_resolution_info): Do not drop weak during
1934 (function_and_variable_visibility): Fix formating.
1935 * flag-types.h (lto_linker_output): Declare.
1936 * common.opt 9flag_incremental_link): New flag.
1938 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
1940 * config/rs6000/constraints.md (wb constraint): New constraint for
1941 ISA 3.0 d-form scalar addressing.
1943 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
1944 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
1945 Altivec registers. Add wb constraint for Altivec registers with
1946 D-form addressing. If we have ISA 3.0 d-form support, undo
1947 secondary reload support for using FPR registers if we want to do
1949 (rs6000_debug_reg_global): Likewise.
1950 (rs6000_setup_reg_addr_masks): Likewise.
1951 (rs6000_init_hard_regno_mode_ok): Likewise.
1952 (rs6000_secondary_reload): Likewise.
1953 (rs6000_preferred_reload_class): Likewise.
1954 (rs6000_secondary_reload_class): Likewise.
1956 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
1959 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
1960 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
1961 (f32_lm2): Likewise.
1962 (f32_li2): Likewise.
1963 (f32_sr2): Likewise.
1964 (f32_sm2): Likewise.
1965 (f32_si2): Likewise.
1967 (extendsfdf2_fpr): Likewise.
1968 (mov<mode>_hardfloat): Likewise.
1969 (mov<mode>_hardfloat32): Likewise.
1970 (mov<mode>_hardfloat64): Likewise.
1972 * doc/md.texi (RS/6000 constraints): Document wb constraint.
1973 Fixup we constraint documentation.
1975 2015-11-25 Tom de Vries <tom@codesourcery.com>
1977 * omp-low.c (pass_expand_omp_ssa::clone): New function.
1978 * passes.def: Add pass_oacc_kernels pass group.
1979 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
1981 2015-11-25 Tom de Vries <tom@codesourcery.com>
1983 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
1985 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
1986 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
1987 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
1988 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
1990 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
1992 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
1993 TV_IPA_LTO_OUTPUT): New.
1994 * lto-compress.c: Include timevar.h
1995 (lto_end_compression, lto_end_uncompression): Add timers.
1996 * langhooks.c: Include timevar.h.
1997 (lhd_append_data): Add timer.
1999 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
2001 * varasm.c (default_elf_asm_output_limited_string,
2002 default_elf_asm_output_ascii): Replace fprintf by putc.
2004 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
2006 PR rtl-optimization/67954
2007 * lra-constraints.c (curr_insn_transform): Add check on scratch
2008 pseudo when change class to NO_REGS. Add an assert.
2010 2015-11-25 Nathan Sidwell <nathan@acm.org>
2012 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
2014 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
2015 (nvptx_write_function_decl): Number args from 0.
2016 (nvptx_declare_function_name): Likewise.
2017 (nvptx_function_incoming_arg): Likewise.
2018 (nvptx_output_call_insn): Correct formatting.
2020 2015-11-25 David Sherwood <david.sherwood@arm.com>
2022 * optabs.def: Add new optabs fmax_optab/fmin_optab.
2023 * internal-fn.def: Add new fmax/fmin internal functions.
2024 * doc/md.texi: Add fmin and fmax patterns.
2026 2015-11-25 Jason Merrill <jason@redhat.com>
2029 * tree.c (integer_zerop, integer_onep, integer_each_onep)
2030 (integer_all_onesp, integer_minus_onep, integer_pow2p)
2031 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
2032 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
2034 2015-11-25 Richard Biener <rguenther@suse.de>
2037 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
2038 on stripped operands.
2040 2015-11-25 Nathan Sidwell <nathan@acm.org>
2042 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
2043 (nvptx_declare_function_name): Move assignments next to register
2044 declarations, and process params here.
2046 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
2048 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
2049 both the symbol and the "dot" symbol for function descriptors. Fix
2050 inversion for rename of symbols with dollar sign.
2052 2015-11-25 Tom de Vries <tom@codesourcery.com>
2054 * cfgloop.c (find_single_latch): New function, factored out of ...
2055 (flow_loops_find): ... here.
2056 (verify_loop_structure): Improve verification of loop->latch.
2057 * cfgloop.h (find_single_latch): Declare.
2058 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
2060 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2062 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
2063 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
2064 (STARTFILE_SPEC): Use %(startfile_vtv).
2065 (ENDFILE_SPEC): Use %(endfile_vtv).
2066 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
2069 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
2071 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
2073 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
2074 noce_can_store_speculate): Delete.
2075 (noce_process_if_block): Don't try to handle single MEM stores.
2076 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
2077 * alias.c (memory_must_be_modified_in_insn_p): Delete.
2079 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2081 PR rtl-optimization/68435
2082 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
2083 for conflicts between a, b and the set destinations.
2085 2015-11-25 Richard Biener <rguenther@suse.de>
2087 PR tree-optimization/68517
2088 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
2089 Properly handle zero-sized types.
2091 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2093 * ipa-inline-analysis.c: Include gimplify.h
2094 (set_cond_stmt_execution_predicate,
2095 set_switch_stmt_execution_predicate): Be sure to not leak locations
2098 2015-11-25 Jakub Jelinek <jakub@redhat.com>
2101 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
2102 match_uaddsub_overflow): New functions.
2103 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
2105 2015-11-25 Richard Biener <rguenther@suse.de>
2107 PR tree-optimization/68492
2108 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
2109 op from scalars after operand swapping.
2111 2015-11-25 Richard Biener <rguenther@suse.de>
2113 PR tree-optimization/68502
2114 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
2115 check that the step is a multiple of the type size.
2117 2015-11-24 Michael Collison <michael.collison@linaro.org>
2119 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
2120 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
2121 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
2123 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
2125 * frame-header-opt.c (gate): Check for optimize > 0.
2126 (has_inlined_assembly): New function.
2127 (needs_frame_header_p): Remove is_leaf_function check,
2128 add argument type check.
2129 (callees_functions_use_frame_header): Add is_leaf_function
2130 and has_inlined_assembly calls..
2131 (set_callers_may_not_allocate_frame): New function.
2132 (frame_header_opt): Add is_leaf_function call, add
2133 set_callers_may_not_allocate_frame call.
2134 * config/mips/mips.c (mips_compute_frame_info): Add check
2135 to see if callee saved regs can be put in frame header.
2136 (mips_expand_prologue): Add check to see if step1 is zero,
2137 fix cfa restores when using frame header to store regs.
2138 (mips_can_use_return_insn): Check to see if registers are
2139 stored in frame header.
2140 * config/mips/mips.h (machine_function): Add
2141 callers_may_not_allocate_frame and
2142 use_frame_header_for_callee_saved_regs fields.
2144 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
2146 PR rtl-optimization/68520
2147 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
2148 its bit was already set in BB_WITH.
2150 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2152 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
2153 double check that type is main variant.
2154 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
2156 (verify_type_variant): Verify that variants have no
2157 TYPE_ALIAS_SET_KNOWN_P set
2158 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
2159 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
2160 only for main variants; stream TYPE_ALIAS_SET as a bit.
2161 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
2164 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2166 * tree.c (make_vector_type): Properly compute canonical type of the
2168 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
2171 2015-11-24 Nathan Sidwell <nathan@acm.org>
2173 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
2174 VOIDmode, don't alter incoming mode.
2175 (nvptx_split_reg_p): Delete.
2176 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
2177 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
2178 maybe_split_mode calls.
2179 (nvptx_print_operand): Use maybe_split_mode.
2181 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2183 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
2184 only for types where LTO sets them.
2185 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
2186 (make_vector_type): Likewise.
2187 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
2188 * tree.h (canonical_type_used_p): New inline.
2189 * alias.c (get_alias_set): Handle structural equality for all
2190 types that pass canonical_type_used_p.
2191 (record_component_aliases): Look through all types with
2192 record_component_aliases for possible pointers; sanity check that
2193 the alias sets match.
2195 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2197 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
2199 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2201 * tree.c (free_node): New function.
2202 (type_hash_canon): Use it.
2203 * tree.h (free_node): Declare.
2205 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
2206 Michael Meissner <meissner@linux.vnet.ibm.com>
2208 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
2209 (Fv2): New mode attribute to be used when ISA 2.07 instructions
2210 are used on SF values, and ISA 2.06 instructions on DF values.
2211 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
2212 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
2213 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
2214 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
2215 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
2216 (fre<Fs>): Use <Fv2> instead of <Fv>.
2217 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
2218 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
2219 (xsrdpi<mode>): Add support for the lround function.
2220 (lround<mode>di2): Likewise.
2221 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2222 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2223 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2224 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2226 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
2227 Sebastian Pop <s.pop@samsung.com>
2229 PR tree-optimization/67984
2230 * graphite-isl-ast-to-gimple.c (is_constant): New.
2231 (get_rename): Call is_constant.
2232 (get_new_name): Same.
2234 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
2235 Sebastian Pop <s.pop@samsung.com>
2237 * graphite-dependences.c: Only include graphite.h.
2238 * graphite-isl-ast-to-gimple.c: Same.
2239 * graphite-optimize-isl.c: Same.
2240 * graphite-poly.c: Same.
2241 * graphite-scop-detection.c: Same.
2242 * graphite-sese-to-poly.c: Same.
2244 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
2245 * graphite-poly.h: Same.
2246 * graphite-scop-detection.h: Same.
2249 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
2251 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
2252 DW_TAG_namespace for IMPORTED_DECL declarations. Call
2253 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
2254 function already takes care of checking what it can emit.
2256 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2258 * doc/invoke.texi (-fpic): Add the AArch64 limit.
2259 (-fPIC): Add AArch64.
2261 2015-11-24 Tom de Vries <tom@codesourcery.com>
2263 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
2264 (pass_lim::execute): Allow to run outside pass_tree_loop.
2266 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
2268 * config/aarch64/aarch64.md (add<mode>3):
2269 Block early expansion into 2 add instructions.
2270 (add<mode>3_pluslong): New pattern to combine complex
2271 immediates into 2 additions.
2273 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
2278 * config/rs6000/predicates.md (and_operand): Check that the operand
2279 is a const_int before calling rs6000_is_valid_and_mask.
2281 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2283 * config/aarch64/aarch64.md (*condjump): Rename to...
2284 (condjump): ... This.
2285 (*compare_condjump<mode>): New define_insn_and_split.
2286 (*compare_cstore<mode>_insn): Likewise.
2287 (*cstore<mode>_insn): Rename to...
2288 (cstore<mode>_insn): ... This.
2289 * config/aarch64/iterators.md (CMP): Handle ne code.
2290 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
2292 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
2295 * config/i386/i386.c (output_387_binary_op): Fix assertion for
2298 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2300 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
2301 (val_ssa_equiv_hash_traits::remove): Likewise.
2302 (pass_uncprop::execute): Adjust.
2304 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2306 * hash-map-traits.h (simple_hashmap_traits ::remove): call
2307 destructors on values that are being removed.
2308 * mem-stats.h (hash_map): Pass type of values to
2309 simple_hashmap_traits.
2310 * tree-sra.c (sra_deinitialize): Remove work around for hash
2311 maps not destructing values.
2312 * genmatch.c (sinfo_hashmap_traits): Adjust.
2313 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
2315 2015-11-24 Richard Biener <rguenther@suse.de>
2316 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2319 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
2322 2015-11-24 Jakub Jelinek <jakub@redhat.com>
2325 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
2326 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
2328 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
2329 whenever first is nelt or above. Don't mask expected with
2332 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
2335 * gimple-fold.c: Include ipa-chkp.h.
2336 (gimple_fold_builtin_memory_op): Don't fold call if we
2337 are going to instrument it and it may copy pointers.
2339 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
2340 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2342 PR rtl-optimization/68194
2343 PR rtl-optimization/68328
2344 PR rtl-optimization/68185
2345 * ree.c (combine_reaching_defs): Reject copy_needed case if
2346 copies_list is not empty.
2348 2015-11-24 Richard Biener <rguenther@suse.de>
2351 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
2354 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
2356 PR rtl-optimization/68381
2357 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
2360 2015-11-23 Nick Clifton <nickc@redhat.com>
2361 Jeff Law <law@redhat.com>
2363 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
2364 the source/dest of the target extension require a different number of
2366 (combine_set_extension): Remove #if 0 code.
2368 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2369 Sebastian Pop <s.pop@samsung.com>
2371 PR tree-optimization/68314
2372 * graphite-optimize-isl.c (optimize_isl): Do not call
2373 isl_union_map_is_equal.
2374 * graphite-poly.c (new_scop): Remove original_schedule.
2376 * graphite-poly.h (struct scop): Same.
2377 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
2379 (build_pbb_scattering_polyhedrons): Add back.
2380 (build_scop_minimal_scattering): Remove.
2381 (build_scop_scattering): Add back.
2382 (build_scop_original_schedule): Remove.
2383 (build_poly_scop): Revert to only call build_scop_scattering.
2385 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2386 Sebastian Pop <s.pop@samsung.com>
2388 PR tree-optimization/68493
2389 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
2390 missing early return when codegen_error is set.
2392 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2393 Sebastian Pop <s.pop@samsung.com>
2395 PR tree-optimization/68279
2396 * graphite-poly.c (new_scop): Remove poly_scop_p.
2397 * graphite-poly.h (struct scop): Same.
2398 (build_poly_scop): Declare.
2399 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
2400 (cleanup_loop_iter_dom): New.
2401 (build_loop_iteration_domains): Early return when scev analysis fails.
2402 (create_pw_aff_from_tree): Same.
2403 (add_condition_to_pbb): Same.
2404 (add_conditions_to_domain): Same.
2405 (add_conditions_to_constraints): Same.
2406 (build_scop_iteration_domain): Same.
2407 (build_poly_scop): Same. Do not initialize poly_scop_p.
2408 * graphite-sese-to-poly.h: Remove.
2409 * graphite.c: Do not include graphite-sese-to-poly.h.
2410 (graphite_transform_loops): Stop before code generation when
2411 build_poly_scop fails.
2412 * sese.c (scalar_evolution_in_region): Add fixme note about scev
2415 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2416 Sebastian Pop <s.pop@samsung.com>
2418 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2419 Remove call to update_ssa.
2420 * sese.c (sese_insert_phis_for_liveouts): Same.
2422 2015-11-23 Marek Polacek <polacek@redhat.com>
2424 PR tree-optimization/68455
2425 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
2426 extract_range_from_multiplicative_op_1 on symbolic ranges.
2428 2015-11-23 Richard Henderson <rth@redhat.com>
2430 * optabs.def (uaddv4_optab, usubv4_optab): New.
2431 * internal-fn.c (expand_addsub_overflow): Use them.
2432 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
2434 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
2435 to reversed operands.
2436 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
2437 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
2438 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
2439 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
2440 (*add<SWI>3_cconly_overflow_2): New.
2441 (*add<SWI>3_cc_overflow_2): New.
2442 (*addsi3_zext_cc_overflow_2): New.
2444 2015-11-23 Richard Biener <rguenther@suse.de>
2446 PR tree-optimization/68465
2447 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
2448 Also record equalities from multiple predecessor blocks if
2449 only one non-backedge exists.
2451 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2454 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
2455 that are not INSN_P.
2457 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
2459 * config/aarch64/aarch64-builtins.c
2460 (aarch64_gimple_fold_builtin): Fold FMULX.
2462 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
2464 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
2465 * graphite-dependences.c: Define USES_ISL. Include ISL header files
2466 after GCC header files and before graphite header files.
2467 * graphite-dependences.c: Same.
2468 * graphite-isl-ast-to-gimple.c: Same.
2469 * graphite-optimize-isl.c: Same.
2470 * graphite-poly.c: Same.
2471 * graphite-scop-detection.c: Same.
2472 * graphite-sese-to-poly.c: Same.
2475 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
2476 Jiong Wang <jiong.wang@arm.com>
2478 PR tree-optimization/68317
2479 PR tree-optimization/68326
2480 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
2481 final min and max are not infinity.
2483 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2484 Richard Biener <rguenther@suse.de>
2486 PR tree-optimization/68327
2487 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2488 compute vectype for non-relevant mask producers.
2489 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
2492 2015-11-23 Tom de Vries <tom@codesourcery.com>
2494 PR tree-optimization/68460
2495 * tree-parloops.c (gather_scalar_reductions): Also call
2496 free_stmt_vec_info_vec if simple_loop_info == NULL.
2498 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
2500 * opts.c (finish_options): Allow -fsanitize-recover=address for
2501 userspace sanitization.
2502 * asan.c (asan_expand_check_ifn): Redefine recover_p.
2503 * doc/invoke.texi (fsanitize-recover): Update documentation.
2505 2015-11-23 Tom de Vries <tom@codesourcery.com>
2507 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
2509 2015-11-23 Richard Biener <rguenther@suse.de>
2511 PR tree-optimization/68445
2512 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
2513 two different strides.
2515 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
2517 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
2518 * config/s390/s390.c (s390_check_symref_alignment): Use new
2519 symref flags, early abort on wrong alignment
2520 (s390_secondary_reload): Use new symref flags.
2521 (s390_encode_section_info): Likewise.
2522 * config/s390/predicates.md: Likewise.
2524 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2527 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
2528 for indirect function call.
2530 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
2532 * config/aarch64/aarch64-simd.md
2533 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
2534 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
2535 (*aarch64_mulx_elt_to_64v2df): Likewise.
2536 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
2537 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
2538 (vmulx_lane_f64): Likewise.
2539 (vmulxq_lane_f32): Refactored & moved.
2540 (vmulxq_lane_f64): Likewise.
2541 (vmulx_laneq_f32): New.
2542 (vmulx_laneq_f64): Likewise.
2543 (vmulxq_laneq_f32): Likewise.
2544 (vmulxq_laneq_f64): Likewise.
2545 (vmulxs_lane_f32): Likewise.
2546 (vmulxs_laneq_f32): Likewise.
2547 (vmulxd_lane_f64): Likewise.
2548 (vmulxd_laneq_f64): Likewise.
2550 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
2552 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
2553 In LTO we do not compute TYPE_CANONICAL of pointers.
2554 (gimple_canonical_types_compatible_p): Improve coments; sanity check
2555 that pointers do not have canonical type that would make us believe
2557 * alias.c (get_alias_set): Do structural type equality on pointers;
2558 enable pointer path for LTO; also glob pointer to vector with pointer
2559 to vector element; glob pointers and references for LTO; do more strict
2560 sanity checking about build_pointer_type returning the canonical type
2561 which is also the main variant.
2562 (record_component_aliases): When component type is pointer and we
2563 do LTO; record void_type_node alias set.
2565 2015-11-21 Nathan Sidwell <nathan@acm.org>
2567 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
2569 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
2571 (write_func_decl_from_insn): Likewise.
2572 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
2573 (nvptx_file_end): Likewise.
2574 (nvptx_function_end): Undent output.
2575 (nvptx_expand_call): Fix formatting.
2576 (nvptx_output_call_insn): Indent output.
2577 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2578 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
2580 2015-11-21 Jakub Jelinek <jakub@redhat.com>
2583 * tree-inline.c (copy_debug_stmt): If
2584 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
2585 in decl_debug_args, don't call remap_gimple_op_r on it.
2587 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
2589 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
2590 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
2591 Check that all record types are complete.
2592 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
2593 compare alias sets for types w/o alias sets.
2595 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
2597 * config/sparc/sparc.md (umulxhi_vis): Move around.
2598 (*umulxhi_sp64): Likewise.
2599 (umulxhi_v8plus): Likewise.
2600 (xmulx_vis): Likewise.
2601 (*xmulx_sp64): Likewise.
2602 (xmulx_v8plus): Likewise.
2603 (xmulxhi_vis): Likewise.
2604 (*xmulxhi_sp64): Likewise.
2605 (xmulxhi_v8plus): Likewise.
2607 2015-11-20 David Malcolm <dmalcolm@redhat.com>
2610 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
2611 (class layout): Update comment
2612 (layout::print_any_fixits): New method.
2613 (layout::move_to_column): New method.
2614 (diagnostic_show_locus): Add call to layout.print_any_fixits.
2616 2015-11-20 Jakub Jelinek <jakub@redhat.com>
2619 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
2620 has non-zero bias, subtract it in integer type instead of
2621 pointer plus of negated bias.
2624 * omp-low.c (expand_simd_clones): Call node->get_body () before
2625 allocating stuff in GC.
2627 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
2629 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
2631 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
2633 * config/aarch64/aarch64.md (predicated): Copy attribute from
2635 * config/arm/arm.md (predicated): Added description.
2637 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2639 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
2640 for unaligned_access.
2641 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
2642 from matching condition.
2643 (unaligned_loadhis): Likewise.
2644 (unaligned_loadhiu): Likewise.
2645 (unaligned_storesi): Likewise.
2646 (unaligned_storehi): Likewise.
2648 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2651 * config/arm/arm.md (unaligned_loaddi): Delete.
2652 (unaligned_storedi): Likewise.
2653 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
2654 unaligned DImode memory ops. Instead perform two back-to-back
2655 unaligned SImode ops.
2657 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
2658 James Norris <jnorris@codesourcery.com>
2660 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
2661 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
2663 2015-11-20 Alan Hayward <alan.hayward@arm.com>
2665 PR tree-optimization/68413
2666 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
2668 (vectorizable_reduction): Use cached base
2670 2015-11-20 Tom de Vries <tom@codesourcery.com>
2672 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
2674 (try_create_reduction_list): Same. Fix typo in dump-file string.
2676 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
2678 * doc/md.texi (Standard Names): Move entry for addptr3 around,
2679 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
2680 glitch in entries for cbranch4 and jump.
2682 2015-11-20 Tom de Vries <tom@codesourcery.com>
2684 PR tree-optimization/68373
2685 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
2687 (scev_const_prop): ... here.
2688 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
2689 * tree-parloops.c (try_create_reduction_list): Call
2690 final_value_replacement_loop.
2692 2015-11-20 Bin Cheng <bin.cheng@arm.com>
2694 PR tree-optimization/52272
2695 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
2696 (struct iv_common_cand_hasher): New struct.
2697 (iv_common_cand_hasher::hash): New function.
2698 (iv_common_cand_hasher::equal): New function.
2699 (struct ivopts_data): New fields, iv_common_cand_tab and
2701 (tree_ssa_iv_optimize_init): Initialize above fields.
2702 (record_common_cand, common_cand_cmp): New functions.
2703 (add_iv_candidate_derived_from_uses): New function.
2704 (add_iv_candidate_for_use): Record iv_common_cands derived from
2705 iv use in hash table, instead of adding candidates directly.
2706 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
2707 (record_important_candidates): Add important candidates to iv uses'
2708 related_cands. Always keep related_cands for future use.
2709 (try_add_cand_for): Use iv uses' related_cands.
2710 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
2711 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
2713 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2715 * config/s390/s390.md ("bswaphi2"): New pattern.
2717 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
2719 * config/s390/s390.md (GPR1_REGNUM): New constant.
2720 ("*trunc<BFP:mode><DFP_ALL:mode>2")
2721 ("*trunc<DFP_ALL:mode><BFP:mode>2")
2722 ("trunc<BFP:mode><DFP_ALL:mode>2")
2723 ("trunc<DFP_ALL:mode><BFP:mode>2")
2724 ("*extend<BFP:mode><DFP_ALL:mode>2")
2725 ("*extend<DFP_ALL:mode><BFP:mode>2")
2726 ("extend<BFP:mode><DFP_ALL:mode>2")
2727 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
2729 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2730 Sebastian Pop <s.pop@samsung.com>
2732 PR tree-optimization/68428
2733 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
2734 over basic blocks outside the scop.
2736 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2737 Sebastian Pop <s.pop@samsung.com>
2739 PR tree-optimization/68341
2740 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
2741 gcc_unreachable and safely fail codegen.
2742 (copy_loop_close_phi_args): Do not insert merge phis in a basic
2743 block with loop phi nodes.
2744 (edge_for_new_close_phis): New.
2745 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
2747 2015-11-19 Nathan Sidwell <nathan@acm.org>
2749 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
2750 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
2751 (nvptx_declare_objec_name): Likewise.
2753 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2755 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
2756 (get_false_edge_from_guard_bb): Move...
2757 * sese.c (get_false_edge_from_guard_bb)
2758 (get_true_edge_from_guard_bb): ... here.
2760 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
2763 2015-11-18 Alan Modra <amodra@gmail.com>
2765 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2766 type-limits warning.
2769 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2771 * tree.h (desired_pro_or_demotion_p): New function.
2772 * tree-vrp.c (simplify_cond_using_ranges): Call it.
2774 2015-11-19 Michael Matz <matz@suse.de>
2776 * fwprop.c (update_uses): Use flag_checking instead of
2777 gcc_checking_assert.
2779 2015-11-19 David Malcolm <dmalcolm@redhat.com>
2781 * doc/gty.texi (Support for inheritance): Fix missing
2782 parentheses in example.
2784 2015-11-19 Marek Polacek <polacek@redhat.com>
2786 PR tree-optimization/68431
2787 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
2789 2015-11-19 Nathan Sidwell <nathan@acm.org>
2791 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
2792 atomic_exchange<mode>): Input values can be immediates.
2794 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
2797 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
2799 * configure: Regenerate.
2801 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
2804 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
2805 (DTORS_SECTION_ASM_OP): Likewise.
2807 2015-11-19 Jakub Jelinek <jakub@redhat.com>
2809 PR rtl-optimization/68376
2810 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
2811 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
2813 2015-11-19 Richard Biener <rguenther@suse.de>
2816 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
2817 redirect_edge_var_map_destroy.
2819 2015-11-19 Jakub Jelinek <jakub@redhat.com>
2822 * config/i386/i386.md (simple_return): Disable if
2823 ix86_static_chain_on_stack is true.
2825 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
2828 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
2831 2015-11-18 Jeff Law <law@redhat.com>
2833 PR tree-optimization/68198
2834 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
2835 between threading a multi-way branch and a thread path that contains
2836 a multi-way branch. Disallow the case where a path contains a
2837 multi-way branch and does not thread a multi-way branch.
2838 (thread_through_all_blocks): Update comment.
2840 2015-11-18 Joseph Myers <joseph@codesourcery.com>
2843 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
2844 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
2845 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
2846 functions before defining as macros.
2848 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2850 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
2851 (nvptx_record_offload_symbol): Remove code compensating for lack
2852 of default dimension handling.
2853 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
2855 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
2857 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
2858 type to bool for early exit.
2859 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
2861 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
2862 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
2863 predecessor dominates the other.
2864 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
2865 element is not found it returns -1.
2866 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
2867 out early when codegen fails.
2868 (graphite_regenerate_ast_isl): Remove codegen region when pending
2869 phis could not be generated.
2871 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
2873 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
2875 (class translate_isl_ast_to_gimple): Indentation.
2876 (translate_pending_phi_nodes): Comment.
2877 (add_parameters_to_ivs_params): Moved from sese.c inside class
2878 translate_isl_ast_to_gimple.
2879 (get_max_schedule_dimensions): Same.
2880 (generate_isl_context): Same.
2881 (extend_schedule): Same.
2882 (generate_isl_schedule): Same.
2883 (set_options): Same.
2884 (scop_to_isl_ast): Same.
2885 (is_valid_rename): Same.
2887 (get_rename_from_scev): Same.
2888 (get_def_bb_for_const): Same.
2889 (get_new_name): Same.
2890 (collect_all_ssa_names): Same.
2891 (copy_loop_phi_args): Same.
2892 (copy_loop_phi_nodes): Same.
2893 (copy_loop_close_phi_args): Same.
2894 (copy_loop_close_phi_nodes): Same.
2895 (copy_cond_phi_args): Same.
2896 (copy_cond_phi_nodes): Same.
2897 (graphite_copy_stmts_from_block): Same.
2898 (copy_bb_and_scalar_dependences): Same.
2899 (add_phi_arg_for_new_expr): Same.
2900 (rename_uses): Same.
2902 (set_rename_for_each_def): Same.
2903 (gsi_insert_earliest): Same.
2904 (rename_all_uses): Same.
2905 (codegen_error_p): Same.
2906 (print_isl_ast_node): Same.
2907 (translate_isl_ast_for_loop): Call function codegen_error_p.
2908 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2909 (translate_isl_ast_node_user): Make nb_loops const and release
2911 (get_true_edge_from_guard_bb): Move all free-functions early.
2912 (get_false_edge_from_guard_bb): Same.
2913 (bb_contains_loop_close_phi_nodes): Same.
2914 (bb_contains_loop_phi_nodes): Same.
2915 (is_loop_closed_ssa_use): Same.
2916 (number_of_phi_nodes): Same.
2917 (phi_uses_name): Same.
2918 (later_of_the_two): Same.
2919 (substitute_ssa_name):
2922 (get_loop_init_value): Same.
2923 (find_init_value): Same.
2924 (find_init_value_close_phi): Same.
2925 (ast_build_before_for): Same.
2926 (graphite_regenerate_ast_isl): Formatting changes.
2927 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
2928 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
2930 (gsi_insert_earliest): Same.
2931 (collect_all_ssa_names): Same.
2932 (rename_all_uses): Same.
2933 (rename_uses): Same.
2934 (get_def_bb_for_const): Same.
2935 (copy_loop_phi_nodes): Same.
2936 (copy_loop_close_phi_args): Same.
2937 (copy_loop_close_phi_nodes): Same.
2938 (copy_cond_phi_args): Same.
2939 (copy_cond_phi_nodes): Same.
2940 (set_rename_for_each_def): Same.
2941 (graphite_copy_stmts_from_block): Same.
2942 (copy_bb_and_scalar_dependences): Same.
2943 (if_region_set_false_region): Same.
2944 (scev_analyzable_p): Same.
2945 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
2947 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
2949 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
2950 commit from r125920 for FreeBSD.
2952 2015-11-18 Jason Merrill <jason@redhat.com>
2954 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
2956 (add_finalizer): Split out from ggc_internal_alloc.
2957 (ggc_handle_finalizers): Run finalizers for the current depth.
2958 (init_ggc, ggc_pch_read): Reserve space for finalizers.
2960 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
2963 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
2966 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2968 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
2969 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
2971 * doc/avr-mmcu.texi: Regenerate.
2973 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2975 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
2976 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
2977 (struct bb_sese): New struct.
2978 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
2979 (BB_GET_SESE, BB_SET_SESE): Define.
2980 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
2981 (nvptx_find_sese): New.
2982 (nvptx_neuter_pars): Find SESE regions when optimizing.
2984 2015-11-18 Alan Modra <amodra@gmail.com>
2986 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2987 type-limits warning.
2989 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
2992 * hash-set.h (hash_set::traverse): Expand Key typedef.
2994 2015-11-18 Martin Liska <mliska@suse.cz>
2996 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
2999 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
3001 * config/nvptx/nvptx.c (global_lock_var): New.
3002 (nvptx_global_lock_addr): New.
3003 (nvptx_lockless_update): Recomment and adjust for clarity.
3004 (nvptx_lockfull_update): New.
3005 (nvptx_reduction_update): New.
3006 (nvptx_goacc_reduction_fini): Call it.
3008 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
3010 * regrename.h (struct du_head): Add target_data_1 and target_data_2
3012 * regrename.c (create_new_chain): Clear entire struct after allocating.
3014 * config/i386/i386.opt (mmitigate-rop): New option.
3015 * doc/invoke.texi (mmitigate-rop): Document.
3016 * config/i386/i386.c: Include "regrename.h".
3017 (ix86_rop_should_change_byte_p, reg_encoded_number,
3018 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
3020 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
3021 * config/i386/i386.md (attr "modrm_class"): New.
3022 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
3023 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
3024 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
3026 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3029 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
3031 2015-11-18 Jakub Jelinek <jakub@redhat.com>
3033 PR tree-optimization/68157
3034 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
3035 pow_stmt or mul_stmt from stmt's uid.
3036 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
3038 2015-11-18 Martin Liska <mliska@suse.cz>
3040 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
3042 2015-11-18 Martin Liska <mliska@suse.cz>
3044 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3045 Fix GNU coding style.
3046 (find_def_preds): Use auto_vec.
3047 (destroy_predicate_vecs): Change signature of the function.
3048 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
3050 (simplify_preds_4): Use destroy_predicate_vecs instread of
3051 just releasing preds vector.
3052 (normalize_preds): Likewise.
3053 (is_use_properly_guarded): Use new signature of
3054 destroy_predicate_vecs.
3055 (find_uninit_use): Likewise.
3057 2015-11-18 Richard Biener <rguenther@suse.de>
3059 PR tree-optimization/67790
3060 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
3061 IL rewrite for MINUS_EXPR reductions, rename back to ...
3062 (vect_is_simple_reduction): ... this, removing the wrapper.
3063 (vect_force_simple_reduction): Adjust.
3064 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
3065 reductions and make use if reduc_index in all places. For
3066 the final reduction of MINUS_EXPR use PLUS_EXPR.
3068 2015-11-18 Alan Modra <amodra@gmail.com>
3070 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
3072 * configure: Regenerate.
3074 2015-11-17 Tom de Vries <tom@codesourcery.com>
3076 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
3078 2015-11-17 Tom de Vries <tom@codesourcery.com>
3080 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
3081 uses of ssa_name with constant.
3083 2015-11-17 Tom de Vries <tom@codesourcery.com>
3085 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
3088 2015-11-17 Tom de Vries <tom@codesourcery.com>
3090 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
3091 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
3092 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
3094 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
3096 * regrename.c (regrename_find_superclass): New function, code moved
3098 (rename_chains): ... here. Call it.
3099 * regrename.h (regrename_find_superclass): Declare.
3101 * regrename.c (record_out_operands): Terminate earlyclobbered
3105 * regrename.c (record_operand_use): Keep track of failed operands
3106 and stop appending if we see any.
3107 * regrename.h (struct operand_rr_info): Add a failed field and shrink
3110 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
3113 * doc/extend.texi (Common Function Attributes) [visibility]:
3114 Add cross-references to matching variable and type attributes.
3115 (Common Variable Attributes) [visibility]: Add missing entry.
3117 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3119 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
3120 entries that map directly to optabs.
3122 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3124 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
3125 entries that map directly to optabs.
3127 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3129 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
3130 * internal-fn.c (direct_internal_fn_array): Update accordingly.
3131 * tree-vectorizer.h (vectorizable_function): Delete.
3132 * tree-vect-stmts.c: Include internal-fn.h.
3133 (vectorizable_internal_function): New function.
3134 (vectorizable_function): Inline into...
3135 (vectorizable_call): ...here. Explicitly reject calls that read
3136 from or write to memory. Try using an internal function before
3137 falling back on the old vectorizable_function behavior.
3139 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3141 * target.def (builtin_vectorized_function): Take a combined_fn (in
3142 the form of an unsigned int) rather than a function decl.
3143 (builtin_md_vectorized_function): New.
3144 * targhooks.h (default_builtin_vectorized_function): Replace the
3145 fndecl argument with an unsigned int.
3146 (default_builtin_md_vectorized_function): Declare.
3147 * targhooks.c (default_builtin_vectorized_function): Replace the
3148 fndecl argument with an unsigned int.
3149 (default_builtin_md_vectorized_function): New function.
3150 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
3152 * doc/tm.texi: Regenerate.
3153 * tree-vect-stmts.c (vectorizable_function): Update call to
3154 builtin_vectorized_function, also passing internal functions.
3155 Call builtin_md_vectorized_function for target-specific builtins.
3156 * config/aarch64/aarch64-protos.h
3157 (aarch64_builtin_vectorized_function): Replace fndecl argument
3158 with an unsigned int.
3159 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
3160 (aarch64_builtin_vectorized_function): Update after above changes.
3162 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
3163 fndecl argument with an unsigned int.
3164 * config/arm/arm-builtins.c: Include case-cfn-macros.h
3165 (arm_builtin_vectorized_function): Update after above changes.
3167 * config/i386/i386.c: Include case-cfn-macros.h
3168 (ix86_veclib_handler): Take a combined_fn rather than a
3170 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
3171 mathfn_built_in rather than calling builtin_decl_implicit directly.
3172 (ix86_builtin_vectorized_function) Update after above changes.
3174 * config/rs6000/rs6000.c: Include case-cfn-macros.h
3175 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
3176 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
3177 than calling builtin_decl_implicit directly.
3178 (rs6000_builtin_vectorized_function): Update after above changes.
3179 Use CASE_CFN_*. Move BUILT_IN_MD to...
3180 (rs6000_builtin_md_vectorized_function): ...this new function.
3181 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
3183 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3185 * tree-vect-patterns.c: Include internal-fn.h.
3186 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
3188 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3190 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
3191 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
3193 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3195 * builtins.c (expand_errno_check, expand_builtin_mathfn)
3196 (expand_builtin_mathfn_2): Delete.
3197 (expand_builtin): Remove handling of functions with
3198 internal function equivalents.
3199 * internal-fn.def (SET_EDOM): New internal function.
3200 * internal-fn.h (set_edom_supported_p): Declare.
3201 * internal-fn.c (expand_SET_EDOM): New function.
3202 (set_edom_supported_p): Likewise.
3203 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
3204 Rewrite comment at head of file.
3205 (is_call_dce_candidate): Rename to...
3206 (can_test_argument_range): ...this. Don't check gimple_call_lhs
3207 or gimple_call_builtin_p here.
3208 (edom_only_function): New function.
3209 (shrink_wrap_one_built_in_call_with_conds): New function, split out
3211 (shrink_wrap_one_built_in_call): ...here.
3212 (can_use_internal_fn, use_internal_fn): New functions.
3213 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
3214 for calls that have an lhs.
3215 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
3216 (pass_call_cdce::execute): Skip blocks that are optimized for size.
3217 Check gimple_call_builtin_p here. Use can_use_internal_fn for
3219 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
3222 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3224 * builtins.h (called_as_built_in): Declare.
3225 * builtins.c (called_as_built_in): Make external.
3226 * internal-fn.h (expand_internal_call): Define a variant that
3227 specifies the internal function explicitly.
3228 * internal-fn.c (expand_load_lanes_optab_fn)
3229 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
3230 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
3231 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
3232 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
3233 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
3234 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
3235 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
3236 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
3237 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
3238 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
3239 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
3240 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
3241 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
3243 (internal_fn_expanders): Update prototype.
3244 (expand_internal_call): Define a variant that specifies the
3245 internal function explicitly. Use it to implement the previous
3247 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
3248 functions as calls to internal functions.
3250 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3252 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
3253 (generated_files): Likewise.
3254 (s-cfn-operators, cfn-operators.pd): New rules.
3255 (s-match): Depend on cfn-operators.pd.
3256 * gencfn-macros.c: Expand comment to describe -o behavior.
3257 (print_define_operator_list): New function.
3258 (main): Accept -o. Call print_define_operator_list.
3259 * genmatch.c (main): Add the current directory to the include path.
3260 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
3263 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3265 * doc/match-and-simplify.texi: Document the "null" identifier.
3266 * genmatch.c (id_base::NULL_ID): New kind.
3267 (null_id): New variable.
3268 (get_operator): Add a parameter that says whether null identifiers
3270 (contains_id): New function.
3271 (lower_for): Skip substitutions that would have a null_id in
3272 either the match or the result.
3273 (parser::parse_for): Allow the null identifier to be used.
3274 (parser::parse_operator_list): Likewise.
3275 (main): Initialize null_id.
3277 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3279 * match.pd: Use HYPOT and COS rather than hypot and cos.
3280 Use CASE_CFN_* macros. Guard log/exp folds with
3281 SCALAR_FLOAT_TYPE_P.
3282 * genmatch.c (internal_fn): New enum.
3283 (fn_id::fn): Change to an unsigned int.
3284 (fn_id::fn_id): Accept internal_fn too.
3285 (add_builtin): Rename to...
3286 (add_function): ...this and turn into a template.
3287 (get_operator): Only try one variation if the original name fails.
3288 Only add _EXPR if the original name was all lower case.
3289 Try converting internal and built-in function names to their
3291 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
3292 (dt_simplify::gen_1): Likewise.
3293 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
3294 and get_call_combined_fn for generic.
3295 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
3296 (decision_tree::gen): Likewise.
3297 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
3298 Use add_function rather than add_builtin. Register internal
3300 * generic-match-head.c: Include case-cfn-macros.h.
3301 * gimple-fold.c (replace_stmt_with_simplification): Use
3302 gimple_call_combined_fn to test whether we can keep an
3304 * gimple-match.h (code_helper): Replace built_in_function
3306 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
3307 and case-fn-macros.h.
3308 (gimple_resimplify1): Use fold_const_call.
3309 (gimple_resimplify2, gimple_resimplify3): Likewise.
3310 (build_call_internal, build_call): New functions.
3311 (maybe_push_res_to_seq): Use them.
3312 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
3313 rather than a built-in function.
3314 * tree.h (build_call_expr_internal_loc): Declare.
3315 (maybe_build_call_expr_loc): Likewise.
3316 * tree.c (build_call_expr_internal_loc_array): New function.
3317 (maybe_build_call_expr_loc): Likewise.
3319 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3321 * builtins.h (mathfn_built_in): Add a variant that takes
3323 * builtins.c: Include case-cfn-macros.h.
3324 (CASE_MATHFN): Use CASE_CFN_*.
3325 (CASE_MATHFN_REENT): Use CFN_ codes.
3326 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
3327 argument with a combined_fn.
3328 (mathfn_built_in): Add a variant that takes a combined_fn.
3329 (expand_builtin_int_roundingfn_2): Update callers accordingly.
3330 (fold_builtin_sincos, fold_builtin_classify): Likewise.
3332 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3334 * tree-vect-patterns.c: Include case-cfn-macros.h.
3335 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
3337 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3339 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
3340 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
3341 (pass_cse_sincos::execute): Likewise.
3343 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3345 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
3346 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
3347 (decrement_power, acceptable_pow_call): Likewise.
3348 (attempt_builtin_copysign): Likewise.
3350 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3352 * tree-vrp.c: Include case-cfn-macros.h.
3353 (extract_range_basic): Switch on combined_fn rather than handling
3354 built-in functions and internal functions separately.
3356 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3358 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
3359 than a built_in_function.
3360 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3362 (integer_valued_real_call_p): Likewise.
3363 * fold-const.c: Include case-cfn-macros.h
3364 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
3365 (negate_expr_p): Update accordingly.
3366 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3368 (integer_valued_real_call_p): Likewise.
3369 (tree_invalid_nonnegative_warnv_p): Update accordingly.
3370 (integer_valued_real_p): Likewise.
3371 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
3372 to tree_call_nonnegative_warnv_p.
3373 (gimple_call_integer_valued_real_p): Likewise
3374 integer_valued_real_call_p.
3375 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
3376 (backprop::process_builtin_call_use): Extend to combined_fn.
3377 (strip_sign_op_1): Likewise.
3378 (backprop::process_use): Don't check for built-in calls here.
3379 (backprop::execute): Likewise.
3380 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
3382 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3384 * fold-const-call.h (fold_const_call): Replace built_in_function
3385 arguments with combined_fn arguments.
3386 * fold-const-call.c: Include case-cfn-macros.h.
3387 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
3388 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
3389 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
3390 built_in_function arguments with combined_fn arguments.
3391 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
3392 (fold_builtin_3): Update calls to fold_const_call.
3394 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3396 * Makefile.in (HASH_TABLE_H): Add GGC_H.
3397 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
3398 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
3399 (build/gencfn-macros$(build_exeext): New rules.
3400 (genprogerr): Add cfn-macros.
3401 * hash-set.h (hash_set): Use the traits value_type as the key.
3402 * gencfn-macros.c: New file.
3404 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3406 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
3407 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
3408 * builtins.c (associated_internal_fn): Handle them.
3410 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3412 * builtins.h (associated_internal_fn): Declare.
3413 (replacement_internal_fn): Likewise.
3414 * builtins.c: Include internal-fn.h
3415 (associated_internal_fn, replacement_internal_fn): New functions.
3416 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
3417 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
3418 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
3419 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
3420 (LDEXP): New functions.
3421 * internal-fn.c: Include recog.h.
3422 (unary_direct, binary_direct): New macros.
3423 (expand_direct_optab_fn): New function.
3424 (expand_unary_optab_fn): New macro.
3425 (expand_binary_optab_fn): Likewise.
3426 (direct_unary_optab_supported_p): Likewise.
3427 (direct_binary_optab_supported_p): Likewise.
3429 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3431 * coretypes.h (tree_pair): New type.
3432 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
3433 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
3434 * internal-fn.h (direct_internal_fn_info): New structure.
3435 (direct_internal_fn_array): Declare.
3436 (direct_internal_fn_p, direct_internal_fn): New functions.
3437 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
3438 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
3439 (mask_store_direct, store_lanes_direct): New macros.
3440 (direct_internal_fn_array) New array.
3441 (get_multi_vector_move): Return the optab handler without asserting
3442 that it is available.
3443 (expand_LOAD_LANES): Rename to...
3444 (expand_load_lanes_optab_fn): ...this and add an optab argument.
3445 (expand_STORE_LANES): Rename to...
3446 (expand_store_lanes_optab_fn): ...this and add an optab argument.
3447 (expand_MASK_LOAD): Rename to...
3448 (expand_mask_load_optab_fn): ...this and add an optab argument.
3449 (expand_MASK_STORE): Rename to...
3450 (expand_mask_store_optab_fn): ...this and add an optab argument.
3451 (direct_internal_fn_types, direct_optab_supported_p)
3452 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
3453 (direct_internal_fn_supported_p): New functions.
3454 (direct_mask_load_optab_supported_p): New macro.
3455 (direct_load_lanes_optab_supported_p): Likewise.
3456 (direct_mask_store_optab_supported_p): Likewise.
3457 (direct_store_lanes_optab_supported_p): Likewise.
3459 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3461 * tree-core.h (internal_fn): Move immediately after the definition
3462 of built_in_function.
3463 (combined_fn): New enum.
3464 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
3465 (internal_fn_p, as_internal_fn): New functions.
3466 (get_call_combined_fn, combined_fn_name): Declare.
3467 * tree.c (get_call_combined_fn): New function.
3468 (combined_fn_name): Likewise.
3469 * gimple.h (gimple_call_combined_fn): Declare.
3470 * gimple.c (gimple_call_combined_fn): New function.
3472 2015-11-17 Martin Sebor <msebor@redhat.com>
3475 * cp/init.c (build_new_1): Check for expression constness
3478 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
3481 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
3483 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
3484 discussion of the Microsoft structure layout details here from
3485 its former home in extend.texi.
3486 * doc/extend.texi (x86 Variable Attributes): Replace detailed
3487 discussion with pointer to its new location. Add cross-reference
3488 to corresponding type attributes.
3489 (x86 Type Attributes): Add cross-references to command-line options
3490 and variable attributes.
3492 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
3495 * targhooks.c (default_get_mask_mode): Filter out
3496 scalar modes returned by mode_for_vector.
3498 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3501 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
3502 offset from dstbase and use it appropriately in
3503 adjust_automodify_address.
3504 (arm_block_set_aligned_vect): Likewise.
3506 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
3508 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
3509 (MULTILIB_DIRNAMES): Adjust accordingly.
3511 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
3513 * config/aarch64/aarch64-cores.def (cortex-a35): New.
3514 * config/aarch64/aarch64.c (cortexa35_tunings): New.
3515 * config/aarch64/aarch64-tune.md: Regenerate.
3516 * doc/invoke.texi (-mcpu): Add Cortex-A35
3518 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
3521 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
3523 * config/i386/sse.md (*mov<mode>_internal): Always enable
3524 AVX and SSE unaligned moves for IAMCU.
3526 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
3528 * tree-if-conv.c: Include varasm.h
3529 (ref_DR_map): Define.
3530 (baseref_DR_map): Like wise
3531 (struct ifc_dr): Add new tree predicate field.
3532 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
3533 (memrefs_read_or_written_unconditionally): Remove.
3534 (write_memrefs_written_at_least_once): Remove.
3535 (ifcvt_memrefs_wont_trap): Use hash maps to query
3536 unconditional read/written information.
3537 (if_convertible_loop_p_1): Initialize hash maps and predicates
3538 before hashing data references and delete hashmaps at the end.
3540 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
3543 * doc/invoke.texi (Optimize Options): Move @end table to the right
3546 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
3549 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
3552 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
3554 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
3555 128-bit types, just types that fit in a single vector.
3556 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
3558 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
3560 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
3561 in the user documentation.
3562 (define_peephole2, define_split): Similarly.
3564 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
3566 * lto-streamer-out.c (write_global_references): Adjust integer type.
3567 (lto_output_decl_state_refs): Likewise.
3569 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
3571 * config/arm/arm-cores.def (cortex-a35): New.
3572 * config/arm/arm.c (arm_cortex_a35_tune): New.
3573 * config/arm/arm-tables.opt: Regenerate.
3574 * config/arm/arm-tune.md: Regenerate.
3575 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
3576 * config/arm/t-aprofile: Likewise.
3577 * doc/invoke.texi (-mcpu): Likewise.
3579 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
3581 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
3582 and qdf24xx and xgene1 to match -march=armv8-a.
3584 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
3586 PR rtl-optimization/68330
3587 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
3588 of LSHIFTRT by a non-zero constant integer.
3590 2015-11-16 Richard Biener <rguenther@suse.de>
3592 PR tree-optimization/68306
3593 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
3594 bogus copying from verify_data_ref_alignment and use continue
3597 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
3598 Kaz Kojima <kkojima@gcc.gnu.org>
3601 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
3603 (*addsi3): Add another insn_and_split variant for reload.
3605 2015-11-16 Richard Biener <rguenther@suse.de>
3608 * cfgexpand.c (pass_expand::execute): Destroy the edge
3609 redirection var map before setting RTL CFG hooks.
3611 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
3613 * config/i386/sse.md (reduc_splus_v8df): Rename to...
3614 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
3616 (reduc_splus_v4df): Rename to...
3617 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
3619 (reduc_splus_v2df): Rename to...
3620 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
3622 (reduc_splus_v16sf): Rename to...
3623 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
3625 (reduc_splus_v8sf): Rename to...
3626 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
3628 (reduc_splus_v4sf): Rename to...
3629 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
3631 (reduc_<code>_<mode>, all 3 variants): Rename each to...
3632 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
3634 (reduc_umin_v8hf): Rename to...
3635 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
3637 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
3639 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
3640 without additional conditions.
3641 * doc/extend.texi (@item simd): New.
3643 2015-11-16 Tom de Vries <tom@codesourcery.com>
3645 * passes.c (first_pass_instance): Remove variable.
3646 (execute_todo): Remove setting of first_pass_instance.
3647 * tree-pass.h (first_pass_instance): Remove declaration.
3649 2015-11-16 Tom de Vries <tom@codesourcery.com>
3651 * passes.def: Add arg to pass_ccp pass instantiation.
3652 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
3653 instead of first_pass_instance.
3654 (do_ssa_ccp): Add and handle param nonzero_p.
3655 (pass_ccp::pass_ccp): Initialize nonzero_p.
3656 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
3657 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
3658 (pass_ccp::nonzero_p): New private member.
3660 2015-11-16 Tom de Vries <tom@codesourcery.com>
3662 * passes.def: Add arg to pass_object_sizes pass instantiation.
3663 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
3665 (pass_object_sizes::set_pass_param): New member function. Set
3667 (pass_object_sizes::insert_min_max_p): New private member.
3668 (pass_object_sizes::execute): Use insert_min_max_p instead of
3669 first_pass_instance.
3671 2015-11-16 Tom de Vries <tom@codesourcery.com>
3673 * passes.def: Add arg to pass_dominator pass instantiation.
3674 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
3676 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
3677 may_peel_loop_headers_p.
3678 (pass_dominator::set_pass_param): New member function. Set
3679 may_peel_loop_headers_p.
3680 (pass_dominator::may_peel_loop_headers_p): New private member.
3681 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
3682 first_pass_instance.
3684 2015-11-16 Tom de Vries <tom@codesourcery.com>
3686 * passes.def: Add arg to pass_reassoc pass instantiation.
3687 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
3688 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
3689 of first_pass_instance.
3690 (execute_reassoc): Add and handle insert_powi_p parameter.
3691 (pass_reassoc::insert_powi_p): New private member.
3692 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
3693 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
3694 (pass_reassoc::execute): Call execute_reassoc with extra arg.
3696 2015-11-16 Tom de Vries <tom@codesourcery.com>
3698 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
3699 * gen-pass-instances.awk (handle_line): Same.
3700 * pass_manager.h (class pass_manager): Define and undefine
3702 * passes.c (opt_pass::set_pass_param): New function.
3703 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
3704 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
3705 * tree-pass.h (gimple_opt::set_pass_param): Declare.
3706 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
3707 warn_array_bounds_p parameter.
3708 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
3709 (pass_vrp::set_pass_param): New function.
3710 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
3711 (pass_vrp::warn_array_bounds_p): New private member.
3713 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3715 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
3716 (output_probe_stack_range): Rotate the loop and simplify.
3718 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3720 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
3721 (output_probe_stack_range): Rotate the loop and simplify.
3723 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3725 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
3726 an lea instruction when possible.
3727 (output_adjust_stack_and_probe): Rotate the loop and simplify.
3728 (ix86_emit_probe_stack_range): Adjust.
3729 (output_probe_stack_range): Rotate the loop and simplify.
3731 2015-11-16 Christian Bruel <christian.bruel@st.com>
3733 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
3734 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
3735 with appropriate pragma GCC target.
3737 2015-11-16 Christian Bruel <christian.bruel@st.com>
3740 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
3741 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
3743 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
3745 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
3746 (cortexa57_tunings): Use it.
3748 2015-11-16 Christian Bruel <christian.bruel@st.com>
3751 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
3752 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
3753 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
3755 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
3756 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
3757 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
3758 * doc/extend.texi (-mfpu=): Describe attribute.
3760 2015-11-16 Christian Bruel <christian.bruel@st.com>
3763 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
3764 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
3765 arm_init_neon_builtins.
3766 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
3767 (arm_init_neon_builtins_internal)
3768 (arm_init_crypto_builtins_internal):
3769 Test and set neon_set_p, neon_crypto_set_p.
3770 (neon_set_p, neon_crypto_set_p): New static booleans.
3772 2015-11-16 Christian Bruel <christian.bruel@st.com>
3775 * config/arm/arm.c (arm_fpu_desc): Remove.
3776 (all_fpus): Make global.
3777 (arm_option_override): Use FPU TARGET accessors.
3778 (arm_declare_function_name): Likewise.
3779 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
3780 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
3781 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
3782 (TARGET_NEON): Likewise.
3783 (all_fpus): Declare extern.
3784 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
3785 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
3787 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3790 * sdbout.c: Include emit-rtl.h and function.h.
3792 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
3794 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
3795 Remove support for FreeBSD 5 and earlier.
3797 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3799 * configure: Regenerate.
3800 * configure.ac: Always define ENABLE_OFFLOADING.
3801 * cgraph.c (cgraph_node::create): Adjust.
3802 * gcc.c (process_command): Likewise.
3803 * omp-low.c (create_omp_child_function): Likewise.
3804 (expand_omp_target): Likewise.
3805 * varpool.c (varpool_node::get_create): Likewise.
3807 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3809 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
3810 * df-scan.c (df_get_exit_block_use_set): Adjust.
3811 * except.c (expand_eh_return): Likewise.
3813 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3815 * config/i386/i386.h (TARGET_PECOFF): Remove define.
3816 * defaults.h (TARGET_PECOFF): New default definition.
3817 * varasm.c (handle_vtv_comdat_section): Adjust.
3819 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3821 * defaults.h: New definition of SDB_DEBUGGING_INFO.
3822 * doc/tm.texi: Regenerate.
3823 * doc/tm.texi.in: Adjust.
3824 * final.c (rest_of_clean_state): Remove check if
3825 SDB_DEBUGGING_INFO is defined.
3826 * function.c (number_blocks): Likewise.
3827 * output.h: Likewise.
3828 * sdbout.c: Likewise.
3829 * toplev.c (process_options): Likewise.
3831 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3833 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
3834 (enum sdb_masks): Likewise.
3835 * sdbout.c (plain_type_1): Likewise.
3836 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
3838 2015-11-14 Jakub Jelinek <jakub@redhat.com>
3840 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
3841 internal calls - 0 if ordered simd and 1 for ordered threads simd.
3842 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
3843 argument is 1, replace it with GOMP_ordered_* call instead of removing
3846 2015-11-13 Rich Felker <dalias@libc.org>
3848 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
3849 address loading hack for FDPIC targets.
3851 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
3852 Jeff Law <law@redhat.com>
3854 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
3855 * common.opt (-fsplit-paths): New flag controlling path splitting.
3856 * doc/invoke.texi (fsplit-paths): Document.
3857 * opts.c (default_options_table): Add -fsplit-paths to -O2.
3858 * passes.def: Add split_paths pass.
3859 * timevar.def (TV_SPLIT_PATHS): New timevar.
3860 * tracer.c: Include "tracer.h"
3861 (ignore_bb_p): No longer static.
3862 (transform_duplicate): New function, broken out of tail_duplicate.
3863 (tail_duplicate): Use transform_duplicate.
3864 * tracer.h (ignore_bb_p): Declare
3865 (transform_duplicate): Likewise.
3866 * tree-pass.h (make_pass_split_paths): Declare.
3867 * gimple-ssa-split-paths.c: New file.
3869 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
3870 Marek Polacek <polacek@redhat.com>
3871 Jason Merrill <jason@redhat.com>
3873 * convert.c (maybe_fold_build1_loc): New.
3874 (maybe_fold_build2_loc): New.
3875 (convert_to_pointer_1): Split out from convert_to_pointer.
3876 (convert_to_pointer_nofold): New.
3877 (convert_to_real_1): Split out from convert_to_real.
3878 (convert_to_real_nofold): New.
3879 (convert_to_integer_1): Split out from convert_to_integer.
3880 (convert_to_integer_nofold): New.
3881 (convert_to_complex_1): Split out from convert_to_complex.
3882 (convert_to_complex_nofold): New.
3883 * convert.h: Declare new functions.
3884 * tree-complex.c (create_one_component_var): Break up line to
3885 avoid sequence point issues.
3887 2015-11-13 Jason Merrill <jason@redhat.com>
3889 * fold-const.c (fold_convert_const): Fold changing cv-quals on
3892 * hash-map.h (hash_map::empty): New.
3894 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3896 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
3897 (oacc_loop_fixed_partitions): Correct return type to bool.
3898 (oacc_loop_auto_partitions): New.
3899 (oacc_loop_partition): Take mask argument, call
3900 oacc_loop_auto_partitions.
3901 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
3903 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3905 * config/rs6000/constraints.md (we constraint): New constraint for
3906 64-bit power9 vector support.
3907 (wL constraint): New constraint for the element in a vector that
3908 can be addressed by the MFVSRLD instruction.
3910 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
3912 (convert_int_to_float128): Likewise.
3913 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
3914 hardware support for IEEE 128-bit floating point.
3915 (rs6000_expand_float128_convert): Likewise.
3916 (convert_float128_to_int): Likewise.
3917 (convert_int_to_float128): Likewise.
3919 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
3920 ISA 3.0 hardware IEEE 128-bit floating point.
3921 (UNSPEC_IEEE128_MOVE): Likewise.
3922 (UNSPEC_IEEE128_CONVERT): Likewise.
3923 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
3924 (Ff): Add support for DImode.
3926 (any_fix code iterator): New and updated iterators for IEEE
3927 128-bit floating point hardware support.
3928 (any_float code iterator): Likewise.
3929 (s code attribute): Likewise.
3930 (su code attribute): Likewise.
3931 (az code attribute): Likewise.
3932 (uns code attribute): Likewise.
3933 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
3934 floating point hardware support.
3935 (abs<mode>2, FLOAT128 iterator): Likewise.
3936 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
3937 floating point hardware.
3938 (sub<mode>3, IEEE128 iterator): Likewise.
3939 (mul<mode>3, IEEE128 iterator): Likewise.
3940 (div<mode>3, IEEE128 iterator): Likewise.
3941 (copysign<mode>3, IEEE128 iterator): Likewise.
3942 (sqrt<mode>2, IEEE128 iterator): Likewise.
3943 (neg<mode>2, IEEE128 iterator): Likewise.
3944 (abs<mode>2, IEEE128 iterator): Likewise.
3945 (nabs<mode>2, IEEE128 iterator): Likewise.
3946 (fma<mode>4_hw, IEEE128 iterator): Likewise.
3947 (fms<mode>4_hw, IEEE128 iterator): Likewise.
3948 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
3949 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
3950 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
3951 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
3952 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
3953 (fix_fixuns code attribute): Likewise.
3954 (float_floatuns code attribute): Likewise.
3955 (fix<uns>_<mode>si2_hw): Likewise.
3956 (fix<uns>_<mode>di2_hw): Likewise.
3957 (float<uns>_<mode>si2_hw): Likewise.
3958 (float<uns>_<mode>di2_hw): Likewise.
3959 (xscvqp<su>wz_<mode>): Likewise.
3960 (xscvqp<su>dz_<mode>): Likewise.
3961 (xscv<su>dqp_<mode): Likewise.
3962 (ieee128_mfvsrd): Likewise.
3963 (ieee128_mfvsrwz): Likewise.
3964 (ieee128_mtvsrw): Likewise.
3965 (ieee128_mtvsrd): Likewise.
3966 (trunc<mode>df2_odd): Likewise.
3967 (cmp<mode>_h): Likewise.
3968 (128-bit GPR splitters): Don't split a 128-bit move that is a
3969 direct move between GPR and vector registers using ISA 3.0 direct
3971 (maddld4): Add support for the ISA 3.0 integer multiply-add
3974 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
3976 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
3977 constraint. Disable the VSX<->GPR direct move helpers if we have
3978 the MFVSRLD and MTVSRDD instructions.
3979 (rs6000_secondary_reload_simple_move): Add support for doing
3980 vector direct moves directly without additional scratch registers
3981 if we have ISA 3.0 instructions.
3982 (rs6000_secondary_reload_direct_move): Update comments.
3983 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
3986 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
3987 direct move instructions.
3988 (vsx_movti_64bit): Likewise.
3989 (vsx_extract_<mode>): Likewise.
3991 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
3992 macros for ISA 3.0 direct move instructions.
3993 (TARGET_DIRECT_MOVE_128): Likewise.
3994 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
3997 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
3998 constraints. Update wa documentation to say not to use %x<n> on
3999 instructions that only take Altivec registers.
4001 2015-11-13 David Malcolm <dmalcolm@redhat.com>
4003 * Makefile.in (OBJS): Add gcc-rich-location.o.
4004 * diagnostic.c (diagnostic_append_note): Pass line_table to
4006 (emit_diagnostic): Likewise.
4008 (inform_n): Likewise.
4009 (warning): Likewise.
4010 (warning_at): Likewise.
4011 (warning_n): Likewise.
4012 (pedwarn): Likewise.
4013 (permerror): Likewise.
4015 (error_n): Likewise.
4016 (error_at): Likewise.
4018 (fatal_error): Likewise.
4019 (internal_error): Likewise.
4020 (internal_error_no_backtrace): Likewise.
4021 (source_range::debug): Likewise.
4022 * gcc-rich-location.c: New file.
4023 * gcc-rich-location.h: New file.
4024 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
4025 (warning_at): Likewise.
4026 * gimple.h (gimple_set_block): Use set_block function.
4027 * input.c (dump_line_table_statistics): Dump stats on how many
4028 ranges were optimized vs how many needed ad-hoc table.
4029 (write_digit_row): Add "map" param; use its range_bits
4030 to calculate the per-character offset.
4031 (dump_location_info): Print the range and column bits for each
4032 ordinary map. Use the range bits to calculate the per-character
4033 offset. Pass the map as a new param to the various calls to
4034 write_digit_row. Eliminate uses of
4035 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
4036 * print-tree.c (print_node): Print any source range information.
4037 * rtl-error.c (diagnostic_for_asm): Likewise.
4038 * toplev.c (general_init): Initialize line_table's
4040 * tree-cfg.c (move_block_to_fn): Likewise.
4041 (move_block_to_fn): Likewise.
4042 * tree-inline.c (copy_phis_for_bb): Likewise.
4043 * tree.c (tree_set_block): Likewise.
4044 (get_pure_location): New function.
4045 (set_source_range): New functions.
4046 (set_block): New function.
4047 (set_source_range): New functions.
4048 * tree.h (CAN_HAVE_RANGE_P): New.
4049 (EXPR_LOCATION_RANGE): New.
4050 (EXPR_HAS_RANGE): New.
4051 (get_expr_source_range): New inline function.
4052 (DECL_LOCATION_RANGE): New.
4053 (set_source_range): New decls.
4054 (get_decl_source_range): New inline function.
4056 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
4058 PR tree-optimization/67682
4059 * tree-vect-slp.c (vect_split_slp_store_group): New.
4060 (vect_analyze_slp_instance): During basic block SLP, recurse on
4061 subgroups if vect_build_slp_tree fails after 1st vector.
4063 2015-11-13 Christian Bruel <christian.bruel@st.com>
4066 * config/arm/arm.c (arm_option_override): Move NEON check...
4067 (arm_option_check_internal): here
4068 (arm_file_start): Move .fpu print...
4069 (arm_declare_function_name): here
4070 (arm_option_print): Dump current fpu name.
4071 * config/arm/arm.opt (arm_fpu_index): Mark Save.
4073 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
4074 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4076 * combine.c (subst): Don't substitute or simplify when
4077 handling register-wise widening multiply.
4078 (force_to_mode): Likewise.
4080 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
4082 PR tree-optimization/68264
4083 * tree-call-cdce.c (gen_one_condition): Update commentary.
4084 (gen_conditions_for_pow_int_base): Invert the sense of the tests
4085 passed to gen_one_condition.
4086 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
4087 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
4088 using EDGE_FALSE_VALUE for edges to the call block and
4089 EDGE_TRUE_VALUE for the others.
4091 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4093 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
4096 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4098 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
4100 2015-11-13 Tom de Vries <tom@codesourcery.com>
4102 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
4105 2015-11-13 Tom de Vries <tom@codesourcery.com>
4107 * gen-pass-instances.awk (handle_line): Add args_str variable.
4109 2015-11-13 Martin Liska <mliska@suse.cz>
4111 * graphite-poly.c (free_scop): Release scop->drs vector.
4112 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
4114 (try_generate_gimple_bb): Use vNULL as a default initialization
4117 2015-11-13 Martin Liska <mliska@suse.cz>
4120 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
4121 Replace array initialization (using a variable post-increment)
4122 that possible triggers multiple unsequenced modifications
4123 with a pair of pushes to a vector.
4125 2015-11-13 Richard Biener <rguenther@suse.de>
4127 PR tree-optimization/68306
4128 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
4129 loop related checks ...
4130 (vect_verify_datarefs_alignment): ... here.
4131 (vect_slp_analyze_and_verify_node_alignment): Compute and
4132 verify alignment of the single DR that it matters.
4133 * tree-vect-stmts.c (vectorizable_store): Add an assert.
4134 (vectorizable_load): Add a comment.
4135 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
4136 for determining load cost.
4138 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
4140 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
4141 mix of boolean and integer vectors in a single statement.
4142 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
4143 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
4144 determine constant type.
4145 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
4146 for loop invariants.
4148 2015-11-13 Alan Hayward <alan.hayward@arm.com>
4150 PR tree-optimization/66558
4151 * tree-vect-loop.c (is_integer_induction):Add.
4152 (vectorizable_reduction): Add integer induction checks.
4154 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
4156 Revert [ARM] Remove neon-testgen.ml and generated tests.
4158 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
4160 [ARM] Remove neon-testgen.ml and generated tests.
4162 * config/arm/neon-testgen.ml: Remove.
4164 2015-11-13 Richard Biener <rguenther@suse.de>
4166 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
4167 Signal fatal failure if early checks fail.
4168 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
4169 do not bother testing further vector sizes.
4171 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
4173 * config/i386/predicates.md (misaligned_operand): Return true if
4174 operand is aligned to less than its natural alignmnet.
4176 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
4178 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
4179 (vec_cmpu@var{m}@var{n}): New item.
4180 (vcond@var{m}@var{n}): Specify comparison is signed.
4181 (vcondu@var{m}@var{n}): New item.
4182 (vcond_mask_@var{m}@var{n}): New item.
4183 (maskload@var{m}@var{n}): New item.
4184 (maskstore@var{m}@var{n}): New item.
4186 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
4188 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
4189 types of stored value and storage are compatible.
4191 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
4193 * gcc.c (POST_LINK_SPEC): Define if not already defined.
4194 (LINK_COMMAND_SPEC): Use post_link.
4195 (post_link_spec): New, initialize to POST_LINK_SPEC.
4196 (post_link): Initialize new static spec.
4197 * doc/tm.texi.in (POST_LINK_SPEC): Document.
4198 * doc/tm.texi: Regenerated.
4200 2015-11-13 David Malcolm <dmalcolm@redhat.com>
4203 * Makefile.in (GCC_OBJS): Add spellcheck.o.
4204 (OBJS): Add spellcheck-tree.o.
4205 * gcc.c: Include "spellcheck.h".
4206 (suggest_option): New function.
4207 (driver::handle_unrecognized_options): Call suggest_option to
4208 provide a hint about misspelled options.
4209 * spellcheck.c: Update file comment.
4210 (levenshtein_distance): Convert 4-param implementation from static
4211 to extern scope. Remove note about unit tests from leading
4212 comment for const char * implementation. Move tree
4213 implementation to...
4214 * spellcheck-tree.c: New file.
4215 * spellcheck.h (levenshtein_distance): Add 4-param decl.
4217 2015-11-13 David Malcolm <dmalcolm@redhat.com>
4219 * Makefile.in (OBJS): Add spellcheck.o.
4220 * spellcheck.c: New file.
4221 * spellcheck.h: New file.
4223 2015-11-13 James Bowman <james.bowman@ftdichip.com>
4225 * config/ft32/ft32.md (*sne): New insn pattern.
4227 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
4229 * cprop.c (is_too_expensive): Remove.
4231 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
4233 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
4234 * gcse.c (is_too_expensive): Rename to ...
4235 (gcse_or_cprop_is_too_expensive): ... this.
4236 Expand warning to add required size of max-gcse-memory.
4237 (one_pre_gcse_pass): Use it.
4238 (one_code_hoisting_pass): Use it.
4239 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
4241 2015-11-12 James Norris <jnorris@codesourcery.com>
4242 Joseph Myers <joseph@codesourcery.com>
4244 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
4245 GF_OMP_TARGET_KIND_OACC_DECLARE.
4246 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
4247 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
4248 * gimplify.c (oacc_declare_returns): New.
4249 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
4250 (device_resident_p): New function.
4251 (oacc_default_clause): Handle device_resident clause.
4252 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
4253 (gimplify_expr): Handle OACC_DECLARE.
4254 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
4255 * omp-low.c (expand_omp_target): Handle
4256 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
4257 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
4258 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
4259 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
4260 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
4261 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
4262 GOMP_MAP_DEVICE_RESIDENT.
4264 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
4266 [ARM] Remove neon-testgen.ml and generated tests.
4268 * config/arm/neon-testgen.ml: Remove.
4270 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
4272 * config/aarch64/aarch64-cores.def (qdf24xx): New.
4273 * config/aarch64/aarch64-tune.md: Regenerated.
4274 * config/arm/arm-cores.def (qdf24xx): New.
4275 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
4276 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
4277 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
4278 (ARM Options/-mtune): Likewise.
4280 2015-11-12 Martin Liska <mliska@suse.cz>
4282 * config/i386/i386.c (ix86_valid_target_attribute_p):
4283 Finalize options at the of the function.
4284 * gcc.c (driver_get_configure_time_options): Call newly
4285 introduced init_opts_obstack.
4286 * lto-wrapper.c (main): Likewise.
4287 * opts.c (init_opts_obstack): New function.
4288 (init_options_struct): Call newly introduced init_opts_obstack.
4289 * opts.h (init_options_struct): Declare.
4291 2015-11-12 Martin Liska <mliska@suse.cz>
4294 * ipa-icf.c (void sem_item::set_hash): New function.
4295 (sem_function::get_hash): Use renamed m_hash member variable.
4296 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
4297 (sem_item::update_hash_by_local_refs): Likewise.
4298 (sem_variable::get_hash): Use renamed m_hash member variable.
4299 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
4300 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
4301 (sem_item_optimizer::build_graph): As the hash value of an item
4302 is lazy initialized, force the calculation.
4303 * ipa-icf.h (set_hash): Declare new function and rename hash member
4306 2015-11-12 Richard Biener <rguenther@suse.de>
4308 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
4309 Rename to vect_slp_analyze_instance_dependence.
4310 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4311 Remove WAR special-case.
4312 (vect_slp_analyze_node_dependences): Instead add more specific
4313 code here, not relying on other instances being vectorized.
4314 (vect_slp_analyze_instance_dependence): Adjust accordingly.
4315 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
4316 vertical space in dump files.
4317 (vect_print_slp_tree): Likewise.
4318 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
4319 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
4320 not vectorized stmts until after dependence analysis removed
4321 instances. Merge alignment and dependence checks.
4322 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
4325 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
4327 * config/aarch64/aarch64-protos.h (tune_params): Add new members
4328 "max_case_values" and "cache_line_size".
4329 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
4331 (aarch64_override_options_internal): Tune heuristics based on new
4332 members in "tune_params".
4333 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
4335 2015-11-12 Richard Biener <rguenther@suse.de>
4337 PR tree-optimization/68306
4338 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
4339 relevant and vectorizable checks here.
4340 (vect_verify_datarefs_alignment): Add relevant check here.
4342 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
4344 * gimplify.c (oacc_default_clause): New.
4345 (omp_notice_variable): Call it.
4347 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
4349 PR tree-optimization/68305
4350 * tree-vect-slp.c (vect_get_constant_vectors): Support
4351 COND_EXPR with SSA_NAME as a condition.
4353 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
4355 * config/visium/visium-protos.h (notice_update_cc): Delete.
4356 (print_operand): Likewise.
4357 (print_operand_address): Likewise.
4359 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4361 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
4362 FUNCTION_VALUE_REGNO_P): Remove.
4363 * config/alpha/alpha-protos.h (function_value): Remove.
4364 * config/alpha/alpha.c (function_value): Rename to...
4365 (alpha_function_value_1): ... this. Make static.
4366 (alpha_function_value, alpha_libcall_value,
4367 alpha_function_value_regno_p): New functions.
4368 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4369 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4371 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4373 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4374 * config/alpha/alpha.c (alpha_memory_latency): Make static.
4375 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
4376 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4378 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
4381 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
4382 assertion on the CFA register.
4384 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
4386 * expr.c (do_store_flag): Expand vector comparison as
4387 VEC_COND_EXPR if vector comparison is not supported by target.
4389 2015-11-12 Renlin Li <renlin.li@arm.com>
4391 * config/arm/arm.md (addsi3_compare_op2): Make the order of
4392 assembly pattern consistent with constraint order.
4394 2015-11-12 Tom de Vries <tom@codesourcery.com>
4396 * gen-pass-instances.awk (handle_line): Simplify match regexp.
4398 2015-11-12 Tom de Vries <tom@codesourcery.com>
4400 * gen-pass-instances.awk (handle_line): Simplify init of
4403 2015-11-12 Tom de Vries <tom@codesourcery.com>
4405 * gen-pass-instances.awk (handle_line): Rename var where to
4408 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
4410 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
4411 do not expand to rtl.
4413 2015-11-12 Richard Biener <rguenther@suse.de>
4415 PR tree-optimization/58497
4416 * tree-vect-generic.c: Include gimplify.h.
4417 (tree_vec_extract): Lookup constant/constructor DEFs.
4418 (do_cond): Unshare cond.
4420 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4422 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
4423 combined insn if the alignment of vector mode memory operand
4424 is less than ssememalign.
4426 2015-11-12 Tom de Vries <tom@codesourcery.com>
4428 * gen-pass-instances.awk (handle_line): Print parentheses and
4429 pass_name explicitly.
4431 2015-11-12 Tom de Vries <tom@codesourcery.com>
4433 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
4436 2015-11-12 Tom de Vries <tom@codesourcery.com>
4438 * gen-pass-instances.awk (handle_line): Add comments.
4440 2015-11-12 Tom de Vries <tom@codesourcery.com>
4442 * gen-pass-instances.awk (handle_line): Rename len_of_end to
4445 2015-11-12 Tom de Vries <tom@codesourcery.com>
4447 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
4449 2015-11-12 Tom de Vries <tom@codesourcery.com>
4451 * gen-pass-instances.awk (handle_line): Restructure using early-out.
4453 2015-11-12 Tom de Vries <tom@codesourcery.com>
4455 * gen-pass-instances.awk (handle_line): Unify semicolon use.
4457 2015-11-12 Tom de Vries <tom@codesourcery.com>
4459 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
4461 2015-11-12 Tom de Vries <tom@codesourcery.com>
4463 * gen-pass-instances.awk: Add emacs indent setting.
4465 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4467 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
4469 Move Convert A/(B/C) to (A/B)*C to match.pd.
4470 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
4471 Move Optimize (X & (-A)) / A where A is a power of 2, to
4472 X >> log2(A) to match.pd.
4474 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
4475 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
4476 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
4478 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
4480 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
4482 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
4484 (neon_vst2_lane<mode>): Likewise.
4485 (neon_vld3_lane<mode>): Likewise.
4486 (neon_vst3_lane<mode>): Likewise.
4487 (neon_vld4_lane<mode>): Likewise.
4488 (neon_vst4_lane<mode>): Likewise.
4490 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
4491 Sebastian Pop <s.pop@samsung.com>
4493 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4494 New member codegen_error
4495 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
4497 (translate_isl_ast_node_user): Early return in case of error.
4498 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
4499 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
4500 (add_parameters_to_ivs_params): Remove macro.
4501 (graphite_regenerate_ast_isl): Add if_region pointer to region.
4502 * graphite-poly.c (new_poly_dr): Remove macro.
4504 (new_gimple_poly_bb): Same.
4505 (free_gimple_poly_bb): Same.
4506 (print_scop_params): Same.
4507 * graphite-poly.h (struct poly_dr): Same.
4508 (struct poly_bb): Add new_bb.
4509 (gbb_from_bb): Remove dead code.
4510 (pbb_from_bb): Same.
4511 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
4512 (parameter_index_in_region): Same.
4513 (find_scop_parameters): Same.
4514 (build_cross_bb_scalars_def): New.
4515 (build_cross_bb_scalars_use): New.
4516 (graphite_find_cross_bb_scalar_vars): New
4517 (try_generate_gimple_bb): Reads and Writes.
4518 (build_alias_set): Move.
4519 (gather_bbs::before_dom_children): Gather bbs visited.
4520 (build_scops): call build_alias_set.
4521 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
4522 (remove_simple_copy_phi): Delete.
4523 (remove_invariant_phi): Delete.
4524 (simple_copy_phi_p): Delete.
4525 (reduction_phi_p): Delete.
4526 (isl_id_for_dr): Remove unused param.
4527 (parameter_index_in_region_1): Remove macro usage.
4528 (set_scop_parameter_dim): Same.
4529 (add_param_constraints): Same.
4530 (add_conditions_to_constraints): Same
4531 (build_scop_iteration_domain): Same.
4532 (pdr_add_alias_set): Comment.
4533 (add_scalar_version_numbers): New.
4534 (build_poly_dr): ISL id.
4535 (build_scop_drs): Move.
4536 (build_poly_sr_1): Same.
4537 (insert_stmts): Remove.
4538 (build_poly_sr): New.
4539 (new_pbb_from_pbb): Delete.
4540 (insert_out_of_ssa_copy_on_edge): Delete.
4541 (create_zero_dim_array): Delete.
4542 (scalar_close_phi_node_p): Delete.
4543 (propagate_expr_outside_region): Delete.
4544 (rewrite_close_phi_out_of_ssa): Delete.
4545 (rewrite_phi_out_of_ssa): Delete.
4546 (rewrite_degenerate_phi): Delete.
4547 (rewrite_reductions_out_of_ssa): Delete.
4548 (rewrite_cross_bb_scalar_dependence): Delete.
4549 (handle_scalar_deps_crossing_scop_limits):
4550 (rewrite_cross_bb_scalar_deps): Delete.
4551 (build_poly_scop): Remove calls to out-of-ssa functions.
4552 * graphite.c (graphite_transform_loops): Early return in case of
4554 * sese.c (debug_rename_map_1): Delete.
4555 (debug_rename_map): Delete.
4556 (sese_record_loop): Remove macro.
4557 (build_sese_loop_nests): Same.
4558 (new_sese_info): Same.
4559 (free_sese_info): Same.
4560 (sese_insert_phis_for_liveouts):
4561 (is_loop_closed_ssa_use): New.
4562 (number_of_phi_nodes): New.
4563 (bb_contains_loop_close_phi_nodes): New.
4564 (bb_contains_loop_phi_nodes): New.
4565 (phi_uses_name): New.
4567 (get_rename): Add old_bb and loop_phi for more precise matching of
4569 (set_rename): Pass region.
4570 (later_of_the_two): New.
4571 (gsi_insert_earliest): New.
4572 (collect_all_ssa_names): New.
4573 (substitute_ssa_name): New.
4574 (rename_all_uses): New.
4575 (get_rename_from_scev): New.
4576 (rename_uses): Pass old_bb for more precise matching of exprs.
4577 (get_def_bb_for_const): New.
4578 (get_new_name): New.
4581 (copy_loop_phi_args): New.
4582 (copy_loop_phi_nodes): New.
4583 (get_loop_init_value): New.
4584 (find_init_value): New.
4585 (find_init_value_close_phi): New.
4586 (copy_loop_close_phi_args): New.
4587 (copy_loop_close_phi_nodes): New.
4588 (add_phi_arg_for_new_expr): New.
4589 (copy_cond_phi_args): New.
4590 (copy_cond_phi_nodes): New.
4591 (copy_phi_nodes): New.
4592 (should_copy_to_new_region): New.
4593 (set_rename_for_each_def): New.
4594 (graphite_copy_stmts_from_block): Early return in case of error.
4595 (copy_bb_and_scalar_dependences): Same.
4596 * sese.h (vec_find): New.
4597 (SESE_PARAMS): Delete.
4598 (SESE_LOOPS): Delete.
4599 (SESE_LOOP_NEST): Delete.
4600 (sese_contains_loop): Remove macro usage.
4601 (sese_nb_params): Same.
4602 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
4604 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4606 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
4607 isl_union_map_add_map on every pbb->schedule.
4609 2015-11-11 Tom de Vries <tom@codesourcery.com>
4611 * tree-parloops.c (create_parallel_loop): Return void.
4613 2015-11-11 Tom de Vries <tom@codesourcery.com>
4615 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
4616 block only when needed.
4618 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
4620 * config/alpha/alpha-protos.h (print_operand): Remove.
4621 (print_operand_address): Remove.
4622 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
4623 (PRINT_OPERAND_ADDRESS): Remove.
4624 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
4625 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
4626 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
4627 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
4628 (print_operand_address): Rename to...
4629 (alpha_print_operand_address): ...this and make static.
4630 (print_operand): Rename to...
4631 (alpha_print_operand): ...this and make static.
4632 (alpha_print_operand_punct_valid_p): New static function.
4634 2015-11-11 Richard Biener <rguenther@suse.de>
4636 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
4638 (vect_analyze_data_refs_alignment): Make loop vect specific.
4639 (vect_verify_datarefs_alignment): Likewise.
4640 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
4641 Add missing continue.
4642 (vect_compute_data_ref_alignment): Export.
4643 (vect_compute_data_refs_alignment): Merge into...
4644 (vect_analyze_data_refs_alignment): ... this.
4645 (verify_data_ref_alignment): Split out from ...
4646 (vect_verify_datarefs_alignment): ... here.
4647 (vect_slp_analyze_and_verify_node_alignment): New function.
4648 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
4649 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
4650 misplaced checks on alignment.
4651 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
4652 alignment analysis after SLP discovery and do it per instance.
4653 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
4654 bother to re-try using different vector sizes.
4656 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
4657 Cesar Philippidis <cesar@codesourcery.com>
4659 * gimplify.c (enum omp_region_type): Add ORT_ACC,
4660 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
4661 (gimple_add_tmp_var): Add ORT_ACC checks.
4662 (gimplify_var_or_parm_decl): Likewise.
4663 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
4664 (omp_add_variable): Look in outer contexts for openacc and allow
4665 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
4666 (omp_notice_variable, omp_is_private, omp_check_private): Add
4668 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
4669 Permit private openacc reductions.
4670 (gimplify_oacc_cache): Specify ORT_ACC.
4671 (gimplify_omp_workshare): Adjust OpenACC region types.
4672 (gimplify_omp_target_update): Likewise.
4673 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
4674 (lower-rec_input_clauses): Don't handle openacc firstprivate
4676 (lower_omp_target): Emit initializers for openacc firstprivate vars.
4678 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
4681 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
4682 frame pointer for stack checking if non-call exceptions aren't used.
4683 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
4685 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
4687 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
4690 2015-11-11 Martin Liska <mliska@suse.cz>
4691 Richard Biener <rguenther@suse.de>
4693 PR rtl-optimization/68287
4694 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
4697 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
4699 * config/mips/mips.c (mips_breakable_sequence_p): New function.
4700 (mips_break_sequence): New function.
4701 (mips_reorg_process_insns): Use them. Use compact branches in selected
4704 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
4706 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
4708 2015-11-11 Jiong Wang <jiong.wang@arm.com>
4709 Jim Wilson <wilson@gcc.gnu.org>
4712 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
4713 be true and eliminable registers mentioned.
4715 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
4717 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
4719 * config/arc/arc-opts.h: Add ARCv2 CPUs.
4720 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
4721 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
4722 situation, and store instructions with large offsets.
4723 (arc_secondary_reload_conv): New function.
4724 (arc_init): Add ARCv2 options.
4725 (arc_conditional_register_usage): Select the proper register usage
4726 for ARCv2 processors.
4727 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
4729 (arc_compute_function_type): Likewise.
4730 (arc_print_operand): Handle new ARCv2 punctuation characters.
4731 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
4732 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
4734 (arc_reorg, arc_hazard): Use it.
4735 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
4736 (ASM_SPEC): Add ARCv2 options.
4737 (TARGET_NORM): ARC HS has norm instructions by default.
4738 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
4739 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
4740 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
4741 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
4743 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
4744 (TARGET_LP_WR_INTERLOCK): Likewise.
4746 (commutative_binary_mult_comparison_result_used, movsicc_insn)
4747 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
4748 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
4749 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
4751 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
4752 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
4753 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
4754 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
4755 (extzvsi): New pattern.
4756 * config/arc/arc.opt: New ARCv2 options.
4757 * config/arc/arcEM.md: New file.
4758 * config/arc/arcHS.md: Likewise.
4759 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
4761 (Cm2): A signed 9-bit integer constant constraint.
4762 (C62): An unsigned 6-bit integer constant constraint.
4763 (C16): A signed 16-bit integer constant constraint.
4764 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
4765 (short_const_int_operand): New predicate.
4766 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
4767 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
4768 -mcode-density and -mdiv-rem.
4770 2015-11-11 Julia Koval <julia.koval@intel.com>
4772 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
4774 2015-11-11 Julia Koval <julia.koval@intel.com>
4776 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
4778 2015-11-11 Martin Liska <mliska@suse.cz>
4780 * gimple-ssa-strength-reduction.c (create_phi_basis):
4782 * passes.c (release_dump_file_name): New function.
4783 (pass_init_dump_file): Used from this function.
4784 (pass_fini_dump_file): Likewise.
4785 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
4786 * var-tracking.c (vt_initialize): Use pool_allocator.
4788 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
4789 Jiong Wang <jiong.wang@arm.com>
4791 PR tree-optimization/68234
4792 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
4793 node which estimiated to be VR_VARYING initially.
4795 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
4797 * regname.c (scan_rtx_reg): Check the matching number of consecutive
4798 registers when tying chains.
4799 (build_def_use): Move terminated_this_insn earlier in the function.
4801 2015-11-10 Mike Frysinger <vapier@gentoo.org>
4803 * configure.ac: Use = with test and not ==.
4804 * configure: Regenerated.
4806 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
4808 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
4809 machine asserts. Update defines for 64 bit.
4811 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4814 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
4816 (neon_vst1_lane<mode>): Likewise.
4817 (neon_vld2_lane<mode>): Likewise.
4818 (neon_vst2_lane<mode>): Likewise.
4819 (neon_vld3_lane<mode>): Likewise.
4820 (neon_vst3_lane<mode>): Likewise.
4821 (neon_vld4_lane<mode>): Likewise.
4822 (neon_vst4_lane<mode>): Likewise.
4824 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4827 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
4828 qualifier_struct_load_store_lane_index.
4829 (arm_storestruct_lane_qualifiers) Likewise.
4830 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
4832 (neon_vst1_lane<mode>) Likewise.
4833 (neon_vld2_lane<mode>) Likewise.
4834 (neon_vst2_lane<mode>) Likewise.
4835 (neon_vld3_lane<mode>) Likewise.
4836 (neon_vst3_lane<mode>) Likewise.
4837 (neon_vld4_lane<mode>) Likewise.
4838 (neon_vst4_lane<mode>) Likewise.
4840 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4843 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
4844 qualifier_struct_load_store_lane_index.
4845 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4846 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
4847 argument qualifiers.
4848 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
4849 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
4851 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
4853 * config/nvptx/nvptx.opt (moptimize): New flag.
4854 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
4856 (nvptx_optimize_inner): New.
4857 (nvptx_process_pars): Call it when optimizing.
4858 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
4860 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4862 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
4863 Remove redundant code.
4865 2015-11-10 Jeff Law <law@redhat.com>
4867 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
4868 call to output_address.
4869 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
4870 Add unnamed machine_mode argument.
4872 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4874 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
4877 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4879 * config/i386/i386.md (*movabs<mode>_1): Add explicit
4880 size directives for -masm=intel.
4881 (*movabs<mode>_2): Ditto.
4883 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4885 * config/i386/i386.c (ix86_print_operand): Remove dead code that
4886 tried to avoid (%rip) for call operands.
4888 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4890 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
4891 argument. Do not use RIP relative addressing when no_rip is set.
4892 (ix86_print_operand): Update call to ix86_print_operand_address_as.
4893 (ix86_print_operand_address): Ditto.
4894 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
4895 absolute movabs operand 0. Add square braces for -masm=intel.
4896 (*movabs<mode>_2): Ditto for operand 1.
4898 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4900 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
4901 combine_vcvtf2i pattern.
4903 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4905 * config/arm/arm.c (neon_valid_immediate): Remove integer
4906 CONST_DOUBLE handling. It should never occur.
4908 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
4910 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
4911 (ATOMIC_LDOP): Likewise.
4912 (atomic_ldop): Likewise.
4913 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
4914 (ATOMIC_LDOP): Likewise.
4915 (atomic_ldop): Likewise.
4917 2015-11-10 Martin Liska <mliska@suse.cz>
4919 * alloc-pool.h (allocate_raw): New function.
4920 (operator new (size_t, object_allocator<T> &a)): Use the
4921 function instead of object_allocator::allocate).
4923 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4925 * config/i386/sse.md (HALFMASKMODE): New attribute.
4926 (DOUBLEMASKMODE): New attribute.
4927 (vec_pack_trunc_qi): New.
4928 (vec_pack_trunc_<mode>): New.
4929 (vec_unpacks_lo_hi): New.
4930 (vec_unpacks_lo_si): New.
4931 (vec_unpacks_lo_di): New.
4932 (vec_unpacks_hi_hi): New.
4933 (vec_unpacks_hi_<mode>): New.
4935 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4937 * optabs.c (expand_binop_directly): Allow scalar mode for
4938 vec_pack_trunc_optab.
4939 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4940 boolean vector producers from pattern sequence when computing VF.
4941 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
4942 vect_recog_mask_conversion_pattern.
4943 (search_type_for_mask): Choose the smallest
4944 type if different size types are mixed.
4945 (build_mask_conversion): New.
4946 (vect_recog_mask_conversion_pattern): New.
4947 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
4948 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
4950 (vectorizable_conversion): Support boolean vectors.
4951 (free_stmt_vec_info): Allow patterns for statements with no lhs.
4952 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
4954 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4956 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
4957 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
4958 Cast mask to FP mode if required.
4959 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
4960 (vcond_mask_<mode><avx512fmaskmodelower>): New.
4961 (vcond_mask_<mode><sseintvecmodelower>): New.
4962 (vcond_mask_<mode><sseintvecmodelower>): New.
4963 (vcond_mask_v2div2di): New.
4964 (vcond_mask_<mode><sseintvecmodelower>): New.
4965 (vcond_mask_<mode><sseintvecmodelower>): New.
4967 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4969 * optabs-query.h (get_vcond_mask_icode): New.
4970 * optabs-tree.c (expand_vec_cond_expr_p): Use
4971 get_vcond_mask_icode for VEC_COND_EXPR with mask.
4972 * optabs.c (expand_vec_cond_mask_expr): New.
4973 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
4974 * optabs.def (vcond_mask_optab): New.
4975 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
4976 generate redundant comparison for COND_EXPR.
4977 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
4979 (vectorizable_condition): Likewise.
4980 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
4981 cond_exp with no embedded comparison.
4982 (vect_build_slp_tree_1): Likewise.
4984 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4986 * config/i386/sse.md (maskload<mode>): Rename to ...
4987 (maskload<mode><sseintvecmodelower>): ... this.
4988 (maskstore<mode>): Rename to ...
4989 (maskstore<mode><sseintvecmodelower>): ... this.
4990 (maskload<mode><avx512fmaskmodelower>): New.
4991 (maskstore<mode><avx512fmaskmodelower>): New.
4993 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4995 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
4996 (expand_MASK_STORE): Adjust to maskstore optab changes.
4997 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
4998 Adjust to maskload, maskstore optab changes.
4999 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
5000 * optabs.def (maskload_optab): Transform into convert optab.
5001 (maskstore_optab): Likewise.
5002 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
5003 can_vec_mask_load_store_p signature change.
5004 (predicate_mem_writes): Use boolean mask.
5005 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
5006 can_vec_mask_load_store_p signature change. Allow invariant masks.
5007 (vectorizable_operation): Ignore type precision for boolean vectors.
5009 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5011 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
5012 (const_vector_mask_from_tree): New.
5013 (const_vector_from_tree): Use const_vector_mask_from_tree
5014 for boolean vectors.
5015 * optabs-query.h (get_vec_cmp_icode): New.
5016 * optabs-tree.c (expand_vec_cmp_expr_p): New.
5017 * optabs-tree.h (expand_vec_cmp_expr_p): New.
5018 * optabs.c (vector_compare_rtx): Add OPNO arg.
5019 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
5020 (expand_vec_cmp_expr): New.
5021 * optabs.def (vec_cmp_optab): New.
5022 (vec_cmpu_optab): New.
5023 * optabs.h (expand_vec_cmp_expr): New.
5024 * tree-vect-generic.c (expand_vector_comparison): Add vector
5025 comparison optabs check.
5026 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
5027 operations for VF. Add mask type computation.
5028 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
5029 (vectorizable_comparison): New.
5030 (vect_analyze_stmt): Add vectorizable_comparison.
5031 (vect_transform_stmt): Likewise.
5032 (vect_init_vector): Support boolean vector invariants.
5033 (vect_get_vec_def_for_operand): Add VECTYPE arg.
5034 (vectorizable_condition): Directly provide vectype for invariants
5036 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
5037 (enum vect_var_kind): Add vect_mask_var.
5038 (enum stmt_vec_info_type): Add comparison_vec_info_type.
5039 (vectorizable_comparison): New.
5040 (vect_get_vec_def_for_operand): Add VECTYPE arg.
5041 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
5042 (vect_create_destination_var): Likewise.
5043 * tree-vect-patterns.c (check_bool_pattern): Check fails
5044 if we can vectorize comparison directly.
5045 (search_type_for_mask): New.
5046 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
5047 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
5048 comparison statements.
5049 (vect_get_constant_vectors): Support boolean vector constants.
5050 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
5051 (ix86_expand_int_vec_cmp): New.
5052 (ix86_expand_fp_vec_cmp): New.
5053 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
5054 op_true and op_false.
5055 (ix86_int_cmp_code_to_pcmp_immediate): New.
5056 (ix86_fp_cmp_code_to_pcmp_immediate): New.
5057 (ix86_cmp_code_to_pcmp_immediate): New.
5058 (ix86_expand_mask_vec_cmp): New.
5059 (ix86_expand_fp_vec_cmp): New.
5060 (ix86_expand_int_sse_cmp): New.
5061 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
5062 (ix86_expand_int_vec_cmp): New.
5063 (ix86_get_mask_mode): New.
5064 (TARGET_VECTORIZE_GET_MASK_MODE): New.
5065 * config/i386/sse.md (avx512fmaskmodelower): New.
5066 (vec_cmp<mode><avx512fmaskmodelower>): New.
5067 (vec_cmp<mode><sseintvecmodelower>): New.
5068 (vec_cmpv2div2di): New.
5069 (vec_cmpu<mode><avx512fmaskmodelower>): New.
5070 (vec_cmpu<mode><sseintvecmodelower>): New.
5071 (vec_cmpuv2div2di): New.
5073 2015-11-10 Richard Biener <rguenther@suse.de>
5075 PR tree-optimization/68240
5076 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
5078 (visit_phi): For PHIs with just a single executable edge
5079 take its value directly.
5080 (expressions_equal_p): Handle VN_TOP properly.
5082 2015-11-10 Richard Biener <rguenther@suse.de>
5084 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
5085 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
5088 2015-11-10 Richard Biener <rguenther@suse.de>
5090 PR tree-optimization/56118
5091 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
5092 cost favor vectorized version.
5094 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5096 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
5097 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
5098 (neg_not_op): New code attribute.
5100 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5102 * ifcvt.c (noce_try_inverse_constants): New function.
5103 (noce_process_if_block): Call it.
5104 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
5105 * optabs.def (negcc_optab, notcc_optab): Declare.
5106 * optabs.c (emit_conditional_neg_or_complement): New function.
5107 * doc/tm.texi (Standard Names): Document negcc, notcc names.
5109 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5111 PR rtl-optimization/68236
5112 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
5113 if insn_queue doesn't exist.
5114 (haifa_sched_finish): Reset insn_queue to NULL.
5116 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
5118 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
5119 (build_def_use): Initialize terminated_this_insn.
5120 (find_best_rename_reg): Pick and check register from the tied chain.
5121 (regrename_do_replace): Mark head as renamed.
5122 (struct du_head *terminated_this_insn). New static variable.
5123 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
5124 * regrename.h (struct du_head): Add tied_chain, renamed members.
5126 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5129 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
5132 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5135 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
5136 not promote the mode for aggregate types.
5138 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5140 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
5141 * omp-low.c (build_oacc_routine_dims): New.
5143 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5145 * config/rs6000/constraints.md (wF constraint): New constraints
5146 for power9/toc fusion.
5147 (wG constraint): Likewise.
5149 * config/rs6000/predicates.md (u6bit_cint_operand): New
5150 predicate, recognize 0..63.
5151 (upper16_cint_operand): New predicate for power9 and toc fusion.
5152 (fpr_reg_operand): Likewise.
5153 (toc_fusion_or_p9_reg_operand): Likewise.
5154 (toc_fusion_mem_raw): Likewise.
5155 (toc_fusion_mem_wrapped): Likewise.
5156 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
5158 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
5160 (fusion_addis_mem_combo_load): Add support for power9 fusion of
5161 floating point loads, floating point stores, and gpr stores.
5162 (fusion_addis_mem_combo_store): Likewise.
5163 (fusion_offsettable_mem_operand): Likewise.
5165 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
5166 (emit_fusion_load_store): Likewise.
5167 (fusion_p9_p): Likewise.
5168 (expand_fusion_p9_load): Likewise.
5169 (expand_fusion_p9_store): Likewise.
5170 (emit_fusion_p9_load): Likewise.
5171 (emit_fusion_p9_store): Likewise.
5172 (fusion_wrap_memory_address): Likewise.
5174 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
5175 elements for power9 fusion.
5176 (rs6000_debug_print_mode): Rework debug information to print more
5177 information about fusion.
5178 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
5179 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
5180 offsettable memory address.
5181 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
5182 (emit_fusion_gpr_load): Move most of the code from
5183 emit_fusion_gpr_load into emit_fusion-addis that handles both
5184 power8 and power9 fusion.
5185 (emit_fusion_addis): Likewise.
5186 (emit_fusion_load_store): Likewise.
5187 (fusion_wrap_memory_address): Add support for TOC fusion.
5188 (fusion_split_address): Likewise.
5189 (fusion_p9_p): Add support for power9 fusion.
5190 (expand_fusion_p9_load): Likewise.
5191 (expand_fusion_p9_store): Likewise.
5192 (emit_fusion_p9_load): Likewise.
5193 (emit_fusion_p9_store): Likewise.
5195 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
5196 new instructions in ISA 3.0.
5197 (TARGET_CTZ): Likewise.
5198 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
5199 (TARGET_TOC_FUSION_FP): Likewise.
5201 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
5203 (UNSPEC_FUSION_ADDIS): Likewise.
5204 (QHSI mode iterator): New iterator for power9 fusion.
5205 (GPR_FUSION): Likewise.
5206 (FPR_FUSION): Likewise.
5207 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
5208 (umod<mode>3): Likewise.
5209 (divmod peephole): Likewise.
5210 (udivmod peephole): Likewise.
5211 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
5213 (ctz<mode>2_h): Likewise.
5214 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
5215 (ashdi3_extswsli_dot): Likewise.
5216 (ashdi3_extswsli_dot2): Likewise.
5217 (power9 fusion splitter): New power9/toc fusion support.
5218 (toc_fusionload_<mode>): Likewise.
5219 (toc_fusionload_di): Likewise.
5220 (fusion_gpr_load_<mode>): Update predicate function.
5221 (power9 fusion peephole2s): New power9/toc fusion support.
5222 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5223 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
5224 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
5225 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
5226 (fusion_p9_<mode>_constant): Likewise.
5228 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
5230 * optabs.c (prepare_libcall_arg): New function.
5231 (expand_fixed_convert): Add call to prepare_libcall_arg.
5233 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
5235 * sched-int.h (dump_rgn_dependencies_dot): Declare
5236 * sched-rgn.c (dump_rgn_dependencies_dot): New function
5237 * print-rtl.h (print_insn): Add prototype
5239 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
5240 * common.opt (-fsched-verbose): Set default value to 1.
5241 * invoke.texi (-fsched-verbose): Update the option's description.
5243 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5245 * config/visium/visium.h (PRINT_OPERAND): Delete.
5246 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5247 (PRINT_OPERAND_ADDRESS): Likewise.
5248 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
5250 (visium_print_operand_punct_valid_p): ...this. New function.
5251 (TARGET_PRINT_OPERAND): Define to...
5252 (print_operand): Rename to...
5253 (visium_print_operand): ...this.
5254 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
5255 (visium_output_address): Rename to...
5256 (visium_print_operand_address): ...this.
5257 (print_operand_address): Delete.
5259 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5262 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
5263 Check that the type of the first operand is an aggregate type.
5265 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5267 * omp-low.c: Fix some OpenACC comment typos.
5268 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
5269 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
5270 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
5272 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
5274 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
5276 2015-11-09 Jeff Law <law@redhat.com>
5278 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
5279 being in gimple/ssa form. Remove redundant check for SSA_NAME.
5282 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5283 Peter Bergner <bergner@vnet.ibm.com>
5285 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
5287 (-mpower9-vector): Likewise.
5288 (-mpower9-dform): Likewise.
5289 (-mpower9-minmax): Likewise.
5290 (-mtoc-fusion): Likewise.
5291 (-mmodulo): Likewise.
5292 (-mfloat128-hardware): Likewise.
5294 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
5295 mask for ISA 3.0 (power9).
5296 (POWERPC_MASKS): Add new ISA 3.0 switches.
5297 (power9 cpu): Add power9 cpu.
5299 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
5300 (ASM_CPU_SPEC): Likewise.
5301 (EXTRA_SPECS): Likewise.
5303 * config/rs6000/rs6000-opts.h (enum processor_type): Add
5306 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
5307 (rs6000_debug_reg_global): Add support for power9 fusion.
5308 (rs6000_setup_reg_addr_masks): Cache mode size.
5309 (rs6000_option_override_internal): Until real power9 tuning is
5310 added, use -mtune=power8 for -mcpu=power9.
5311 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
5312 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
5313 of Altivec registers.
5314 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
5315 (rs6000_loop_align): Add support for power9 cpu.
5316 (rs6000_file_start): Likewise.
5317 (rs6000_adjust_cost): Likewise.
5318 (rs6000_issue_rate): Likewise.
5319 (insn_must_be_first_in_group): Likewise.
5320 (insn_must_be_last_in_group): Likewise.
5321 (force_new_group): Likewise.
5322 (rs6000_register_move_cost): Likewise.
5323 (rs6000_opt_masks): Likewise.
5325 * config/rs6000/rs6000.md (cpu attribute): Add power9.
5326 * config/rs6000/rs6000-tables.opt: Regenerate.
5328 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5329 _ARCH_PWR9 if power9 support is available.
5331 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
5332 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
5334 * configure.ac: Determine if the assembler supports the ISA 3.0
5336 * config.in (HAVE_AS_POWER9): Likewise.
5337 * configure: Regenerate.
5339 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
5342 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5344 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
5345 Remove integer CONST_DOUBLE handling. It should never occur.
5347 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5350 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
5351 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
5352 Delete VOIDmode case. Assert that mode is not VOIDmode.
5353 * config/aarch64/predicates.md (const0_operand): Remove const_double
5356 2015-11-09 Martin Liska <mliska@suse.cz>
5358 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
5359 body_info release function.
5360 * ipa-prop.c (ipa_release_body_info): New function.
5361 (ipa_analyze_node): Call the function.
5362 (ipa_node_params::~ipa_node_params): Release known_csts.
5363 * ipa-prop.h (ipa_release_body_info): Declare.
5365 2015-11-09 Martin Liska <mliska@suse.cz>
5367 * gcc.c (record_temp_file): Release name string.
5368 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
5369 * lra-lives.c (free_live_range_list): Utilize
5370 lra_live_range_pool for allocation and deallocation.
5371 (create_live_range): Likewise.
5372 (copy_live_range): Likewise.
5373 (lra_merge_live_ranges): Likewise.
5374 (remove_some_program_points_and_update_live_ranges): Likewise.
5375 (lra_create_live_ranges_1): Release point_freq_vec that can
5376 be not freed from previous iteration of the function.
5377 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
5378 * tree-sra.c (sra_deinitialize): Release all vectors in
5380 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
5381 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
5382 Release edge_info for a removed edge.
5383 (thread_through_all_blocks): Free region vector.
5384 * tree-ssa.h (free_dom_edge_info): Declare function extern.
5386 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
5388 * optabs.c (expand_vec_cond_expr): Always get sign from type.
5389 * tree.c (wide_int_to_tree): Support negative values for boolean.
5390 (build_nonstandard_boolean_type): Use signed type for booleans.
5392 2015-11-09 Richard Biener <rguenther@suse.de>
5394 PR tree-optimization/68248
5395 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
5397 2015-11-09 Richard Biener <rguenther@suse.de>
5399 PR tree-optimization/56118
5400 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
5401 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
5402 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
5404 (vect_slp_analyze_data_ref_dependences): Instead of computing
5405 all dependences of the region DRs just analyze the code motions
5406 SLP vectorization will perform. Remove SLP instances that
5407 cannot have their store/load motions applied.
5408 (vect_analyze_data_refs): Allow DRs without a vectype
5409 in BB vectorization.
5411 2015-11-09 Julian Brown <julian@codesourcery.com>
5413 * final.c (output_asm_insn): Pass VOIDmode to output_address.
5414 (output_address): Add MODE argument. Pass to print_operand_address
5416 * targhooks.c (default_print_operand_address): Add MODE argument.
5417 * targhooks.h (default_print_operand_address): Update prototype.
5418 * output.h (output_address): Update prototype.
5419 * target.def (print_operand_address): Add MODE argument.
5420 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
5422 (print_operand): Pass access mode to output_address.
5423 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
5425 (mcore_print_operand): Update calls to mcore_print_operand_address.
5426 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
5428 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
5430 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
5432 (tilegx_print_operand): Don't set above global. Update calls to
5434 (tilegx_print_operand_address): Add MODE argument. Use instead of
5435 output_memory_reference_mode global.
5436 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
5437 (frv_print_operand): Pass mode to frv_print_operand_address calls.
5438 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
5440 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
5441 (cris_print_operand): Pass mode to output_address calls.
5442 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
5443 * config/aarch64/aarch64.h (aarch64_print_operand)
5444 (aarch64_print_operand_address): Remove prototypes.
5445 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
5447 (aarch64_print_operand): Make static. Update calls to output_address.
5448 (aarch64_print_operand_address): Add MODE argument. Use instead of
5449 aarch64_memory_reference_mode global.
5450 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
5452 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
5453 Delete macro definitions.
5454 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
5455 * config/xtensa/xtensa.c (print_operand): Pass mode in
5456 output_address calls.
5457 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
5459 (h83000_print_operand): Update calls to h8300_print_operand_address
5461 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
5462 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
5464 (tilepro_print_operand): Pass mode to output_address.
5465 (tilepro_print_operand_address): Add MODE argument. Use instead of
5466 output_memory_reference_mode.
5467 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
5468 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
5469 to output_address calls.
5470 (nvptx_print_operand_address): Add MODE argument.
5471 * config/alpha/alpha.c (print_operand): Pass mode argument in
5472 output_address calls.
5473 * config/m68k/m68k.c (print_operand): Pass mode argument in
5474 output_address call.
5475 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
5476 (avr_print_operand): Update calls to avr_print_operand_address.
5477 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
5478 argument. Update calls to output_address.
5479 (sparc_print_operand): Pass mode to output_address.
5480 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
5482 (iq2000_print_operand): Pass mode in output_address calls.
5483 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
5485 (xstormy16_print_operand): Pass mode to
5486 xstormy16_print_operand_address calls.
5487 * config/mips/mips.c (mips_print_operand): Update calls to
5489 (mips_print_operand_address): Add MODE argument.
5490 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
5492 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
5493 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
5495 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
5496 (rx_print_operand): Update calls to output_address,
5497 rx_print_operand_address.
5498 * config/nds32/nds32.c (nds32_print_operand): Update calls to
5500 (nds32_print_operand_address): Add MODE argument.
5501 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
5502 output_address calls.
5503 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
5504 output_address call.
5505 (c6x_print_address_operand): Update calls to output_address.
5506 (c6x_print_operand_address): Pass mode to above.
5507 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
5508 (v850_print_operand): Pass mode to v850_print_operand_address,
5510 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
5511 (mmix_print_operand): Pass mode in output_address calls.
5512 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
5513 (sh_print_operand): Pass mem mode to output_address,
5514 sh_print_operand_address.
5515 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
5516 (cr16_print_operand): Pass mode to output_address,
5517 cr16_print_operand_address.
5518 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
5520 * config/microblaze/microblaze.c (print_operand): Pass mode to
5522 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
5524 (nios2_print_operand_address): Add MODE argument. Update call to
5525 nios2_print_operand_address.
5526 * config/s390/s390.c (print_operand): Pass mode to output_address.
5527 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
5528 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
5530 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
5531 Use instead of output_memory_reference_mode.
5532 (output_memory_reference_mode): Delete global.
5533 (arm_print_operand): Pass mem mode to output_address.
5534 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
5535 (m32r_print_operand): Pass mode to output_address.
5536 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
5538 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
5539 * config/i386/i386.c (ix86_print_operand): Pass mode to
5540 output_address calls.
5541 (ix86_print_operand_address): Add MODE argument.
5543 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5546 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
5547 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
5548 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
5549 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5551 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5553 PR rtl-optimization/67749
5554 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
5555 case before emitting the two blocks. Instead modify the register
5556 in the corresponding final insn of the basic block.
5558 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5560 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
5563 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
5565 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
5566 HAVE_INITFINI_ARRAY_SUPPORT.
5567 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
5569 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
5570 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
5571 Don't check HAVE_AS_SPARC_NOBITS.
5572 Heed SECTION_NOTYPE.
5574 * configure: Regenerate.
5575 * config.in: Regenerate.
5577 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5580 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
5582 2015-11-09 Richard Henderson <rth@redhat.com>
5584 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
5585 __SEG_GS, __SEG_TLS.
5586 (ix86_register_pragmas): Register address spaces __seg_fs,
5587 __seg_gs, __seg_tls.
5588 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
5589 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
5590 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
5591 * config/i386/i386.c (ix86_decompose_address): Likewise.
5592 (ix86_legitimate_address_p): Likewise.
5593 (memory_address_length): Likewise. Check mem address space too.
5594 (ix86_print_operand): Use ix86_print_operand_address_as.
5595 (ix86_print_operand_address_as): Rename from
5596 ix86_print_operand_address, add new addr_space_t parameter.
5597 Validate that either the parameter or the ix86_address segment
5598 is default address space. Handle ADDR_SPACE_SEG_TLS.
5599 (ix86_print_operand_address): New.
5600 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
5601 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
5602 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
5603 (ix86_addr_space_zero_address_valid): New.
5604 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5605 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
5606 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
5607 * config/i386/predicates.md (address_no_seg_operand): Likewise.
5608 (vsib_address_operand): Likewise.
5609 (address_mpx_no_base_operand): Likewise.
5610 (address_mpx_no_index_operand): Likewise.
5611 * doc/extend.texi (x86 Named Address Spaces): New section.
5613 * config/i386/i386.c (ix86_check_no_addr_space): New.
5614 (decide_alg): Add have_as parameter.
5615 (alg_usable_p): Likewise; disable rep algorithms if set.
5616 (ix86_expand_set_or_movmem): Notice if either MEM has a
5617 non-default address space.
5618 (ix86_expand_strlen): Likewise.
5619 * config/i386/i386.md (strmov, strset): Likewise.
5620 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
5621 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
5622 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
5623 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
5624 *cmpstrnqi_1, *strlenqi_1): Likewise.
5626 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
5627 (*movabs<mode>_2): Likewise.
5629 * dwarf2out.c (modified_type_die): Pass the address space number
5630 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
5631 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
5632 * targhooks.c (default_addr_space_debug): New.
5633 * targhooks.h (default_addr_space_debug): Declare.
5634 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
5635 * doc/tm.texi: Rebuild.
5637 * gimple.c (check_loadstore): Return false when 0 is a valid address.
5638 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
5639 null when 0 is valid in the source address space.
5640 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5641 * targhooks.c (default_addr_space_zero_address_valid): New.
5642 * targhooks.h (default_addr_space_zero_address_valid): Declare.
5643 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
5644 * doc/tm.texi: Rebuild.
5646 * cselib.c (add_mem_for_addr): Compare address spaces when
5648 (cselib_lookup_mem): Likewise.
5649 * fold-const.c (operand_equal_p): Check address spaces of
5650 pointer types before checking integer constants.
5653 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
5654 the correct type for the base.
5656 2015-11-09 Jeff Law <law@redhat.com>
5658 * tree-into-ssa.c (names_to_release): No longer static.
5659 * tree-into-ssa.h (names_to_release): Declare.
5660 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
5661 (release_free_names_and_compact_live_names): New function extracted
5662 from pass_release_ssa_names::execute.
5663 (pass_release_ssa_names::execute): Use it.
5665 2015-11-09 Alan Modra <amodra@gmail.com>
5667 * gensupport.c (add_mnemonic_string): Make len param a size_t.
5668 (gen_mnemonic_setattr): Make "size" var a size_t. Use
5669 obstack_blank_fast to shrink obstack. Cast obstack_next_free
5672 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
5674 PR rtl-optimization/68182
5675 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
5676 branch with only one successor just like unconditional branches.
5678 2015-11-08 Jeff Law <law@redhat.com>
5680 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
5681 non-FSM path has no edges marked with EDGE_DFS_BACK.
5682 (ssa_redirect_edges): No longer call mark_loop_for_removal.
5683 (thread_single_edge, def_split_header_continue_p): Remove.
5684 (bb_ends_with_multiway_branch): Likewise.
5685 (thread_through_loop_header): Remove cases of threading from
5686 latch through the header. Simplify knowing we won't thread
5688 (thread_through_all_blocks): Simplify knowing that only the FSM
5689 threader needs to handle backedges.
5691 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
5693 * doc/extend.texi (type attributes): Document scalar_storage_order.
5694 (Structure-Packing Pragmas): Rename into...
5695 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
5696 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
5697 (Warnings): Document -Wno-scalar-storage-order.
5698 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
5699 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
5700 extract_bit_field and store_bit_field.
5701 (initialize_argument_information): Adjust call to store_expr.
5702 (load_register_parameters): Adjust call to extract_bit_field.
5703 * expmed.c (check_reverse_storage_order_support): New function.
5704 (check_reverse_float_storage_order_support): Likewise.
5705 (flip_storage_order): Likewise.
5706 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
5707 of the value if it is true. Pass REVERSE to recursive call after
5708 adjusting the target offset.
5709 Do not use extraction or movstrict instruction if REVERSE is true.
5710 Pass REVERSE to store_fixed_bit_field.
5711 (store_bit_field): Add REVERSE parameter and pass to it to above.
5712 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
5713 store_split_bit_field and store_fixed_bit_field_1.
5714 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
5715 order of the value if it is true and adjust the target offset.
5716 (store_split_bit_field): Add REVERSE parameter and pass it to
5717 store_fixed_bit_field. Adjust the target offset if it is true.
5718 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
5719 of the value if it is true. Pass REVERSE to recursive call after
5720 adjusting the target offset.
5721 Do not use extraction or subreg instruction if REVERSE is true.
5722 Pass REVERSE to extract_fixed_bit_field.
5723 (extract_bit_field): Add REVERSE parameter and pass to it to above.
5724 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
5725 extract_split_bit_field and extract_fixed_bit_field_1.
5726 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
5727 order of the value if it is true and adjust the target offset.
5728 (extract_split_bit_field): Add REVERSE parameter and pass it to
5729 extract_fixed_bit_field. Adjust the target offset if it is true.
5730 * expmed.h (flip_storage_order): Declare.
5731 (store_bit_field): Adjust prototype.
5732 (extract_bit_field): Likewise.
5733 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
5734 (emit_group_store): Adjust call to store_bit_field.
5735 (copy_blkmode_from_reg): Likewise.
5736 (copy_blkmode_to_reg): Likewise.
5737 (write_complex_part): Likewise.
5738 (read_complex_part): Likewise.
5739 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
5740 that it isn't true if the target is a register.
5741 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
5742 and flip the storage order of the value.
5743 <BIT_IOR_EXPR>: Flip the storage order of the value.
5744 (get_bit_range): Adjust call to get_inner_reference.
5745 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
5746 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
5747 with reverse storage order.
5748 (store_expr_with_bounds): Add REVERSE parameter and pass it to
5749 recursive calls and call to store_bit_field. Force the value into a
5750 register if it is true and then flip the storage order of the value.
5751 (store_expr): Add REVERSE parameter and pass it to above.
5752 (categorize_ctor_elements_1): Adjust call to
5753 initializer_constant_valid_p.
5754 (store_constructor_field): Add REVERSE parameter and pass it to
5755 recursive calls and call to store_field.
5756 (store_constructor): Add REVERSE parameter and pass it to calls to
5757 store_constructor_field and store_expr. Set it to true for an
5758 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
5759 (store_field): Add REVERSE parameter and pass it to recursive calls
5760 and calls to store_expr and store_bit_field. Temporarily flip the
5761 storage order of the value with record type and integral mode and
5762 adjust the shift if it is true.
5763 (get_inner_reference): Add PREVERSEP parameter and set it to true
5764 upon encoutering a reference with reverse storage order.
5765 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
5766 (expand_constructor): Adjust call to store_constructor.
5767 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
5768 of the union type to store_expr in the MEM case and assert that it
5769 isn't set in the REG case. Adjust call to store_field.
5770 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
5771 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
5772 get_inner_reference and extract_bit_field. Temporarily flip the
5773 storage order of the value with record type and integral mode and
5774 adjust the shift if it is true. Flip the storage order of the value
5775 at the end if it is true.
5776 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
5777 get_inner_reference. Do not fetch an inner reference if it is true.
5778 * expr.h (store_expr_with_bounds): Ajust prototype.
5779 (store_expr): Likewise.
5780 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
5781 REF_REVERSE_STORAGE_ORDER on the reference according to it.
5782 (optimize_bit_field_compare): Deal with reverse storage order.
5783 Adjust calls to get_inner_reference and make_bit_field_ref.
5784 (decode_field_reference): Add PREVERSEP parameter and adjust call to
5785 get_inner_reference.
5786 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
5787 to decode_field_reference and make_bit_field_ref.
5788 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
5789 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
5790 (fold_comparison): Adjust call to get_inner_reference.
5791 (split_address_to_core_and_offset): Adjust call to
5792 get_inner_reference.
5793 * gimple-expr.c (useless_type_conversion_p): Return false for array
5794 types with different TYPE_REVERSE_STORAGE_ORDER flag.
5795 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
5796 REF_REVERSE_STORAGE_ORDER flag.
5797 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
5798 * output.h (assemble_real): Adjust prototype.
5799 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
5800 * stor-layout.c (finish_record_layout): Propagate the
5801 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
5802 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
5803 (TYPE_SATURATING): Adjust.
5804 (REF_REVERSE_STORAGE_ORDER): Document.
5805 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
5806 set it to true upon encoutering a reference with reverse storage order.
5807 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
5808 * tree-inline.c (remap_gimple_op_r): Propagate the
5809 REF_REVERSE_STORAGE_ORDER flag.
5810 (copy_tree_body_r): Likewise.
5811 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
5813 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
5814 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
5815 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5816 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
5817 REF_REVERSE_STORAGE_ORDER flag.
5818 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
5819 (gimple_canonical_types_compatible_p): Likewise.
5820 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
5821 (TYPE_SATURATING): Adjust.
5822 (REF_REVERSE_STORAGE_ORDER): New flag.
5823 (reverse_storage_order_for_component_p): New inline predicate.
5824 (storage_order_barrier_p): Likewise.
5825 (get_inner_reference): Adjust prototype.
5826 * varasm.c: Include expmed.h.
5827 (assemble_variable_contents): Adjust call to output_constant.
5828 (assemble_real): Add REVERSE parameter. Flip the storage
5829 order of the value if REVERSE is true.
5830 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
5831 (assemble_constant_contents): Adjust call to output_constant.
5832 (output_constant_pool_2): Adjust call to assemble_real.
5833 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
5834 TYPE_REVERSE_STORAGE_ORDER.
5835 (initializer_constant_valid_p): Add REVERSE parameter.
5836 (output_constant): Add REVERSE parameter.
5837 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
5838 <REAL_TYPE>: Adjust call to assemble_real.
5839 <COMPLEX_TYPE>: Pass it to recursive calls.
5840 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
5841 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
5842 (struct oc_local_state): Add REVERSE field.
5843 (output_constructor_array_range): Adjust calls to output_constant.
5844 (output_constructor_regular_field): Likewise.
5845 (output_constructor_bitfield): Adjust call to output_constructor.
5846 Flip the storage order of the value if REVERSE is true.
5847 (output_constructor): Add REVERSE parameter. Set it to true for an
5848 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
5849 output_constructor_bitfield.
5850 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
5851 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
5852 * builtins.c (get_object_alignment_2): Likewise.
5853 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
5854 and get_ref_base_and_extent.
5855 * dbxout.c (dbxout_expand_expr): Likewise.
5856 * dwarf2out.c (add_var_loc_to_decl): Likewise.
5857 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
5858 (loc_list_from_tree): Likewise.
5859 (fortran_common): Likewise.
5860 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
5861 get_ref_base_and_extent.
5862 (get_base_constructor): Likewise.
5863 (fold_const_aggregate_ref_1): Likewise.
5864 * gimple-laddress.c (pass_laddress::execute): Adjust call to
5865 get_inner_reference.
5866 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
5867 get_inner_reference and bail out on reverse storage order.
5868 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
5869 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
5870 build_ref_for_offset.
5871 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
5872 get_ref_base_and_extent.
5873 (ipa_polymorphic_call_context): Likewise.
5874 (extr_type_from_vtbl_ptr_store): Likewise.
5875 (check_stmt_for_type_change): Likewise.
5876 (get_dynamic_type): Likewise.
5877 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
5878 get_ref_base_and_extent.
5879 (compute_complex_assign_jump_func): Likewise.
5880 (get_ancestor_addr_info): Likewise.
5881 (compute_known_type_jump_func): Likewise.
5882 (determine_known_aggregate_parts): Likewise.
5883 (ipa_get_adjustment_candidate): Likewise.
5884 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
5885 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
5886 (build_ref_for_offset): Adjust prototype.
5887 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
5888 get_inner_reference.
5889 * tree-affine.c (tree_to_aff_combination): Adjust call to
5890 get_inner_reference.
5891 (get_inner_reference_aff): Likewise.
5892 * tree-data-ref.c (split_constant_offset_1): Likewise.
5893 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
5894 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
5895 get_inner_reference.
5896 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
5897 (dump_access): Print new fields.
5898 (create_access): Adjust call to get_ref_base_and_extent and set the
5899 REVERSE flag according to the result.
5900 (completely_scalarize_record): Set the REVERSE flag.
5901 (scalarize_elem): Add REVERSE parameter.
5902 (build_access_from_expr_1): Preserve storage order barriers.
5903 (build_accesses_from_assign): Likewise.
5904 (build_ref_for_offset): Add REVERSE parameter and set the
5905 REF_REVERSE_STORAGE_ORDER flag accordingly.
5906 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
5907 the REF_REVERSE_STORAGE_ORDER flag if there are components.
5908 (analyze_access_subtree): Likewise.
5909 (create_artificial_child_access): Set the REVERSE flag.
5910 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
5911 (turn_representatives_into_adjustments): Propagate REVERSE flag.
5912 (ipa_sra_check_caller): Adjust call to get_inner_reference.
5913 * tree-ssa-alias.c (ao_ref_base): Adjust call to
5914 get_ref_base_and_extent.
5915 (aliasing_component_refs_p): Likewise.
5916 (stmt_kills_ref_p_1): Likewise.
5917 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5918 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
5919 Return true if reverse storage order.
5920 <BIT_FIELD_REF>: Likewise.
5921 <COMPONENT_REF>: Likewise.
5922 <ARRAY_REF>: Likewise.
5923 <ARRAY_RANGE_REF>: Likewise.
5924 (split_address_cost): Likewise. Bail out if reverse storage order.
5925 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
5926 get_inner_reference. Bail out if reverse storage order.
5927 (bswap_replace): Adjust call to get_inner_reference.
5928 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
5929 the REF_REVERSE_STORAGE_ORDER flag.
5930 <BIT_FIELD_REF>: Likewise.
5931 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
5933 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
5934 to the REF_REVERSE_STORAGE_ORDER flag.
5935 <BIT_FIELD_REF>: Likewise.
5936 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
5937 (contains_storage_order_barrier_p): New predicate.
5938 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
5939 Punt on storage order barriers if necessary.
5940 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
5941 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
5942 call to get_ref_base_and_extent.
5943 (do_structure_copy): Likewise.
5944 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
5945 get_inner_reference.
5946 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
5947 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
5948 * ubsan.c (instrument_bool_enum_load): Likewise.
5949 (instrument_object_size): Likewise.
5950 * var-tracking.c (track_expr_p): Adjust call to
5951 get_ref_base_and_extent.
5952 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
5953 get_inner_reference.
5954 * config/s390/s390.c (s390_expand_atomic): Adjust call to
5956 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
5958 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
5960 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
5962 * config/sparc/sparc.opt (mfix-at697f): Add final period.
5964 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5966 PR rtl-optimization/67864
5967 * common/config/i386/i386-common.c (ix86_option_optimization_table)
5968 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
5971 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5973 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
5976 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5978 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
5979 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
5981 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5983 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
5984 * internal-fn.c: Don't undef it here.
5985 * tree-core.h: Likewise.
5987 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5989 * builtins.c (fold_builtin_nan): Delete.
5990 (fold_builtin_memcmp): Remove case where both arguments are constant.
5991 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
5992 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
5993 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
5994 * fold-const-call.c: Include fold-const.h.
5995 (host_size_t_cst_p): New function.
5996 (build_cmp_result, fold_const_builtin_nan): Likewise.
5997 (fold_const_call_1): New function, split out from...
5998 (fold_const_call): ...here (for all three interfaces). Handle
5999 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
6001 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6003 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
6004 (fold_builtin_1): Don't call them.
6005 * fold-const-call.c: Include tm.h.
6006 (fold_const_call_ss): New variant for integer-to-integer folds.
6007 (fold_const_call): Call it.
6009 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6011 * builtins.c (fold_builtin_classify): Move constant cases to...
6012 * fold-const-call.c (fold_const_call_ss): ...here.
6014 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6016 * builtins.h (c_getstr): Move to...
6017 * fold-const.h (c_getstr): ...here.
6018 * builtins.c (c_getstr): Move to...
6019 * fold-const.c (c_getstr): ...here.
6021 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6023 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
6024 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
6026 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6028 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
6029 the dominance info; free it if we can't.
6030 (pass_call_cdce::execute): Don't free the dominance info here.
6032 2015-11-06 Jeff Law <law@redhat.com>
6034 * tree-ssa-threadedge.c (dummy_simplify): Remove.
6035 (thread_around_empty_blocks): Remove backedge_seen_p argument.
6036 If we thread to a backedge, then return false. Update recursive
6037 call to eliminate backedge_seen_p argument.
6038 (thread_through_normal_block): Remove backedge_seen_p argument.
6039 Remove backedge_seen_p argument from calls to
6040 thread_around_empty_blocks. Remove checks on backedge_seen_p.
6041 If we thread to a backedge, then return 0.
6042 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
6043 pass it to thread_through_normal_block or thread_through_empty_blocks.
6044 For joiner handling, if we see a backedge, do not try normal
6047 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6049 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
6050 * graphite-poly.c (new_scop): Initialize original_schedule.
6051 (free_scop): Free original_schedule.
6052 * graphite-poly.h (struct scop): Add field original_schedule.
6053 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
6054 (build_poly_scop): Call build_scop_original_schedule.
6056 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6058 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
6059 (build_pbb_minimal_scattering_polyhedrons): New.
6060 (build_scop_scattering): Remove.
6061 (build_scop_minimal_scattering): New.
6062 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
6063 (build_poly_scop): Call build_scop_minimal_scattering.
6065 2015-11-06 Jeff Law <law@redhat.com>
6067 * cfg-flags.def (IGNORE): New edge flag.
6068 * tree-vrp.c (identify_jump_threads): Mark and clear edges
6069 scheduled for removal with EDGE_IGNORE around call into
6070 jump threader. Do no thread across edges with EDGE_IGNORE,
6071 but do allow threading across those with EDGE_DFS_BACK.
6073 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
6075 * doc/md.texi (multi-alternative constraints): Don't document
6076 alternatives inherently tied to reload for the user documentation.
6078 2015-11-06 Michael Collison <michael.collison@linaro.org>
6079 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6082 2015-08-01 Michael Collison <michael.collison@linaro.org
6083 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6085 * config/arm/arm.md (*arm_smin_cmp): New pattern.
6086 (*arm_umin_cmp): Likewise.
6088 2015-11-06 Jakub Jelinek <jakub@redhat.com>
6090 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
6091 * omp-low.c (check_omp_nesting_restrictions): Update for the
6092 various new OpenMP 4.5 nesting restrictions, clarified
6093 nesting glossary, closely nested region relationship clarified
6094 to mean explicit or implicit parallel regions (target/teams),
6095 use %</%> or %qs where appropriate.
6097 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
6098 Sebastian Pop <s.pop@samsung.com>
6100 * graphite-scop-detection.c (loop_is_valid_scop): Call
6101 optimize_loop_nest_for_speed_p.
6103 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
6104 Sebastian Pop <s.pop@samsung.com>
6106 * graphite-optimize-isl.c (optimize_isl): Call
6107 isl_options_set_schedule_maximize_band_depth.
6109 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
6110 Sebastian Pop <s.pop@samsung.com>
6112 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
6113 and exit edges should not be a part of irreducible loop.
6114 (scop_detection::can_represent_loop_1): Loops should not be
6116 (scop_detection::harmful_stmt_in_region): All the basic block
6117 should belong to reducible loops.
6119 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
6121 * config/aarch64/aarch64-simd-builtins.def: Update builtins
6122 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
6123 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
6124 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
6125 (aarch64_tbx4v8qi): Rename to...
6126 aarch64_tbx4<mode>): ... this.
6127 (aarch64_qtbl3<mode>): New pattern.
6128 (aarch64_qtbx3<mode>): New pattern.
6129 (aarch64_qtbl4<mode>): New pattern.
6130 (aarch64_qtbx4<mode>): New pattern.
6131 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
6132 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
6133 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
6134 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
6135 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
6136 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
6137 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
6138 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
6141 2015-11-06 Mike Stump <mikestump@comcast.net>
6144 * dwarf2out.c (get_full_len): Return a value based upon the actual
6145 precision needed for the value.
6146 (add_const_value_attribute): Use a maximal wide-int for
6147 CONST_WIDE_INTs, not VOIDmode.
6148 (output_die): Don't ever output NULL with printf.
6150 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
6151 BLKmode nor VOIDmode values.
6153 2015-11-06 David Malcolm <dmalcolm@redhat.com>
6155 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
6157 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
6158 * diagnostic-core.h (warning_at_rich_loc): New declaration.
6159 (error_at_rich_loc): New declaration.
6160 (permerror_at_rich_loc): New declaration.
6161 (inform_at_rich_loc): New declaration.
6162 * diagnostic-show-locus.c (adjust_line): Delete.
6163 (struct point_state): New struct.
6164 (class colorizer): New class.
6165 (class layout_point): New class.
6166 (class layout_range): New class.
6167 (struct line_bounds): New.
6168 (class layout): New class.
6169 (colorizer::colorizer): New ctor.
6170 (colorizer::~colorizer): New dtor.
6171 (layout::layout): New ctor.
6172 (layout::print_source_line): New method.
6173 (layout::print_annotation_line): New method.
6174 (layout::get_state_at_point): New method.
6175 (layout::get_x_bound_for_row): New method.
6176 (diagnostic_show_locus): Reimplement in terms of class layout.
6177 (diagnostic_print_caret_line): Delete.
6178 * diagnostic.c (diagnostic_initialize): Replace
6179 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
6180 (diagnostic_set_info_translated): Convert param from location_t
6181 to rich_location *. Eliminate calls to set_location on the
6182 message in favor of storing the rich_location ptr there.
6183 (diagnostic_set_info): Convert param from location_t to
6185 (diagnostic_build_prefix): Break out array into...
6186 (diagnostic_kind_color): New variable.
6187 (diagnostic_get_color_for_kind): New function.
6188 (diagnostic_report_diagnostic): Colorize the option_text
6189 using the color for the severity.
6190 (diagnostic_append_note): Update for change in signature of
6191 diagnostic_set_info.
6192 (diagnostic_append_note_at_rich_loc): New function.
6193 (emit_diagnostic): Update for change in signature of
6194 diagnostic_set_info.
6196 (inform_at_rich_loc): New function.
6197 (inform_n): Update for change in signature of diagnostic_set_info.
6198 (warning): Likewise.
6199 (warning_at): Likewise.
6200 (warning_at_rich_loc): New function.
6201 (warning_n): Update for change in signature of diagnostic_set_info.
6202 (pedwarn): Likewise.
6203 (permerror): Likewise.
6204 (permerror_at_rich_loc): New function.
6205 (error): Update for change in signature of diagnostic_set_info.
6206 (error_n): Likewise.
6207 (error_at): Likewise.
6208 (error_at_rich_loc): New function.
6209 (sorry): Update for change in signature of diagnostic_set_info.
6210 (fatal_error): Likewise.
6211 (internal_error): Likewise.
6212 (internal_error_no_backtrace): Likewise.
6213 (source_range::debug): New function.
6214 * diagnostic.h (struct diagnostic_info): Eliminate field
6215 "override_column". Add field "richloc".
6216 (struct diagnostic_context): Add field "colorize_source_p".
6217 (diagnostic_override_column): Delete.
6218 (diagnostic_set_info): Convert param from location_t to
6220 (diagnostic_set_info_translated): Likewise.
6221 (diagnostic_append_note_at_rich_loc): New function.
6222 (diagnostic_num_locations): New function.
6223 (diagnostic_expand_location): Get the location from the
6225 (diagnostic_print_caret_line): Delete.
6226 (diagnostic_get_color_for_kind): New declaration.
6227 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
6228 (error_cb): Update for change in signature of "error" callback.
6229 (fatal_at): Likewise.
6230 (warning_at): Likewise.
6231 * input.c (linemap_client_expand_location_to_spelling_point): New.
6232 * pretty-print.c (text_info::set_range): New method.
6233 (text_info::get_location): New method.
6234 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
6235 (struct text_info): Eliminate "locations" array in favor of
6236 "m_richloc", a rich_location *.
6237 (textinfo::set_location): Add a "caret_p" param, and reimplement
6238 in terms of a call to set_range.
6239 (textinfo::get_location): Eliminate inline implementation in favor of
6240 an out-of-line reimplementation.
6241 (textinfo::set_range): New method.
6242 * rtl-error.c (diagnostic_for_asm): Update for change in signature
6243 of diagnostic_set_info.
6244 * tree-diagnostic.c (default_tree_printer): Update for new
6245 "caret_p" param for textinfo::set_location.
6246 * tree-pretty-print.c (percent_K_format): Likewise.
6248 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6251 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6252 * config/aarch64/aarch64.c
6253 (aarch64_can_use_per_function_literal_pools_p): New.
6254 (aarch64_use_blocks_for_constant_p): Adjust declaration
6255 and use aarch64_can_use_function_literal_pools_p.
6256 (aarch64_select_rtx_section): Update.
6258 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6260 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
6261 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
6262 (arm_output_multireg_pop): Likewise.
6263 (output_move_double): Likewise.
6264 (output_move_quad): Likewise.
6265 (output_return_instruction): Likewise.
6266 (arm_print_operand): Remove support for %( and %. print modifiers.
6267 (arm_output_shift): Make unified asm.
6268 (arm_declare_function_name): Likewise.
6269 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
6270 (ASM_APP_OFF): Adjust.
6271 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
6272 (ASM_OUTPUT_REG_POP): Likewise.
6273 * config/arm/arm.md: Adjust uses of %., %(, %)
6274 * config/arm/sync.md: Likewise.
6275 * config/arm/thumb2.md: Likewise.
6276 * config/arm/ldmstm.md: Regenerate.
6277 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
6278 * doc/invoke.texi (masm-unified-syntax): Update documentation.
6280 2015-11-06 David Malcolm <dmalcolm@redhat.com>
6282 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
6284 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
6286 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
6287 add OEP_MATCH_SIDE_EFFECTS.
6288 * fold-const.c (operand_equal_p): Update documentation; handle
6289 OEP_MATCH_SIDE_EFFECTS.
6290 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
6291 OEP_MATCH_SIDE_EFFECTS.
6293 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
6294 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6296 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
6297 * config/aarch64/aarch64-protos.h: Declare.
6298 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
6300 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
6301 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
6302 code when applicable.
6303 * config/aarch64/aarch64.md: Added enum entries.
6304 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
6306 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
6310 * ipa-polymorphic-call.c
6311 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
6312 issue when offset is out of range.
6313 (contains_type_p): Fix out of range check, clear dynamic flag.
6315 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
6317 * config.gcc (e6500): Fix cpu_is_64bit typo.
6319 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
6321 * tree-sra.c (completely_scalarize): Properly handle negative array
6322 indices using offset_int.
6324 2015-11-06 Richard Biener <rguenther@suse.de>
6326 * alloc-pool.h (object_allocator::allocate): Default-initialize
6329 2015-11-06 Richard Biener <rguenther@suse.de>
6331 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
6332 * lra.c (init_reg_info): Truncate copy_vec instead of
6333 re-allocating a new one and leaking the old.
6334 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
6336 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
6337 * postreload-gcse.c (free_mem): Free modify_mem_list and
6338 canon_modify_mem_list.
6340 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
6342 PR tree-optimization/68145
6343 * tree-vect-stmts.c (vectorizable_operation): Fix
6344 determination for booleans.
6346 2015-11-06 Tom de Vries <tom@codesourcery.com>
6348 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
6349 cond_jump, instead of split after last nondebug insn before cond_jump.
6350 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
6353 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6356 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
6357 subregs from accumulator and make sure it's a register.
6359 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
6361 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
6363 (reduc_uplus_<mode>): Remove.
6364 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
6365 loongson_extract_lo_<mode>.
6366 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
6367 reduc_smax_<mode>, reduc_smax_<mode>, use vec
6368 loongson_extract_lo_<mode>.
6369 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
6371 2015-11-06 Richard Biener <rguenther@suse.de>
6373 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
6375 (vect_stmt_in_region_p): Declare.
6376 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
6377 (destroy_bb_vec_info): Likewise.
6378 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
6379 (vect_get_and_check_slp_defs): Likewise.
6380 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
6381 (vect_slp_bb): Likewise.
6382 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
6383 in terms of vect_stmt_in_region_p.
6384 (vect_pattern_recog): Iterate over the BB region.
6385 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
6386 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
6387 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
6388 * config/i386/i386.c: Include gimple-iterator.h.
6389 * config/aarch64/aarch64.c: Likewise.
6391 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
6393 PR rtl-optimization/67753
6394 PR rtl-optimization/64164
6395 * function.c (assign_parm_setup_block): Avoid allocating a
6396 stack slot if we don't have an ABI-reserved one. Emit the
6397 copy to target_reg in the conversion seq if the copy from
6398 entry_parm is in it too. Don't use the conversion seq to copy
6399 a PARALLEL to a REG or a CONCAT.
6401 2015-11-06 Richard Biener <rguenther@suse.de>
6403 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
6406 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
6407 Thomas Schwinge <thomas@codesourcery.com>
6408 James Norris <jnorris@codesourcery.com>
6411 * gimplify.c (gimplify_scan_omp_clauses): Add support for
6412 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
6413 (gimplify_adjust_omp_clauses): Likewise.
6414 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
6415 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
6416 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
6417 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
6418 (omp_clause_code_name): Likewise.
6419 (walk_tree_1): Handle OMP_CLAUSE_TILE.
6420 * tree.h (OMP_TILE_LIST): New macro.
6422 2015-11-05 Martin Sebor <msebor@redhat.com>
6425 * doc/invoke.texi (-Wplacement-new): Document new option.
6427 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
6429 PR tree-optimization/65963
6430 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
6431 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
6433 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
6435 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
6436 (noce_convert_multiple_sets): Likewise.
6437 (noce_process_if_block): Call them.
6439 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
6441 * gimple-fold.c: Include omp-low.h.
6442 (fold_internal_goacc_dim): New.
6443 (gimple_fold_call): Call it.
6445 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6446 Ilya Verbin <ilya.verbin@intel.com>
6449 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
6450 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
6451 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
6452 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
6453 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
6454 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
6455 (struct cgraph_simd_clone_arg): Adjust comment.
6456 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
6457 to GOMP_target_ext. Add num_teams and thread_limit arguments.
6458 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
6459 to GOMP_target_data_ext.
6460 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
6461 to GOMP_target_update_ext.
6462 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
6463 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
6464 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
6465 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
6466 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
6467 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
6468 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
6469 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
6470 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
6471 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
6472 * tree-core.h (enum omp_clause_schedule_kind): Add
6473 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
6474 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
6475 OMP_CLAUSE_SCHEDULE_LAST value.
6476 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
6477 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
6478 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
6479 OMP_FOR_CHECK. Remove comment.
6480 * tree-pretty-print.c (dump_omp_clause): Handle
6481 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
6482 Simplify. Print schedule clause modifiers.
6483 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
6484 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
6486 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
6487 (omp_default_clause): Tweak for
6488 private/firstprivate/is_device_ptr variables on target
6489 construct and use_device_ptr on target data.
6490 (omp_check_private): Likewise.
6491 (omp_notice_variable): For references check whether what it refers
6492 to has mappable type, rather than the reference itself.
6493 (omp_is_private): Diagnose linear iteration variables on non-simd
6495 (omp_no_lastprivate): Return true only for Fortran.
6496 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
6497 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
6498 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
6499 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
6500 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
6501 lastprivate and linear when combined with distribute. Gimplify
6502 variable low-bound for array reduction. Look through
6503 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
6505 (gimplify_adjust_omp_clauses_1): For implicit references to
6506 variables with reference type and when not ref to scalar or
6507 ref to pointer, map what they refer to using tofrom and
6508 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
6509 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
6510 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
6511 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
6512 Diagnose the same var on both firstprivate and lastprivate on
6513 distribute construct.
6514 (gimplify_omp_for): Fix up handling of predetermined
6515 lastprivate or linear iter vars when combined with distribute.
6516 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
6518 (gimplify_omp_workshare): Call optimize_target_teams.
6519 * omp-low.c (struct omp_region): Add sched_modifiers field.
6520 (struct omp_for_data): Likewise.
6521 (omp_any_child_fn_dumped): New variable.
6522 (extract_omp_for_data): Fill in sched_modifiers, and mask out
6523 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
6525 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
6526 bits of OMP_CLAUSE_SCHED_KIND.
6527 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
6528 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
6529 for array section reductions.
6530 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
6531 for distribute parallel for, if there are lastprivate clauses on the
6533 (lower_rec_input_clauses): Handle non-zero low-bound on array
6535 (lower_reduction_clauses): Likewise.
6536 (lower_send_clauses): Look through POINTER_PLUS_EXPR
6537 for array section reductions.
6538 (expand_parallel_call): Use nonmonotonic entrypoints for
6539 nonmonotonic: dynamic/guided.
6540 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
6541 child_fn if current_function_decl has assembler name set, but child_fn
6542 does not. Dump the header and IL of the child function when not in SSA
6544 (expand_omp_target): Likewise. Pass num_teams and thread_limit
6545 arguments to BUILT_IN_GOMP_TARGET.
6546 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6547 Initialize the extra _looptemp_ clause to fd->loop.n2.
6548 (expand_omp_for): Use nonmonotonic entrypoints for
6549 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
6550 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
6551 again if we have dumped any child functions.
6552 (lower_omp_for_lastprivate): Determine the right count variable
6553 for distribute simd, or distribute parallel for{, simd}.
6554 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
6555 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
6557 (simd_clone_clauses_extract): Handle variable step
6558 for references and arguments passed by reference.
6559 (simd_clone_mangle): Mangle ref/uval/val variable steps.
6560 (simd_clone_adjust_argument_types): Handle
6561 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
6562 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6563 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
6564 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6565 (simd_clone_linear_addend): New function.
6566 (simd_clone_adjust): Handle variable step like similarly
6567 to constant step, use simd_clone_linear_addend to determine
6568 the actual step at runtime.
6570 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
6572 * target.def (goacc.dim_limit): New hook.
6573 * targhooks.h (default_goacc_dim_limit): Declare.
6574 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
6575 * doc/tm.texi: Rebuilt.
6576 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
6577 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
6578 (default_goacc_dim_limit): New.
6579 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6580 (nvptx_goacc_dim_limit) New.
6581 (TARGET_GOACC_DIM_LIMIT): Override.
6582 * tree-vrp.c: Include omp-low.h, target.h.
6583 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
6586 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6588 * tree-vect-generic.c (do_compare): Use -1 for true
6589 result instead of 1.
6591 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6593 * config/aarch64/aarch64.c
6594 (aarch64_can_use_per_function_literal_pools_p): New.
6595 (aarch64_use_blocks_for_constant_p): Adjust declaration
6596 and use aarch64_can_use_function_literal_pools_p.
6597 (aarch64_select_rtx_section): Update.
6599 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6601 * targhooks.c (default_get_mask_mode): Use BLKmode in
6602 case target doesn't support required vector mode.
6603 * stor-layout.c (layout_type); Check for BLKmode.
6605 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6606 Sebastian Pop <s.pop@samsung.com>
6608 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6609 Remove use of parameter_rename_map.
6611 (copy_internal_parameters): Remove.
6612 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
6613 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
6614 (free_sese_info): Do not free parameter_rename_map.
6615 (set_rename): Do not use parameter_rename_map.
6616 (rename_uses): Update call to set_rename.
6617 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
6618 * sese.h (parameter_rename_map_t): Remove.
6619 (struct sese_info_t): Remove field parameter_rename_map.
6621 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6622 Sebastian Pop <s.pop@samsung.com>
6624 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
6625 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
6626 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
6627 anonymous namespace.
6628 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
6629 (isl_id_for_pbb): Use a buffer of size 10.
6630 (isl_id_for_ssa_name): Same.
6631 * sese.c (set_rename): Add more dumps.
6633 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6635 * omp-low.c (struct omp_context): Remove reduction_map field.
6636 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
6637 (new_omp_context, delete_omp_context, scan_omp_target): Remove
6638 reduction_map handling.
6639 (lower_omp_target): Remove obsolete openacc reduction handling.
6641 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6643 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
6645 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6646 Cesar Philippidis <cesar@codesourcery.com>
6648 * config/nvptx/nvptx.c: Include gimple headers.
6649 (worker_red_size, worker_red_align, worker_red_name,
6650 worker_red_sym): New.
6651 (nvptx_option_override): Initialize worker reduction buffer.
6652 (nvptx_file_end): Write out worker reduction buffer var.
6653 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
6654 nvptx_expand_cmp_swap): New builtin expanders.
6655 (enum nvptx_builtins): New.
6656 (nvptx_builtin_decls): New.
6657 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
6658 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6659 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
6660 nvptx_lockless_update): New helpers.
6661 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
6662 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
6663 (nvptx_goacc_reduction): New.
6664 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
6665 TARGET_BUILTIN_DECL): Override.
6666 (TARGET_GOACC_REDUCTION): Override.
6668 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6669 Cesar Philippidis <cesar@codesourcery.com>
6671 * internal-fn.def (GOACC_REDUCTION): New.
6672 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
6673 * internal-fn.c (expand_GOACC_REDUCTION): New.
6674 * target.def (goacc.reduction): New OpenACC hook.
6675 * targhooks.h (default_goacc_reduction): Declare.
6676 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
6677 * doc/tm.texi: Rebuilt.
6678 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
6679 scan_sharing_clauses): Remove oacc reduction handling here.
6680 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
6681 (oacc_lower_reduction_var_helper): Delete.
6682 (lower_oacc_reductions): New.
6683 (lower_reduction_clauses): Don't handle OpenACC reductions here.
6684 (lower_oacc_head_tail): Call lower_oacc_reductions.
6685 (oacc_gimple_assign, oacc_init_reduction_array,
6686 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
6687 oacc_process_reduction_data): Delete.
6688 (lower_omp_target): Remove old OpenACC reduction handling. Insert
6689 dummy OpenACC gang reduction for reductions at outer level.
6690 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
6691 (default_goacc_reduction): New.
6692 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
6694 2015-11-04 Martin Liska <mliska@suse.cz>
6696 * cgraphunit.c (cgraph_node::expand_thunk): Call
6697 allocate_struct_function before init_function_start.
6698 (cgraph_node::expand): Use push_cfun and pop_cfun.
6699 * config/i386/i386.c (ix86_code_end): Call
6700 allocate_struct_function before init_function_start.
6701 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
6702 * function.c (init_function_start): Move preamble to all
6704 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
6705 (execute_one_pass): Handle newly added TODO_discard_function.
6706 (execute_pass_list_1): Terminate if cfun equals to NULL.
6707 (execute_pass_list): Do not push and pop cfun, expect that
6709 * tree-pass.h (TODO_discard_function): Define.
6711 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
6713 * cfganal.c (inverted_post_order_compute): Remove conditional
6714 compilation, use flag_checking.
6715 * config.in: Regenerate.
6716 * configure: Regenerate.
6717 * configure.ac: Remove ENABLE_CHECKING.
6718 * genconditions.c: Do not #undef ENABLE_CHECKING.
6719 * sese.h (bb_in_region): Comment out broken check.
6720 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
6721 conditional compilation, use flag_checking.
6723 2015-11-04 Tom de Vries <tom@codesourcery.com>
6725 PR tree-optimization/67742
6726 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
6728 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
6729 (create_variable_info_for_1): Add and handle handle_param parameter.
6730 Add restrict handling.
6731 (create_variable_info_for): Call create_variable_info_for_1 with extra
6733 (make_param_constraints): Drop restrict_name parameter. Ignore
6734 vi->only_restrict_pointers.
6735 (intra_create_variable_infos): Call create_variable_info_for_1 with
6736 extra arg. Remove restrict handling. Call make_param_constraints with
6739 2015-11-04 Tom de Vries <tom@codesourcery.com>
6741 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
6744 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6746 * config/arm/coff.h: Remove.
6748 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
6750 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
6751 check for aggregate types and beef up comment for mode check.
6753 2015-11-03 Richard Biener <rguenther@suse.de>
6755 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
6756 data references here.
6757 * tree-vect-loop.c: Include cgraph.h.
6758 (vect_analyze_loop_2): Collect data references here.
6759 * tree-vect-slp.c (find_bb_location): Inline ...
6760 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
6761 Factor in vect_slp_transform_bb.
6762 (vect_slp_transform_bb): Removed.
6763 (vect_slp_analyze_bb_1): Collect data references here.
6764 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
6766 * tree-vectorizer.h (vect_slp_bb): Declare.
6767 (vect_slp_analyze_bb): Remove.
6768 (vect_slp_transform_bb): Remove.
6769 (find_bb_location): Remove.
6770 (vect_analyze_data_refs): Remove stmt count reference parameter.
6772 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
6774 * multiple_target.c (create_dispatcher_calls): Add target check
6776 (create_target_clone): Change assembler name for versioned declarations.
6778 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
6779 Chung-Lin Tang <cltang@codesourcery.com>
6781 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
6782 * omp-low.c (check_omp_nesting_restrictions): Allow
6783 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
6786 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
6788 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
6789 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
6790 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
6792 (vmulxq_f32): Likewise.
6794 (vmulxq_f64): Rewrite to call fmulx builtin.
6795 (vmulxs_f32): Likewise.
6796 (vmulxd_f64): Likewise.
6797 (vmulx_lane_f32): Remove.
6798 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
6800 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
6802 * config/aarch64/aarch64.md (*movhf_aarch64): Use
6803 aarch64_reg_or_fp_zero for second operand.
6805 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
6807 * gimple-expr.c: Include hash-set.h and rtl.h.
6808 (mark_addressable_queue): New var.
6809 (mark_addressable): Factor actual marking into...
6810 (mark_addressable_1): ... this. Queue it up during expand.
6811 (mark_addressable_2): New.
6812 (flush_mark_addressable_queue): New.
6813 * gimple-expr.h (flush_mark_addressable_queue): Declare.
6814 * cfgexpand.c: Include gimple-expr.h.
6815 (pass_expand::execute): Flush mark_addressable queue.
6817 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
6819 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
6820 bb_no_side_effects_p tests...
6821 (tree_ssa_ifcombine_bb): ... here.
6823 PR tree-optimization/68083
6824 * tree-ssa-ifcombine.c: Include tree-ssa.h.
6825 (bb_no_side_effects_p): Test for undefined uses too.
6826 * tree-ssa.c (gimple_uses_undefined_value_p): New.
6827 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
6829 2015-11-02 Jeff Law <law@redhat.com>
6831 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
6832 cases where the loop latch edge is in the middle of an FSM path.
6834 2015-11-03 Tom de Vries <tom@codesourcery.com>
6836 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
6837 (make_param_constraints): ... this. Add and handle restrict_name
6838 parameter. Handle is_full_var case.
6839 (intra_create_variable_infos): Use make_param_constraints.
6841 2015-11-03 Tom de Vries <tom@codesourcery.com>
6843 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
6844 make_copy_constraint call with make_constraint_from call.
6846 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
6848 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
6851 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
6853 * builtins.h (fold_fma): Move to fold-const-call.h.
6854 * builtins.c: Include fold-const-call.h.
6855 (mathfn_built_in_2): New function, split out from...
6856 (mathfn_built_in_1): ...here.
6857 (do_real_to_int_conversion, fold_const_builtin_pow)
6858 (fold_const_builtin_logb, fold_const_builtin_significand)
6859 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
6860 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
6861 (fold_builtin_sincos): Use fold_const_call to handle constants.
6862 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
6863 checks for ERROR_MARK. Use fold_const_call to handle constant
6864 folds for math functions.
6865 (fold_fma): Move to fold-const-call.c.
6866 * fold-const.c: Include fold-const-call.h.
6867 * Makefile.in (OBJS): Add fold-const-call.o.
6868 (PLUGIN_HEADERS): Add fold-const-call.h.
6869 * realmpfr.h (real_from_mpfr): Allow the format to be specified
6871 * realmpfr.c (real_from_mpfr): Likewise.
6872 * fold-const-call.h, fold-const-call.c: New files.
6874 2015-11-02 Julian Brown <julian@codesourcery.com>
6876 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
6877 brackets and semicolon.
6879 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
6882 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
6884 PR tree-optimization/65963
6885 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6886 LSHIFT_EXPRs as equivalent MULT_EXPRs.
6888 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
6891 * fold-const.c: Include "md5.h".
6893 2015-11-01 Jeff Law <law@redhat.com>
6895 * vmsdbgout.c: Revert unused header file reduction patch.
6897 * config/mcore/mcore.c: Include regs.h.
6899 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
6901 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
6903 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
6905 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
6906 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
6907 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
6909 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
6911 * ggc-common.c: Restore needed header for checking=release.
6913 2015-10-31 Tom de Vries <tom@codesourcery.com>
6915 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
6917 2015-10-31 Tom de Vries <tom@codesourcery.com>
6919 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
6920 existing varinfo for arguments.
6922 2015-10-31 Tom de Vries <tom@codesourcery.com>
6924 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
6925 create_function_info_for. Dump constraints generated during
6926 create_function_info_for. Move intra_create_variable_infos call and
6927 function-return-values-escape bit to ...
6928 (create_function_info_for): ... here, and merge
6929 intra_create_variable_infos call with argument loop. Add and handle
6930 nonlocal_p parameter.
6932 2015-10-31 Tom de Vries <tom@codesourcery.com>
6934 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
6935 updating is alap, and seperated from preceding code. Make sure
6936 insert_vi_for_tree is seperated from surrounding code.
6938 2015-10-31 Tom de Vries <tom@codesourcery.com>
6940 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
6942 2015-10-30 Jeff Law <law@redhat.com>
6943 Nathan Sidwell <nathan@acm.org>
6945 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
6947 (MOVE_MAX): Set to 8.
6949 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
6951 * cgraph.c: Include context.h for offloading.
6952 * varpool.c: Include context.h and omp-low.h.
6954 2015-10-30 Anatoly Sokolov <aesok@post.ru>
6956 * rtl.h (contains_symbol_ref_p): Declare.
6957 (SYMBOL_REF_P): Define.
6958 * rtlanal.c (contains_symbol_ref_p: New function.
6959 * lra-constraints.c (contains_symbol_ref_p): Remove.
6960 * var-tracking.c (contains_symbol_ref): Remove.
6961 (track_expr_p): Use contains_symbol_ref_p instead of
6962 contains_symbol_ref.
6964 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
6966 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
6967 * fold-const.c (get_array_ctor_element_at_index): New.
6968 (fold): Remove binary-search through CONSTRUCTOR, call previous.
6970 * fold-const.h (get_array_ctor_element_at_index): New.
6972 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
6974 * Makefile.in (OBJS): Add multiple_target.o.
6975 * attrib.c (make_attribute): Moved from config/i386/i386.c
6976 * config/i386/i386.c (make_attribute): Deleted.
6977 * multiple_target.c (create_dispatcher_calls): New.
6978 (get_attr_len): Ditto.
6979 (get_attr_str): Ditto.
6980 (separate_attrs): Ditto.
6981 (is_valid_asm_symbol): Ditto.
6982 (create_new_asm_name): Ditto.
6983 (create_target_clone): Ditto.
6984 (expand_target_clones): Ditto.
6985 (ipa_target_clone): Ditto.
6986 (ipa_dispatcher_calls): Ditto.
6987 * passes.def (pass_target_clone): Two new ipa passes.
6988 * tree-pass.h (make_pass_target_clone): Ditto.
6989 * doc/extend.texi (target_clones): New attribute description.
6991 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
6993 PR rtl-optimization/68106
6994 * lra-remat.c (input_regno_present_p): Process hard regs
6995 explicitly present in machine description insns.
6996 (call_used_input_regno_present_p): Ditto.
6997 (calculate_gen_cands): Ditto.
7000 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
7002 * config/arm/neon-testgen.ml: Fix comment typo.
7004 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7006 * rtlanal.c (reg_set_p): Expand function comment.
7008 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
7010 * alias.c: Remove unused headers.
7012 * attribs.c: Likewise.
7013 * auto-inc-dec.c: Likewise.
7014 * auto-profile.c: Likewise.
7015 * bb-reorder.c: Likewise.
7016 * bitmap.c: Likewise.
7017 * bt-load.c: Likewise.
7018 * builtins.c: Likewise.
7019 * caller-save.c: Likewise.
7020 * calls.c: Likewise.
7023 * cfganal.c: Likewise.
7024 * cfgbuild.c: Likewise.
7025 * cfgcleanup.c: Likewise.
7026 * cfgexpand.c: Likewise.
7027 * cfghooks.c: Likewise.
7028 * cfgloop.c: Likewise.
7029 * cfgloopanal.c: Likewise.
7030 * cfgloopmanip.c: Likewise.
7031 * cfgrtl.c: Likewise.
7032 * cgraph.c: Likewise.
7033 * cgraphbuild.c: Likewise.
7034 * cgraphclones.c: Likewise.
7035 * cgraphunit.c: Likewise.
7036 * cilk-common.c: Likewise.
7037 * combine-stack-adj.c: Likewise.
7038 * combine.c: Likewise.
7039 * compare-elim.c: Likewise.
7040 * convert.c: Likewise.
7041 * coverage.c: Likewise.
7042 * cppbuiltin.c: Likewise.
7043 * cprop.c: Likewise.
7045 * cselib.c: Likewise.
7046 * data-streamer-in.c: Likewise.
7047 * data-streamer-out.c: Likewise.
7048 * data-streamer.c: Likewise.
7049 * dbxout.c: Likewise.
7052 * debug.c: Likewise.
7053 * df-core.c: Likewise.
7054 * df-problems.c: Likewise.
7055 * df-scan.c: Likewise.
7057 * dojump.c: Likewise.
7058 * dominance.c: Likewise.
7059 * domwalk.c: Likewise.
7060 * double-int.c: Likewise.
7062 * dumpfile.c: Likewise.
7063 * dwarf2asm.c: Likewise.
7064 * dwarf2cfi.c: Likewise.
7065 * dwarf2out.c: Likewise.
7066 * emit-rtl.c: Likewise.
7067 * except.c: Likewise.
7068 * explow.c: Likewise.
7069 * expmed.c: Likewise.
7071 * final.c: Likewise.
7072 * fixed-value.c: Likewise.
7073 * fold-const.c: Likewise.
7074 * function.c: Likewise.
7075 * fwprop.c: Likewise.
7077 * generic-match-head.c: Likewise.
7078 * ggc-common.c: Likewise.
7079 * gimple-builder.c: Likewise.
7080 * gimple-expr.c: Likewise.
7081 * gimple-fold.c: Likewise.
7082 * gimple-iterator.c: Likewise.
7083 * gimple-low.c: Likewise.
7084 * gimple-match-head.c: Likewise.
7085 * gimple-pretty-print.c: Likewise.
7086 * gimple-ssa-isolate-paths.c: Likewise.
7087 * gimple-ssa-strength-reduction.c: Likewise.
7088 * gimple-streamer-in.c: Likewise.
7089 * gimple-streamer-out.c: Likewise.
7090 * gimple-walk.c: Likewise.
7091 * gimple.c: Likewise.
7092 * gimplify-me.c: Likewise.
7093 * gimplify.c: Likewise.
7094 * godump.c: Likewise.
7095 * graph.c: Likewise.
7096 * graphds.c: Likewise.
7097 * haifa-sched.c: Likewise.
7098 * hw-doloop.c: Likewise.
7099 * ifcvt.c: Likewise.
7100 * init-regs.c: Likewise.
7101 * internal-fn.c: Likewise.
7102 * ipa-chkp.c: Likewise.
7103 * ipa-comdats.c: Likewise.
7104 * ipa-cp.c: Likewise.
7105 * ipa-devirt.c: Likewise.
7106 * ipa-icf-gimple.c: Likewise.
7107 * ipa-icf.c: Likewise.
7108 * ipa-inline-analysis.c: Likewise.
7109 * ipa-inline-transform.c: Likewise.
7110 * ipa-inline.c: Likewise.
7111 * ipa-polymorphic-call.c: Likewise.
7112 * ipa-profile.c: Likewise.
7113 * ipa-prop.c: Likewise.
7114 * ipa-pure-const.c: Likewise.
7115 * ipa-ref.c: Likewise.
7116 * ipa-reference.c: Likewise.
7117 * ipa-split.c: Likewise.
7118 * ipa-utils.c: Likewise.
7119 * ipa-visibility.c: Likewise.
7121 * ira-build.c: Likewise.
7122 * ira-color.c: Likewise.
7123 * ira-conflicts.c: Likewise.
7124 * ira-costs.c: Likewise.
7125 * ira-emit.c: Likewise.
7126 * ira-lives.c: Likewise.
7129 * langhooks.c: Likewise.
7131 * lists.c: Likewise.
7132 * loop-doloop.c: Likewise.
7133 * loop-init.c: Likewise.
7134 * loop-invariant.c: Likewise.
7135 * loop-iv.c: Likewise.
7136 * loop-unroll.c: Likewise.
7137 * lower-subreg.c: Likewise.
7138 * lra-assigns.c: Likewise.
7139 * lra-coalesce.c: Likewise.
7140 * lra-constraints.c: Likewise.
7141 * lra-eliminations.c: Likewise.
7142 * lra-lives.c: Likewise.
7143 * lra-remat.c: Likewise.
7144 * lra-spills.c: Likewise.
7146 * lto-cgraph.c: Likewise.
7147 * lto-compress.c: Likewise.
7148 * lto-opts.c: Likewise.
7149 * lto-section-in.c: Likewise.
7150 * lto-section-out.c: Likewise.
7151 * lto-streamer-in.c: Likewise.
7152 * lto-streamer-out.c: Likewise.
7153 * lto-streamer.c: Likewise.
7155 * mode-switching.c: Likewise.
7156 * modulo-sched.c: Likewise.
7157 * optabs.c: Likewise.
7158 * opts-global.c: Likewise.
7159 * passes.c: Likewise.
7160 * plugin.c: Likewise.
7161 * postreload-gcse.c: Likewise.
7162 * postreload.c: Likewise.
7163 * predict.c: Likewise.
7164 * print-tree.c: Likewise.
7165 * profile.c: Likewise.
7167 * realmpfr.c: Likewise.
7168 * recog.c: Likewise.
7170 * reg-stack.c: Likewise.
7171 * regcprop.c: Likewise.
7172 * reginfo.c: Likewise.
7173 * regrename.c: Likewise.
7174 * regstat.c: Likewise.
7175 * reload.c: Likewise.
7176 * reload1.c: Likewise.
7177 * reorg.c: Likewise.
7178 * resource.c: Likewise.
7179 * rtl-chkp.c: Likewise.
7180 * rtl-error.c: Likewise.
7181 * rtlanal.c: Likewise.
7182 * rtlhooks.c: Likewise.
7183 * sanopt.c: Likewise.
7184 * sched-deps.c: Likewise.
7185 * sched-ebb.c: Likewise.
7186 * sched-rgn.c: Likewise.
7187 * sdbout.c: Likewise.
7188 * sel-sched-dump.c: Likewise.
7189 * sel-sched-ir.c: Likewise.
7190 * sel-sched.c: Likewise.
7192 * shrink-wrap.c: Likewise.
7193 * simplify-rtx.c: Likewise.
7194 * stack-ptr-mod.c: Likewise.
7195 * statistics.c: Likewise.
7197 * stor-layout.c: Likewise.
7198 * store-motion.c: Likewise.
7199 * stringpool.c: Likewise.
7200 * symtab.c: Likewise.
7201 * target-globals.c: Likewise.
7202 * targhooks.c: Likewise.
7203 * toplev.c: Likewise.
7204 * tracer.c: Likewise.
7205 * trans-mem.c: Likewise.
7206 * tree-affine.c: Likewise.
7207 * tree-call-cdce.c: Likewise.
7208 * tree-cfg.c: Likewise.
7209 * tree-cfgcleanup.c: Likewise.
7210 * tree-chkp-opt.c: Likewise.
7211 * tree-chkp.c: Likewise.
7212 * tree-chrec.c: Likewise.
7213 * tree-complex.c: Likewise.
7214 * tree-data-ref.c: Likewise.
7215 * tree-dfa.c: Likewise.
7216 * tree-diagnostic.c: Likewise.
7217 * tree-dump.c: Likewise.
7218 * tree-eh.c: Likewise.
7219 * tree-emutls.c: Likewise.
7220 * tree-if-conv.c: Likewise.
7221 * tree-inline.c: Likewise.
7222 * tree-into-ssa.c: Likewise.
7223 * tree-iterator.c: Likewise.
7224 * tree-loop-distribution.c: Likewise.
7225 * tree-nested.c: Likewise.
7226 * tree-nrv.c: Likewise.
7227 * tree-object-size.c: Likewise.
7228 * tree-outof-ssa.c: Likewise.
7229 * tree-parloops.c: Likewise.
7230 * tree-phinodes.c: Likewise.
7231 * tree-predcom.c: Likewise.
7232 * tree-pretty-print.c: Likewise.
7233 * tree-profile.c: Likewise.
7234 * tree-scalar-evolution.c: Likewise.
7235 * tree-sra.c: Likewise.
7236 * tree-ssa-address.c: Likewise.
7237 * tree-ssa-alias.c: Likewise.
7238 * tree-ssa-ccp.c: Likewise.
7239 * tree-ssa-coalesce.c: Likewise.
7240 * tree-ssa-copy.c: Likewise.
7241 * tree-ssa-dce.c: Likewise.
7242 * tree-ssa-dse.c: Likewise.
7243 * tree-ssa-forwprop.c: Likewise.
7244 * tree-ssa-ifcombine.c: Likewise.
7245 * tree-ssa-live.c: Likewise.
7246 * tree-ssa-loop-ch.c: Likewise.
7247 * tree-ssa-loop-im.c: Likewise.
7248 * tree-ssa-loop-ivcanon.c: Likewise.
7249 * tree-ssa-loop-ivopts.c: Likewise.
7250 * tree-ssa-loop-manip.c: Likewise.
7251 * tree-ssa-loop-niter.c: Likewise.
7252 * tree-ssa-loop-prefetch.c: Likewise.
7253 * tree-ssa-loop-unswitch.c: Likewise.
7254 * tree-ssa-loop.c: Likewise.
7255 * tree-ssa-math-opts.c: Likewise.
7256 * tree-ssa-operands.c: Likewise.
7257 * tree-ssa-phiopt.c: Likewise.
7258 * tree-ssa-phiprop.c: Likewise.
7259 * tree-ssa-pre.c: Likewise.
7260 * tree-ssa-propagate.c: Likewise.
7261 * tree-ssa-reassoc.c: Likewise.
7262 * tree-ssa-scopedtables.c: Likewise.
7263 * tree-ssa-sink.c: Likewise.
7264 * tree-ssa-strlen.c: Likewise.
7265 * tree-ssa-structalias.c: Likewise.
7266 * tree-ssa-tail-merge.c: Likewise.
7267 * tree-ssa-ter.c: Likewise.
7268 * tree-ssa-threadupdate.c: Likewise.
7269 * tree-ssa-uncprop.c: Likewise.
7270 * tree-ssa-uninit.c: Likewise.
7271 * tree-ssa.c: Likewise.
7272 * tree-ssanames.c: Likewise.
7273 * tree-stdarg.c: Likewise.
7274 * tree-streamer-in.c: Likewise.
7275 * tree-streamer-out.c: Likewise.
7276 * tree-streamer.c: Likewise.
7277 * tree-switch-conversion.c: Likewise.
7278 * tree-tailcall.c: Likewise.
7279 * tree-vect-data-refs.c: Likewise.
7280 * tree-vect-generic.c: Likewise.
7281 * tree-vect-loop-manip.c: Likewise.
7282 * tree-vect-loop.c: Likewise.
7283 * tree-vect-patterns.c: Likewise.
7284 * tree-vect-slp.c: Likewise.
7285 * tree-vect-stmts.c: Likewise.
7286 * tree-vectorizer.c: Likewise.
7287 * tree-vrp.c: Likewise.
7290 * ubsan.c: Likewise.
7291 * value-prof.c: Likewise.
7292 * var-tracking.c: Likewise.
7293 * varasm.c: Likewise.
7294 * varpool.c: Likewise.
7295 * vmsdbgout.c: Likewise.
7296 * vtable-verify.c: Likewise.
7298 * wide-int-print.cc: Likewise.
7299 * wide-int.cc: Likewise.
7300 * xcoffout.c: Likewise.
7302 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
7304 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
7305 between pass numbering and execution order.
7307 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7309 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
7310 check for dependencies.
7312 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7314 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
7317 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7319 * real.h (format_helper): New.
7320 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
7321 (real_from_target, real_nan, real_2expN, real_value_truncate)
7322 (significand_size, real_from_string2, exact_real_inverse)
7323 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
7324 (real_round, real_isinteger, real_from_integer): Replace
7325 machine_mode arguments with format_helper arguments.
7326 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
7327 (real_from_integer, real_nan, real_2expN, real_convert)
7328 (real_value_truncate, exact_real_truncate, real_to_target)
7329 (real_from_target, significand_size, real_powi, real_trunc)
7330 (real_floor, real_ceil, real_round, real_isinteger): Replace
7331 machine_mode arguments with format_helper arguments.
7332 (real_to_target_fmt, real_from_target_fmt): Delete.
7333 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
7334 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
7335 argument with real_format.
7336 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
7338 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7340 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
7341 (fixed_to_decimal, fixed_convert_from_real)
7342 (real_convert_from_fixed): Fix mode arguments to real_2expN.
7344 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7346 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
7347 SCALAR_FLOAT_MODE_P.
7349 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
7351 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
7352 (completely_scalarize): Comment zero-length arrays.
7353 (get_access_replacement): Correct comment re. precondition.
7355 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7357 * config/i386/i386.c (get_builtin_code_for_version): Set priority
7358 for PROCESSOR_ZNVER1.
7359 (enum processor_model): Add M_AMDFAM17H_znver1.
7360 (struct arch_names_table): Likewise.
7361 * doc/extend.texi: ADD znver1.
7363 2015-10-30 Richard Biener <rguenther@suse.de>
7365 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
7366 fold () on single RHSs. Allow CONSTRUCTORS with trailing
7367 zeros to be folded to VECTOR_CSTs.
7368 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
7369 * fold-const.c (fold): Use build_vector_from_ctor.
7371 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
7373 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
7374 "mov %0.h[0], %1.h[0] to "neon_move".
7375 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
7376 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
7378 (*cmovsi_insn_uxtw): Likewise.
7380 2015-10-30 Tom de Vries <tom@codesourcery.com>
7382 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
7383 unsigned, and initialize, and use initial value instead of hardcoded
7384 constant. Add generic constraints dumping section. Don't dump global
7385 initializers constraints dumping section if empty. Don't update
7386 variable from if unused.
7388 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
7390 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
7391 flag_checking and/or CHECKING_P to eliminate conditional compilation
7393 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
7394 * config/bfin/bfin.c (hwloop_optimize): Likewise.
7395 * config/i386/i386.c (ix86_print_operand_address): Likewise.
7396 (output_387_binary_op): Likewise.
7397 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
7398 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
7399 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
7401 * config/rs6000/rs6000.h: Likewise.
7402 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7404 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
7406 * config/sh/sh.opt (mfdpic): Add missing period.
7408 2015-08-29 Anatoly Sokolov <aesok@post.ru>
7410 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7411 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
7412 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7413 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
7414 mcore_base_register_rtx_p, mcore_legitimate_index_p,
7415 mcore_legitimate_address_p): New functions.
7416 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7418 2015-10-29 Jeff Law <law@redhat.com>
7420 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
7422 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
7423 * tree-ssa-threadedge.c
7424 (record_temporary_equivalences_from_stmts_at_dest): Remove
7425 backedge_seen argument and associated code which invalidated
7426 equivalences based on the value of that argument.
7427 (thread_through_normal_block): Corresponding changes.
7429 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
7431 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
7432 function earlier in the file.
7433 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
7434 df_regs_ever_live_p.
7436 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
7438 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
7441 2015-10-29 Richard Henderson <rth@redhat.com>
7445 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
7446 sse check to the exact conditions of PR 67609.
7448 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7450 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
7451 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
7452 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
7453 of the traditional names that TFmode uses for handling IEEE
7454 extended double. If -mfloat128, add KFmode functions for all of
7455 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
7456 make TFmode use the same emulation functions as KFmode.
7457 (init_float128_ibm): Likewise.
7458 (init_float128_ieee): Likewise.
7459 (rs6000_generate_compare): For IEEE 128-bit floating point
7460 comparisons, call the unordered comparison function instead of the
7461 ordered comparison function.
7462 (rs6000_expand_float128_convert): Deal with operands that are
7463 memory operands. Restructure the code to use a switch statement on
7464 the mode. Add support for TFmode defaulting to either IBM extended
7465 double or IEEE 128-bit floating point. If the underlying types are
7466 the same, use a move instead of a conversion function.
7467 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
7468 use for IEEE 128-bit floating point constants with -mfloat128.
7469 (rs6000_c_mode_for_suffix): Likewise.
7470 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
7471 128-bit floating point with IBM extended double floating point.
7472 (rs6000_invalid_binary_op): Likewise.
7473 (rs6000_gen_le_vsx_permute): On little endian systems generate a
7474 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
7475 types that can go in vector registers.
7476 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
7477 point types that can go in vector registers on little endian
7479 (mark_swaps_for_removal): Likewise.
7480 (rs6000_analyze_swaps): Likewise.
7481 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
7483 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
7484 rework IEEE 128-bit floating point insns to deal with TFmode being
7485 either IBM extended double or IEEE 128-bit floating point.
7487 (IBM128): Update iterator to add condition that the mode is IBM
7489 (IEEE128): New iterator for IEEE 128-bit floating point.
7490 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
7491 (FLOAT128): Likewise.
7492 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
7494 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
7495 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
7496 instead of hard coding TFmode or KFmode.
7497 (negtf2_internal): Likewise.
7498 (neg<mode>2_internal): Likewise.
7499 (abs<mode>2): Likewise.
7500 (abstf2_internal): Likewise.
7501 (abs<mode>2_internal): Likewise.
7502 (ieee_128bit_neg<mode>2): Likewise.
7503 (ieee_128bit_neg<mode>2_internal): Likewise.
7504 (ieee_128bit_abs<mode>2): Likewise.
7505 (ieee_128bit_abs<mode>2_internal): Likewise.
7506 (ieee_128bit_nabs<mode>2): Likewise.
7507 (ieee_128bit_nabs<mode>2_internal): Likewise.
7508 (extendiftf2): Add explicit conversions between 128-bit floating
7509 point types. Drop the old conversions that had become unwieldy.
7510 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7511 (extendifkf2): Likewise.
7512 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7513 (extendtfkf2): Likewise.
7514 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7515 (trunciftf2): Likewise.
7516 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7517 (truncifkf2): Likewise.
7518 (float<SDI:mode><IFKF:mode>2): Likewise.
7519 (trunckftf2): Likewise.
7520 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7521 (trunctfif2): Likewise.
7522 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
7523 (extenddftf2): Rework 128-bit floating point conversions to
7524 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
7525 KFmode expanders into one function.
7526 (extenddf<mode>2): Likewise.
7527 (extenddftf2_fprs): Likewise.
7528 (extenddf<mode>2_fprs): Likewise.
7529 (extenddftf2_vsx): Likewise.
7530 (extenddf<mode>2_vsx): Likewise.
7531 (extendsftf2): Likewise.
7532 (extendsf<mode>2): Likewise.
7533 (trunctfdf2): Likewise.
7534 (trunc<mode>df2): Likewise.
7535 (trunctfdf2_internal1): Likewise.
7536 (trunc<mode>df2_internal1): Likewise.
7537 (trunctfdf2_internal2): Likewise.
7538 (trunc<mode>df2_internal2): Likewise.
7539 (trunctfsf2): Likewise.
7540 (trunc<mode>sf2): Likewise.
7541 (trunctfsf2_fprs): Likewise.
7542 (trunc<mode>sf2_fprs): Likewise.
7543 (floatsit2f): Likewise.
7544 (floatsi<mode>2): Likewise.
7545 (fix_trunc_helper): Likewise.
7546 (fix_trunc_helper<mode>): Likewise.
7547 (fix_trunctfsi2): Likewise.
7548 (fix_trunc<mode>si2): Likewise.
7549 (fix_trunctfsi2_fprs): Likewise.
7550 (fix_trunc<mode>si2_fprs): Likewise.
7551 (fix_trunctfsi2_internal): Likewise.
7552 (fix_trunc<mode>si2_internal): Likewise.
7553 (fix_trunctfdi2): Likewise.
7554 (fix_trunc<mode>di2): Likewise.
7555 (fixuns_trunctf<mode>2): Likewise.
7556 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7557 (floatditf2): Likewise.
7558 (floatdi<mode>2): Likewise.
7559 (floatuns<mode>tf2): Likewise.
7560 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
7561 (cmptf_internal1): Use a mode iterator to add support for both
7562 types (IFmode, TFmode) that support IBM extended double.
7563 (cmp<mode>_internal1): Likewise.
7564 (cmptf_internal2): Likewise.
7565 (cmp<mode>_internal2): Likewise.
7567 * doc/extend.texi (Floating Types): Document __ibm128 and
7568 __float128 on PowerPC.
7570 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7571 -mfloat128 and -mno-float128.
7573 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7575 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
7576 floating point modes that can go in vector registers.
7577 (MODES_TIEABLE_P): Move tests for vector modes before tests for
7578 scalar floating point, so that IEEE 128-bit floating point that
7579 can go in vector registers bind with vectors and not FP.
7580 (struct rs6000_args): Add libcall field.
7582 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
7583 and -mfloat128-software switches. Replace them with a binary
7585 (-mfloat128): Likewise.
7587 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
7588 128-bit floating point types in GPRs, even if the appropriate
7589 option enabling the type was not used.
7590 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
7592 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
7593 pre-decrement on IEEE 128-bit floating point values.
7594 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
7595 is IEEE 128-bit floating point.
7596 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
7597 128-bit floating point types that can go in vector registers.
7598 (rs6000_option_override_internal): Change -mfloat128-none and
7599 -mfloat128-software to -mfloat128, and move code to be near other
7600 VSX option handling.
7601 (rs6000_option_override_internal): Disable -mfloat128 if we don't
7602 have the Altivec ABI.
7603 (rs6000_init_builtins): Don't make TFmode use either IFmode or
7604 KFmode floating point nodes. Instead, have three separate nodes.
7605 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
7606 eventually moving the long double default to IEEE 128-bit floating
7608 (rs6000_opt_masks): Add -mfloat128.
7609 (struct rs6000_opt_var): Fix typo in comment.
7610 (init_cumulative_args): Initialize libcall field in
7612 (rs6000_function_arg): Treat library functions as if they had
7613 prototypes to prevent IEEE 128-bit support functions from passing
7614 arguments in both GPRs and vector registers.
7615 (rs6000_arg_partial_bytes): Likewise.
7617 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
7618 an option that can be turned on via -mcpu=<xxx>.
7620 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
7623 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7624 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
7625 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
7626 double is IBM extended double.
7628 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
7631 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
7633 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
7634 * genconditions.c: Define CHECKING_P in the generated code.
7635 * genextract.c: Use flag_checking in insn_extract.
7636 * gengtype.c (main): Remove conditional compilation.
7637 * gengtype.h: Likewise.
7639 2015-10-29 Jeff Law <law@redhat.com>
7641 PR tree-optimization/67892
7642 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
7644 (thread_through_normal_block): If we have seen a backedge, then
7645 do nothing. No longer call find_jump_threads_backwards here.
7646 (thread_across_edge): Use find_jump_threads_backwards to find
7647 jump threads if the old style threader was not successful.
7648 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
7649 gsi_last_nondebug_bb. Return NULL if the block does not end
7650 with a control statement.
7651 (find_jump_threads_backwards): Setup code moved here from
7652 tree-ssa-threadedge.c::thread_through_normal_block. Accept
7653 single edge argument instead of name & block.
7654 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
7657 2015-10-29 Tom de Vries <tom@codesourcery.com>
7659 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
7662 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
7664 * omp-low.c (lower_omp_target): Remove unreachable code & merge
7667 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
7669 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
7671 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
7673 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7674 guard_bb0 and use guard_bb throughout.
7676 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
7678 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7681 2015-10-29 Richard Biener <rguenther@suse.de>
7684 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
7687 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
7689 * alias.c: Reorder #include statements and remove duplicates.
7691 * attribs.c: Likewise.
7692 * auto-inc-dec.c: Likewise.
7693 * auto-profile.c: Likewise.
7694 * bb-reorder.c: Likewise.
7695 * bt-load.c: Likewise.
7696 * builtins.c: Likewise.
7697 * caller-save.c: Likewise.
7698 * calls.c: Likewise.
7701 * cfganal.c: Likewise.
7702 * cfgbuild.c: Likewise.
7703 * cfgcleanup.c: Likewise.
7704 * cfgexpand.c: Likewise.
7705 * cfghooks.c: Likewise.
7706 * cfgloop.c: Likewise.
7707 * cfgloopanal.c: Likewise.
7708 * cfgloopmanip.c: Likewise.
7709 * cfgrtl.c: Likewise.
7710 * cgraph.c: Likewise.
7711 * cgraphbuild.c: Likewise.
7712 * cgraphclones.c: Likewise.
7713 * cgraphunit.c: Likewise.
7714 * cilk-common.c: Likewise.
7715 * combine-stack-adj.c: Likewise.
7716 * combine.c: Likewise.
7717 * compare-elim.c: Likewise.
7718 * convert.c: Likewise.
7719 * coverage.c: Likewise.
7720 * cppbuiltin.c: Likewise.
7721 * cprop.c: Likewise.
7723 * cselib.c: Likewise.
7724 * data-streamer-in.c: Likewise.
7725 * data-streamer-out.c: Likewise.
7726 * data-streamer.c: Likewise.
7727 * dbxout.c: Likewise.
7730 * debug.c: Likewise.
7731 * df-core.c: Likewise.
7732 * df-problems.c: Likewise.
7733 * df-scan.c: Likewise.
7735 * dojump.c: Likewise.
7736 * dominance.c: Likewise.
7737 * double-int.c: Likewise.
7739 * dumpfile.c: Likewise.
7740 * dwarf2asm.c: Likewise.
7741 * dwarf2cfi.c: Likewise.
7742 * dwarf2out.c: Likewise.
7743 * emit-rtl.c: Likewise.
7744 * except.c: Likewise.
7745 * explow.c: Likewise.
7746 * expmed.c: Likewise.
7748 * final.c: Likewise.
7749 * fixed-value.c: Likewise.
7750 * fold-const.c: Likewise.
7751 * function.c: Likewise.
7752 * fwprop.c: Likewise.
7754 * generic-match-head.c: Likewise.
7755 * ggc-common.c: Likewise.
7756 * gimple-builder.c: Likewise.
7757 * gimple-expr.c: Likewise.
7758 * gimple-fold.c: Likewise.
7759 * gimple-iterator.c: Likewise.
7760 * gimple-low.c: Likewise.
7761 * gimple-match-head.c: Likewise.
7762 * gimple-pretty-print.c: Likewise.
7763 * gimple-ssa-isolate-paths.c: Likewise.
7764 * gimple-ssa-strength-reduction.c: Likewise.
7765 * gimple-streamer-in.c: Likewise.
7766 * gimple-streamer-out.c: Likewise.
7767 * gimple-walk.c: Likewise.
7768 * gimple.c: Likewise.
7769 * gimplify-me.c: Likewise.
7770 * gimplify.c: Likewise.
7771 * godump.c: Likewise.
7772 * graph.c: Likewise.
7773 * graphite-poly.c: Likewise.
7774 * haifa-sched.c: Likewise.
7775 * hw-doloop.c: Likewise.
7776 * ifcvt.c: Likewise.
7777 * incpath.c: Likewise.
7778 * init-regs.c: Likewise.
7779 * internal-fn.c: Likewise.
7780 * ipa-chkp.c: Likewise.
7781 * ipa-comdats.c: Likewise.
7782 * ipa-cp.c: Likewise.
7783 * ipa-devirt.c: Likewise.
7784 * ipa-icf-gimple.c: Likewise.
7785 * ipa-icf.c: Likewise.
7786 * ipa-inline-analysis.c: Likewise.
7787 * ipa-inline-transform.c: Likewise.
7788 * ipa-inline.c: Likewise.
7789 * ipa-polymorphic-call.c: Likewise.
7790 * ipa-profile.c: Likewise.
7791 * ipa-prop.c: Likewise.
7792 * ipa-pure-const.c: Likewise.
7793 * ipa-ref.c: Likewise.
7794 * ipa-reference.c: Likewise.
7795 * ipa-split.c: Likewise.
7796 * ipa-utils.c: Likewise.
7797 * ipa-visibility.c: Likewise.
7799 * ira-build.c: Likewise.
7800 * ira-color.c: Likewise.
7801 * ira-conflicts.c: Likewise.
7802 * ira-costs.c: Likewise.
7803 * ira-emit.c: Likewise.
7804 * ira-lives.c: Likewise.
7807 * langhooks.c: Likewise.
7809 * lists.c: Likewise.
7810 * loop-doloop.c: Likewise.
7811 * loop-init.c: Likewise.
7812 * loop-invariant.c: Likewise.
7813 * loop-iv.c: Likewise.
7814 * loop-unroll.c: Likewise.
7815 * lower-subreg.c: Likewise.
7816 * lra-assigns.c: Likewise.
7817 * lra-coalesce.c: Likewise.
7818 * lra-constraints.c: Likewise.
7819 * lra-eliminations.c: Likewise.
7820 * lra-lives.c: Likewise.
7821 * lra-remat.c: Likewise.
7822 * lra-spills.c: Likewise.
7824 * lto-cgraph.c: Likewise.
7825 * lto-compress.c: Likewise.
7826 * lto-opts.c: Likewise.
7827 * lto-section-in.c: Likewise.
7828 * lto-section-out.c: Likewise.
7829 * lto-streamer-in.c: Likewise.
7830 * lto-streamer-out.c: Likewise.
7831 * lto-streamer.c: Likewise.
7832 * mode-switching.c: Likewise.
7833 * modulo-sched.c: Likewise.
7834 * omp-low.c: Likewise.
7835 * optabs.c: Likewise.
7836 * opts-global.c: Likewise.
7837 * passes.c: Likewise.
7838 * plugin.c: Likewise.
7839 * postreload-gcse.c: Likewise.
7840 * postreload.c: Likewise.
7841 * predict.c: Likewise.
7842 * print-tree.c: Likewise.
7843 * profile.c: Likewise.
7845 * realmpfr.c: Likewise.
7846 * recog.c: Likewise.
7848 * reg-stack.c: Likewise.
7849 * regcprop.c: Likewise.
7850 * reginfo.c: Likewise.
7851 * regrename.c: Likewise.
7852 * regstat.c: Likewise.
7853 * reload.c: Likewise.
7854 * reload1.c: Likewise.
7855 * reorg.c: Likewise.
7856 * resource.c: Likewise.
7857 * rtl-chkp.c: Likewise.
7858 * rtl-error.c: Likewise.
7859 * rtlanal.c: Likewise.
7860 * rtlhooks.c: Likewise.
7861 * sanopt.c: Likewise.
7862 * sched-deps.c: Likewise.
7863 * sched-ebb.c: Likewise.
7864 * sched-rgn.c: Likewise.
7866 * shrink-wrap.c: Likewise.
7867 * simplify-rtx.c: Likewise.
7868 * stack-ptr-mod.c: Likewise.
7869 * statistics.c: Likewise.
7871 * stor-layout.c: Likewise.
7872 * store-motion.c: Likewise.
7873 * stringpool.c: Likewise.
7874 * symtab.c: Likewise.
7875 * target-globals.c: Likewise.
7876 * targhooks.c: Likewise.
7877 * toplev.c: Likewise.
7878 * tracer.c: Likewise.
7879 * trans-mem.c: Likewise.
7880 * tree-affine.c: Likewise.
7881 * tree-call-cdce.c: Likewise.
7882 * tree-cfg.c: Likewise.
7883 * tree-cfgcleanup.c: Likewise.
7884 * tree-chkp-opt.c: Likewise.
7885 * tree-chkp.c: Likewise.
7886 * tree-chrec.c: Likewise.
7887 * tree-complex.c: Likewise.
7888 * tree-data-ref.c: Likewise.
7889 * tree-dfa.c: Likewise.
7890 * tree-diagnostic.c: Likewise.
7891 * tree-dump.c: Likewise.
7892 * tree-eh.c: Likewise.
7893 * tree-emutls.c: Likewise.
7894 * tree-if-conv.c: Likewise.
7895 * tree-inline.c: Likewise.
7896 * tree-into-ssa.c: Likewise.
7897 * tree-iterator.c: Likewise.
7898 * tree-loop-distribution.c: Likewise.
7899 * tree-nested.c: Likewise.
7900 * tree-nrv.c: Likewise.
7901 * tree-object-size.c: Likewise.
7902 * tree-outof-ssa.c: Likewise.
7903 * tree-parloops.c: Likewise.
7904 * tree-phinodes.c: Likewise.
7905 * tree-predcom.c: Likewise.
7906 * tree-pretty-print.c: Likewise.
7907 * tree-profile.c: Likewise.
7908 * tree-scalar-evolution.c: Likewise.
7909 * tree-sra.c: Likewise.
7910 * tree-ssa-address.c: Likewise.
7911 * tree-ssa-alias.c: Likewise.
7912 * tree-ssa-ccp.c: Likewise.
7913 * tree-ssa-coalesce.c: Likewise.
7914 * tree-ssa-copy.c: Likewise.
7915 * tree-ssa-dce.c: Likewise.
7916 * tree-ssa-dom.c: Likewise.
7917 * tree-ssa-dse.c: Likewise.
7918 * tree-ssa-forwprop.c: Likewise.
7919 * tree-ssa-ifcombine.c: Likewise.
7920 * tree-ssa-live.c: Likewise.
7921 * tree-ssa-loop-ch.c: Likewise.
7922 * tree-ssa-loop-im.c: Likewise.
7923 * tree-ssa-loop-ivcanon.c: Likewise.
7924 * tree-ssa-loop-ivopts.c: Likewise.
7925 * tree-ssa-loop-manip.c: Likewise.
7926 * tree-ssa-loop-niter.c: Likewise.
7927 * tree-ssa-loop-prefetch.c: Likewise.
7928 * tree-ssa-loop-unswitch.c: Likewise.
7929 * tree-ssa-loop.c: Likewise.
7930 * tree-ssa-math-opts.c: Likewise.
7931 * tree-ssa-operands.c: Likewise.
7932 * tree-ssa-phiopt.c: Likewise.
7933 * tree-ssa-phiprop.c: Likewise.
7934 * tree-ssa-pre.c: Likewise.
7935 * tree-ssa-propagate.c: Likewise.
7936 * tree-ssa-reassoc.c: Likewise.
7937 * tree-ssa-sccvn.c: Likewise.
7938 * tree-ssa-scopedtables.c: Likewise.
7939 * tree-ssa-sink.c: Likewise.
7940 * tree-ssa-strlen.c: Likewise.
7941 * tree-ssa-structalias.c: Likewise.
7942 * tree-ssa-tail-merge.c: Likewise.
7943 * tree-ssa-ter.c: Likewise.
7944 * tree-ssa-threadedge.c: Likewise.
7945 * tree-ssa-threadupdate.c: Likewise.
7946 * tree-ssa-uncprop.c: Likewise.
7947 * tree-ssa-uninit.c: Likewise.
7948 * tree-ssa.c: Likewise.
7949 * tree-ssanames.c: Likewise.
7950 * tree-stdarg.c: Likewise.
7951 * tree-streamer-in.c: Likewise.
7952 * tree-streamer-out.c: Likewise.
7953 * tree-streamer.c: Likewise.
7954 * tree-switch-conversion.c: Likewise.
7955 * tree-tailcall.c: Likewise.
7956 * tree-vect-data-refs.c: Likewise.
7957 * tree-vect-generic.c: Likewise.
7958 * tree-vect-loop-manip.c: Likewise.
7959 * tree-vect-loop.c: Likewise.
7960 * tree-vect-patterns.c: Likewise.
7961 * tree-vect-slp.c: Likewise.
7962 * tree-vect-stmts.c: Likewise.
7963 * tree-vectorizer.c: Likewise.
7964 * tree-vrp.c: Likewise.
7967 * ubsan.c: Likewise.
7968 * value-prof.c: Likewise.
7969 * var-tracking.c: Likewise.
7970 * varasm.c: Likewise.
7971 * varpool.c: Likewise.
7972 * vtable-verify.c: Likewise.
7974 * wide-int-print.cc: Likewise.
7975 * wide-int.cc: Likewise.
7976 * xcoffout.c: Likewise.
7978 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
7980 * Makefile.in (NO_PIE_CFLAGS): New.
7981 (NO_PIE_FLAG): Likewise.
7982 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7983 (NO_PIE_FLAG_FOR_BUILD): Likewise.
7984 (BUILD_NO_PIE_CFLAGS): Likewise.
7985 (BUILD_NO_PIE_FLAG): Likewise.
7986 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
7987 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
7988 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
7989 $(BUILD_NO_PIE_CFLAGS).
7990 (BUILD_CXXFLAGS): Likewise.
7991 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
7992 $(BUILD_NO_PIE_FLAG).
7993 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
7994 (BUILD_NO_PIE_FLAG): Likewise.
7995 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7996 (NO_PIE_FLAG_FOR_BUILD): Likewise.
7997 * configure: Regenerated.
7999 2015-10-29 Richard Biener <rguenther@suse.de>
8002 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
8003 unsigned conditonal negation to ABS_EXPR.
8005 2015-10-29 Richard Biener <rguenther@suse.de>
8007 * gimple-match-head.c (gimple_simplify): Remove premature checking
8008 of builtin_decl_implicit of function calls we simplify.
8010 2015-10-29 Bin Cheng <bin.cheng@arm.com>
8012 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
8013 (get_computation_cost_at): Ditto.
8014 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
8017 2015-10-28 Tom de Vries <tom@codesourcery.com>
8019 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
8022 2015-10-28 Jason Merrill <jason@redhat.com>
8024 * Makefile.in (TAGS): Include libcpp and libiberty.
8026 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
8028 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
8029 (extract_omp_for_data): Remove OpenACC special handling of
8032 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
8033 (struct parallel): Update comment.
8034 (nvptx_reorg): Likewise.
8035 (nvptx_neuter): Cleanup whitespace.
8037 2015-10-28 Richard Henderson <rth@redhat.com>
8039 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
8041 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8044 * config/avr/predicates.md (low_io_address_operand): Don't
8045 consider MODE when computing upper bound.
8046 (io_address_operand): Likewise.
8048 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
8050 * fold-const.c (operand_equal_p): Do not verify that types are
8051 compatible for MEM_REFs.
8053 2015-10-28 Richard Biener <rguenther@suse.de>
8055 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
8056 in simplifying VEC_COND_EXPR conditions.
8058 2015-10-28 Tom de Vries <tom@codesourcery.com>
8060 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
8061 into vi_next of a full_var.
8063 2015-10-28 Tom de Vries <tom@codesourcery.com>
8065 * tree-ssa-structalias.c (new_var_info, make_heapvar)
8066 (make_constraint_from_restrict, make_constraint_from_global_restrict)
8067 (create_function_info_for, create_variable_info_for_1)
8068 (create_variable_info_for): Add and handle add_id parameter.
8069 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
8070 (init_base_vars): Add extra argument to calls to new_var_info.
8071 (get_vi_for_tree): Add extra argument to call to
8072 create_variable_info_for.
8073 (process_constraint, do_deref, process_all_all_constraints): Add extra
8074 argument to calls to new_scalar_tmp_constraint_exp.
8075 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
8076 argument to calls to make_heapvar.
8077 (make_restrict_var_constraints): Add extra argument to call to
8078 make_constraint_from_global_restrict.
8079 (intra_create_variable_infos): Add extra argument to call to
8080 create_variable_info_for_1.
8081 (ipa_pta_execute): Add extra argument to call to
8082 create_function_info_for.
8084 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8086 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
8087 (sibcall_value): Likewise.
8089 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
8091 * config/nvptx/nvptx.h (struct machine_function): Add
8093 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
8094 nvptx_expand_oacc_join): Declare.
8095 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
8096 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
8097 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
8098 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
8099 UNSPECV_JOINING, UNSPECV_JOIN): New.
8100 (BITS, BITD): New mode iterators.
8101 (br_true_uni, br_false_uni): New.
8102 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
8103 (oacc_dim_size, oacc_dim_pos): New.
8104 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
8105 (oacc_fork, oacc_join): New.
8106 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
8107 (worker_load<mode>, worker_store<mode>): New.
8108 (nvptx_barsync): New.
8109 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
8110 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
8111 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
8112 worker_bcast_sym): New.
8113 (nvptx_option_override): Initialize worker broadcast buffer.
8114 (nvptx_emit_forking, nvptx_emit_joining): New.
8115 (nvptx_init_axis_predicate): New.
8116 (nvptx_declare_function_name): Init axis predicates.
8117 (nvptx_expand_call): Add fork/join markers around routine call.
8118 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
8119 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
8120 (nvptx_gen_vcast): New.
8121 (struct wcast_data_t): New.
8122 (enum propagate_mask): New.
8123 (nvptx_gen_wcast): New.
8124 (nvptx_print_operand): Add 'S' case.
8125 (struct parallel): New.
8126 (parallel::parallel, parallel::~parallel): New.
8127 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
8128 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
8129 nvptx_find_par, nvptx_discover_pars): New.
8130 (nvptx_propagate): New.
8131 (vprop_gen, nvptx_vpropagate): New.
8132 (wprop_gen, nvptx_wpropagate): New.
8134 (nvptx_single, nvptx_skip_par): New.
8135 (nvptx_process_pars, nvptx_neuter_pars): New.
8136 (ntptx_reorg): Split blocks, generate parallel structure, apply
8138 (nvptx_cannot_copy_insn_p): New.
8139 (nvptx_file_end): Emit worker broadcast decl.
8140 (nvptx_goacc_fork_join): New.
8141 (TARGET_CANNOT_COPY_INSN_P): Override.
8142 (TARGET_GOACC_FORK_JOIN): Override.
8144 2015-10-28 Richard Biener <rguenther@suse.de>
8146 * fold-const.c (negate_expr_p): Adjust the division case to
8147 properly avoid introducing undefined overflow.
8148 (fold_negate_expr): Likewise.
8150 2015-10-28 Richard Biener <rguenther@suse.de>
8152 PR tree-optimization/65962
8153 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8154 Avoid creating loop carried dependences also for outer loops
8155 of the loop a use to replace is in.
8157 2015-10-28 Richard Biener <rguenther@suse.de>
8159 * common.opt (fchecking): New flag controlling flag_checking.
8160 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
8161 * timevar.c (timer::print): Adjust output.
8162 * doc/invoke.texi (fchecking): Document.
8164 2015-10-28 Richard Biener <rguenther@suse.de>
8167 * fold-const.c (negate_expr_p): We cannot negate plus or minus
8168 if overflow is not wrapping. Likewise multiplication unless
8169 one operand is constant and not power of two.
8170 (fold_negate_expr): Adjust accordingly.
8172 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8174 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
8176 (is_oacc_parallel, is_oacc_kernels): New.
8177 (enclosing_target_ctx): May return NULL.
8178 (ctx_in_oacc_kernels_region): New.
8179 (check_oacc_kernel_gwv): New.
8180 (oacc_loop_or_target_p): Delete.
8181 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
8182 operands. Strip reductions fro kernels.
8183 (scan_omp_target): Don't calculate gwv mask.
8184 (lower_oacc_head_mark, lower_oacc_loop_marker,
8185 lower_oacc_head_tail): New.
8186 (struct oacc_collapse): New.
8187 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
8188 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8189 Remove OpenACC handling.
8190 (expand_oacc_for): New.
8191 (expand_omp_for): Call expand_oacc_for.
8192 (lower_omp_for): Call lower_oacc_head_tail.
8194 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
8196 * attribs.c (check_attribute_tables): New function, broken out from...
8197 (init_attributes): Use it.
8198 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
8199 gcc_checking_assert and checking_* functions to eliminate
8200 ENABLE_CHECKING conditionals.
8201 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
8202 (pass_expand::execute): Likewise.
8203 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
8204 * cgraphunit.c (mark_functions_to_output): Likewise.
8205 (cgraph_node::expand_thunk): Likewise.
8206 (symbol_table::compile): Likewise.
8207 * ddg.c (add_cross_iteration_register_deps): Likewise.
8208 (create_ddg_all_sccs): Likewise.
8209 * df-core.c (df_finish_pass, df_analyze): Likewise.
8210 * diagnostic-core.h: Likewise.
8211 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
8212 * dominance.c (calculate_dominance_info): Likewise.
8213 * dwarf2out.c (add_AT_die_ref): Likewise.
8214 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
8215 (loc_list_from_tree, gen_lexical_block_die): Likewise.
8216 gen_type_die_with_usage, gen_type_die): Likewise.
8217 (dwarf2out_decl): Likewise.
8218 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
8219 * except.c (duplicate_eh_regions): Likewise.
8220 * fwprop.c (register_active_defs, update_df_init): Likewise.
8221 (fwprop_init, fwprop_done): Likewise.
8222 (update_uses): Likewise.
8223 * ggc-page.c (ggc_grow): Likewise.
8224 * gimplify.c (gimplify_body): Likewise.
8225 (gimplify_hasher::equal): Likewise.
8226 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
8227 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
8229 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
8230 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
8231 * hash-table.h (::find_empty_slot_for_expand): Likewise.
8232 * ifcvt.c (if_convert): Likewise.
8233 * ipa-cp.c (ipcp_propagate_stage): Likewise.
8234 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
8235 (odr_type_p, odr_types_equivalent_p): Likewise.
8236 (add_type_duplicate, get_odr_type): Likewise.
8237 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
8238 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
8239 (sem_item_optimizer::verify_classes): Likewise.
8240 (sem_item_optimizer::traverse_congruence_split): Likewise.
8241 (sem_item_optimizer::checking_verify_classes): New.
8242 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
8244 * cfgrtl.c (commit_edge_insertions): Likewise.
8245 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
8246 (rtl_flow_call_edges_add): Likewise.
8247 * cgraph.c (symbol_table::create_edge): Likewise.
8248 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
8249 * cgraph.h (symtab_node): Likewise.
8250 (symtab_node::checking_verify_symtab_nodes): Define.
8251 (cgraph_node::checking_verify_cgraph_nodes): Define.
8252 * cfghooks.h (checking_verify_flow_info): Define.
8253 * cfgloop.h (checking_verify_loop_structure): Define.
8254 * dominance.h (checking_verify_dominators): Define.
8255 * et-forest.c: Fix comment.
8256 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
8257 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8258 ENABLE_CHECKING conditionals.
8259 * ipa-inline-transform.c (save_inline_function_body): Likewise.
8260 * ipa-inline.c (inline_small_functions): Likewise.
8261 (early_inliner): Likewise.
8262 * ipa-inline.h (estimate_edge_growth): Likewise.
8263 * ipa-visibility.c (function_and_variable_visibility): Likewise.
8264 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
8265 (ipa_single_use): Likewise.
8266 * ira-int.h: Likewise.
8267 * ira.c (ira): Likewise.
8268 * loop-doloop.c (doloop_optimize_loops): Likewise.
8269 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
8270 * loop-invariant.c (move_loop_invariants): Likewise.
8271 * lra-assigns.c (lra_assign): Likewise.
8272 * lra-constraints.c (lra_constraints): Likewise.
8273 * lra-eliminations.c (lra_eliminate): Likewise.
8274 * lra-int.h (struct lra_reg): Likewise.
8275 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
8276 (lra_create_live_ranges_1): Likewise.
8277 * lra-remat.c (create_remat_bb_data): Likewise.
8278 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
8280 (check_rtl): Always define. Remove incorrect guard around
8281 extract_constrain_insn call.
8282 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
8283 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8284 ENABLE_CHECKING conditionals.
8285 * lto-streamer-out.c (DFS::DFS): Likewise.
8286 (lto_output): Likewise.
8287 * lto-streamer.c (lto_streamer_init): Likewise.
8288 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
8289 expand_omp_target, execute_expand_omp): Likewise.
8290 (lower_omp_target): Likewise.
8291 * passes.c (execute_function_todo): Likewise.
8292 (execute_todo, execute_one_pass): Likewise.
8293 (verify_curr_properties): Always define.
8294 * predict.c (tree_estimate_probability: Use flag_checking,
8295 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8296 ENABLE_CHECKING conditionals.
8297 (propagate_freq): Likewise.
8298 * pretty-print.c (pp_format): Likewise.
8299 * real.c (real_to_decimal_for_mode): Likewise.
8300 * recog.c (split_all_insns): Likewise.
8301 * regcprop.c (kill_value_one_regno): Likewise.
8302 (copy_value): Likewise.
8303 (validate_value_data): Define unconditionally.
8304 * reload.c: Fix comment.
8305 * timevar.c: Include options.h
8306 * tree-ssa.h (checking_verify_ssa): Define.
8307 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
8308 * sched-deps.c (CHECK): Remove unused macro.
8309 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
8310 gcc_checking_assert and checking_* functions to eliminate
8311 ENABLE_CHECKING conditionals.
8312 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
8313 * sel-sched.c (struct moveop_static_params): Likewise.
8314 (find_best_reg_for_expr, move_cond_jump): Likewise.
8315 (move_op_orig_expr_not_found): Likewise.
8316 (code_motion_process_successors, move_op): Likewise.
8317 * ssa-iterators.h (first_readonly_imm_use): Likewise.
8318 (next_readonly_imm_use): Likewise.
8319 * store-motion.c (compute_store_table): Likewise.
8320 * symbol-summary.h (function_summary::function_summary): Likewise.
8321 * target.h (cumulative_args_t): Likewise.
8322 (get_cumulative_args, pack_cumulative_args): Likewise.
8323 * timevar.c: (timer::print): Likewise.
8324 * trans-mem.c (ipa_tm_execute): Likewise.
8325 * tree-cfg.c (move_stmt_op): Likewise.
8326 (move_sese_region_to_fn): Likewise.
8327 (gimple_flow_call_edges_add): Likewise.
8328 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
8330 * tree-eh.c (remove_unreachable_handlers): Likewise.
8331 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
8332 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
8333 * tree-into-ssa.c (update_ssa): Likewise.
8334 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
8335 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
8336 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
8337 * tree-predcom.c (suitable_component_p): Likewise.
8338 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
8339 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
8340 * tree-ssa-live.c (verify_live_on_entry): Likewise.
8341 * tree-ssa-live.h (register_ssa_partition): Likewise.
8342 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
8343 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
8344 (tree_transform_and_unroll_loop): Likewise.
8345 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8346 * tree-ssa-operands.c (get_expr_operands): Likewise.
8347 * tree-ssa-propagate.c (replace_exp_1): Likewise.
8348 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
8349 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
8350 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
8351 * tree-ssanames.c (release_ssa_name_fn): Likewise.
8352 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
8353 * tree-vect-loop-manip.c
8354 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
8355 (slpeel_checking_verify_cfg_after_peeling): Likewise.
8356 (vect_do_peeling_for_loop_bound): Likewise.
8357 (vect_do_peeling_for_alignment): Likewise.
8358 * tree-vrp.c (supports_overflow_infinity): Likewise.
8359 (set_value_range): Likewise.
8360 * tree.c (free_lang_data_in_cgraph): Likewise.
8361 * value-prof.c (gimple_remove_histogram_value): Likewise.
8362 (free_hist): Likewise.
8363 * var-tracking.c (canonicalize_values_star): Likewise.
8364 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
8366 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8368 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
8369 IFN_GOACC_LOOP): New.
8370 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
8371 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
8372 IFN_UNIQUE_OACC_TAIL_MARK.
8373 (enum ifn_goacc_loop_kind): New.
8374 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
8375 IFN_UNIQUE_OACC_JOIN cases.
8376 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
8377 (expand_GOACC_LOOP): New.
8378 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
8379 * omp-low.c: Include gimple-pretty-print.h.
8380 (struct oacc_loop): New.
8381 (enum oacc_loop_flags): New.
8382 (oacc_thread_numbers): New.
8383 (oacc_xform_loop): New.
8384 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
8385 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
8386 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
8387 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
8388 oacc_loop_discovery): New.
8389 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
8390 oacc_loop_process): New.
8391 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
8392 (execute_oacc_device_lower): Discover & process loops. Process
8394 * target.def (goacc.fork_join): Change sense of hook, clarify
8396 * doc/tm.texi: Regenerated.
8398 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8400 * target-insns.def (oacc_fork, oacc_join): Define.
8401 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
8402 (goacc.fork_join): New GOACC hook.
8403 * targhooks.h (default_goacc_fork_join): Declare.
8404 * omp-low.c (default_goacc_forkjoin): New.
8405 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
8406 * doc/tm.texi: Regenerate.
8408 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8410 * omp-low.c (oacc_init_rediction_array): New.
8411 (oacc_initialize_reduction_data): Initialize array.
8413 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8415 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
8417 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8419 * internal-fn.c (expand_UNIQUE): New.
8420 * internal-fn.h (enum ifn_unique_kind): New.
8421 * internal-fn.def (IFN_UNIQUE): New.
8422 * target-insns.def (unique): Define.
8423 * gimple.h (gimple_call_internal_unique_p): New.
8424 * gimple.c (gimple_call_same_target_p): Check internal fn
8426 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
8427 * tree-ssa-threadedge.c
8428 (record_temporary_equivalences_from_stmts): Likewise.
8429 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
8431 2015-10-27 Richard Henderson <rth@redhat.com>
8434 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
8435 narrowing subregs on SSE and MMX registers.
8436 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
8437 appear to be sub-words of multi-register pseudos must be rejected.
8438 * doc/tm.texi: Regenerate.
8440 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8443 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
8444 operands[0] is a reg before taking its REGNO in split condition.
8445 (*movdi_aarch64): Likewise.
8447 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8449 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
8450 Handle floating point inner modes properly.
8452 2015-10-27 Alan Hayward <alan.hayward@arm.com>
8455 (vectorizable_live_operation): Change iterator.
8457 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
8458 Aditya Kumar <aditya.k7@samsung.com>
8460 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
8461 function to schedule based on isl_schedule_node.
8462 (get_schedule_map_st): New schedule optimizer based on
8464 (scop_get_domains): New. Return the isl_union_set containing the
8465 domains of all the pbbs.
8466 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
8468 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
8471 * calls.c (prepare_call_address): Don't handle -fno-plt here.
8472 * config/i386/i386.c (ix86_expand_call): Generate indirect call
8473 via GOT for -fno-plt. Support indirect call via GOT for x32.
8474 * config/i386/predicates.md (sibcall_memory_operand): Allow
8477 2015-10-27 Richard Biener <rguenther@suse.de>
8479 PR tree-optimization/68104
8480 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
8481 strided access check ...
8482 (vect_compute_data_refs_alignment): ... here.
8484 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
8485 Joseph Myers <joseph@codesourcery.com>
8486 Mark Shinwell <shinwell@codesourcery.com>
8487 Andrew Stubbs <ams@codesourcery.com>
8488 Rich Felker <dalias@libc.org>
8490 * config.gcc: Handle --enable-fdpic.
8491 * config/sh/constraints.md (Ccl): New constraint.
8492 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
8493 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
8495 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
8497 * config/sh/sh-protos.h (function_symbol_result): New struct.
8498 (function_symbol): Return function_symbol_result.
8499 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
8501 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
8503 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
8504 (sh_option_override): Force -fPIC if FDPIC is in effect.
8505 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
8506 UNSPEC_GOTOFFFUNCDESC cases.
8507 (prepare_move_operands): Use FDPIC initial GOT register for
8508 TLS-related GOT access; inhibit cross-section address offset constants
8510 (sh_assemble_integer): New function.
8511 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
8512 PC-relative call sites.
8513 (expand_ashiftrt): Adapt invocation of function_symbol.
8514 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
8515 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
8516 UNSPEC_GOTOFFFUNCDESC.
8517 (legitimize_pic_address): Resolve function symbols to function
8518 descriptors for FDPIC. Do not use GOT-relative addressing for local
8519 data that may be read-only on FDPIC.
8520 (sh_emit_storesi, sh_emit_storehi): New functions.
8521 (sh_trampoline_init): Generate FDPIC trampolines.
8522 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
8523 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
8524 (sh_output_mi_thunk): Generate FDPIC call.
8525 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
8526 FDPIC, generate call site labels to use PC-relative addressing rather
8527 than GOT-relative addressing.
8528 (sh_conditional_register_usage): Make PIC register fixed and call used
8529 when FDPIC is in effect.
8530 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
8531 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
8532 sh_get_fdpic_reg_initial_val): New functions.
8533 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
8535 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
8536 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
8537 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
8538 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
8540 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
8541 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
8542 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
8543 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
8545 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
8546 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
8547 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
8548 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
8549 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
8550 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
8551 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
8552 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
8553 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
8554 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
8555 block_move_real, block_lump_real, block_move_real_i4,
8556 block_lump_real_i4): Add support for FDPIC calls.
8557 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
8558 call_value_pop): Adjust for new function_symbol signature.
8559 * config/sh/sh.opt (-mfdpic): New option.
8560 * doc/install.texi (Options specification): Document --enable-fdpic.
8561 * doc/invoke.texi (SH Options): Document -mfdpic.
8564 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
8566 PR tree-optimization/65963
8567 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8568 LSHIFT_EXPRs as equivalent MULT_EXPRs.
8570 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8573 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
8574 * config/arm/constraints.md (Dp): Update callsite.
8575 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
8577 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8579 * builtins.c (fold_builtin_load_exponent): Rename to...
8580 (fold_const_builtin_load_exponent): ...this and only handle
8582 (fold_builtin_2): Update accordingly.
8583 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
8585 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8587 * builtins.c (fold_builtin_logb): Rename to...
8588 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
8589 (fold_builtin_significand): Rename to...
8590 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
8591 (fold_builtin_1): Update accordingly.
8593 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8595 * builtins.c (fold_builtin_fmin_fmax): Delete.
8596 (fold_builtin_2): Handle constant fmin and fmax arguments here.
8597 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
8599 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
8601 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
8602 for register extension into sign and zero register extension.
8603 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
8604 for sign and zero register extension.
8605 (cortexa57_addrcost_table): Likewise.
8606 (xgene1_addrcost_table): Likewise.
8608 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8610 * fold-const.c (fold_minmax): Delete.
8611 (fold_binary_loc): Don't call it.
8612 * match.pd: Add rules previously handled by fold_minmax.
8614 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8616 * builtins.c (fold_builtin_fma): Remove constant handling.
8617 (fold_builtin_3): Handle constant fma arguments here.
8619 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8621 * builtins.c (fold_builtin_fabs): Remove constant handling.
8622 (fold_builtin_abs): Likewise.
8624 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8626 * builtins.c (fold_builtin_copysign): Delete.
8627 (fold_builtin_2): Handle constant copysign arguments here.
8628 * match.pd: Add rules previously handled by fold_builtin_copysign.
8630 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8632 * builtins.c (fold_builtin_signbit): Delete.
8633 (fold_builtin_2): Handle constant signbit arguments here.
8634 * match.pd: Add rules previously handled by fold_builtin_signbit.
8636 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8638 * match.pd: Handle sqrt(x) cmp 0 specially.
8640 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
8642 * tree-vect-generic.c (expand_vector_operations_1): Check
8643 optab type before using it.
8645 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8647 * config/aarch64/aarch64-protos.h
8648 (struct tune_params): Add autoprefetcher_model field.
8649 * config/aarch64/aarch64.c: Include params.h
8650 (generic_tunings): Specify autoprefetcher_model value.
8651 (cortexa53_tunings): Likewise.
8652 (cortexa57_tunings): Likewise.
8653 (cortexa72_tunings): Likewise.
8654 (thunderx_tunings): Likewise.
8655 (xgene1_tunings): Likewise.
8656 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
8657 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
8658 (aarch64_override_options_internal): Set
8659 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
8661 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8663 * builtins.c (fold_builtin_exponent): Delete.
8664 (fold_builtin_2): Handle constant expN arguments here.
8665 * match.pd: Fold expN(logN(x)) -> x.
8667 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8669 * builtins.c (fold_builtin_powi): Delete.
8670 (fold_builtin_2): Handle constant powi arguments here.
8671 * match.pd: Add rules previously handled by fold_builtin_powi.
8673 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8675 * builtins.c (fold_builtin_pow): Delete in favor of...
8676 (fold_const_builtin_pow): ...this new function. Only handle constant
8678 (fold_builtin_2): Update accordingly.
8679 * match.pd: Add rules previously handled by fold_builtin_pow.
8681 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8683 * builtins.c (fold_builtin_hypot): Delete.
8684 (fold_builtin_2): Handle constant hypot arguments here.
8685 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
8686 hypot(x, x) to fabs(x)*sqrt(2).
8688 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8690 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
8691 instead of make_ssa_name if not yet in SSA form.
8693 2015-10-27 Richard Biener <rguenther@suse.de>
8695 * cfg.c (free_edge): Add function argument and use it instead of cfun.
8696 (clear_edges): Likewise.
8697 * cfg.h (clear_edges): Adjust prototype.
8698 * cfgexpand.c (pass_expand::execute): Adjust.
8699 * cfgloop.c (release_recorded_exits): Add function argument and use
8701 * cfgloop.h (release_recorded_exits): Adjust prototype.
8702 (loops_state_satisfies_p): Add overload with function argument.
8703 (loops_state_set): Likewise.
8704 (loops_state_clear): Likewise.
8705 (struct loop_iterator): Add function argument to constructor
8706 and iterator and use it instead of cfun.
8707 (FOR_EACH_LOOP_FN): New macro.
8708 (loop_optimizer_finalize): Add overload with function argument.
8709 * loop-init.c (loop_optimizer_init): Adjust.
8710 (fix_loop_structure): Likewise.
8711 (loop_optimizer_finaliz): Add function argument and use it
8713 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
8714 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
8715 * cgraph.c (release_function_body): Do not push/pop cfun.
8716 * final.c (rest_of_clean_state): Adjust.
8717 * graphite.c (graphite_finalize): Likewise.
8718 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8719 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8720 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
8721 (tree_unroll_loops_completely): Likewise.
8722 (pass_complete_unrolli::execute): Likewise.
8723 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
8724 Add function argument and use it instead of cfun.
8725 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
8727 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
8728 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
8730 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
8731 * tree-ssanames.c (fini_ssanames): Add function argument and use it
8733 * tree-ssanames.c (fini_ssanames): Adjust prototype.
8734 * tree-vrp.c (execute_vrp): Adjust.
8735 * value-prof.c (free_histograms): Add function argument and use it
8737 * value-prof.h (free_histograms): Adjust prototype.
8739 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
8741 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
8742 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
8743 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
8745 2015-10-27 Tom de Vries <tom@codesourcery.com>
8747 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
8750 2015-10-27 Bin Cheng <bin.cheng@arm.com>
8752 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
8753 (inv_can_prop_to_addr_use): New function.
8754 (record_use): Call can_prop_to_addr_uses, set the new field.
8755 (get_inv_cost): Count cost if inv can't be propagated into its
8758 2015-10-26 Doug Evans <dje@google.com>
8760 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
8762 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
8764 * match.pd (fold_widened_comparison): Apply simplifications to all
8767 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
8769 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
8770 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
8771 * doc/tm.texi: Regenerated.
8772 * reorg.c (dbr_schedule): Use new hook.
8773 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
8775 2015-10-26 Jeff Law <law@redhat.com>
8777 PR tree-optimization/68013
8778 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8779 Make sure the first block in the path is in VISITED_BBs.
8781 2015-10-26 Richard Biener <rguenther@suse.de>
8782 Dominik Vogt <vogt@linux.vnet.ibm.com>
8785 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
8786 Properly prune ref->ref for accesses outside of ref.
8788 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8790 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
8791 new statements to be inserted if inplace. Allow calls to have
8794 2015-10-26 Richard Biener <rguenther@suse.de>
8796 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
8797 (do_valueize): New function.
8798 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
8800 * tree-ssa-threadedge.c: Remove builtins.h include, include
8802 (fold_assignment_stmt): Remove.
8803 (threadedge_valueize): New function.
8804 (record_temporary_equivalences_from_stmts): Use
8805 gimple_fold_stmt_to_constant_1, note additional cleanup
8808 2015-10-26 Richard Biener <rguenther@suse.de>
8810 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
8811 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
8813 2015-10-26 Alan Hayward <alan.hayward@arm.com>
8815 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
8816 VEC_COND_EXPR types.
8818 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8820 * auto-inc-dec.c (insert_move_insn_before): Delete.
8821 (attempt_change): Remember to cost the simple move in the
8822 FORM_PRE_ADD and FORM_POST_ADD cases.
8824 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
8827 * config/sh/sh.c (sh_vector_mode_supported_p): Use
8828 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
8830 2015-10-26 Tom de Vries <tom@codesourcery.com>
8832 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
8834 (intra_create_variable_infos): ... here.
8836 2015-10-26 Tom de Vries <tom@codesourcery.com>
8838 * tree-ssa-structalias.c (intra_create_variable_infos): Add
8839 restrict_pointer_p and recursive_restrict_p variables.
8841 2015-10-26 Tom de Vries <tom@codesourcery.com>
8843 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
8844 get_vi_for_tree call.
8846 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8849 * optabs.c (expand_atomic_compare_and_swap): Handle case when
8850 ptarget_oval or ptarget_bool are const0_rtx.
8852 2015-10-26 Christian Bruel <christian.bruel@st.com>
8854 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
8855 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
8856 * cp/method.c (implicitly_declare_fn): Likewise.
8857 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
8858 * java/class.c (add_method_1): Likewise.
8860 2015-10-26 Richard Biener <rguenther@suse.de>
8862 * alloc-pool.h (base_pool_allocator): Use placement new.
8863 (base_pool_allocator::remove): Likewise. Compute size outside of
8866 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8868 * builtins.c (do_real_to_int_conversion): New function.
8869 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
8870 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
8872 * match.pd: Add rules previously handled by fold_fixed_mathfn
8873 and fold_builtin_int_roundingfn.
8875 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8877 * match.pd: Use macros to define built-in operator lists.
8879 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
8880 Richard Biener <rguenther@suse.de>
8882 * genmatch.c (dt_simplify::gen): Skip captures that are
8884 (parser::parse_expr): Allow captures in results too.
8885 * builtins.c (fold_builtin_cexp): Delete.
8886 (fold_builtin_1): Handle constant cexp arguments here.
8887 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
8889 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
8891 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
8892 conditional compilation.
8893 (base_pool_allocator::remove): Use flag_checking.
8895 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
8897 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
8900 * dojump.c (do_compare_and_jump): Canonicalize both function and
8903 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
8906 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
8909 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8912 * ipa-polymorphic-call.c
8913 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
8914 instance offset with offset of outer type.
8916 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8918 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
8920 2015-10-23 Caroline Tice <cmtice@google.com>
8922 (from Richard Biener
8923 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
8924 call to iterative_hash_host_wide_int.
8926 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
8928 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
8931 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8933 * tree-vect-generic.c (expand_vector_operations_1): Check
8934 optab exists before use it.
8936 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8938 * tree-vect-generic.c (expand_vector_condition): Avoid
8939 uninitialized variable warning.
8941 2015-10-23 Jeff Law <law@redhat.com>
8943 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
8945 (execute_todo): Call it here.
8946 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
8948 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
8950 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
8951 Szabolcs Nagy <szabolcs.nagy@arm.com>
8953 * config.gcc (enable_secureplt): Add *-linux*-musl*.
8955 2015-10-23 Jeff Law <law@redhat.com>
8957 PR tree-optimization/67830
8958 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
8959 Explicitly verify the mask has no bits outside the type of
8960 the innermost operands.
8962 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
8963 Szabolcs Nagy <szabolcs.nagy@arm.com>
8965 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
8966 (MUSL_DYNAMIC_LINKER64): Define.
8967 (GNU_USER_DYNAMIC_LINKER32): Update.
8968 (GNU_USER_DYNAMIC_LINKER64): Update.
8969 (CHOOSE_DYNAMIC_LINKER): Update.
8971 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
8972 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
8973 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8974 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8975 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8976 (CHOOSE_DYNAMIC_LINKER): Update.
8977 (INCLUDE_DEFAULTS): Redefine.
8979 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
8981 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8983 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
8984 comparing addresses.
8986 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8988 * fold-const.c (operand_equal_p): Handle matching of vector
8991 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
8993 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
8995 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
8996 Andrew Pinski <apinski@cavium.com>
8998 PR rtl-optimization/67736
8999 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
9002 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
9005 * tree.c (build_truth_vector_type): Support BLK mode
9006 returned for boolean vector.
9008 2015-10-23 Alan Hayward <alan.hayward@arm.com>
9010 PR tree-optimization/65947
9012 (vect_is_simple_reduction_1): Find condition reductions.
9013 (vect_model_reduction_cost): Add condition reduction costs.
9014 (get_initial_def_for_reduction): Add condition reduction initial var.
9015 (vect_create_epilog_for_reduction): Add condition reduction epilog.
9016 (vectorizable_reduction): Condition reduction support.
9017 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
9018 * doc/sourcebuild.texi (Vector-specific attributes): Document
9021 2015-10-23 Richard Biener <rguenther@suse.de>
9023 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
9026 2015-10-23 Richard Biener <rguenther@suse.de>
9027 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9029 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
9030 into (A ^ B) - B to match.pd
9031 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
9033 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
9035 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
9037 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
9039 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
9041 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
9042 INTEGER_CST@1)): New simplifier.
9044 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
9046 * builtins.c (integer_valued_real_p): Move to fold-const.c.
9047 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
9048 (fold_builtin_ceil, fold_builtin_round): Delete.
9049 (fold_builtin_1): Handle constant trunc, floor, ceil and round
9051 * convert.c (convert_to_real): Remove narrowing of rounding
9053 * fold-const.h (integer_valued_real_unary_p)
9054 (integer_valued_real_binary_p, integer_valued_real_call_p)
9055 (integer_valued_real_single_p, integer_valued_real_p): Declare.
9056 * fold-const.c (tree_single_nonnegative_warnv_p): Move
9057 name_registered_for_update_p check to SSA_NAME case statement.
9058 Don't call tree_simple_nonnegative_warnv_p for SSA names.
9059 (integer_valued_real_unary_p, integer_valued_real_binary_p)
9060 (integer_valued_real_call_p, integer_valued_real_single_p)
9061 (integer_valued_real_invalid_p): New functions.
9062 (integer_valued_real_p): Move from fold-const.c and rework
9063 to call the functions above. Handle SSA names.
9064 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
9065 * gimple-fold.c (gimple_assign_integer_valued_real_p)
9066 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
9067 (gimple_stmt_integer_valued_real_p): New functions.
9068 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
9069 Fold f(x)->x for the same f if x is known to be integer-valued.
9070 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
9071 the result. Canonicalize floor(x) as trunc(x) if x is
9074 2015-10-23 Tom de Vries <tom@codesourcery.com>
9076 * tree-ssa-structalias.c (intra_create_variable_infos): Use
9077 make_constraint_from.
9079 2015-10-23 Tom de Vries <tom@codesourcery.com>
9081 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
9082 setting of is_full_var in case of a single field.
9084 2015-10-22 Martin Sebor <msebor@redhat.com>
9087 * config/i386/i386.opt: Add missing periods to the ends of sentences.
9088 * config/msp430/msp430.opt: Same.
9090 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
9092 * doc/extend.exp (Global Register Variables): Rewrite.
9094 2015-10-22 Jeff Law <law@redhat.com>
9096 * genattrtab.c (main): If we do not have any annul-true or annul-false
9097 slots, then write out a dummy eligible_for_annul_true or
9098 eligible_for_annul_false as needed.
9100 2015-10-22 Nick Clifton <nickc@redhat.com>
9102 * config/msp430/msp430.opt: Add -msilicon-errata and
9103 -msilicon-errata-warn.
9104 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
9106 * doc/invoke.texi: Document new options.
9108 2015-10-22 Richard Biener <rguenther@suse.de>
9110 PR tree-optimization/58497
9111 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
9112 (expand_vector_operations_1): Use it. Lower operations on
9113 all uniform vectors to scalar operations if the HW supports it.
9115 2015-10-22 Richard Biener <rguenther@suse.de>
9117 PR tree-optimization/19049
9118 PR tree-optimization/65962
9119 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
9120 to strided accesses if single-element interleaving doesn't work.
9122 2015-10-22 Richard Biener <rguenther@suse.de>
9126 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
9127 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
9128 (expand_unop): Likewise.
9130 2015-10-22 Richard Biener <rguenther@suse.de>
9132 * fold-const.c (fold_addr_of_array_ref_difference): Properly
9133 convert operands before folding a MINUS_EXPR.
9134 (fold_binary_loc): Move simplification of MINUS_EXPR on
9135 converted POINTER_PLUS_EXPRs ...
9136 * match.pd: ... here.
9138 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
9140 * builtins.c (fold_builtin_tan): Delete.
9141 (fold_builtin_1): Handle constant tan arguments here.
9142 * match.pd: Simplify (tan (atan x)) to x.
9144 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
9146 * builtins.c (fold_builtin_cproj): Delete.
9147 (fold_builtin_1): Handle constant arguments here.
9148 (build_complex_cproj): Move and rename to...
9149 * tree.c: (build_complex_inf): ...this.
9150 * tree.h (build_complex_inf): Declare.
9151 * match.pd: Fold cproj(x)->x if x has no infinity.
9152 Use build_complex_inf for existing cproj rules.
9154 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9157 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
9158 already have a comparison result.
9160 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9163 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
9164 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
9165 (aarch64_classify_address): Likewise.
9166 (aarch64_secondary_reload): Likewise.
9167 (aarch64_override_options_after_change_1): Adjust.
9168 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
9169 Use aarch64_nopcrelative_literal_loads.
9170 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9171 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
9174 2015-10-21 Martin Sebor <msebor@redhat.com>
9177 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
9178 (print_filtered_help): Reference aliased option's name and encourage
9179 readers to use it in preference to the alias if the former is not
9180 documented. Mention when using an option is diagnosed.
9181 * gcc.c (display_help): End each sentence with a period.
9183 * common.opt: End each sentence that describes an option with
9185 * config/aarch64/aarch64.opt: Same.
9186 * config/alpha/alpha.opt: Same.
9187 * config/arc/arc.opt: Same.
9188 * config/arm/arm.opt: Same.
9189 * config/avr/avr.opt: Same.
9190 * config/bfin/bfin.opt: Same.
9191 * config/c6x/c6x.opt: Same.
9192 * config/cr16/cr16.opt: Same.
9193 * config/cris/cris.opt: Same.
9194 * config/cris/linux.opt: Same.
9195 * config/darwin.opt: Same.
9196 * config/epiphany/epiphany.opt: Same.
9197 * config/fr30/fr30.opt: Same.
9198 * config/frv/frv.opt: Same.
9199 * config/ft32/ft32.opt: Same.
9200 * config/g.opt: Same.
9201 * config/h8300/h8300.opt: Same.
9202 * config/i386/cygming.opt: Same.
9203 * config/i386/djgpp.opt: Same.
9204 * config/i386/i386.opt: Same.
9205 * config/i386/interix.opt: Same.
9206 * config/i386/mingw-w64.opt: Same.
9207 * config/i386/mingw.opt: Same.
9208 * config/ia64/ia64.opt: Same.
9209 * config/ia64/ilp32.opt: Same.
9210 * config/iq2000/iq2000.opt: Same.
9211 * config/linux.opt: Same.
9212 * config/lm32/lm32.opt: Same.
9213 * config/lynx.opt: Same.
9214 * config/m32c/m32c.opt: Same.
9215 * config/m32r/m32r.opt: Same.
9216 * config/m68k/ieee.opt: Same.
9217 * config/m68k/m68k.opt: Same.
9218 * config/mcore/mcore.opt: Same.
9219 * config/mep/mep.opt: Same.
9220 * config/microblaze/microblaze.opt: Same.
9221 * config/mips/mips.opt: Same.
9222 * config/mmix/mmix.opt: Same.
9223 * config/mn10300/mn10300.opt: Same.
9224 * config/moxie/moxie.opt: Same.
9225 * config/msp430/msp430.opt: Same.
9226 * config/nios2/elf.opt: Same.
9227 * config/nios2/nios2.opt: Same.
9228 * config/nvptx/nvptx.opt: Same.
9229 * config/pa/pa-hpux.opt: Same.
9230 * config/pa/pa-hpux1010.opt: Same.
9231 * config/pa/pa-hpux1111.opt: Same.
9232 * config/pa/pa-hpux1131.opt: Same.
9233 * config/pa/pa.opt: Same.
9234 * config/pa/pa64-hpux.opt: Same.
9235 * config/pdp11/pdp11.opt: Same.
9236 * config/rl78/rl78.opt: Same.
9237 * config/rs6000/476.opt: Same.
9238 * config/rs6000/aix64.opt: Same.
9239 * config/rs6000/darwin.opt: Same.
9240 * config/rs6000/linux64.opt: Same.
9241 * config/rs6000/rs6000.opt: Same.
9242 * config/rs6000/sysv4.opt: Same.
9243 * config/s390/s390.opt: Same.
9244 * config/s390/tpf.opt: Same.
9245 * config/sh/sh.opt: Same.
9246 * config/sol2.opt: Same.
9247 * config/sparc/long-double-switch.opt: Same.
9248 * config/sparc/sparc.opt: Same.
9249 * config/spu/spu.opt: Same.
9250 * config/stormy16/stormy16.opt: Same.
9251 * config/tilegx/tilegx.opt: Same.
9252 * config/tilepro/tilepro.opt: Same.
9253 * config/v850/v850.opt: Same.
9254 * config/vax/vax.opt: Same.
9255 * config/visium/visium.opt: Same.
9256 * config/vms/vms.opt: Same.
9257 * config/vxworks.opt: Same.
9258 * config/xtensa/xtensa.opt: Same.
9260 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9261 Sebastian Pop <s.pop@samsung.com>
9263 * graphite-scop-detection.c (parameter_index_in_region): Update call to
9264 invariant_in_sese_p_rec.
9265 * graphite-sese-to-poly.c (extract_affine): Same.
9266 * sese.c (invariant_in_sese_p_rec): Pass in an extra
9267 parameter has_vdefs.
9268 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
9269 variable depends on virtual definitions in the current region.
9270 * sese.h (invariant_in_sese_p_rec): Update declaration.
9272 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9273 Sebastian Pop <s.pop@samsung.com>
9275 * graphite-scop-detection.c (build_scops): Do not handle scops
9276 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
9277 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
9279 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
9281 * config.in: Regenerate.
9282 * configure: Regenerate.
9283 * configure.ac (CHECKING_P): Define.
9284 * system.h: Use CHECKING_P.
9286 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9289 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
9290 is negative we don't know the type.
9291 (check_stmt_for_type_change): Skip constructors of non-polymorphic
9292 types as those won't help devirutalization.
9294 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9296 * fold-const.c (operand_equal_p): Add code matching empty constructors.
9298 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
9300 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
9302 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
9303 Add comments on sign of the result.
9304 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
9305 Recurse on operand #1 instead of operand #0.
9306 <CEIL_MOD_EXPR>: Do not recurse.
9307 <ROUND_MOD_EXPR>: Likewise.
9309 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9311 * cfgrtl.c (pass_free_cfg::execute): Adjust.
9312 * final.c (dbr_sequence_length): Always define.
9313 (shorten_branches): Adjust.
9314 * genattr-common.c (main): Always define DELAY_SLOTS.
9315 * genattr.c (main): Unconditionally declare functions and define
9316 macros related to delay slots.
9317 * genattrtab.c (write_eligible_delay): Adjust.
9318 (main): Always write out delay slot functions.
9319 * opts.c (default_options_table): Adjust.
9320 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
9321 (redirect_with_delay_list_safe_p): Likewise.
9322 (fill_simple_delay_slots): Likewise.
9323 (fill_slots_from_thread): Likewise.
9324 (make_return_insns): Likewise.
9325 (dbr_schedule): Likewise.
9326 (rest_of_handle_delay_slots): Likewise.
9327 (pass_delay_slots::gate): Likewise.
9328 * toplev.c (process_options): Likewise.
9330 2015-10-21 Richard Henderson <rth@redhat.com>
9332 * targhooks.c (default_addr_space_pointer_mode): Remove check
9333 for generic address space.
9334 (default_addr_space_address_mode): Likewise.
9335 (default_addr_space_valid_pointer_mode): Likewise.
9336 (default_addr_space_legitimate_address_p): Likewise.
9337 (default_addr_space_legitimize_address): Likewise.
9338 * target.def (addr_space.pointer_mode): Update documentation
9339 of default behavior.
9340 (addr_space.address_mode): Likewise.
9343 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
9346 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9348 * builtins.c (fold_builtin_cabs): Delete.
9349 (fold_builtin_1): Update accordingly. Handle constant arguments here.
9350 * match.pd: Add rules previously handled by fold_builtin_cabs.
9352 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9354 * fold-const.h (fold_strip_sign_ops): Delete.
9355 * fold-const.c (fold_strip_sign_ops): Likewise.
9356 (fold_unary_loc, fold_binary_loc): Remove calls to it.
9357 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
9358 (fold_builtin_ccos): Delete.
9359 (fold_builtin_pow): Don't call fold_strip_sign_ops.
9360 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
9361 Remove fndecl argument.
9362 (fold_builtin_1): Update calls accordingly. Handle constant
9363 cos, cosh, ccos and ccosh here.
9365 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9367 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
9368 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
9369 * common.opt (fssa-backprop): New option.
9370 * fold-const.h (negate_mathfn_p): Declare.
9371 * fold-const.c (negate_mathfn_p): Make public.
9372 * timevar.def (TV_TREE_BACKPROP): New.
9373 * tree-pass.h (make_pass_backprop): Declare.
9374 * passes.def (pass_backprop): Add.
9375 * gimple-ssa-backprop.c: New file.
9377 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9378 Sebastian Pop <s.pop@samsung.com>
9380 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
9381 Do not call create_empty_if_region_on_edge when cond_expr is true.
9382 (translate_isl_ast_node_for): Check whether a guard has been generated.
9384 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9386 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
9387 (operator=): Removed.
9388 (dr_info): Make alias_set number the last argument with default
9389 value of invalid_alias_set.
9390 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
9392 (rewrite_reductions_out_of_ssa): Iterate only through the
9393 basic blocks which are inside region.
9394 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
9395 * sese.h (struct sese_l): Removed assignment operator.
9396 (split_region_for_bb): Removed dead code.
9398 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9400 * graphite-poly.h (struct dr_info): Removed conversion constructor.
9401 (struct scop): Renamed scop::region to scop::scop_info
9402 (scop_set_region): Same.
9403 (SCOP_REGION): Removed
9404 (SCOP_CONTEXT): Removed.
9405 (POLY_SCOP_P): Removed.
9406 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
9407 Rename scop->region to scop->scop_info.
9408 (add_parameters_to_ivs_params): Same.
9409 (graphite_regenerate_ast_isl): Same.
9410 * graphite-poly.c (new_scop): Same.
9412 (print_scop_params): Same.
9413 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
9414 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
9415 (dot_all_scops_1): Rename scop->region to scop->scop_info.
9416 (scop_detection::nb_pbbs_in_loops): Same.
9417 (find_scop_parameters): Same.
9418 (try_generate_gimple_bb): Same.
9419 (gather_bbs::before_dom_children): Same.
9420 (gather_bbs::after_dom_children): Same.
9421 (build_scops): Same.
9422 * graphite-sese-to-poly.c (build_scop_scattering): Same.
9423 (extract_affine_chrec): Same.
9424 (extract_affine): Same.
9425 (set_scop_parameter_dim): Same.
9426 (build_loop_iteration_domains): Same.
9427 (create_pw_aff_from_tree): Same.
9428 (add_param_constraints): Same.
9429 (build_scop_iteration_domain): Same.
9430 (build_scop_drs): Same.
9431 (analyze_drs_in_stmts): Same.
9432 (insert_out_of_ssa_copy_on_edge): Same.
9433 (rewrite_close_phi_out_of_ssa):Same.
9434 (rewrite_reductions_out_of_ssa):Same.
9435 (handle_scalar_deps_crossing_scop_limits):Same.
9436 (rewrite_cross_bb_scalar_deps):Same.
9437 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
9438 (build_poly_scop):Same.
9439 (build_alias_set): Use pointer to dr_info.
9440 * graphite.c (print_graphite_scop_statistics):
9441 (graphite_transform_loops):
9442 * sese.h (struct sese_l): Remove conversion constructor.
9444 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9447 * tree.c (verify_type): Verify that TYPE_MODE match
9448 between TYPE_CANONICAL and type.
9449 * expr.c (store_expr_with_bounds): Revert my previous change.
9450 * expmed.c (store_bit_field_1): Revert prevoius change.
9451 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
9452 to match for all types.
9454 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
9456 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
9459 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9461 * doc/tm.texi: Regenerated.
9462 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
9463 * stor-layout.c (layout_type): Use mode to get vector mask size.
9464 * target.def (get_mask_mode): New.
9465 * targhooks.c (default_get_mask_mode): New.
9466 * targhooks.h (default_get_mask_mode): New.
9467 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
9469 * tree.c (MAX_BOOL_CACHED_PREC): New.
9470 (nonstandard_boolean_type_cache): New.
9471 (build_nonstandard_boolean_type): New.
9472 (make_vector_type): Vector mask has no canonical type.
9473 (build_truth_vector_type): New.
9474 (build_same_sized_truth_vector_type): New.
9475 (truth_type_for): Support vector masks.
9476 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
9477 (build_truth_vector_type): New.
9478 (build_same_sized_truth_vector_type): New.
9479 (build_nonstandard_boolean_type): New.
9480 * tree-cfg.c (verify_gimple_comparison) Require boolean
9481 vector type for vector comparison.
9482 (verify_gimple_assign_ternary): Likewise.
9483 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
9485 * tree-vect-stmts.c (vectorizable_condition): Use boolean
9486 vector type for vector comparison.
9487 * tree-vect-generic.c (elem_op_func): Add new operand to hold
9489 (do_unop): Adjust to modified function type.
9490 (do_binop): Likewise.
9491 (do_plus_minus): Likewise.
9492 (do_negate); Likewise.
9493 (expand_vector_piecewise): Likewise.
9494 (do_cond): Likewise.
9495 (do_compare): Use comparison instead of condition.
9496 (expand_vector_divmod): Use boolean vector type for comparison.
9497 (expand_vector_operations_1): Skip scalar mask operations.
9499 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9501 * omp-low.c (simd_clone_create): Set in_other_partition
9504 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
9506 * doc/extend.exp (Local Register Variables): Rewrite.
9508 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9510 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
9511 and x*x in cases where the operands are sign ops. Extend these
9512 rules to handle copysign as a sign op (including for cos, cosh
9513 and pow, which already treated negate and abs as sign ops).
9515 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
9518 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
9519 for 64-bit MS_ABI targets also when default incoming stack boundary
9522 2015-10-21 Richard Biener <rguenther@suse.de>
9524 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
9525 cond stmts, enhanced and split out from ...
9526 (vn_phi_eq): ... here.
9528 2015-10-21 Richard Biener <rguenther@suse.de>
9531 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
9532 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
9533 (tree_single_nonnegative_warnv_p): ... here. For SSA names
9534 make sure they are not registered for update.
9536 2015-10-21 Richard Biener <rguenther@suse.de>
9538 PR tree-optimization/68026
9539 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
9540 unsigned VARYING values.
9542 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
9544 * asan.c (asan_emit_stack_protection): Don't pass local stack to
9545 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
9546 NULL and use local stack than.
9547 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
9548 in addition to __asan_init.
9549 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
9550 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
9551 * asan.h (asan_intercepted_p): Handle new string builtins.
9552 * ubsan.c (ubsan_use_new_style_p): New function.
9553 (ubsan_instrument_float_cast): If location is unknown, assign
9554 input_location to loc. Propagate loc to ubsan_create_data if
9555 ubsan_use_new_style_p returned true.
9557 2015-10-21 Jeff Law <law@redhat.com>
9559 * Makefile.in (OBJS): Remove sched-vis.c
9560 * sched-vis.c: Removed. Code moved into...
9561 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
9562 * rtl.h: Remove prototypes for functions now living in print-rtl.c
9563 * print-rtl.h Add prototypes for new functions in print-rtl.c.
9564 * auto-inc-dec.c: Include print-rtl.h
9565 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
9566 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
9568 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
9571 2015-10-21 Richard Biener <rguenther@suse.de>
9572 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9574 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
9576 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
9577 about signed left shift stronger and clarify the cases when they're
9579 Move (a * (1 << b)) is (a << b) to match.pd.
9580 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
9581 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
9582 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
9584 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
9586 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
9587 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
9588 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
9590 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
9592 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
9594 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
9595 Szabolcs Nagy <szabolcs.nagy@arm.com>
9596 Alan Modra <amodra@gmail.com>
9598 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
9599 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
9600 (LINK_SPEC): Add %(link_secure_plt).
9601 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
9602 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
9604 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
9605 Szabolcs Nagy <szabolcs.nagy@arm.com>
9607 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
9608 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
9610 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9612 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
9614 (fusion_load_store): Use it.
9615 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
9616 ldp and stp in VD modes.
9617 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
9618 (store_pair<mode>, VD): Likewise.
9620 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
9622 PR rtl-optimization/67609
9623 * lra-splill.c (lra_final_code_change): Don't remove all
9626 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9628 * simplify-rtx.c (simplify_binary_operation): If either operand was
9629 a constant pool reference use them if all other simplifications failed.
9631 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9633 * config/aarch64/aarch64.md
9634 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
9635 * config/aarch64/aarch64-simd.md
9636 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
9637 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
9638 (aarch64_fpconst_pow_of_2): New function.
9639 (aarch64_vec_fpconst_pow_of_2): Likewise.
9640 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
9642 (aarch64_vec_fpconst_pow_of_2): Likewise.
9643 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
9644 (aarch64_fp_vec_pow2): Likewise.
9646 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
9648 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
9649 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
9650 * config/alpha/alpha.c (alpha_function_arg_advance): Update
9651 ALPHA_ARG_SIZE usage.
9652 (alpha_arg_partial_bytes): Ditto.
9654 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
9657 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
9658 error_mark_node decls.
9660 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
9664 * common/config/i386/i386-common.c (ix86_handle_option): Remove
9665 OPT_miamcu handling.
9666 * config/i386/i386.c (PTA_NO_80387): New macro.
9667 (processor_alias_table): Add PTA_NO_80387 to lakemont.
9668 (ix86_option_override_internal): Update MASK_80387 from
9669 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
9670 SSE math only if 80387 is supported. Don't change
9672 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
9674 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
9675 if TARGET_80387 is true and TARGET_IAMCU is false.
9676 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
9677 is true and TARGET_IAMCU_P is false.
9679 2015-10-20 Richard Biener <rguenther@suse.de>
9681 PR tree-optimization/68017
9682 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
9684 2015-10-20 Martin Liska <mliska@suse.cz>
9686 * cgraphclones.c (cgraph_node::create_virtual_clone):
9687 Verify cgraph_node.local.versionable instead of calling
9688 tree_versionable_function_p.
9689 * ipa-cp.c (determine_versionability): Save the information
9690 to ipa_node_params summary.
9691 (ipcp_versionable_function_p): Use it.
9692 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
9693 (ipcp_generate_summary): Do not compute cgraph_node
9695 * ipa-inline-analysis.c (inline_generate_summary): Compute
9696 versionability for all cgraph nodes.
9697 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
9698 ipa_node_params::versionability.
9699 * ipa-prop.h (struct ipa_node_params): Declare it.
9701 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9704 * varasm.c (assemble_variable): Move special vtv handling to..
9705 (handle_vtv_comdat_sections): .. here. New function.
9706 (output_object_block): Handle vtv sections.
9708 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
9711 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
9713 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
9715 * doc/extend.texi: Update documentation WRT inline functions.
9717 2015-10-20 Alan Modra <amodra@gmail.com>
9720 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
9721 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
9722 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9724 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
9726 PR rtl-optimization/66790
9727 * df.h (DF_MIR): New macro.
9728 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
9729 (DF_MIR_INFO_BB): New macro.
9730 (DF_MIR_IN, DF_MIR_OUT): New macros.
9731 (struct df_mir_bb_info): New.
9732 (df_mir): New macro.
9733 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
9735 (df_mir_get_bb_info): New.
9736 * df-problems.c (struct df_mir_problem_data): New.
9737 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
9738 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
9739 df_mir_confluence_0, df_mir_confluence_n,
9740 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
9741 df_mir_bottom_dump, df_mir_verify_solution_start,
9742 df_mir_verify_solution_end): New.
9744 (df_mir_add_problem, df_mir_simulate_one_insn): New.
9745 * timevar.def (TV_DF_MIR): New.
9746 * ree.c: Include bitmap.h
9747 (add_removable_extension): Add an INIT_REGS parameter. Use it
9748 to skip zero-extensions that may get an uninitialized register.
9749 (find_removable_extensions): Compute must-initialized registers
9750 using the MIR dataflow problem. Update the call to
9751 add_removable_extension.
9752 (find_and_remove_re): Call df_mir_add_problem.
9754 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
9756 * common/config/mn10300/mn10300-common.c
9757 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
9758 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
9760 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
9762 * doc/extend.texi (Explicit Register Variables): Simplify and
9763 avoid unnecessary and confusion abbreviations. Update cross
9765 doc/implement-c.tex: Update cross reference.
9767 2015-10-19 Jeff Law <law@redhat.com>
9769 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
9770 that create irreducible loops unless the path elimiantes a multiway
9773 2015-10-19 Richard Biener <rguenther@suse.de>
9775 PR tree-optimization/67975
9776 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
9777 * tree-cfg.c (extract_true_false_controlled_edges): Split out
9778 core worker from ...
9779 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
9780 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
9781 instead of block number for PHIs with two or one args.
9782 (vn_phi_eq): Compare edge predicates of PHIs that are in different
9785 2015-10-19 Richard Biener <rguenther@suse.de>
9787 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
9788 (gimple_stmt_nonnegative_warnv_p): Use it.
9789 * match.pd (CPROJ): New operator list.
9790 (cproj (complex ...)): Move simplifications from ...
9791 * builtins.c (fold_builtin_cproj): ... here.
9793 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9795 * config/i386/i386.c (ix86_expand_vector_move): Use
9796 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
9799 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9801 * doc/invoke.texi: Replace @optindex with @opindex.
9803 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9806 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
9807 arch= is set, clear all bits in x_ix86_isa_flags, except for
9808 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
9810 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
9813 * common.opt (fkeep-static-functions): New option.
9814 * doc/invoke.texi: Document it.
9815 * cgraphunit.c (cgraph_node::finalize_function): Use it.
9817 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9819 * sched-int.h (struct autopref_multipass_data_): Remove offset
9820 field. Add min_offset, max_offset, multi_mem_insn_p fields.
9821 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
9822 (autopref_multipass_init): Use it. Handle PARALLEL sets.
9823 (autopref_rank_data): New function.
9824 (autopref_rank_for_schedule): Use it.
9825 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
9827 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
9830 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
9832 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9834 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
9835 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
9836 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
9837 (STANDARD_STARTFILE_PREFIX_1): New.
9838 (STANDARD_STARTFILE_PREFIX_2): New.
9840 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9842 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
9843 (darwin_driver_init): Note a version-min when provided on the c/l.
9844 * config/darwin.h (%darwin_minversion): Remove.
9845 * config/i386/darwin.h: Likewise.
9846 * config/rs6000/darwin.h: Likewise.
9847 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
9848 rather than an arbitrary constant.
9850 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9852 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
9853 PPC, detect conflicts between -arch and multilib settings. Detect
9854 and warn about conflicts between multiple -arch definitions.
9856 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9858 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
9860 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9862 * lra-constraints.c (add_next_usage_insn): Change argument type
9863 from rtx to rtx_insn *.
9865 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
9867 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
9870 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
9872 * config/tilepro/gen-mul-tables.cc: Adjust include files.
9873 * config/tilegx/mul-tables.c: Regenerate.
9874 * config/tilepro/mul-tables.c: Regenerate.
9876 * config/tilegx/tilegx-c.c: Adjust include files.
9877 * config/tilegx/tilegx.c: Likewise.
9878 * config/tilepro/tilepro-c.c: Likewise.
9879 * config/tilepro/tilepro.c: Likewise.
9880 * config/aarch64/aarch64-builtins.c: Likewise.
9881 * config/aarch64/aarch64.c: Likewise.
9882 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9883 * config/alpha/alpha.c: Likewise.
9884 * config/arc/arc.c: Likewise.
9885 * config/arm/aarch-common.c: Likewise.
9886 * config/arm/arm-builtins.c: Likewise.
9887 * config/arm/arm-c.c: Likewise.
9888 * config/arm/arm.c: Likewise.
9889 * config/avr/avr-c.c: Likewise.
9890 * config/avr/avr-devices.c: Likewise.
9891 * config/avr/avr-log.c: Likewise.
9892 * config/avr/avr.c: Likewise.
9893 * config/bfin/bfin.c: Likewise.
9894 * config/c6x/c6x.c: Likewise.
9895 * config/cr16/cr16.c: Likewise.
9896 * config/cris/cris.c: Likewise.
9897 * config/darwin-c.c: Likewise.
9898 * config/darwin-driver.c: Likewise.
9899 * config/darwin.c: Likewise.
9900 * config/default-c.c: Likewise.
9901 * config/epiphany/epiphany.c: Likewise.
9902 * config/epiphany/mode-switch-use.c: Likewise.
9903 * config/epiphany/resolve-sw-modes.c: Likewise.
9904 * config/fr30/fr30.c: Likewise.
9905 * config/frv/frv.c: Likewise.
9906 * config/ft32/ft32.c: Likewise.
9907 * config/glibc-c.c: Likewise.
9908 * config/h8300/h8300.c: Likewise.
9909 * config/i386/host-cygwin.c: Likewise.
9910 * config/i386/host-mingw32.c: Likewise.
9911 * config/i386/i386-c.c: Likewise.
9912 * config/i386/i386.c: Likewise.
9913 * config/i386/msformat-c.c: Likewise.
9914 * config/i386/winnt-cxx.c: Likewise.
9915 * config/i386/winnt-stubs.c: Likewise.
9916 * config/i386/winnt.c: Likewise.
9917 * config/ia64/ia64-c.c: Likewise.
9918 * config/ia64/ia64.c: Likewise.
9919 * config/iq2000/iq2000.c: Likewise.
9920 * config/lm32/lm32.c: Likewise.
9921 * config/m32c/m32c-pragma.c: Likewise.
9922 * config/m32c/m32c.c: Likewise.
9923 * config/m32r/m32r.c: Likewise.
9924 * config/mcore/mcore.c: Likewise.
9925 * config/mep/mep-pragma.c: Likewise.
9926 * config/mep/mep.c: Likewise.
9927 * config/microblaze/microblaze-c.c: Likewise.
9928 * config/microblaze/microblaze.c: Likewise.
9929 * config/mips/mips-tables.opt
9930 * config/mips/mips.c: Likewise.
9931 * config/mmix/mmix.c: Likewise.
9932 * config/mn10300/mn10300.c: Likewise.
9933 * config/moxie/moxie.c: Likewise.
9934 * config/msp430/msp430-c.c: Likewise.
9935 * config/msp430/msp430.c: Likewise.
9936 * config/nds32/nds32-cost.c: Likewise.
9937 * config/nds32/nds32-fp-as-gp.c: Likewise.
9938 * config/nds32/nds32-intrinsic.c: Likewise.
9939 * config/nds32/nds32-isr.c: Likewise.
9940 * config/nds32/nds32-md-auxiliary.c: Likewise.
9941 * config/nds32/nds32-memory-manipulation.c: Likewise.
9942 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9943 * config/nds32/nds32-predicates.c: Likewise.
9944 * config/nds32/nds32.c: Likewise.
9945 * config/nios2/nios2.c: Likewise.
9946 * config/nvptx/mkoffload.c: Likewise.
9947 * config/nvptx/nvptx.c: Likewise.
9948 * config/pa/pa.c: Likewise.
9949 * config/pdp11/pdp11.c: Likewise.
9950 * config/rl78/rl78-c.c: Likewise.
9951 * config/rl78/rl78.c: Likewise.
9952 * config/rs6000/host-darwin.c: Likewise.
9953 * config/rs6000/rs6000-c.c: Likewise.
9954 * config/rs6000/rs6000-linux.c: Likewise.
9955 * config/rs6000/rs6000.c: Likewise.
9956 * config/rx/rx.c: Likewise.
9957 * config/s390/s390-c.c: Likewise.
9958 * config/s390/s390.c: Likewise.
9959 * config/sh/sh-c.c: Likewise.
9960 * config/sh/sh-mem.cc: Likewise.
9961 * config/sh/sh.c: Likewise.
9962 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9963 * config/sh/sh_treg_combine.cc: Likewise.
9964 * config/sol2-c.c: Likewise.
9965 * config/sol2-cxx.c: Likewise.
9966 * config/sol2-stubs.c: Likewise.
9967 * config/sol2.c: Likewise.
9968 * config/sparc/sparc-c.c: Likewise.
9969 * config/sparc/sparc.c: Likewise.
9970 * config/spu/spu-c.c: Likewise.
9971 * config/spu/spu.c: Likewise.
9972 * config/stormy16/stormy16.c: Likewise.
9973 * config/v850/v850-c.c: Likewise.
9974 * config/v850/v850.c: Likewise.
9975 * config/vax/vax.c: Likewise.
9976 * config/visium/visium.c: Likewise.
9977 * config/vms/vms-c.c: Likewise.
9978 * config/vms/vms.c: Likewise.
9979 * config/vxworks.c: Likewise.
9980 * config/winnt-c.c: Likewise.
9981 * config/xtensa/xtensa.c: Likewise.
9983 2015-10-16 Christian Bruel <christian.bruel@st.com>
9986 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
9987 (FUNCTION_BOUNDARY_P): New macro:
9988 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
9990 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
9991 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
9992 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
9993 * function.c (allocate_struct_function): Call
9994 relayout_function hook.
9995 * passes.c (rest_of_decl_compilation): Likewise.
9997 2015-10-16 Christian Bruel <christian.bruel@st.com>
10000 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
10001 * config/arm/arm.c (arm_option_override_internal): Call
10002 arm_override_options_after_change_1.
10003 (arm_override_options_after_change): New function.
10004 (arm_override_options_after_change_1): Likewise.
10005 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
10007 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10010 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
10011 empty constructors.
10013 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
10015 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
10016 argument is an ADDR_EXPR.
10018 2015-10-16 Richard Biener <rguenther@suse.de>
10020 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
10021 and get rid of force_gimple_operand_gsi.
10022 (gimple_fold_builtin_memory_chk): Likewise.
10023 (gimple_fold_builtin_stxcpy_chk): Likewise.
10024 (rewrite_to_defined_overflow): Likewise.
10025 (gimple_convert_to_ptrofftype): New function.
10026 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
10028 2015-10-16 Richard Biener <rguenther@suse.de>
10030 * tree-nested.h (build_addr): Adjust prototype.
10031 * tree-nested.c (build_addr): Remove context argument and use
10033 (get_static_chain): Adjust calls to build_addr.
10034 (convert_nl_goto_reference): Likewise.
10035 (convert_tramp_reference_op): Likewise.
10036 (finalize_nesting_tree_1): Likewise.
10037 * value-prof.c (gimple_ic): Likewise.
10038 * gimple-low.c (lower_builtin_setjmp): Likewise.
10039 * tree-parloops.c (take_address_of): Likewise.
10040 (create_call_for_reduction_1): Likewise.
10041 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
10042 (gimple_gen_ic_func_profiler): Likewise.
10044 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10046 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
10047 empty constructors.
10049 2015-10-16 Michael Collison <michael.collison@linaro.org>
10050 Andrew Pinski <andrew.pinski@caviumnetworks.com>
10052 * match.pd ((x < y) && (x < z) -> x < min (y,z),
10053 (x > y) and (x > z) -> x > max (y,z))
10055 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
10056 Szabolcs Nagy <szabolcs.nagy@arm.com>
10058 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
10059 (DYNAMIC_LINKER): Renamed to ...
10060 (GLIBC_DYNAMIC_LINKER): This.
10061 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
10063 2015-10-15 Marek Polacek <polacek@redhat.com>
10065 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
10066 gimple_call_builtin instead of is_gimple_call.
10068 2015-10-15 Richard Biener <rguenther@suse.de>
10070 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
10072 2015-10-15 Richard Biener <rguenther@suse.de>
10074 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
10075 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
10076 * tree-vect-loop.c (get_initial_def_for_induction): Drop
10077 use of force_gimple_operand in favor of gimple_build.
10078 Use vect_get_new_ssa_name.
10079 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
10080 (vectorizable_mask_load_store): Likewise.
10081 (vectorizable_call): Likewise.
10082 (vectorizable_store): Likewise.
10083 (vectorizable_load): Likewise.
10084 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
10086 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
10088 PR tree-optimization/67945
10089 * tree-pass.h (PROP_gimple_opt_math): New property flag.
10090 * generic-match-head.c (canonicalize_math_p): New function.
10091 * gimple-match-head.c: Include tree-pass.h.
10092 (canonicalize_math_p): New function.
10093 * match.pd: Group math built-in rules into simplifications
10094 and canonicalizations. Guard the latter with canonicalize_math_p.
10095 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
10096 PROP_gimple_opt_math property.
10098 2015-10-15 Marek Polacek <polacek@redhat.com>
10100 PR tree-optimization/67953
10101 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
10103 2015-10-15 Jiong Wang <jiong.wang@arm.com>
10105 * config.gcc: Recognize "." in architecture base name for AArch64.
10107 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
10109 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
10111 * config/mips/mips.c (mips_setup_incoming_varargs): Use
10112 ROUND_DOWN to calculate off.
10113 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
10114 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
10117 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
10119 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
10121 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
10122 Torvald Riegel <triegel@redhat.com>
10125 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
10126 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
10127 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
10128 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
10129 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
10130 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
10131 trechkpt, treclaim, tsr, ttest): New define_expands.
10132 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
10133 __TM_FENCE__ for htm.
10134 * doc/extend.texi: Update documentation for htm builtins.
10136 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
10139 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
10140 REG_CFA_EXPRESSION to aligned SSE stores.
10142 2015-10-14 Jeff Law <law@redhat.com>
10144 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
10145 num_threaded_edges for successful FSM threads too.
10147 2015-10-14 Richard Biener <rguenther@suse.de>
10149 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
10150 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
10151 (vect_get_vec_def_for_operand): Remove unused parameter.
10152 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
10153 (vect_create_epilog_for_reduction): Likewise.
10154 (vectorizable_reduction): Likewise.
10155 (vectorizable_live_operation): Likewise.
10156 * tree-vect-patterns.c (type_conversion_p): Likewise.
10157 (vect_recog_vector_vector_shift_pattern): Likewise.
10158 (check_bool_pattern): Likewise.
10159 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10160 (vect_analyze_slp_cost_1): Likewise.
10161 * tree-vect-stmts.c (process_use): Likewise.
10162 (vect_get_vec_def_for_operand): Do not handle reductions.
10163 (vect_get_vec_defs): Adjust.
10164 (vectorizable_mask_load_store): Likewise.
10165 (vectorizable_call): Likewise.
10166 (vectorizable_simd_clone_call): Likewise.
10167 (vect_get_loop_based_defs): Likewise.
10168 (vectorizable_conversion): Likewise.
10169 (vectorizable_assignment): Likewise.
10170 (vectorizable_shift): Likewise.
10171 (vectorizable_operation): Likewise.
10172 (vectorizable_store): Likewise.
10173 (vectorizable_load): Likewise.
10174 (vect_is_simple_cond): Likewise.
10175 (vectorizable_condition): Likewise.
10176 (vect_is_simple_use): Remove unused parameters.
10177 (vect_is_simple_use_1): Adjust and rename.
10179 2015-10-14 Richard Biener <rguenther@suse.de>
10181 PR tree-optimization/67915
10182 * match.pd: Handle comparisons of addresses of STRING_CSTs.
10183 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
10184 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
10185 stmt folding in favor of GIMPLE one.
10187 2015-10-14 Marek Polacek <polacek@redhat.com>
10189 PR tree-optimization/67815
10190 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
10191 (reassociate_bb): Call it.
10193 2015-10-14 Richard Biener <rguenther@suse.de>
10195 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10196 Reset info at start.
10197 (vect_analyze_group_access_1): Add debug print.
10198 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
10199 (vect_compute_single_scalar_iteration_cost): ... to this.
10200 (vect_analyze_loop_2): Adjust.
10201 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
10202 * tree-vectorizer.h: ... here.
10203 (add_stmt_info_to_vec): Remove.
10204 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
10206 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
10208 * targhooks.c (default_target_option_pragma_parse): Do not warn if
10209 called on behalf of "#pragma GCC pop_options".
10211 2015-10-14 Tom de Vries <tom@codesourcery.com>
10213 * cfganal.c (verify_no_unreachable_blocks): New function.
10214 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
10215 verify_no_unreachable_blocks.
10216 cfganal.h (verify_no_unreachable_blocks): Declare.
10218 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
10220 * common.opt: Add flag_checking.
10221 * system.h (CHECKING_P): Define.
10223 2015-10-13 Jakub Jelinek <jakub@redhat.com>
10224 Aldy Hernandez <aldyh@redhat.com>
10225 Ilya Verbin <ilya.verbin@intel.com>
10227 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
10228 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
10229 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
10230 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
10231 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
10232 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
10233 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
10234 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
10235 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
10236 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
10237 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
10238 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
10239 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
10240 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
10241 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
10242 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
10243 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
10244 (struct cgraph_simd_clone_arg): Adjust comment.
10245 * coretypes.h (struct gomp_ordered): New forward decl.
10246 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
10247 set critical clauses to it.
10248 (gimple_build_omp_ordered): Return gomp_ordered * instead of
10249 gimple *. Add CLAUSES argument, set ordered clauses to it.
10250 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
10251 GIMPLE_OMP_ORDERED.
10252 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
10253 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
10254 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
10255 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
10256 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
10257 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
10258 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
10259 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
10261 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
10262 (gomp_critical): Add clauses field.
10263 (gomp_ordered): New struct.
10264 (is_a_helper <gomp_ordered *>::test): New inline.
10265 (gimple_build_omp_critical): Add CLAUSES argument.
10266 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
10267 instead of gimple *.
10268 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
10269 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
10270 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
10271 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
10273 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
10274 (dump_gimple_omp_target): Handle enter data and exit data.
10275 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
10276 (dump_gimple_omp_critical): Print clauses.
10277 (dump_gimple_omp_ordered): New function.
10278 (dump_gimple_omp_task): Handle taskloop.
10279 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
10280 GIMPLE_OMP_ORDERED.
10281 * gimple-walk.c (walk_gimple_op): Walk clauses on
10282 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
10283 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
10284 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
10285 (struct gimplify_omp_ctx): Add loop_iter_var,
10286 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
10287 and target_firstprivatize_array_bases fields.
10288 (delete_omp_context): Release loop_iter_var.
10289 (gimplify_bind_expr): Handle ORT_NONE.
10290 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
10291 ORT_COMBINED_TARGET.
10292 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
10293 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
10294 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
10295 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
10296 ctx->target_map_scalars_firstprivate.
10297 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
10298 data sharing clauses. For data sharing clause with VLA decl
10299 on omp target/target data don't add firstprivate for the pointer.
10300 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
10301 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
10302 the addition of ORT_COMBINED_TARGET.
10303 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
10304 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
10305 pointers as zero length array sections and
10306 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
10308 (omp_check_private): Handle omp_member_access_dummy_var vars.
10309 (find_decl_expr): New function.
10310 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
10311 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
10312 Handle OMP_CLAUSE_GANG separately. Handle
10313 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10314 clauses. Diagnose linear clause on combined
10315 distribute {, parallel for} simd construct, unless it is the loop
10316 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
10317 Handle map clauses with COMPONENT_REF. Initialize
10318 ctx->target_map_scalars_firstprivate,
10319 ctx->target_firstprivatize_array_bases and
10320 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
10321 linear clause even to target region if combined. Remove
10322 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
10323 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
10324 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
10325 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
10326 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
10327 For linear clause on worksharing loop combined with parallel add
10328 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
10329 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
10330 omp_member_access_dummy_var vars. Add lastprivate clause to outer
10331 taskloop if needed.
10332 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
10333 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
10334 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
10336 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
10337 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
10338 in target body. Handle removal of struct mapping if struct is not
10339 seen in target body. Remove GOMP_MAP_STRUCT map clause on
10340 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
10341 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
10342 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
10343 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
10344 clause appear together. Handle
10345 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
10346 clause if it has map-type-modifier always. Handle
10347 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10349 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
10350 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
10352 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
10353 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
10354 iterators in doacross loops.
10355 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
10356 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
10357 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
10358 for the addition of ORT_COMBINED_TARGET.
10359 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
10360 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
10361 and OMP_TARGET_EXIT_DATA.
10362 (gimplify_omp_ordered): New function.
10363 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
10364 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
10365 Gimplify clauses on OMP_CRITICAL.
10366 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
10367 expand_GOMP_SIMD_ORDERED_END): New functions.
10368 * internal-fn.def (GOMP_SIMD_ORDERED_START,
10369 GOMP_SIMD_ORDERED_END): New internal functions.
10370 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
10371 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
10372 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
10373 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
10374 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
10375 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
10376 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
10377 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
10378 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
10379 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
10380 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
10381 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
10382 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
10383 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
10385 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
10386 GOMP_target_data_41, adjust type.
10387 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
10388 GOMP_target_update_41, adjust type.
10389 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
10391 (struct omp_for_data): Add ordered and simd_schedule fields.
10392 (omp_member_access_dummy_var, unshare_and_remap_1,
10393 unshare_and_remap, is_taskloop_ctx): New functions.
10394 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
10395 (extract_omp_for_data): Handle taskloops and doacross loops
10396 and simd schedule modifier.
10397 (omp_adjust_chunk_size): New function.
10398 (get_ws_args_for): Use it.
10399 (lookup_sfield): Change first argument to splay_tree_key,
10400 add overload with first argument tree.
10401 (maybe_lookup_field): Likewise.
10402 (use_pointer_for_field): Handle omp_member_access_dummy_var.
10403 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
10404 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
10405 (build_outer_var_ref): Add LASTPRIVATE argument, handle
10406 taskloops and omp_member_access_dummy_var vars.
10407 (build_sender_ref): Change first argument to splay_tree_key,
10408 add overload with first argument tree.
10409 (install_var_field): For mask & 8 use &DECL_UID as key instead
10410 of the tree itself.
10411 (fixup_child_record_type): Const qualify *.omp_data_i.
10412 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
10413 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
10414 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
10415 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
10416 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
10417 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
10418 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
10420 (add_taskreg_looptemp_clauses): New function.
10421 (scan_omp_parallel): Use it.
10422 (scan_omp_task): Likewise.
10423 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10424 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
10425 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10426 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
10427 sandwiched taskloop constructs. Type check
10428 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
10429 region. Diagnose depend(source) or depend(sink:...) on
10430 target constructs or task/taskloop.
10431 (handle_simd_reference): Use get_name.
10432 (lower_rec_input_clauses): Likewise. Ignore all
10433 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
10434 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
10435 before passing it to omp_clause_{default,copy}_ctor. Handle
10436 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
10437 lastprivate_firstprivate flag for linear that needs copyin and
10438 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
10439 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
10440 on taskloop lookup decl in outer context. Pass true to
10441 build_outer_var_ref lastprivate argument. Handle
10442 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
10443 outside of outer taskloop for.
10444 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
10446 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
10447 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
10448 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
10449 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
10450 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
10451 abstract origin. Handle omp_member_access_dummy_var vars.
10452 (expand_parallel_call): Use expand_omp_build_assign.
10453 (expand_task_call): Handle taskloop construct expansion. Add
10454 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
10455 integers. Add priority argument to GOMP_task* calls. Or in
10456 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
10458 (expand_omp_build_assign): Add prototype. Add AFTER
10459 argument, if true emit statements after *GSI_P and continue linking.
10460 (expand_omp_taskreg): Adjust expand_task_call caller.
10461 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
10462 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
10463 zero_iter2_bb and first_zero_iter2 arguments, handle computation
10464 of counts even for ordered loops.
10465 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
10466 (expand_omp_ordered_source, expand_omp_ordered_sink,
10467 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
10469 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
10470 clauses on worksharing loop. Handle DOACROSS loop expansion.
10471 (expand_omp_for_static_nochunk): Handle linear clauses on
10472 worksharing loop. Adjust expand_omp_for_init_counts
10474 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
10475 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
10476 expand_omp_for_init_counts callers.
10477 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
10479 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
10480 Handle doacross loops.
10481 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10482 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
10483 GOMP_target_{41,update_41,enter_exit_data} libcalls.
10484 (expand_omp): Don't expand ordered depend constructs here, record
10485 ord_stmt instead for later expand_omp_for_generic.
10486 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10487 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
10488 clause as stand-alone directive.
10489 (lower_omp_ordered_clauses): New function.
10490 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
10491 don't lower anything.
10492 (lower_omp_for_lastprivate): Use last _looptemp_ clause
10493 on taskloop for comparison.
10494 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
10495 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
10496 expansion for linear adjustments.
10497 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10498 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
10499 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
10500 to tree * pointing to the stmt's clauses.
10501 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
10502 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10503 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
10504 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
10505 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
10506 clauses. Always use short kind and 8-bit align shift.
10507 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
10508 (struct lower_omp_regimplify_operands_data): New type.
10509 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
10511 (lower_omp_1): Use lower_omp_regimplify_operands instead of
10512 gimple_regimplify_operands.
10513 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10514 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
10515 clause as stand-alone directive.
10516 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
10517 (simd_clone_mangle): Mangle the various linear kinds
10519 (simd_clone_adjust_argument_types): Handle
10520 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
10521 (simd_clone_init_simd_arrays): Don't do anything for uval.
10522 (simd_clone_adjust): Handle
10523 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
10524 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
10525 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
10526 * omp-low.h (omp_member_access_dummy_var): New prototype.
10527 * passes.def (pass_simduid_cleanup): Schedule another copy of the
10528 pass after all optimizations.
10529 * tree.c (omp_clause_code_name): Add entries for
10530 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10531 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10532 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
10533 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
10534 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
10535 OMP_CLAUSE_REDUCTION 5 arguments. Handle
10536 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10537 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
10539 * tree-core.h (enum omp_clause_linear_kind): New.
10540 (struct tree_omp_clause): Change type of map_kind
10541 from unsigned char to unsigned int. Add subcode.if_modifier
10542 and subcode.linear_kind fields.
10543 (enum omp_clause_code): Add
10544 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10545 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10546 (OMP_CLAUSE_REDUCTION): Document
10547 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10548 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
10549 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
10550 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
10552 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
10554 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
10556 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
10557 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
10559 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
10560 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
10561 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
10562 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
10563 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
10564 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
10565 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
10566 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
10567 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
10568 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
10569 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
10570 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
10571 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
10572 * tree-inline.c (remap_gimple_stmt): Handle clauses on
10573 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
10574 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
10575 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
10576 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10577 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10578 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10579 (convert_local_omp_clauses): Likewise.
10580 * tree-pretty-print.c (dump_omp_clause): Handle
10581 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10582 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10583 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
10584 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
10585 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
10586 GOMP_MAP_FORCE_DEALLOC. Handle
10587 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
10588 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
10589 and clauses on OMP_ORDERED and OMP_CRITICAL.
10590 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
10591 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
10592 (vectorize_loops): Adjust comments.
10593 (pass_simduid_cleanup::execute): Likewise.
10594 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
10595 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
10596 * wide-int.h (wi::gcd): New.
10598 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10600 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
10601 (ix86_function_arg_advance): Ditto.
10602 (ix86_function_arg): Ditto.
10603 (ix86_gimplify_va_arg): Ditto.
10604 (ix86_class_max_nregs): Ditto.
10605 (inline_memory_move_cost): Ditto.
10606 (ix86_set_reg_reg_cost): Ditto.
10607 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
10609 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
10611 PR middle-end/67912
10612 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
10614 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10616 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
10617 ROUND_UP macro and UNITS_PER_WORD * 2.
10618 * config/sparc/sparc.c (sparc_compute_frame_size):
10619 Use ROUND_UP and ROUND_DOWN macros where applicable.
10620 (function_arg_record_value, function_arg_record_value_1)
10621 (function_arg_record_value_1): Ditto.
10622 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
10623 alignment to double-word.
10624 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
10625 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
10628 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
10630 * rtl.h (print_insn): Fix prototype.
10632 2015-10-13 Tom de Vries <tom@codesourcery.com>
10634 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
10635 -1. Add assert that returned entry matches phi argument.
10636 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
10637 free_stmt_vec_info_vec ...
10638 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
10641 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
10643 PR tree-optimization/67909, 67947
10644 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
10645 really skip the inner loop.
10647 2015-10-13 Jeff Law <law@redhat.com>
10649 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10650 Allow single block jump threading paths.
10652 2015-10-13 Tom de Vries <tom@codesourcery.com>
10654 PR tree-optimization/67476
10655 * doc/invoke.texi (@item parloops-schedule): New item.
10656 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
10657 * tree-parloops.c: Include params-enum.h.
10658 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
10660 2015-10-13 Tom de Vries <tom@codesourcery.com>
10662 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
10663 * params-enum.h: New file.
10664 * opts.c (handle_param): Handle case that param arg is a string.
10665 * params-list.h: Handle DEFPARAMENUM5 in params.def.
10666 * params.c (find_param): New function, factored out of ...
10667 (set_param_value): ... here.
10668 (param_string_value_p): New function.
10669 * params.h (struct param_info): Add value_names field.
10670 (find_param, param_string_value_p): Declare.
10672 2015-10-13 Tom de Vries <tom@codesourcery.com>
10674 PR tree-optimization/67476
10675 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
10677 2015-10-13 Richard Biener <rguenther@suse.de>
10679 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
10680 the data dependence vector.
10681 (vect_peeling_hash_insert): Get the peeling hash table as argument.
10682 (vect_peeling_hash_get_lowest_cost): Likewise.
10683 (vect_enhance_data_refs_alignment): Adjust.
10684 (struct _vect_peel_info, struct _vect_peel_extended_info,
10685 struct peel_info_hasher): Move from ...
10686 * tree-vectorizer.h: ... here.
10687 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
10688 (LOOP_VINFO_PEELING_HTAB): Likewise.
10689 (struct _loop_vec_info): Remove min_profitable_iters and
10690 peeling_htab members.
10691 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
10693 (destroy_loop_vec_info): Adjust.
10694 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
10695 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
10696 to estimate alias versioning cost.
10697 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
10699 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
10701 * real.h (real_isinteger): Declare.
10702 * real.c (real_isinteger): New function.
10703 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
10704 if y is an even integer.
10706 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10709 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10710 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10711 counts when these are more informative.
10713 2015-10-12 Jeff Law <law@redhat.com>
10715 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
10716 (fsm_find_control_stmt_paths): Change name of first argument to
10717 more accurately relfect what it really is. Handle simplification
10718 of GIMPLE_COND after finding a thread path for NAME.
10719 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
10720 nontrivial conditions to be handled by FSM threader.
10721 (thread_through_normal_block): Extract the name to looup via
10722 FSM threader from COND_EXPR.
10724 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
10725 restriction that traced SSA_NAME is a user variable.
10727 2015-10-12 Tom de Vries <tom@codesourcery.com>
10729 PR tree-optimization/67476
10730 * omp-low.c (expand_omp_for_generic): Add missing phis.
10732 2015-10-12 Tom de Vries <tom@codesourcery.com>
10734 PR tree-optimization/67476
10735 * omp-low.c (expand_omp_for_generic): Handle simple latch.
10737 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
10739 * config/aarch64/aarch64-simd-builtins.def: Update builtins
10740 tables: add tbl3 and tbx4.
10741 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
10742 (aarch64_tbx4v8qi): New.
10743 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
10744 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
10745 Rewrite using builtin functions.
10746 * config/aarch64/iterators.md (UNSPEC_TBX): New.
10748 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
10750 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
10752 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
10753 Use ROUND_UP and ROUND_DOWN macros where applicable.
10754 (rs6000_darwin64_record_arg_flush): Ditto.
10755 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
10756 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
10759 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
10761 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
10762 (AARCH64_ROUND_DOWN): Ditto.
10763 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
10765 2015-10-12 Richard Biener <rguenther@suse.de>
10768 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
10769 code that analyzes IVs on each stmt but in a cheaper way avoiding
10770 quadratic behavior.
10772 2015-10-12 Nick Clifton <nickc@redhat.com>
10774 * config/msp430/msp430.c (msp430_mcu_names): Rename to
10775 msp430_mcu_data, add fields for ISA and hardware multiply
10776 support. Import latest data from the devices.csv file.
10777 (msp430_override_option): Use the data from the new array.
10778 (msp430_use_f5_series_hwmult): Likewise.
10779 (use_32bit_hwmult): Likewise.
10780 (msp430_no_hwmult): Likewise.
10781 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
10783 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
10784 not recognised then no hardware multiply support is assumed and
10785 that only the MSP430 ISA is allowed.
10787 2015-10-12 Richard Biener <rguenther@suse.de>
10789 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
10791 (vect_analyze_loop_2): ... here.
10793 2015-10-11 Jason Merrill <jason@redhat.com>
10796 * expr.c (store_field): Call store_constructor directly when
10797 storing a CONSTRUCTOR into a target smaller than its type.
10798 Guard against unsafe bitwise copy.
10800 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10802 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10803 counts when these are more informative.
10805 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10807 * tree-profile.c (tree_profiling): Do not clear
10808 pure/const when not instrumenting.
10809 (pass tree_profile): Add dump of symtab.
10811 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10813 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
10815 (fold_addr_of_array_ref_difference): Likewise.
10817 2015-10-11 Jeff Law <law@redhat.com>
10819 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
10820 tree-ssa-threadbackward.c.
10821 (fsm_find_control_statement_thread_paths): Likewise.
10822 (thread_through_normal_block): Break out FSM bits and move them
10823 into a new function in tree-ssa-threadbackward.c. Call new function
10825 Minimize header file usage.
10826 * tree-ssa-threadbackward.h: New file.
10827 * tree-ssa-threadbackward.c: Likewise.
10828 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
10830 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
10832 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
10834 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
10836 PR rtl-optimization/67864
10837 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
10838 fallthrough edges for conditional jumps. Don't sort candidate
10839 edges if not optimizing for speed.
10841 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10843 * defaults.h (REVERSE_CONDITION): New default definition.
10844 * jump.c (reversed_comparison_code_parts): Adjust.
10846 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10848 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
10849 check HARD_FRAME_POINTER_IS_ARG_POINTER.
10851 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10853 * defaults.h (FRAME_ADDR_RTX): New default definition.
10854 * builtins.c (expand_builtin_return_addr): Adjust.
10856 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10858 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
10859 * builtins.c (expand_builtin_return_addr): Adjust.
10861 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10863 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
10864 * builtins.c (expand_builtin_return_addr): Adjust.
10865 * doc/tm.texi: Likewise.
10866 * doc/tm.texi.in: Likewise.
10867 * except.c (expand_builtin_unwind_init): Likewise.
10869 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10871 * builtins.c (expand_builtin_return_addr): Adjust.
10872 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
10874 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
10876 * tree.c (type_with_interoperable_signedness): New.
10877 (gimple_canonical_types_compatible_p): Use it.
10878 * tree.h (type_with_interoperable_signedness): Declare
10880 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
10882 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
10883 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
10884 when OEP_ADDRESS_OF is se.
10886 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
10887 Sebastian Pop <s.pop@samsung.com>
10889 * graphite-dependences.c (scop_get_dependences): Add dump of the
10890 data dependence graph.
10891 * graphite-poly.c (print_isl_union_map): New.
10892 (debug_isl_union_map): New.
10893 * graphite-poly.h (print_isl_union_map): Declare.
10894 (debug_isl_union_map): Declare.
10896 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
10897 Sebastian Pop <s.pop@samsung.com>
10899 * graphite-poly.c (print_iteration_domain): Remove verbosity.
10900 Remove OpenScop formatting.
10901 (print_iteration_domains): Same.
10902 (debug_iteration_domain): Same.
10903 (debug_iteration_domains): Same.
10906 (dump_gbb_cases): Same.
10907 (dump_gbb_conditions): Same.
10908 (print_pdrs): Same.
10909 (debug_pdrs): Same.
10910 (print_pbb_body): Same.
10912 (print_scop_params): Same.
10913 (print_scop_context): Same.
10914 (print_scop): Same.
10915 (debug_pbb_domain): Same.
10917 (debug_scop_context): Same.
10918 (debug_scop): Same.
10919 (debug_scop_params): Same.
10920 * graphite-poly.h: Same.
10921 * graphite.c (graphite_transform_loops): Same.
10923 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10925 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
10926 call that isn't needed.
10928 2015-10-09 Jeff Law <law@redhat.com>
10930 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
10931 rather than moving each name to the freelist individually.
10933 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
10935 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
10936 * frame-header-opt.c: New file.
10937 * config/mips/mips-proto.h (mips_register_frame_header_opt):
10939 * config/mips/mips.c (mips_compute_frame_info): Check
10940 optimize_call_stack flag.
10941 (mips_option_override): Register new frame_header_opt pass.
10942 (mips_frame_info, mips_int_mask, mips_shadow_set,
10943 machine_function): Move these types to...
10944 * config/mips/mips.h: here.
10945 (machine_function): Add does_not_use_frame_header and
10946 optimize_call_stack fields.
10947 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
10948 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
10949 Document new flags.
10950 * config/mips/mips.opt (mframe-header-opt): Add new option.
10952 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
10954 * config/i386/i386.c
10955 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
10956 ROUND_DOWN where applicable.
10958 2015-10-09 Jeff Law <law@redhat.com>
10960 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
10963 2015-10-09 Renlin Li <renlin.li@arm.com>
10965 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
10966 operands[0] and operands[2].
10967 (neon_vtrn<mode>_insn): Likewise.
10968 (neon_vzip<mode>_insn): Likewise.
10970 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
10972 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
10973 ((X & C2) << C1): Expand to...
10974 (X {&,^,|} C2 << C1): ...This.
10975 ((X & C2) >> C1): Expand to...
10976 (X {&,^,|} C2 >> C1): ...This.
10978 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
10981 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
10982 Adjust embedded rounding/SAE specifier position.
10983 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
10984 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
10985 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
10986 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
10987 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
10989 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
10991 2015-10-09 Martin Jambor <mjambor@suse.cz>
10993 tree-optimization/67794
10994 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
10995 between types of state,ents but accept original definitions as a
10997 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
10998 iterate over definitions.
11000 2015-10-09 James Norris <jnorris@codesourcery.com>
11002 * config/rs6000/rs6000.c (rs6000_offload_options): New.
11003 (TARGET_OFFLOAD_OPTIONS): New.
11005 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
11007 PR middle-end/67891
11008 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
11010 PR middle-end/67766
11011 * function.c (expand_function_end): Move return value
11012 promotion past the handling of PARALLELs and CONCATs.
11014 PR rtl-optimization/67828
11015 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
11016 (tree_may_unswitch_on): Don't unswitch on expressions
11017 involving undefined values.
11019 2015-10-09 Richard Biener <rguenther@suse.de>
11021 * genmatch.c (print_operand): Fix formatting.
11022 (dt_node::append_simplify): Warn for multiple simplifiers
11023 that match the same pattern.
11024 * match.pd (log (exp @0)): Remove duplicates.
11026 2015-10-09 Richard Biener <rguenth@suse.de>
11029 * gimple-fold.c (optabs-query.h): Include
11030 (gimple_fold_builtin_memory_op): Allow unaligned stores
11031 when movmisalign_optabs are available.
11033 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11036 * config/arm/arm.md (movmisalign<mode>): New.
11037 * config/arm/iterators.md (HSI): New.
11039 2015-10-09 Richard Biener <rguenther@suse.de>
11041 PR tree-optimization/67891
11042 * gimple-match.h (gimple_simplified_result_is_gimple_val):
11044 (gimple_resimplify1): Declare.
11045 (gimple_resimplify2): Likewise.
11046 (gimple_resimplify3): Likewise.
11047 * gimple-match-head.c (gimple_resimplify1): Export.
11048 (gimple_resimplify2): Likewise.
11049 (gimple_resimplify3): Likewise.
11050 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
11051 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11052 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
11053 to avoid creating stmts without VN info.
11055 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
11057 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
11060 2015-10-08 Jeff Law <law@redhat.com>
11062 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
11063 and release_ssa_name in two places.
11064 (gimple_stringop_fixed_value): Similarly.
11066 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
11069 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
11070 unlink_stmt_vdef and release_ssa_name_fn.
11072 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
11075 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
11077 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
11078 SSE register save area to 16 bytes only if the incoming stack
11079 boundary is no less than 16 bytes.
11081 2015-10-08 Jeff Law <law@redhat.com>
11083 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
11084 release_ssa_name. Fix typo in comment.
11086 2015-10-08 Nathan Sidwell <nathan@acm.org>
11088 * config/nvptx/nvptx.h (struct machine_function): Add comment.
11089 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
11090 may return pointer as well as in memory.
11091 (nvptx_output_return): Likewise.
11093 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
11095 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
11096 (fold_builtin_1): Update accordingly. Handle constant arguments here.
11097 * match.pd: Add rules previously handled by fold_builtin_sqrt
11098 and fold_builtin_cbrt.
11100 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
11102 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
11103 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
11104 * fold-const.h (tree_unary_nonnegative_warnv_p)
11105 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11106 (tree_expr_nonnegative_warnv_p): Add depth parameters.
11107 * fold-const.c: Include gimple-fold.h and params.h.
11108 (tree_ssa_name_nonnegative_warnv_p): New function.
11109 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
11110 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11111 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
11112 Add a depth parameter and increment it for recursive calls to
11113 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
11114 to handle SSA names.
11115 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
11116 (gimple_stmt_nonnegative_warnv_p): Declare.
11117 * tree-vrp.c (remove_range_assertions): Remove assert that condition
11118 cannot be proven false.
11119 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
11120 (gimple_stmt_nonnegative_warnv_p): Move to...
11121 * gimple-fold.c: ...here. Add depth parameters and pass them
11122 down to the tree routines. Accept statements that aren't
11123 assignments or calls but just return false for them.
11124 (gimple_val_nonnegative_real_p): Delete.
11125 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
11126 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
11127 Check HONOR_NANs first.
11129 2015-10-08 Martin Jambor <mjambor@suse.cz>
11131 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
11134 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
11136 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
11137 in the tail of outer-loop.
11139 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
11141 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
11144 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
11146 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
11147 "cfghooks.h", add prototypes for introduced new functions.
11148 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
11149 checks on ability of loop unswitching to tree_unswitch_single_loop;
11150 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
11151 on innermost loop check.
11152 (tree_unswitch_single_loop): Add all required checks on ability of
11153 loop unswitching under zero recursive level guard.
11154 (tree_unswitch_outer_loop): New function.
11155 (find_loop_guard): Likewise.
11156 (empty_bb_without_guard_p): Likewise.
11157 (used_outside_loop_p): Likewise.
11158 (get_vop_from_header): Likewise.
11159 (hoist_guard): Likewise.
11160 (check_exit_phi): Likewise.
11162 2015-10-08 Marek Polacek <polacek@redhat.com>
11164 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
11167 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11170 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
11171 create_tmp_var_raw instead of create_tmp_var.
11173 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
11175 * expr.c (store_expr_with_bounds): Handle aggregate moves from
11177 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
11178 to define gimple type system; compare aggregates only by size.
11180 2015-10-07 Jeff Law <law@redhat.com>
11182 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
11183 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
11184 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
11187 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
11188 Sebastian Pop <s.pop@samsung.com>
11190 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
11191 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
11192 (generate_isl_schedule): Same.
11193 * graphite-optimize-isl.c (scop_get_domains): Same.
11194 (apply_schedule_map_to_scop): Same.
11195 * graphite-poly.c (print_iteration_domains): Same.
11196 (remove_gbbs_in_scop): Same.
11199 (print_scop): Same.
11200 * graphite-poly.h (struct scop): Rename bbs to pbbs.
11201 (SCOP_BBS): Remove.
11202 * graphite-scop-detection.c (compare_bb_depths): Remove.
11203 (graphite_sort_dominated_info): Remove.
11204 (try_generate_gimple_bb): Move out of scop_detection.
11205 (all_non_dominated_preds_marked_p): Remove.
11206 (build_scop_bbs_1): Remove.
11207 (build_scop_bbs): Remove.
11208 (nb_pbbs_in_loops): Do not use SCOP_BBS.
11209 (find_scop_parameters): Same.
11210 (sese_dom_walker): Rename gather_bbs.
11211 (before_dom_children): Call try_generate_gimple_bb and collect gbb
11213 (build_scops): Call gather_bbs.
11214 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
11215 (add_conditions_to_constraints): Same.
11216 (build_scop_iteration_domain): Same.
11217 (build_scop_drs): Same.
11218 (new_pbb_from_pbb): Same.
11219 * sese.c (new_sese_info): Create bbs.
11220 * sese.h (struct sese_info_t): Add bbs.
11222 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
11224 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
11225 encoding in 64-bit mode.
11227 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
11230 * config/i386/i386.c (ix86_option_override_internal): Always use
11231 8-byte minimum stack boundary in 64-bit mode.
11232 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
11233 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
11234 Add a REG_CFA_EXPRESSION note if needed.
11235 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
11236 (ix86_handle_force_align_arg_pointer_attribute): New.
11237 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
11238 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
11239 with ix86_handle_force_align_arg_pointer_attribute.
11240 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
11242 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
11243 Sebastian Pop <s.pop@samsung.com>
11245 * graphite-scop-detection.c (parameter_index_in_region): Remove
11246 use of SESE_ADD_PARAMS.
11247 (find_scop_parameters): Same.
11248 * sese.c (new_sese_info): Same.
11249 * sese.h (struct sese_info_t): Remove add_params.
11250 (SESE_ADD_PARAMS): Remove.
11252 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
11253 Sebastian Pop <s.pop@samsung.com>
11255 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
11258 (copy_internal_parameters): Same.
11259 (translate_isl_ast_to_gimple): Use an sese_l.
11260 (build_iv_mapping): Same.
11261 * graphite-poly.c (new_sese): Rename new_sese_info.
11262 (free_sese): Rename free_sese_info.
11263 * graphite-poly.h (struct scop): Use an sese_info_p.
11264 (scop_set_region): Same.
11265 * graphite-scop-detection.c (struct sese_l): Moved...
11266 (get_entry_bb): Moved...
11267 (get_exit_bb): Moved...
11268 (parameter_index_in_region_1): Use an sese_info_p.
11269 (parameter_index_in_region): Same.
11270 (scan_tree_for_params): Same.
11271 (find_params_in_bb): Same.
11272 (sese_dom_walker): Use an sese_l.
11273 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
11274 (reduction_phi_p): Same.
11275 (parameter_index_in_region_1): Use an sese_info_p.
11276 (propagate_expr_outside_region): Use an sese_l.
11277 * graphite.c: Replace uses of SCOP_REGION.
11278 * sese.c (sese_record_loop): Use an sese_info_p.
11279 (build_sese_loop_nests): Same.
11280 (sese_build_liveouts_use): Same.
11281 (sese_build_liveouts_bb): Same.
11282 (sese_build_liveouts_bb): Same.
11283 (sese_bad_liveouts_use): Same.
11284 (sese_reset_debug_liveouts_bb): Same.
11285 (sese_build_liveouts): Same.
11286 (new_sese): Renamed new_sese_info.
11287 (free_sese): Renamed free_sese_info.
11288 (set_rename): Use an sese_info_p.
11289 (graphite_copy_stmts_from_block): Same.
11290 (copy_bb_and_scalar_dependences): Same.
11291 (outermost_loop_in_sese_1): Use an sese_l.
11292 (outermost_loop_in_sese): Same.
11293 (if_region_set_false_region): Use an sese_info_p.
11294 (move_sese_in_condition): Same.
11295 (scalar_evolution_in_region): Use an sese_l.
11296 * sese.h (struct sese_l): ... here.
11297 (SESE_ENTRY): Remove.
11298 (SESE_ENTRY_BB): Remove.
11299 (SESE_EXIT): Remove.
11300 (SESE_EXIT_BB): Remove.
11301 (sese_contains_loop): Use an sese_info_p.
11302 (sese_nb_params): Same.
11303 (bb_in_sese_p): Use an sese_l.
11304 (stmt_in_sese_p): Same.
11305 (defined_in_sese_p): Same.
11306 (loop_in_sese_p): Same.
11307 (sese_loop_depth): Same.
11308 (struct ifsese_s): Use an sese_info_p.
11309 (gbb_loop_at_index): Use an sese_l.
11310 (nb_common_loops): Same.
11311 (scev_analyzable_p): Same.
11313 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11315 * config/i386/i386.c (ix86_conditional_register_usage): Use
11316 CALL_USED_REGISTERS_MASK.
11317 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
11319 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11322 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
11323 * configure: Regenerated.
11325 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11328 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
11329 (ix86_set_current_function): This.
11330 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
11332 2015-10-07 Richard Biener <rguenther@suse.de>
11334 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
11335 (vinfo_for_stmt): Adjust.
11336 (set_vinfo_for_stmt): Likewise.
11337 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
11338 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
11339 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
11341 (vect_analyze_loop_1): Remove.
11342 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
11343 inner loop when vectorizing an outer loop by splitting out from ...
11344 (vect_analyze_loop_form): ... here.
11346 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11349 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
11350 Use create_tmp_var_raw instead of create_tmp_var.
11352 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
11354 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
11355 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
11356 * real.c (CACHED_FRACTION): New helper macro.
11357 (dconst_third_ptr): Use it.
11358 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
11359 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
11361 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
11363 2015-10-06 Jeff Law <law@redhat.com>
11365 PR tree-optimization/67816
11366 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
11367 from remove_jump_threads_starting_at. Accept an edge rather than
11369 * tree-ssa-threadupdate.c (removed_edges): New hash table.
11370 (remove_jump_threads_including): Note edges that get removed from
11371 the CFG for later pruning of jump threading paths including them.
11372 (thread_through_all_blocks): Remove paths which include edges that
11374 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
11375 on each outgoing edges when optimizing away a control statement.
11377 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11379 * reorg.c (emit_delay_sequence): Store list of delay slot insns
11380 in a vector instead of rtx_insn_list.
11381 (add_to_delay_list): Likewise.
11382 (delete_from_delay_slot): Likewise.
11383 (optimize_skip): Likewise.
11384 (redirect_with_delay_list_safe_p): Likewise.
11385 (check_annul_list_true_false): Likewise.
11386 (steal_delay_list_from_target): Likewise.
11387 (steal_delay_list_from_fallthrough): Likewise.
11388 (redundant_insn): Likewise.
11389 (fill_simple_delay_slots): Likewise.
11390 (fill_slots_from_thread): Likewise.
11391 (fill_eager_delay_slots): Likewise.
11392 (relax_delay_slots): Likewise.
11394 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
11396 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
11397 For -mgpopt=local, also exclude unintialized common symbols.
11398 * doc/invoke.texi (Nios II Options): Document the change.
11400 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11402 * config/aarch64/iterators.md (vwcore): Add missing cases for
11405 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11406 Sebastian Pop <s.pop@samsung.com>
11408 * graphite-poly.c (new_scop): Initialize drs.
11409 * graphite-poly.h (struct dr_info): New.
11410 (struct scop): Add drs.
11411 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
11412 (pdr_add_memory_accesses): Same.
11413 (build_poly_dr): Same.
11414 (build_alias_set): Same.
11415 (build_scop_drs): Same.
11416 (build_pbb_drs): Remove.
11417 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
11418 * tree-data-ref.h (data_reference): Remove alias_set.
11420 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11421 Sebastian Pop <s.pop@samsung.com>
11423 * graphite-poly.c (free_data_refs_aux): Remove.
11424 (free_gimple_poly_bb): Do not call free_data_refs_aux.
11425 * graphite-poly.h (struct base_alias_pair): Remove.
11426 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
11427 base_alias_pair and dr->aux.
11428 (build_alias_set): Same.
11429 * tree-data-ref.c (create_data_ref): Initialize alias_set.
11430 * tree-data-ref.h (data_reference): Add alias_set.
11432 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11433 Sebastian Pop <s.pop@samsung.com>
11435 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
11436 Do not set PDR_BASE_OBJECT_SET.
11437 * graphite-poly.h (poly_dr): Same.
11438 (PDR_BASE_OBJECT_SET): Remove.
11439 (new_poly_dr): Update decl.
11440 * graphite-sese-to-poly.c (build_poly_dr): Update call to
11442 (write_alias_graph_to_ascii_dimacs): Remove.
11443 (write_alias_graph_to_ascii_dot): Remove.
11444 (write_alias_graph_to_ascii_ecc): Remove.
11445 (dr_same_base_object_p): Remove.
11446 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
11448 (build_base_obj_set_for_drs): Remove.
11449 (dump_alias_graphs): Remove.
11450 (build_scop_drs): Remove dead code.
11452 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
11453 Peter Bergner <bergner@vnet.ibm.com>
11456 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
11457 allow registers, but provide insns for the combiner to create for
11458 loads from memory. Separate VSX code from non-VSX code. For
11459 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
11460 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
11461 so that registers come before memory operations. Drop support from
11462 converting DFmode to TFmode, if the DFmode value is in a GPR
11464 (extenddftf2_fprs): Likewise.
11465 (extenddftf2_internal): Likewise.
11466 (extenddftf2_vsx): Likewise.
11467 (extendsftf2): In the expander, only allow registers, but provide
11468 insns for the combiner to create for stores and loads.
11470 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11472 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
11473 from the decl parameter.
11475 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
11478 * gimple-fold.c (gimple_fold_builtin): Add break after
11479 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
11481 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
11483 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
11484 to scop->isl_context.
11486 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
11488 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
11489 (output_probe_stack_range): Rotate the loop and simplify.
11490 (thumb1_expand_prologue): Tweak sorry message.
11491 * config/arm/arm.md (probe_stack): Use bare string.
11493 2015-10-06 Nick Clifton <nickc@redhat.com>
11495 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
11497 2015-10-06 Nick Clifton <nickc@redhat.com>
11499 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
11500 (ATTR_PERSIST): New constant.
11501 (msp430_data_attr): New function - verifies an attribute that only
11502 applies to variables.
11503 (msp430_attributes): Add noinit and persistent attributes.
11504 (noinit_section): New variable.
11505 (presis_section): New variable.
11506 (TARGET_ASM_INIT_SECTIONS): Define.
11507 (msp430_init_sections): New function - initialises the noinit and
11508 persist section variables.
11509 (msp430_select_section): Add support for noinit and persist
11511 (msp430_section_type_flags): Likewise.
11512 * doc/extend.texi: Document the reent, critical, wakeup, noinit
11513 and persistent attributes.
11515 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11516 Sebastian Pop <s.pop@samsung.com>
11518 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
11519 (no_violations): Remove.
11520 (subtract_commutative_associative_deps): Remove.
11521 (compute_deps): Do not call subtract_commutative_associative_deps.
11522 (transform_is_safe): Remove.
11523 (graphite_legal_transform): Remove.
11524 * graphite-poly.h (graphite_legal_transform): Remove.
11526 2015-10-05 Aditya Kumar <hiraditya@msn.com>
11528 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
11529 which are in this region are passed so gcc_assert and remove redundant
11531 * sese.c (sese_build_liveouts): Pass only those bbs which are not
11533 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
11534 gcc_assert on that and remove unnecessary computation.
11535 (sese_build_liveouts_use): Same.
11537 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11539 * graphite-dependences.c (scop_get_reads): Renamed scop->context
11540 to scop->param_context.
11541 (scop_get_must_writes): Same.
11542 (scop_get_may_writes): Same.
11543 (scop_get_original_schedule): Same.
11544 (scop_get_transformed_schedule): Same.
11545 (subtract_commutative_associative_deps): Same.
11546 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
11547 (generate_isl_context): Same.
11548 (generate_isl_schedule): Same.
11549 (scop_to_isl_ast): Same.
11550 (graphite_regenerate_ast_isl): Same.
11551 * graphite-optimize-isl.c (scop_get_domains): Same.
11552 (optimize_isl): Renamed scop->context to scop->param_context.
11553 * graphite-poly.c (new_poly_bb): Change the type of argument to
11555 (new_scop): Renamed scop->context to scop->param_context.
11557 (print_scop_context): Same.
11558 * graphite-poly.h (new_poly_dr): Change the type of argument from
11559 void* to data_reference_p.
11560 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
11561 (new_poly_bb): Change the type of argument from void* to
11563 (pbb_set_black_box): Same.
11564 (struct scop): Rename context to param_context, ctx to isl_context.
11565 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
11566 Move declarations closer to assignment.
11567 (find_params_in_bb): Same.
11568 (find_scop_parameters): Same.
11569 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
11570 Global to be used for statement IDs.
11571 (isl_id_for_pbb): Use ssa_name_version_typesize.
11572 (simple_copy_phi_p): Move declarations closer to assignment.
11573 (build_pbb_scattering_polyhedrons): Same.
11574 (build_scop_scattering): Same.
11575 (isl_id_for_ssa_name): Same.
11576 (extract_affine_name): Same.
11577 (extract_affine_int): Same.
11578 (extract_affine): Same.
11579 (set_scop_parameter_dim): Use renamed member.
11580 (build_loop_iteration_domains): Same.
11581 (add_param_constraints): Same.
11582 (build_scop_iteration_domain): Same.
11583 (pdr_add_data_dimensions): Same.
11584 (build_poly_dr): Same.
11585 (build_scop_drs): Move declarations closer to assignment.
11586 (analyze_drs_in_stmts): Same.
11587 (insert_out_of_ssa_copy): Same.
11588 (insert_out_of_ssa_copy_on_edge): Same.
11589 (propagate_expr_outside_region): Same.
11590 (rewrite_phi_out_of_ssa): Same.
11591 (rewrite_degenerate_phi): Same.
11592 (rewrite_reductions_out_of_ssa): Same.
11593 (rewrite_cross_bb_scalar_dependence): Same.
11594 (handle_scalar_deps_crossing_scop_limits): Same.
11595 (rewrite_cross_bb_scalar_deps): Same.
11596 * graphite.c (graphite_transform_loops): Use renamed member.
11598 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
11601 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
11602 create_tmp_var_raw instead of create_tmp_var.
11604 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11607 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
11608 Use create_tmp_var_raw instead of create_tmp_var.
11610 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
11613 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
11614 split for upper-bank registers when target does not support
11616 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
11617 split when target does not support AVX512VL.
11619 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
11622 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
11623 Adjust to use create_tmp_var_raw instead of create_tmp_var.
11625 2015-10-06 Nick Clifton <nickc@redhat.com>
11627 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
11630 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
11632 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
11633 (case ${target}): Add znver1.
11634 * config/i386/cpuid.h(bit_CLZERO): Define.
11635 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
11636 -march=native recognize znver1 processors.
11637 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11638 znver1, clzero def_and_undef.
11639 * config/i386/i386.c (struct processor_costs znver1_cost): New.
11640 (m_znver1): New definition.
11641 (m_AMD_MULTIPLE): Includes m_znver1.
11642 (processor_target_table): Add znver1 entry.
11643 (ix86_target_string) : Add clzero entry.
11644 (static const char *const cpu_names): Add znver1 entry.
11645 (ix86_option_override_internal): Add znver1 instruction sets.
11646 (PTA_CLZERO) : New definition.
11647 (ix86_option_override_internal): Handle new clzerooption.
11648 (ix86_issue_rate): Add znver1.
11649 (ix86_adjust_cost): Add znver1.
11650 (ia32_multipass_dfa_lookahead): Add znver1.
11651 (has_dispatch): Add znver1.
11652 * config/i386/i386.h (TARGET_znver1): New definition.
11653 (TARGET_CLZERO): Define.
11654 (TARGET_CLZERO_P): Define.
11655 (struct ix86_size_cost): Add TARGET_ZNVER1.
11656 (enum processor_type): Add PROCESSOR_znver1.
11657 * config/i386/i386.md (define_attr "cpu"): Add znver1.
11658 (set_attr znver1_decode): New definitions for znver1.
11659 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
11661 * config/i386/mmx.md (set_attr znver1_decode): New definitions
11663 * config/i386/sse.md (set_attr znver1_decode): Likewise.
11664 * config/i386/x86-tune.def: Add znver1 tunings.
11665 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
11666 * doc/invoke.texi: Add details about znver1
11668 2015-10-06 Richard Biener <rguenther@suse.de>
11670 PR tree-optimization/67859
11671 * tree-ssa-pre.c (create_expression_by_pieces): Properly
11672 discard not inserted stmts.
11674 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
11676 * doc/extend.texi (Template Instantiation): Reorder options and
11677 de-emphasize -frepo.
11678 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
11679 example instead of -frepo.
11681 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
11684 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
11685 use create_tmp_var_raw rather than create_tmp_var.
11687 2015-10-06 Richard Biener <rguenther@suse.de>
11689 * tree-vectorizer.h (vec_info): New base class for...
11690 (_loop_vec_info): ... this and ...
11691 (_bb_vec_info): ... this.
11692 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
11693 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
11694 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
11695 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
11696 vect_destroy_datarefs): Adjust interface to take a vec_info *
11697 rather than both a loop_vec_info and a bb_vec_info argument.
11698 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
11699 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
11700 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
11701 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
11703 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
11704 (destroy_loop_vec_info, vect_analyze_loop_2,
11705 vect_is_simple_reduction_1, get_initial_def_for_induction,
11706 vect_create_epilog_for_reduction, vectorizable_reduction,
11707 vectorizable_live_operation, vect_transform_loop): Adjust.
11708 * tree-vect-patterns.c (type_conversion_p,
11709 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
11710 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
11711 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
11712 check_bool_pattern, vect_recog_bool_pattern,
11713 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
11714 * tree-vect-slp.c (vect_get_and_check_slp_defs,
11715 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
11716 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
11717 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
11718 (new_bb_vec_info): Initialize base classs.
11719 * tree-vect-stmts.c (record_stmt_cost, process_use,
11720 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
11721 vectorizable_mask_load_store, vectorizable_call,
11722 vectorizable_simd_clone_call, vectorizable_conversion,
11723 vectorizable_assignment, vectorizable_shift,
11724 vectorizable_operation, vectorizable_store,
11725 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
11726 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
11727 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
11729 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
11732 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
11733 create_tmp_var_raw rather than create_tmp_var.
11735 2015-10-05 Marek Polacek <polacek@redhat.com>
11737 * tree-ssa-loop-im.c
11738 (move_computations_dom_walker::before_dom_children): Don't set
11739 SSA_NAME_ANTI_RANGE_P.
11740 * tree-ssa-phiopt.c (value_replacement): Likewise.
11742 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11743 Sebastian Pop <s.pop@samsung.com>
11745 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
11747 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11748 Sebastian Pop <s.pop@samsung.com>
11750 * graphite-poly.c (new_gimple_poly_bb): ... here.
11751 (free_data_refs_aux): ... here.
11752 (free_gimple_poly_bb): ... here.
11753 (remove_gbbs_in_scop): ... here.
11754 (new_scop): Call new_sese.
11755 (free_scop): Call remove_gbbs_in_scop and free_sese.
11756 * graphite-poly.h (base_alias_pair): ... here.
11757 (new_gimple_poly_bb): Declare.
11758 (free_gimple_poly_bb): Declare.
11759 * graphite-scop-detection.c (parameter_index_in_region_1):
11760 (parameter_index_in_region): ... here.
11761 (scan_tree_for_params): ... here.
11762 (find_params_in_bb): ... here.
11763 (find_scop_parameters): ... here.
11764 (build_scops): Call find_scop_parameters.
11765 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
11766 (free_scops): Move...
11767 (single_pred_cond_non_loop_exit): Move...
11768 (sese_dom_walker::before_dom_children): Move...
11769 (sese_dom_walker::after_dom_children): Move...
11770 (build_poly_scop): Move...
11771 * graphite-sese-to-poly.h (base_alias_pair): Move...
11772 * graphite.c (free_scops): ... here.
11774 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11775 Sebastian Pop <s.pop@samsung.com>
11777 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
11778 (trivially_empty_bb_p): Move...
11779 (same_close_phi_node): Move...
11780 (new_gimple_poly_bb): Move...
11781 (compare_bb_depths): Move...
11782 (graphite_sort_dominated_info): Move...
11783 (remove_duplicate_close_phi): Move...
11784 (make_close_phi_nodes_unique): Move...
11785 (canonicalize_loop_closed_ssa): Move...
11786 (canonicalize_loop_closed_ssa_form): Move...
11787 (loop_ivs_can_be_represented): Move...
11788 (single_pred_cond_non_loop_exit): Move...
11789 (graphite_can_represent_init): Move...
11790 (graphite_can_represent_scev): Move...
11791 (stmt_has_simple_data_refs_p): Move...
11792 (stmt_has_side_effects): Move...
11793 (graphite_can_represent_stmt): Move...
11794 (scop_detection): ... here.
11795 (sese_dom_walker): ... and here.
11796 (build_scops): Call all moved functions.
11797 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
11798 (all_non_dominated_preds_marked_p): Move...
11799 (build_scop_bbs_1): Move...
11800 (build_scop_bbs): Move...
11801 (set_scop_parameter_dim): Move...
11802 (nb_pbbs_in_loops): Move...
11803 (build_poly_scop): Do not call all the moved functions.
11805 2015-10-05 Martin Jambor <mjambor@suse.cz>
11806 Jan Hubicka <hubicka@ucw.cz>
11808 * ipa-cp.c (ipcp_alignment_lattice): New type.
11809 (ipcp_param_lattices): Use the above to represent alignment.
11810 (ipcp_alignment_lattice::print): New function.
11811 (print_all_lattices): Use it to print alignment information.
11812 (ipcp_alignment_lattice::top_p): New function.
11813 (ipcp_alignment_lattice::bottom_p): Likewise.
11814 (ipcp_alignment_lattice::set_to_bottom): Likewise.
11815 (ipcp_alignment_lattice::meet_with_1): Likewise.
11816 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
11817 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
11818 (initialize_node_lattices): Likewise.
11819 (propagate_alignment_accross_jump_function): Work with the new class
11820 for alignment lattices.
11821 (propagate_constants_accross_call): Pass only the alignment lattice to
11822 propagate_alignment_accross_jump_function.
11823 (ipcp_store_alignment_results): Work with the new class for alignment
11826 2015-10-05 Marek Polacek <polacek@redhat.com>
11828 PR tree-optimization/67821
11829 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
11831 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
11834 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
11836 (mkoffload_cleanup): ... this. Adjust all users.
11837 (maybe_unlink): Look at save_temps and verbose flags instead of
11839 (main): Parse "-save-temps" flag.
11840 (generate_target_descr_file, generate_target_offloadend_file)
11841 (generate_host_descr_file, prepare_target_image): Pass it on.
11842 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
11843 (mkoffload_cleanup): New function.
11844 (maybe_unlink): Look at save_temps and verbose flags instead of
11846 (main): Instead of calling utils_cleanup, register atexit handler
11847 for mkoffload_cleanup.
11848 (main): Parse "-save-temps" flag.
11849 (compile_native, main): Pass it on.
11850 * lto-wrapper.c (compile_offload_image): Likewise.
11852 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11854 * gimple.h (gimple_op_ptr): Require a non const gimple *.
11855 (gimple_assign_lhs_ptr): Likewise.
11856 (gimple_assign_rhs1_ptr): Likewise.
11857 (gimple_assign_rhs2_ptr): Likewise.
11858 (gimple_assign_rhs3_ptr): Likewise.
11859 (gimple_call_lhs_ptr): Likewise.
11860 (gimple_call_fn_ptr): Likewise.
11861 (gimple_call_chain_ptr): Likewise.
11862 (gimple_call_arg_ptr): Likewise.
11863 (gimple_cond_lhs_ptr): Likewise.
11864 (gimple_cond_rhs_ptr): Likewise.
11865 (gimple_switch_index_ptr): Likewise.
11866 (gimple_return_retval_ptr): Likewise.
11868 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11870 * gimple.h (gimple_asm_input_op_ptr): Remove.
11871 (gimple_asm_output_op_ptr): Likewise.
11873 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11875 * gimple.h (gimple_location_ptr): Remove.
11876 * tree-vrp.c (check_all_array_refs): Adjust.
11878 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11880 * tree-ssa-operands.c (build_uses): store tree * instead of
11882 (finalize_ssa_uses): Adjust.
11883 (append_use): Likewise.
11884 (verify_ssa_operands): Likewise.
11886 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11888 * real.h (build_real_truncate): Declare.
11889 * tree.c (build_real_truncate): New function.
11890 (strip_float_extensions): Use it.
11891 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
11892 (fold_builtin_hypot, fold_builtin_pow): Likewise.
11893 * match.pd: Likewise.
11895 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
11896 Jiong Wang <jiong.wang@arm.com>
11898 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
11900 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11902 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
11903 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
11904 (aarch64_print_operand, aarch64_float_const_representable_p)
11905 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
11906 instead of REAL_VALUE_FROM_CONST_DOUBLE.
11907 * config/arc/arc.c (arc_print_operand): Likewise.
11908 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
11909 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
11910 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
11912 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
11913 (consttable_16): Likewise.
11914 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
11915 * config/avr/avr.c (avr_print_operand): Likewise.
11916 * config/bfin/bfin.md: Likewise (in a define_split).
11917 * config/c6x/c6x.md: Likewise (in a define_split).
11918 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
11919 (cr16_print_operand): Likewise.
11920 * config/cris/cris.c (cris_print_operand): Likewise.
11921 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
11922 * config/fr30/fr30.c (fr30_print_operand): Likewise.
11923 (fr30_const_double_is_zero): Likewise.
11924 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
11925 * config/frv/frv.md: Likewise (in a define_split).
11926 * config/frv/predicates.md (int_2word_operand): Likewise.
11927 * config/h8300/h8300.c (h8300_print_operand): Likewise.
11928 * config/i386/i386.c (standard_80387_constant_p): Likewise.
11929 (ix86_print_operand, ix86_split_to_parts): Likewise.
11930 * config/i386/i386.md: Likewise (in a define_split).
11931 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
11932 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
11933 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
11934 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
11935 (print_operand): Likewise.
11936 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
11937 * config/mep/mep.md: Likewise (in define_split).
11938 * config/microblaze/microblaze.c (microblaze_const_double_ok)
11939 (print_operand): Likewise.
11940 * config/mips/mips.md (consttable_float): Likewise.
11941 * config/mmix/mmix.c (mmix_intval): Likewise.
11942 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
11943 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
11944 * config/pa/pa.c (pa_singlemove_string): Likewise.
11945 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
11946 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
11947 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
11948 (output_toc): Likewise.
11949 * config/rs6000/rs6000.md: Likewise (in define_splits).
11950 * config/rx/rx.c (rx_print_operand): Likewise.
11951 * config/s390/s390.c (s390_output_pool_entry): Likewise.
11952 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11953 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
11954 (and also in define_splits).
11955 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
11956 (fp_high_losum_p): Likewise.
11957 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
11958 (*movsf_high): Likewise.
11959 * config/spu/spu.c (const_double_to_hwint): Likewise.
11960 * config/v850/v850.c (const_double_split): Likewise.
11961 * config/vax/vax.c (vax_float_literal): Likewise.
11962 * config/visium/visium.c (visium_expand_copysign): Likewise.
11963 * config/visium/visium.md: Likewise (in define_split).
11964 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11965 * config/xtensa/xtensa.c (print_operand): Likewise.
11966 (xtensa_output_literal): Likewise.
11967 * cprop.c (implicit_set_cond_p): Likewise.
11968 * dwarf2out.c (insert_float): Likewise.
11969 * expmed.c (expand_mult, make_tree): Likewise.
11970 * expr.c (compress_float_constant): Likewise.
11971 * rtlanal.c (split_double): Likewise.
11972 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11973 (simplify_const_unary_operation, simplify_binary_operation_1)
11974 (simplify_const_binary_operation): Likewise.
11975 (simplify_const_relational_operation): Likewise.
11976 * varasm.c (output_constant_pool_2): Likewise.
11978 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11980 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
11981 instead of CONST_DOUBLE_FROM_REAL_VALUE.
11982 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
11983 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
11984 instead of CONST_DOUBLE_FROM_REAL_VALUE.
11985 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
11986 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
11987 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
11988 (ix86_emit_swsqrtsf): Likewise.
11989 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
11990 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
11991 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11992 * config/pa/pa.c (pa_expand_builtin): Likewise.
11993 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
11994 (rs6000_scale_v2df): Likewise.
11995 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
11996 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
11997 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
11998 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
11999 (vec_ctul): Likewise.
12000 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
12001 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
12002 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
12003 * cse.c (fold_rtx): Likewise.
12004 * emit-rtl.c (immed_double_const): Likewise (in comments).
12005 (init_emit_once): Likewise.
12006 * expr.c (compress_float_constant, expand_expr_real_1)
12007 (const_vector_from_tree): Likewise.
12008 * optabs.c (expand_float, expand_fix): Likewise.
12009 * reg-stack.c (reg_to_stack): Likewise.
12010 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
12011 (simplify_const_unary_operation, simplify_binary_operation_1)
12012 (simplify_const_binary_operation, simplify_relational_operation)
12013 (simplify_immed_subreg): Likewise.
12015 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12017 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
12018 * doc/tm.texi: Regenerate.
12019 * real.h (REAL_ARITHMETIC): Delete.
12020 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
12021 (ix86_expand_round_sse4): Use real_arithmetic instead of
12023 * config/i386/sse.md (round<mode>2): Likewise.
12024 * rtl.h (rtx_to_tree_code): Likewise (in comment).
12025 * explow.c (rtx_to_tree_code): Likewise (in comment).
12026 * match.pd: Likewise.
12027 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12028 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
12029 (expand_pow_as_sqrts): Likewise.
12030 * tree-pretty-print.c (dump_generic_node): Remove code that
12031 was conditional on REAL_ARITHMETIC being undefined.
12033 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12035 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
12036 * doc/tm.texi: Regenerate.
12037 * real.h (real_less): Declare.
12038 (REAL_VALUES_LESS): Delete.
12039 * real.c (real_less): New function.
12040 (real_compare): Use it.
12041 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
12042 of REAL_VALUES_LESS.
12043 * config/microblaze/microblaze.c (microblaze_const_double_ok):
12045 * fold-const.c (fold_convert_const_int_from_real): Likewise.
12046 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12047 (simplify_const_relational_operation): Likewise.
12048 * tree-call-cdce.c (check_pow): Likewise.
12049 (gen_conditions_for_pow_cst_base): Likewise.
12051 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12053 * real.h (REAL_VALUES_IDENTICAL): Delete.
12054 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
12055 instead of REAL_VALUES_IDENTICAL.
12056 * fold-const.c (operand_equal_p): Likewise.
12057 * ipa-icf.c (sem_variable::equals): Likewise.
12058 * tree-complex.c (some_nonzerop): Likewise.
12059 (expand_complex_multiplication): Likewise.
12060 * tree.c (simple_cst_equal): Likewise.
12061 * varasm.c (compare_constant): Likewise.
12063 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12065 * real.h (real_equal): Declare.
12066 (REAL_VALUES_EQUAL): Delete.
12067 * real.c (real_equal): New function.
12068 (real_compare): Use it.
12069 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
12070 * doc/tm.texi: Regenerate.
12071 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
12072 real_equal instead of REAL_VALUES_EQUAL.
12073 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
12074 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
12075 (fp_const_from_val): Likewise.
12076 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
12077 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
12078 (floating_exact_log2): Likewise.
12079 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
12080 * config/vax/vax.c (vax_float_literal): Likewise.
12081 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
12082 * cprop.c (implicit_set_cond_p): Likewise.
12083 * expmed.c (expand_mult): Likewise.
12084 * fold-const.c (const_binop): Likewise.
12085 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12086 (simplify_const_binary_operation): Likewise.
12087 (simplify_const_relational_operation): Likewise.
12088 * tree-call-cdce.c (check_pow): Likewise.
12089 (gen_conditions_for_pow_cst_base): Likewise.
12090 * tree-inline.c (estimate_num_insns): Likewise.
12091 * tree-ssa-dom.c (record_equality): Likewise.
12092 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
12093 (gimple_expand_builtin_pow): Likewise.
12094 (pass_optimize_widening_mul::execute): Likewise.
12095 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
12096 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
12097 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
12099 2015-10-05 Richard Biener <rguenther@suse.de>
12102 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
12103 consider loop header PHI defs as IVs.
12105 2015-10-05 Richard Biener <rguenther@suse.de>
12107 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
12109 (create_expression_by_pieces): ... here and build GIMPLE
12110 calls directly. Use gimple_build API and avoid force_gimple_operand.
12111 (insert_into_preds_of_block): Simplify.
12112 (do_regular_insertion): Add comment.
12114 2015-10-04 Jason Merrill <jason@redhat.com>
12116 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
12118 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
12120 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
12121 check for general register.
12122 (ix86_emit_save_regs): Ditto.
12123 (ix86_emit_save_regs_using_mov): Ditto.
12124 (ix86_emit_restore_regs_using_pop): Ditto.
12125 (ix86_emit_restore_regs_using_mov): Ditto.
12127 2015-10-03 Marek Polacek <polacek@redhat.com>
12129 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
12130 (insn-dfatab.o): Likewise.
12132 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
12134 * config.gcc (xtensa*-*-uclinux*): New configuration.
12135 * config/xtensa/uclinux.h: New file.
12136 * config/xtensa/uclinux.opt: New file.
12138 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
12140 * doc/cpp.texi (Standard Predefined Macros): Document value of
12141 __cplusplus for C++14.
12143 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
12145 * gcc.c (process_command): Use spec_machine rather than
12146 spec_host_machine to build tooldir_prefix2.
12148 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
12149 Bernd Schmidt <bernds@codesourcery.com>
12151 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
12152 (Token, Stmt): Remove structs.
12153 (decls, vars, fns): Remove variables.
12154 (alloc_comment, append_stmt, is_keyword): Remove macros.
12155 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
12156 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
12157 (parse_init, parse_file): Remove functions.
12158 (read_file): Accept a pointer to a length and store into it.
12159 (process): Don't try to parse the input file, just write it out as
12160 a string, but looking for maps. Also write out the length.
12161 (main): Don't use "-S" to compile PTX code.
12163 2015-10-02 Jeff Law <law@redhat.com>
12165 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
12168 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
12171 * config/nvptx/mkoffload.c (main): Scan the argument vector for
12172 -fopenmp, and skip generating an offloading image if specified.
12174 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
12176 * system.h (ROUND_UP): New macro definition.
12177 (ROUND_DOWN): Ditto.
12178 * ggc-page.c (ROUND_UP): Remove local macro definition.
12179 (PAGE_ALIGN): Implement using ROUND_UP macro.
12181 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
12182 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
12184 (ix86_compute_frame_layout): Ditto.
12185 (ix86_expand_prologue): Ditto.
12186 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
12187 to round down values.
12188 (expand_set_or_movmem_via_rep): Ditto.
12190 2015-10-02 Marek Polacek <polacek@redhat.com>
12192 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
12194 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
12196 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
12197 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
12198 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
12199 (free_gimple_bb): Renamed free_gimple_poly_bb.
12200 (try_generate_gimple_bb): Hoist loop invariant code.
12201 (analyze_drs_in_stmts): Same.
12202 (build_scop_drs): Call renamed functions.
12203 (new_pbb_from_pbb): Same.
12204 (scop_ivs_can_be_represented): Delete as functionality now moved to
12205 graphite-scop-detection.c
12206 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
12208 2015-10-02 Aditya Kumar <hiraditya@msn.com>
12210 * graphite-scop-detection.c (stmt_has_side_effects): New function
12211 outlined from stmt_simple_for_scop_p.
12212 (graphite_can_represent_stmt): Same.
12213 (stmt_simple_for_scop_p): Moved code out of this function for better
12216 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
12218 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
12220 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
12222 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12224 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
12226 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
12228 PR rtl-optimization/67756
12229 * lra-constraints.c (match_reload): Add a new parameter. Use it
12230 for creating a pseudo with the same value.
12231 (curr_insn_transform): Pass a new argument to match_reload.
12233 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
12235 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
12236 (expand_vec_perm_even_odd_1): Handle V64QImode.
12237 (ix86_expand_vec_perm_const_1): Try expansion with
12238 expand_vec_perm_even_odd_trunc as well.
12239 * config/i386/sse.md (VI124_AVX512F): Rename to ...
12240 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
12242 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
12243 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
12244 to V32HI and V16SI.
12245 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
12246 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
12247 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
12248 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
12249 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
12250 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
12252 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
12254 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
12255 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
12257 2015-10-02 Jason Merrill <jason@redhat.com>
12260 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
12261 (diagnose_tm_1_op): Also diagnose volatile accesses in
12262 transaction_safe function.
12264 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
12266 * system.h (malloc.h): Don't include obsolete header.
12268 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12270 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
12271 (TLS_SECTION_ASM_FLAG): Delete.
12273 2015-10-02 Marek Polacek <polacek@redhat.com>
12276 * doc/invoke.texi: Document -Wduplicated-cond.
12277 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
12278 (insn-dfatab.o): Likewise.
12279 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
12282 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
12284 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
12287 2015-10-02 Renlin Li <renlin.li@arm.com>
12289 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
12291 2015-10-02 Renlin Li <renlin.li@arm.com>
12294 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
12296 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12298 PR rtl-optimization/67786
12299 PR rtl-optimization/67787
12300 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
12301 it modifies a reg used in the condition calculation.
12303 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
12305 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
12306 alternatives for reads from memory and moves from general-purpose
12308 (*aarch64_combinez_be<mode>): Likewise.
12310 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
12313 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
12314 selectany within this function without need to keep attribute.
12315 (i386_pe_encode_section_info): Remove selectany-code.
12317 2015-10-02 Richard Biener <rguenther@suse.de>
12319 * tree-ssa-sccvn.c (has_VN_INFO): New function.
12320 (free_scc_vn): Use it.
12321 (visit_use): Remove dead code and refactor to use gassign
12322 and use less indentation.
12324 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12328 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
12329 (rs6000_cannot_copy_insn_p): New function.
12330 * config/rs6000/rs6000.md (cannot_copy): New attribute.
12331 (load_toc_v4_PIC_1_normal): Set cannot_copy.
12332 (load_toc_v4_PIC_1_476): Ditto.
12334 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
12336 * graphite-scop-detection.c (struct sese_l): New conversion constructor
12337 so that this type can be pushed into a vec.
12338 (class scop_builder): use sese_l to collect scops.
12339 (get_scops): New getter function.
12340 (remove_intersecting_scops): Use sese_l instead of scops_p.
12341 (intersects): Same.
12344 (remove_subscops): Same.
12345 (build_scops): Add scops to vec<scops_p> once all the scops have been
12348 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
12350 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
12351 Renamed type from gimple_bb_p to gimple_poly_bb_p.
12352 (translate_isl_ast_node_user): Same.
12353 * graphite-poly.c (new_poly_bb): Same.
12354 * graphite-poly.h (gbb_from_bb): Same.
12356 * graphite-sese-to-poly.c (new_gimple_bb):
12357 gimple_bb_p -> gimple_poly_bb_p
12358 (build_scop_scattering): Same.
12359 (find_params_in_bb): Same.
12360 (add_conditions_to_domain): Same.
12361 (sese_dom_walker::before_dom_children): Same.
12362 (analyze_drs_in_stmts): Same.
12363 (new_pbb_from_pbb): Same.
12364 (free_data_refs_aux): New pointer to type base_alias_pair.
12365 * graphite-sese-to-poly.h: Same.
12366 * sese.c (if_region_set_false_region): Fixed Indentation.
12367 (move_sese_in_condition): Same.
12369 2015-10-01 Sebastian Pop <s.pop@samsung.com>
12370 Aditya Kumar <aditya.k7@samsung.com>
12372 PR tree-optimization/66980
12373 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
12374 when data reference analysis has failed.
12376 2015-10-01 Sebastian Pop <s.pop@samsung.com>
12377 Aditya Kumar <aditya.k7@samsung.com>
12379 PR tree-optimization/67754
12380 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
12381 scev analysis on the same loop nest as analyze_drs_in_stmts.
12382 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
12384 (try_generate_gimple_bb): Call outermost_loop_in_sese.
12385 (analyze_drs_in_stmts): Same.
12386 * sese.c (outermost_loop_in_sese): ...here.
12388 2015-10-01 Sebastian Pop <s.pop@samsung.com>
12389 Aditya Kumar <aditya.k7@samsung.com>
12391 PR tree-optimization/67754
12392 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
12393 recursion on the inner loops.
12395 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12397 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
12398 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
12399 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
12400 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
12401 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
12403 2015-10-01 Marek Polacek <polacek@redhat.com>
12406 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
12407 create_tmp_var_raw rather than create_tmp_var.
12409 2015-10-01 Marek Polacek <polacek@redhat.com>
12411 PR tree-optimization/67769
12412 * tree-ssa-phiopt.c (conditional_replacement): Call
12413 reset_flow_sensitive_info_in_bb.
12414 (minmax_replacement): Likewise.
12415 (abs_replacement): Likewise.
12417 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
12419 * builtins.c: Don't include gomp-constants.h.
12420 (fold_builtin_1): Don't fold acc_on_device here.
12421 * gimple-fold.c: Include gomp-constants.h.
12422 (gimple_fold_builtin_acc_on_device): New.
12423 (gimple_fold_builtin): Call it.
12425 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
12427 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
12428 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
12430 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
12432 * config/arm/aarch-common-protos.h
12433 (aarch_accumulator_forwarding): New.
12434 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12435 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
12436 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12437 * config/arm/cortex-a53.md: Rewrite.
12439 2015-10-01 Richard Biener <rguenther@suse.de>
12441 * gimple-match.h (mprts_hook): Declare.
12442 * gimple-match.head.c (mprts_hook): Define.
12443 (maybe_push_res_to_seq): Use new hook.
12444 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
12445 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
12446 (vn_ssa_aux::has_constants): Remove.
12447 * tree-ssa-sccvn.c: Include gimple-match.h.
12448 (VN_INFO_GET): Assert we don't re-use SSA names.
12449 (vn_get_expr_for): Remove.
12450 (expr_has_constants): Likewise.
12451 (stmt_has_constants): Likewise.
12452 (simplify_binary_expression): Likewise.
12453 (simplify_unary_expression): Likewise.
12454 (vn_lookup_simplify_result): New hook.
12455 (visit_copy): Adjust.
12456 (visit_reference_op_call): Likewise.
12457 (visit_phi): Likewise.
12458 (visit_use): Likewise.
12459 (process_scc): Likewise.
12460 (init_scc_vn): Likewise.
12461 (visit_reference_op_load): Likewise. Use match-and-simplify and
12462 a gimple seq for inserted expressions.
12463 (try_to_simplify): Remove GENERIC stmt combining code.
12464 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
12465 * tree-ssa-pre.c (eliminate_insert): Adjust.
12466 (eliminate_dom_walker::before_dom_children): Likewise.
12468 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12470 * doc/invoke.texi (Optimization Options): Add
12471 -freorder-blocks-algorithm=.
12472 (Optimize Options) <-O>: Add -freorder-blocks.
12473 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
12474 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
12475 <-freorder-blocks>: Also enabled at levels -O and -Os.
12476 <-freorder-blocks-algorithm=>: Document new option.
12478 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12480 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
12481 with flag_reorder_blocks_algorithm.
12482 * common.opt (freorder-blocks-algorithm=): New flag.
12483 (reorder_blocks_algorithm): New enum.
12484 * flag-types.h (reorder_blocks_algorithm): New enum.
12485 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
12486 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
12488 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12490 * bb-reorder.c: Add intro comment.
12491 (reorder_basic_blocks_software_trace_cache): Print a header to
12493 (edge_order): New function.
12494 (reorder_basic_blocks_simple): New function.
12495 (reorder_basic_blocks): Choose between the STC and the simple
12496 algorithms (always choose the former).
12498 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12500 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
12501 function, factored out from ...
12502 (reorder_basic_blocks): ... here.
12504 2015-10-01 Tom de Vries <tom@codesourcery.com>
12506 * tree-cfg.c (dump_function_to_file): Dump function attributes using
12507 __attribute__(()) string. Move dumping of function attributes to before
12510 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
12513 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
12514 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
12515 based on gold linker version.
12516 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
12517 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
12518 * configure, config.in: Regenerate.
12520 2015-10-01 Alan Modra <amodra@gmail.com>
12522 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
12523 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
12524 (rs6000_output_mi_thunk): Likewise.
12526 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12528 * config/nvptx/mkoffload.c (process): Change offload data format.
12530 2015-09-30 Jeff Law <law@redhat.com>
12532 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
12533 with constant conditions.
12534 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
12535 (remove_ctrl_stmt_and_useless_edges): No longer static.
12536 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
12537 (remove_ctrl_stmt_and_useless_edges): Likewise.
12539 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12540 Cesar Philippidis <cesar@codesourcery.com>
12542 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
12543 (TARGET_GOACC_VALIDATE_DIMS): Override.
12544 * target.def (TARGET_GOACC): New target hook prefix.
12545 (validate_dims): New hook.
12546 * targhooks.h (default_goacc_validate_dims): New.
12547 * omp-low.c (oacc_validate_dims): New.
12548 (execute_oacc_device_lower): New.
12549 (default_goacc_validate_dims): New.
12550 (pass_data_oacc_device_lower): New.
12551 (pass_oacc_device_lower): New pass.
12552 (make_pass_oacc_device_lower): New.
12553 * tree-pass.h (make_pass_oacc_device_lower): Declare.
12554 * passes.def (pass_oacc_device_lower): Add it.
12555 * doc/tm.texi: Rebuilt.
12556 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
12557 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
12559 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
12561 PR rtl-optimization/67037
12562 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
12564 2015-09-30 Bernd Schmidt <bernds@redhat.com>
12566 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
12567 * passes.c: Include tree-ssanames.h.
12568 (execute_function_todo): Flush the pending free SSA_NAMEs after
12569 eliminating unreachable basic blocks.
12570 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
12571 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
12572 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
12573 (flush_ssanames_freelist): New function.
12574 (release_ssaname_fn): Put released names on the queue.
12575 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
12576 * tree-ssanames.h (flush_ssanames_freelist): Declare.
12578 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12580 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
12581 (generate_target_descr_file, generate_target_offloadend_file)
12582 (generate_host_descr_file, prepare_target_image): Pass it on.
12583 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
12584 (compile_native, main): Pass it on.
12585 * lto-wrapper.c (compile_offload_image): Likewise.
12587 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12588 Ilya Verbin <ilya.verbin@intel.com>
12589 Andrey Turetskiy <andrey.turetskiy@intel.com>
12591 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
12592 (prepare_target_image, main): Refactor argv building to use
12595 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12597 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
12598 * config/spu/spu.c (spu_expand_atomic_op): New function.
12599 * config/spu/spu.md (AINT): New mode iterator.
12600 (ATOMIC): New code iterator.
12601 (atomic_name, atomic_pred): New code predicates.
12602 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
12603 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
12604 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
12605 "atomic_<atomic_name>_fetch<mode>"): Likewise.
12607 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
12609 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
12611 (scalar_chain::convert_reg): Likewise.
12613 2015-09-30 Richard Biener <rguenther@suse.de>
12615 * builtins.c: Add comment that no new simplifications should
12618 2015-09-30 Marek Polacek <polacek@redhat.com>
12620 PR tree-optimization/67690
12621 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
12622 reset_flow_sensitive_info_in_bb.
12623 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
12624 * tree-ssanames.c: Include "gimple-iterator.h".
12625 (reset_flow_sensitive_info_in_bb): New function.
12626 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
12628 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12630 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
12631 variable, replacing it with...
12632 (offload_abi): ... this new variable. Adjust all users.
12633 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
12635 2015-09-30 Matthias Klose <doko@ubuntu.com>
12637 * configure.ac: Remove extraneous ;;.
12638 * configure: Regenerate.
12640 2015-09-29 James Bowman <james.bowman@ftdichip.com>
12642 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
12643 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
12644 predicate, disallow register for operand 2.
12646 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
12648 * graphite-dependences.c (scop_get_dependences): Moved in down
12649 in order to be visible to its caller.
12650 * graphite-poly.h: Removed compute_deps, and extend_schedule.
12652 2015-09-29 Sebastian Pop <s.pop@samsung.com>
12653 Aditya Kumar <aditya.k7@samsung.com>
12655 PR tree-optimization/67754
12656 * graphite-optimize-isl.c (optimize_isl): Call
12657 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
12659 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
12661 * builtins.c (expand_builtin_acc_on_device): Delete.
12662 (expand_builtin): Don't call it.
12663 (fold_builtin_1): Fold acc_on_device.
12665 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
12667 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
12668 (ix86_nsaved_sseregs): Likewise.
12670 2015-09-29 Jeff Law <law@redhat.com>
12672 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
12673 computation of unused value.
12675 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
12676 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
12677 inline macro expansion.
12679 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
12681 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
12682 (gen_shl_sext): Likewise.
12683 * config/sh/sh.md (divsi3): Likewise.
12684 (imm->ext_dest_operand splitter): Likewise.
12686 2015-09-29 Sebastian Pop <s.pop@samsung.com>
12687 Aditya Kumar <aditya.k7@samsung.com>
12689 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
12690 (nb_data_writes_in_bb): Remove.
12691 (split_pbb): Remove.
12692 (split_reduction_stmt): Remove.
12693 (is_reduction_operation_p): Remove.
12694 (phi_contains_arg): Remove.
12695 (follow_ssa_with_commutative_ops): Remove.
12696 (detect_commutative_reduction_arg): Remove.
12697 (detect_commutative_reduction_assign): Remove.
12698 (follow_inital_value_to_phi): Remove.
12699 (edge_initial_value_for_loop_phi): Remove.
12700 (initial_value_for_loop_phi): Remove.
12701 (used_outside_reduction): Remove.
12702 (detect_commutative_reduction): Remove.
12703 (translate_scalar_reduction_to_array_for_stmt): Remove.
12704 (remove_phi): Remove.
12705 (dr_indices_valid_in_loop): Remove.
12706 (close_phi_written_to_memory): Remove.
12707 (translate_scalar_reduction_to_array): Remove.
12708 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
12709 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
12710 (rewrite_commutative_reductions_out_of_ssa): Remove.
12711 (build_poly_scop): Remove call to
12712 rewrite_commutative_reductions_out_of_ssa.
12714 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
12716 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
12717 Add new insn types for vector load and store pairs.
12718 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
12719 types "neon_ldp{,_q}".
12720 * config/arm/cortex-a57.md (neon_load_c): Add insn types
12722 (neon_store_complex): Add insn types "neon_stp{,_q}".
12723 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
12724 "neon_{ldp,stp}_q".
12726 2015-09-29 Jeff Law <law@redhat.com>
12728 * config/rx/constraints.md (Int08): Fix undefined left shift
12730 (Sint08, Sint16, Sint24): Likewise.
12731 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12733 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
12736 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
12737 left shift behaviour.
12738 * config/msp430/constraints.md ('L' constraint): Similarly.
12739 ('Ys' constraint): Similarly.
12741 2015-09-29 Richard Biener <rguenther@suse.de>
12743 PR tree-optimization/67170
12744 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
12745 the translate function pointer parameter to get the
12746 bool whether to disambiguate only by reference.
12747 (walk_non_aliased_vuses): Likewise.
12748 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12749 (get_continuation_for_phi_1): Likewise.
12750 (get_continuation_for_phi): Likewise.
12751 (walk_non_aliased_vuses): Likewise.
12752 * tree-ssa-sccvn.c (const_parms): New bitmap.
12753 (vn_reference_lookup_3): Adjust for interface change.
12754 Disambiguate parameters pointing to readonly memory.
12755 (free_scc_vn): Free const_parms.
12756 (run_scc_vn): Initialize const_parms from a fn spec attribute.
12758 2015-09-29 Richard Biener <rguenther@suse.de>
12760 PR tree-optimization/67741
12761 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
12762 builtin calls with correct signature.
12764 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
12767 * config/i386/i386.c: Include dbgcnt.h.
12768 (has_non_address_hard_reg): New.
12769 (convertible_comparison_p): New.
12770 (scalar_to_vector_candidate_p): New.
12771 (remove_non_convertible_regs): New.
12772 (scalar_chain): New.
12773 (scalar_chain::scalar_chain): New.
12774 (scalar_chain::~scalar_chain): New.
12775 (scalar_chain::add_to_queue): New.
12776 (scalar_chain::mark_dual_mode_def): New.
12777 (scalar_chain::analyze_register_chain): New.
12778 (scalar_chain::add_insn): New.
12779 (scalar_chain::build): New.
12780 (scalar_chain::compute_convert_gain): New.
12781 (scalar_chain::replace_with_subreg): New.
12782 (scalar_chain::replace_with_subreg_in_insn): New.
12783 (scalar_chain::emit_conversion_insns): New.
12784 (scalar_chain::make_vector_copies): New.
12785 (scalar_chain::convert_reg): New.
12786 (scalar_chain::convert_op): New.
12787 (scalar_chain::convert_insn): New.
12788 (scalar_chain::convert): New.
12789 (convert_scalars_to_vector): New.
12790 (pass_data_stv): New.
12792 (make_pass_stv): New.
12793 (ix86_option_override): Created and register stv pass.
12794 (flag_opts): Add -mstv.
12795 (ix86_option_override_internal): Likewise.
12796 * config/i386/i386.md (SWIM1248x): New.
12797 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
12798 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
12799 (*anddi3_doubleword): New.
12800 (*zext<mode>_doubleword): New.
12801 (*zextsi_doubleword): New.
12802 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
12803 (*<code>di3_doubleword): New.
12804 * config/i386/i386.opt (mstv): New.
12805 * dbgcnt.def (stv_conversion): New.
12807 2015-09-29 Tom de Vries <tom@codesourcery.com>
12809 * tree-cfg.c (dump_function_to_file): Dump function attributes.
12811 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
12814 * config/sh/sh.c (sh_override_options_after_change): New.
12815 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
12816 (sh_option_override): Move align_loops, align_jumps and
12817 align_functions handling into sh_override_options_after_change.
12819 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
12821 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
12822 (nvptx_record_offload_symbol): Record function execution geometry.
12823 * config/nvptx/mkoffload.c (process): Include launch geometry in
12825 * omp-low.c (oacc_launch_pack): New.
12826 (replace_oacc_fn_attrib): New.
12827 (set_oacc_fn_attrib): New.
12828 (get_oacc_fn_attrib): New.
12829 (expand_omp_target): Create keyed varargs for GOACC_parallel call
12831 * omp-low.h (get_oacc_fn_attrib): Declare.
12832 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
12833 (DEF_FUNCTION_TYPE_VAR_11): Delete.
12834 * tree.h (OMP_CLAUSE_EXPR): New.
12835 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
12837 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12838 Sebastian Pop <s.pop@samsung.com>
12840 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
12842 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12843 Sebastian Pop <s.pop@samsung.com>
12845 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
12846 * graphite-scop-detection.c (struct sese_l): New type.
12847 (get_entry_bb): API for getting entry bb of SESE.
12848 (get_exit_bb): API for getting exit bb of SESE.
12849 (class debug_printer): New type. Simple printer in debug mode.
12850 (trivially_empty_bb_p): New. Return true when BB is empty or
12851 contains only debug instructions.
12852 (graphite_can_represent_expr): Call scalar_evoution_in_region
12853 instead of analyze_scalar_evolution. Pass in scop instead of only
12855 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
12857 (stmt_simple_for_scop_p): Same.
12858 (harmful_stmt_in_bb): Same.
12859 (graphite_can_represent_loop): Deleted.
12860 (struct scopdet_info): Deleted.
12861 (scopdet_basic_block_info): Deleted.
12862 (build_scops_1): Deleted.
12863 (bb_in_sd_region): Deleted.
12864 (find_single_entry_edge): Deleted.
12865 (find_single_exit_edge): Deleted.
12866 (create_single_entry_edge): Deleted.
12867 (sd_region_without_exit): Deleted.
12868 (create_single_exit_edge): Deleted.
12869 (unmark_exit_edges): Deleted.
12870 (mark_exit_edges): Deleted.
12871 (create_sese_edges): Deleted.
12872 (build_graphite_scops): Deleted.
12873 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
12874 (build_scops): Use the new scop_builder to build scops.
12875 (dot_all_scops_1): Use the new pretty printer. Print loop father
12877 (loop_body_is_valid_scop): New. Return true if loop body is a
12879 (class scop_builder): New. Builds SCoPs for polyhedral
12881 (scop_builder): New constructor.
12882 (static sese_l invalid_sese): sese_l with invalid edges.
12883 (get_sese): Get an sese (from a loop) if possible, invalid_sese
12885 (get_nearest_dom_with_single_entry): Get nearest dominator of a
12886 basic_block with single entry. Return NULL if we get to the
12887 beginning of a function.
12888 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
12889 a basic_block with single exit. Return NULL if we get to the
12890 beginning of a function.
12891 (print_sese): Pretty-print SESE.
12892 (merge_sese): Merge two SESEs if possible and return the new SESE.
12893 (build_scop_depth): Start building the SCoP within a loop nest.
12894 (build_scop_breadth): Start building the SCoP at a single loop
12895 depth. Merge adjacent SESEs if valid.
12896 (can_represent_loop_1): Returns true if Graphite can represent
12897 loop inside SCoP. Helper for can_represent_loop.
12898 (can_represent_loop): Returns true if Graphite can represent LOOP
12899 and all its nested loops in SCoP.
12900 (loop_is_valid_scop): Returns true if LOOP and all its nests
12901 constitute a valid SCoP.
12902 (region_has_one_loop): Returns true of a region has only one loop.
12903 (add_scop): Add SCoP to the list of valid scops. Removes an
12904 already existing scop if it intersects with or subsumed by this one.
12905 (harmful_stmt_in_region): Returns true if SCoP has any statment
12906 which cannot be represented by Graphite.
12907 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
12908 (remove_subscops): Remove any SCoP from the list of already found
12909 SCoPs, if subsumed by S1.
12910 (intersects): Return true if region bounded by SCoPs S1 and S2
12912 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
12913 * graphite.c (print_graphite_scop_statistics):
12914 (print_graphite_statistics): Print SCoP info while debugging.
12915 (graphite_initialize): Early exit in case number of loops in a
12916 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
12917 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12918 (graphite_finalize):
12919 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
12920 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
12921 (recompute_all_dominators): Recalculate POST_DOMINATORS.
12922 * tree-cfg.c (print_loops): Print the function name while printing
12925 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12926 Sebastian Pop <s.pop@samsung.com>
12928 PR tree-optimization/67700
12929 * graphite-sese-to-poly.c (parameter_index_in_region): Call
12930 invariant_in_sese_p_rec.
12931 (extract_affine): Same.
12932 (rewrite_cross_bb_scalar_deps): Call update_ssa.
12933 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
12934 * sese.h (invariant_in_sese_p_rec): Declare.
12936 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
12938 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
12940 2015-09-28 Jiong Wang <jiong.wang@arm.com>
12943 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12944 Jiong Wang <jiong.wang@arm.com>
12946 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
12947 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
12948 (REG_CLASS_NAMES): Likewise.
12949 (REG_CLASS_CONTENTS): Likewise.
12950 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
12951 (aarch64_register_move_cost): Likewise.
12952 (aarch64_load_symref_appropriately): Invoke the new added pattern if
12954 * config/aarch64/constraints.md (Uc0): New constraint.
12956 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
12958 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
12960 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
12962 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
12963 SECTION_EXCLUDE in XO mapping class.
12965 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
12968 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
12969 and handle ne and eq codes.
12970 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
12971 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
12972 CONST_INT_P. Use reverse_condition.
12973 (sh_split_treg_set_expr): Likewise.
12975 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
12977 * config/arm/types.md (type): Add rotate_imm.
12978 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
12979 ROR immediate case.
12980 (*rorsi3_insn_uxtw): Likewise.
12981 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
12982 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
12983 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
12985 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12987 PR rtl-optimization/67481
12988 * ifcvt.c (contains_ccmode_rtx_p): New function.
12989 (insn_valid_noce_process_p): Use it.
12991 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12993 PR rtl-optimization/67456
12994 PR rtl-optimization/67464
12995 PR rtl-optimization/67465
12996 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
12997 move in the mode of x. Handle combination of complex and simple
12998 block pairs as well as the case when one is empty.
13000 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13002 * doc/gimple.texi: Update references to gimple_statement_base.
13003 * gdbhooks.py: Likewise.
13004 * gimple.h: Likewise.
13006 2015-09-28 Daniel Cederman <cederman@gaisler.com>
13008 * config/sparc/driver-sparc.c: map LEON to leon3
13010 2015-09-28 Daniel Cederman <cederman@gaisler.com>
13012 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
13013 and make it inverse to change default
13014 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
13016 * doc/invoke.texi: Document change of default
13018 2015-09-28 Daniel Cederman <cederman@gaisler.com>
13020 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
13021 true on %f0 for a target without FPU.
13022 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
13024 (untyped_return): Do not load %f0 for a target without FPU.
13026 2015-09-28 Andrew Pinski <apinski@cavium.com>
13028 * config/aarch64/aarch64.md (prefetch):
13029 Change the predicate of operand 0 to register_operand.
13031 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
13033 * config/i386/predicates.md (register_sse4nonimm_operand): New
13035 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
13036 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
13037 Use register_sse4nonimm_operand as operand 0 predicate.
13038 (*vec_extractv8hi_sse2): Remove insn pattern.
13039 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
13040 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
13042 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
13043 Kaz Kojima <kkojima@gcc.gnu.org>
13046 * config/sh/sh-protos.h (sh_lra_p): Declare.
13047 * config/sh/sh.c (sh_lra_p): Make non-static.
13048 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
13049 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
13050 Expand into addsi3_scr if operands[2] if needed.
13051 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
13052 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
13053 (addsi3_scr, *addsi3): New insn_and_split patterns.
13055 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
13057 PR rtl-optimization/64164
13058 PR tree-optimization/67312
13059 PR middle-end/67340
13060 PR middle-end/67490
13062 * cfgexpand.c (parm_in_stack_slot_p): Remove.
13063 (ssa_default_def_partition): Remove.
13064 (get_rtl_for_parm_ssa_default_def): Remove.
13065 (set_rtl): Check that RTL assignments match expectations.
13066 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
13067 default def location for params and results. Record SSA names
13068 or types in REG and MEM attrs, respectively.
13069 (set_parm_rtl): New.
13070 (expand_one_ssa_partition): Drop logic that assigned MEMs with
13071 unassigned addresses.
13072 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
13073 deferred stack alloc vars.
13074 (expand_used_vars): Skip partitions holding parm default defs.
13075 Move adjust_one_expanded_partition_var loop...
13076 (pass_expand::execute): ... here. Drop redundant assert.
13077 Adjust comments before the final loop over all ssa names.
13078 Require assigned rtl of parms and results to match exactly.
13079 Reset its attributes to match them, not any other variables in
13080 the same partition.
13081 (expand_debug_expr): Use entry value for PARM's default defs
13082 only iff they have zero nondebug uses.
13083 * cfgexpand.h (parm_in_stack_slot_p): Remove.
13084 (get_rtl_for_parm_ssa_default_def): Remove.
13085 (set_parm_rtl): Declare.
13086 * doc/invoke.texi: Improve wording.
13087 * explow.c (promote_decl_mode): Fix promote_function_mode for
13088 result decls not by reference.
13089 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
13090 bypass TYPE_MODE to get the actual vector mode.
13091 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
13092 2015-08-19's changes as follows. Drop include of
13093 basic-block.h and df.h.
13094 (rtl_for_parm): Remove.
13095 (maybe_reset_rtl_for_parm): Remove.
13096 (parm_in_unassigned_mem_p): Remove.
13097 (use_register_for_decl): Add logic for RESULT_DECLs matching
13098 assign_parms' behavior.
13099 (split_complex_args): Revert.
13100 (assign_parms_augmented_arg_list): Revert. Add comment
13101 referencing the logic above.
13102 (assign_parm_adjust_stack_rtl): Revert.
13103 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
13104 of SET_DECL_RTL. Set up a REG if the parm demands so.
13105 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
13106 calls into a single set_parm_rtl. Set up a temporary RTL
13107 temporarily for expand_assignment.
13108 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
13109 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
13110 (assign_bounds): Revert.
13111 (assign_parms): Revert. Use set_parm_rtl.
13112 (allocate_struct_function): Relayout result and parms of
13113 non-abstruct functions.
13114 (expand_function_start): Revert. Use set_parm_rtl. If the
13115 result is not a hard reg, create a pseudo from the promoted
13116 mode of the default def. Promote static chain mode.
13117 * tree-outof-ssa.c (remove_ssa_form): Drop unused
13118 partition_has_default_def. Set up
13119 partitions_for_parm_default_defs.
13120 (finish_out_of_ssa): Remove partition_has_default_def.
13121 Release partitions_for_parm_default_defs.
13122 * tree-outof-ssa.h (struct ssaexpand): Remove
13123 partition_has_default_def. Add
13124 partitions_for_parm_default_defs.
13125 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
13127 (build_ssa_conflict_graph): Fix conflict-detection of default
13128 defs of even unused default defs of params and results.
13129 (for_all_parms): New.
13130 (create_default_def): New.
13131 (register_default_def): New.
13132 (coalesce_with_default): New.
13133 (create_outofssa_var_map): Create default defs for all parms
13134 and results, and register their partitions. Add GIMPLE_RETURN
13135 operands as coalesce candidates with results. Add default
13136 defs of each parm or result as coalesce candidates with its
13137 other defs. Mark each result def, and each default def of
13138 parms, as used_in_copy.
13139 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
13140 with the ssa names, even anonymous ones. Drop
13141 parm_in_stack_slot_p calls. Require same signedness and
13143 (coalesce_ssa_name): Add coalesce candidates for all defs of
13144 each parm and result, even unused ones.
13145 (parm_default_def_partition_arg): New type.
13146 (set_parm_default_def_partition): New.
13147 (get_parm_default_def_partitions): New.
13148 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
13149 * tree-ssa-live.c (partition_view_init): Regard unused defs of
13150 parms and results as used.
13151 (verify_live_on_entry): Don't error out just because they're
13154 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
13156 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13157 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
13158 (output_fde): Don't output length for debug_frame on AIX.
13159 (output_call_frame_info): Don't output length for debug_frame on AIX.
13160 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
13161 HAVE_XCOFF_DWARF_EXTRAS.
13162 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
13163 HAVE_XCOFF_DWARF_EXTRAS.
13164 (output_compilation_unit_header): Don't output length on AIX.
13165 (output_pubnames): Don't output length on AIX.
13166 (output_aranges): Delete argument. Compute length locally. Don't
13167 output length on AIX.
13168 (output_line_info): Don't output length on AIX.
13169 (dwarf2out_finish): Don't compute aranges_length.
13170 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13171 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
13172 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
13173 symbol decoration for AIX.
13174 (rs6000_xcoff_debug_unwind_info): New.
13175 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
13177 (rs6000_xcoff_declare_function_name): Emit different
13178 .function pseudo-op when DWARF2_DEBUG. Don't call
13179 xcoffout_declare_function for DWARF2_DEBUG.
13180 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
13182 * config/rs6000/aix71.h: New.
13183 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
13185 * configure: Regenerate.
13186 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
13189 2015-09-26 Jeff Law <law@redhat.com>
13191 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
13193 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
13196 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
13199 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
13200 undefined behaviour.
13202 * config/cris/cris.md (asrandb): Fix left shift undefined
13204 (asrandw): Likewise.
13206 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
13209 * lra-constarints.c (match_reload): Check presence of the input pseudo
13210 in the output operand.
13212 2015-09-25 Tobias Burnus <burnus@net-b.de>
13214 * doc/invoke.texi (-fsanitize): Minor wording tweak.
13216 2015-09-25 Tobias Burnus <burnus@net-b.de>
13218 * doc/invoke.texi (-fsanitize): Update URLs.
13220 2015-09-25 Teresa Johnson <tejohnson@google.com>
13222 * opts.c (finish_options): Unset -freorder-blocks-and-partition
13223 if not using profile.
13225 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
13227 PR pretty-print/67567
13228 * pretty-print.c (pp_string): Add gcc_checking_assert.
13229 * pretty-print.h (output_buffer_append_r): Likewise.
13231 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
13234 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
13235 addr2 individually. Don't emit logical or insn if one is known to
13236 be aligned approriately.
13237 (sh_expand_cmpnstr): Likewise.
13239 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
13241 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
13242 __builtin_aarch64_fp[sc]r arguments into a register.
13244 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
13246 * config.gcc (x86_archs): Replace lakemount with lakemont.
13247 (with_cpu): Likewise.
13248 (with_arch): Likewise.
13249 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
13250 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
13251 __tune_lakemount__ with __tune_lakemont__.
13252 * config/i386/i386.c (lakemount_cost): Renamed to ...
13253 (lakemont_cost): This.
13254 (m_LAKEMOUNT): Renamed to ...
13255 (m_LAKEMONT): This.
13256 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
13257 (processor_target_table): Replace "lakemount" with "lakemont".
13258 (processor_alias_table): Likewise.
13259 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
13260 PROCESSOR_LAKEMONT.
13261 (ix86_adjust_cost): Likewise.
13262 (ia32_multipass_dfa_lookahead): Likewise.
13263 * config/i386/i386.h (processor_type): Likewise.
13264 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
13265 * doc/invoke.texi: Replace lakemount with lakemont. Replace
13266 Lakemount with Lakemont.
13268 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
13270 * config.gcc (x86_archs): Replace iamcu with lakemount.
13271 (with_cpu): Likewise.
13272 (with_arch): Likewise.
13273 * doc/invoke.texi: Likewise.
13274 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
13275 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
13276 __tune_iamcu__ with __tune_lakemount__.
13277 * config/i386/i386.c (iamcu_cost): Renamed to ...
13278 (lakemount_cost): This.
13279 (m_IAMCU): Renamed to ...
13280 (m_LAKEMOUNT): This.
13281 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
13282 (processor_target_table): Replace "iamcu" with "lakemount".
13283 (processor_alias_table): Likewise.
13284 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
13285 PROCESSOR_LAKEMOUNT.
13286 (ix86_adjust_cost): Likewise.
13287 (ia32_multipass_dfa_lookahead): Likewise.
13288 * config/i386/i386.h (processor_type): Likewise.
13289 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
13291 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
13293 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
13294 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
13296 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
13297 (pa_expand_compare_and_swap_loop): New.
13298 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
13299 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
13300 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
13301 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
13302 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
13305 2015-09-24 Michael Collison <michael.collison@linaro.org>
13308 * read-md.c (read_name): Allow mode iterators inside angle
13309 brackets in rtl expressions.
13311 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
13314 * ira-color.c (update_allocno_cost): Add parameter.
13315 (update_costs_from_allocno): Decrease conflict cost. Pass the new
13318 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13321 * opts-common.c (prune_options): Discard all -fdiagnostics-color
13322 but the last one, which is moved to the front to be processed
13324 * opts.c (enable_warning_as_error): Reject options that do not
13327 2015-09-24 Jiong Wang <jiong.wang@arm.com>
13329 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
13331 2015-09-24 Jiong Wang <jiong.wang@arm.com>
13333 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
13334 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
13335 (aarch64_cannot_force_const_mem): Likewise.
13336 (aarch64_classify_address): Likewise.
13337 (aarch64_classify_symbolic_expression): Likewise.
13338 (aarch64_print_operand): Likewise.
13339 (aarch64_classify_symbol): Likewise.
13340 (aarch64_mov_operand_p): Likewise.
13341 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
13342 (aarch64_mov_operand): Likewise.
13344 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
13346 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
13347 for info->spe_gp_size.
13349 2015-09-24 Richard Biener <rguenther@suse.de>
13352 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
13355 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
13357 * tree-object-size.c (plus_stmt_object_size)
13358 (cond_expr_object_size): Change the formal parameters from gimple
13360 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
13361 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
13362 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
13364 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13366 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
13367 Check for ld -type pie on Solaris 11.x and 12.
13368 * configure: Regenerate.
13369 * config.in: Regenerate.
13371 * gcc.c (LD_PIE_SPEC): Allow redefinition.
13373 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
13374 (STARTFILE_SPEC): Use it.
13375 (ENDFILE_CRTEND_SPEC): Define.
13376 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
13377 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
13378 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
13379 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
13380 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
13381 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
13382 (ENDFILE_ARCH_SPEC): Define.
13383 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
13385 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13387 * configure.ac (gcc_cv_solaris_crts): New test.
13388 * configure. Regenerate.
13389 * config.in: Regenerate.
13390 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
13391 HAVE_SOLARIS_CRTS variant.
13393 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13395 * tree-inline.h (count_insns_seq): Delete prototype.
13396 (estimate_num_insns_seq): Define prototype.
13397 * tree-inline.c (count_insns_seq): Delete.
13398 (estimate_num_insns_seq): Remove static qualifier.
13399 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
13400 with estimate_num_insns_seq.
13402 2015-09-24 Richard Biener <rguenther@suse.de>
13404 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
13406 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
13407 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
13409 (ao_ref_init_from_vn_reference): Record clique and base in the
13411 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
13413 2015-09-24 Richard Biener <rguenther@suse.de>
13415 PR tree-optimization/48885
13416 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
13417 as not including any restrict tags from other pointers.
13419 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
13421 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
13422 character when appending to offload_targets.
13424 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
13425 offload targets by commas, not colons.
13426 * config.in: Regenerate.
13427 * configure: Likewise.
13428 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
13429 instead of setting up the default offload targets here...
13430 (process_command): ..., do it here.
13432 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
13433 targets are separated by commas.
13434 * config.h.in: Regenerate.
13436 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
13437 Nathan Sidwell <nathan@codesourcery.com>
13439 * omp-low.h (omp_reduction_init_op): Declare.
13440 * omp-low.c (omp_reduction_init_op): New, broken out of ...
13441 (omp_reduction_init): ... here. Call it.
13442 * tree-parloops.c (initialize_reductions): Use
13443 omp_reduction_init_op.
13445 2015-09-23 Richard Biener <rguenther@suse.de>
13447 PR middle-end/67662
13448 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
13449 undefined overflow unless they will cancel out.
13451 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
13453 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
13456 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
13459 * opts.h (write_langs): Declare.
13460 * opts-global.c (write_langs): Make it extern.
13462 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
13465 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
13466 overlapping regs when matching the pattern.
13468 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
13470 * config/aarch64/aarch64-simd.md
13471 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
13472 (aarch64_float_truncate_hi_v4sf_le): New.
13473 (aarch64_float_truncate_hi_v4sf_be): Likewise.
13475 2015-09-23 Richard Biener <rguenther@suse.de>
13477 * tree-ssa-structalias.c (intra_create_variable_infos): Build
13478 representatives for all restrict qualified pointer destinations.
13480 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
13482 * config/i386/i386.md (define_code_attr mshift): New.
13483 (define_mode_iterator SWI1248_AVX512BW): Rename ...
13484 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
13486 (define_insn "*k<logic><mode>"): Use new iterator name.
13487 (define_insn "*<mshift><mode>3"): New.
13489 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
13491 PR middle-end/67649
13492 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
13493 mark the block as accessible.
13495 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
13497 * function.c (thread_prologue_and_epilogue_insns): Delete
13498 orig_entry_edge argument to try_shrink_wrapping.
13499 * shrink-wrap.c (can_get_prologue): New function.
13500 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
13501 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
13502 can_get_prologue where needed. Remove code that finds a single
13503 edge for the prologue. Remove code that tests if any reg clobbered
13504 by the prologue is live on the prologue edge. Remove code that finds
13505 the new prologue edge after duplicating blocks. Make a new prologue
13507 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
13509 2015-09-22 Jeff Law <law@redhat.com>
13511 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
13514 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
13516 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
13517 -Wtemplates, -Wnamespaces): Document.
13519 2015-09-22 Tom de Vries <tom@codesourcery.com>
13521 PR tree-optimization/67671
13522 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
13523 pointer references as restrict.
13525 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
13527 * config/nios2/nios2.c (nios2_legitimize_address): When handling
13528 'reg + reloc' cases, allow first operand to be non-REG, and use
13529 force_reg() to enforce address pattern.
13531 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
13534 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
13535 (define_mode_iterator VI12_AVX_AVX512F): New.
13536 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
13537 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
13538 (define_insn "*<code><mode>3"): ... Into new pattern using
13539 VI12_AVX_AVX512F iterators without masking.
13541 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13543 * config.gcc: Support "skylake-avx512".
13544 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13545 PROCESSOR_SKYLAKE_AVX512.
13546 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
13547 (processor_target_table): Add "skylake-avx512".
13548 (PTA_SKYLAKE_AVX512): Define.
13549 (ix86_option_override_internal): Add "skylake_avx512".
13550 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
13551 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
13552 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
13553 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
13554 * doc/invoke.texi (skylake-avx512): New.
13556 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13558 * config/i386/i386.md (define_insn "kunpckhi"): Fix
13559 operand in pattern.
13560 (define_insn "kunpcksi"): Ditto.
13561 (define_insn "kunpckdi"): Ditto.
13563 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13565 * config/i386/i386.md (define_split not/xor SWI1248x): Use
13566 iterator instead of fixed modes.
13568 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13570 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13571 Adjust declaration.
13572 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
13573 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
13574 out_result. Update to support update-fetch operations.
13575 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
13576 Adjust for change to aarch64_gen_atomic_ldop.
13577 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
13578 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
13579 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
13580 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
13581 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
13583 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13585 * config/aarch64/aarch64-protos.h
13586 (aarch64_atomic_ldop_supported_p): Declare.
13587 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
13588 (enum aarch64_atomic_load_op_code): New.
13589 (aarch64_emit_atomic_load_op): New.
13590 (aarch64_gen_atomic_ldop): Update to support load-operate
13592 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
13594 (aarch64_atomic_<atomic_optab><mode>): New.
13595 (aarch64_atomic_<atomic_optab><mode>_lse): New.
13596 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
13597 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
13598 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
13600 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13602 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
13603 (UNSPECV_ATOMIC_LDOP_OR): New.
13604 (UNSPECV_ATOMIC_LDOP_BIC): New.
13605 (UNSPECV_ATOMIC_LDOP_XOR): New.
13606 (UNSPECV_ATOMIC_LDOP_PLUS): New.
13607 (ATOMIC_LDOP): New.
13608 (atomic_ldop): New.
13609 (aarch64_atomic_load<atomic_ldop><mode>): New.
13611 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13613 * config/aarch64/aarch64.md
13614 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
13617 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13619 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13621 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
13622 (aarch64_gen_atomic_ldop): New.
13623 (aarch64_split_atomic_op): Fix whitespace and add a comment.
13624 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
13625 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
13626 (atomic_exchange<mode>): Replace with an expander.
13627 (aarch64_atomic_exchange<mode>): New.
13628 (aarch64_atomic_exchange<mode>_lse): New.
13629 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
13630 (aarch64_atomic_swp<mode>): New.
13632 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
13634 * tree-inline.c (expand_call_inline): Use inform for extra note.
13635 Do not give a note with UNKNOWN_LOCATION.
13636 Replace input_location with gimple_location (stmt).
13637 Use true/false instead of TRUE/FALSE.
13639 2015-09-22 Tom de Vries <tom@codesourcery.com>
13641 PR tree-optimization/67666
13642 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
13643 with single field non-conservative.
13645 2015-09-21 David S. Miller <davem@davemloft.net>
13649 2015-09-11 David S. Miller <davem@davemloft.net>
13651 * config/sparc/constraints.md: Make "U" constraint a real register
13653 * config/sparc/sparc.c (TARGET_LRA_P): Define.
13654 (D_MODES, DF_MODES): Add missing cast.
13655 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13656 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13657 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13659 * config/sparc/sparc.h (PROMOTE_MODE): Define.
13660 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13661 provide these insn when flag_pic.
13663 2015-09-17 David S. Miller <davem@davemloft.net>
13665 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
13667 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
13669 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13670 (HARD_REGNO_CALLER_SAVE_MODE): Define.
13671 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13672 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13673 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13674 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13675 provide when flag_pic.
13677 2015-09-21 Jeff Law <law@redhat.com>
13679 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
13682 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13684 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
13686 2015-09-21 Richard Biener <rguenther@suse.de>
13688 * passes.c (rest_of_decl_compilation): Do not call
13689 dwarf2out_early_global_decl for aliases.
13691 2015-09-21 Richard Biener <rguenther@suse.de>
13694 * dwarf2out.c (add_location_or_const_value_attribute): Remove
13695 attribute parameter. Early exit if either DW_AT_const_value
13696 or DW_AT_location are present already.
13697 (gen_variable_die): Adjust caller.
13698 (dwarf2out_late_global_decl): Likewise.
13700 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13703 * config/sh/sh.c (sh_remove_overlapping_post_inc,
13704 sh_peephole_emit_move_insn): Add new functions.
13705 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
13706 sh_peephole_emit_move_insn): Declere them.
13707 * config/sh/sh.md: Use them in various peephole2 patterns.
13709 2015-09-21 Richard Biener <rguenther@suse.de>
13711 PR middle-end/67651
13712 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
13713 address with -fno-delete-null-pointer-checks.
13715 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
13717 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
13718 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
13719 (reduc_uplus_v16qi): Remove.
13721 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
13722 (reduc_<VEC_reduc_name>_v2df): Remove.
13723 (reduc_<VEC_reduc_name>_v4sf): Remove.
13724 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
13726 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
13727 gen_ function by removing * prefix.
13728 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
13730 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13732 PR middle-end/60832
13733 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
13734 Print i_bound without converting it to a tree.
13736 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
13738 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
13739 operands[4] operands[5] swap with std::swap, removed tmp variable.
13740 (arm_evpc_neon_vzip): Replaced in0/in1 and
13741 out0/out1 swaps with std::swap, removed x variable.
13742 (arm_evpc_neon_vtrn): Replaced in0/int1 and
13743 out0/out1 swaos with std::swap, removed x variable.
13744 (arm_expand_vec_perm_const_1): Replaced
13745 d->op0/d->op1 swap with std::swap, removed x variable.
13746 (arm_evpc_neon_vuzp): Replaced in0/in1 and
13747 out0/out1 swaps with std::swap, removed x variable.
13749 2015-09-21 Jonathan Yong <10walls@gmail.com>
13751 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
13752 sysroot/usr/lib/32api for additional win32 libraries,
13753 fixes failing Cygwin bootstrapping.
13755 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13757 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
13759 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13762 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
13763 (*mov_t_msb_neg): Rewrite negc pattern.
13765 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13767 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
13768 immediate generation code.
13770 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13772 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
13773 redundant immediate generation code.
13775 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13777 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
13778 (AARCH64_NUM_BITMASKS): Remove.
13779 (aarch64_bitmasks_cmp): Remove.
13780 (aarch64_build_bitmask_table): Remove.
13782 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13784 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
13785 slow immediate matching loops with a faster algorithm.
13787 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13789 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
13792 2015-09-20 Jeff Law <law@redhat.com>
13794 PR tree-optimization/47679
13795 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
13796 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
13797 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
13798 (thread_through_normal_block): Use record_temporary_equivalences.
13800 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
13802 * coretypes.h (gimple): Change typedef to be a forward declaration.
13803 * gimple.h (gimple_statement_base): rename to gimple.
13804 * (all functions and types using gimple): Adjust.
13805 * *.[ch]: Likewise.
13807 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
13808 David Edelsohn <dje.gcc@gmail.com>
13810 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
13811 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13812 (EH_FRAME_THROUGH_COLLECT2): Define.
13813 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13814 (ASM_OUTPUT_DWARF_PCREL): Define.
13815 (ASM_OUTPUT_DWARF_DATAREL): Define.
13817 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
13819 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
13822 2015-09-18 Jeff Law <law@redhat.com>
13824 PR tree-optimization/47679
13825 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
13827 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
13828 object. Update constructor.
13829 (pass_dominator::execute): Corresponding chagnes to declaration
13830 and initialization of avail_exprs_stack. Update constructor call
13831 for dom_opt_dom_walker object.
13832 (lookup_avail_expr, record_cond): Accept additional argument. Pass
13833 it down to children as needed.
13834 (record_equivalences_from_incoming_edge): Likewise.
13835 (eliminate_redundant_computations): Likewise.
13836 (record_equivalences_from_stmt): Likewise.
13837 (simplify_stmt_for_jump_threading): Likewise.
13838 (record_temporary_equivalences): Likewise.
13839 (optimize_stmt): Likewise.
13840 (dom_opt_dom_walker::thread_across_edge): Update access to
13841 avail_exprs_stack object and pass it to children as needed.
13842 (dom_opt_dom_walker::before_dom_children): Similarly.
13843 (dom_opt_dom_walker::after_dom_children): Similarly.
13844 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
13845 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
13846 Add avail_expr_stack argument. Pass it to children as needed.
13847 (dummy_simplify): Likewise.
13848 (simplify_control_stmt_condition): Likewise.
13849 (thread_around_empty_blocks): Likewise.
13850 (thread_through_normal_block): Likewise.
13851 (thread_across_edge): Likewise.
13852 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13853 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
13855 PR tree-optimization/47679
13856 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
13858 (dom_opt_dom_walker): New private member holding the const_and_copies
13859 object. Update constructor.
13860 (pass_dominator::execute): Corresponding changes to declaration
13861 and initialization of const_and_copies. Update constructor call
13862 for the dom_opt_dom_walker object.
13863 (record_temporary_equivalences): Accept const_and_copies argument
13864 pass it down to children as needed.
13865 (record_equality): Likewise.
13866 (record_equivalences_from_incoming_edge): Likewise.
13867 (cprop_into_successor_phis, optimize_stmt): Likewise.
13868 (eliminate_redundant_computations): Likewise.
13869 (dom_opt_dom_walker::thread_across_edge): Update access to
13870 const_and_copies object and pass it to children as needed.
13871 (dom_opt_dom_walker::before_dom_children): Similarly.
13872 (dom_opt_dom_walker::after_dom_children): Similarly.
13874 PR tree-optimization/47679
13875 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
13876 it into the avail_exprs_stack class.
13877 (pass_dominator::execute): Corresponding changes to declaration
13878 and initialization of avail_exprs. Pass avail_exprs to
13879 dump_dominator_optimization_stats.
13880 (record_cond): Extract avail_exprs from avail_exprs_stack.
13881 (lookup_avail_expr): Similarly.
13882 (htab_staticstics): Remove unnecessary prototype. Move to earlier
13884 (dump_dominator_optimization_stats): Make static and prototype.
13885 Add argument for the hash table to dump.
13886 (debug_dominator_optimization_stats): Remove.
13887 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
13889 (debug_dominator_optimization_stats): Similarly.
13890 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
13891 "void" in prototype for pop_to_marker method. Add accessor method
13892 for the underlying avail_exprs table.
13894 * tree-ssa-threadedge.c: Remove trailing whitespace.
13896 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
13898 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
13900 (pa_ldil_cint_p): Likewise.
13901 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
13902 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
13904 * config/pa/pa.md: Likewise.
13906 2015-09-18 David Malcolm <dmalcolm@redhat.com>
13908 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
13909 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
13910 (diagnostic_show_locus): Likewise.
13911 (diagnostic_print_caret_line): Likewise.
13912 * diagnostic-show-locus.c: New file.
13914 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
13916 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
13917 "back" parameter. Declare label in #if block.
13919 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
13921 PR middle-end/67619
13922 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
13923 the address to a register.
13925 2015-09-18 Jeff Law <law@redhat.com>
13927 PR tree-optimization/47679
13928 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
13929 * tree-ssa-dom.c: Remove unnecessary header includes.
13930 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
13931 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
13932 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
13933 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
13934 (pass_phi_only_cprop::execute): Likewise.
13935 (make_pass_phi_only_cprop): Likewise.
13936 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
13937 uses of file scoped statics by passing the required objects
13938 as parameters wherever needed.
13940 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
13941 David Edelsohn <dje.gcc@gmail.com>
13943 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
13944 EH_FRAME_THROUGH_COLLECT2.
13945 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
13947 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
13948 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
13949 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
13950 * except.c (switch_to_exception_section): Use a read-only section
13951 even if EH_FRAME_SECTION_NAME is undefined.
13952 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
13953 * collect2.c (write_c_file_stat): Provide dbase on AIX.
13954 (scan_prog_file): Don't export __dso_handle nor
13955 __gcc_unwind_dbase.
13956 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13957 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13958 (ASM_OUTPUT_DWARF_PCREL): Define.
13959 (ASM_OUTPUT_DWARF_DATAREL): Define.
13960 (EH_FRAME_THROUGH_COLLECT2): Define.
13961 (EH_FRAME_IN_DATA_SECTION): Delete.
13962 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
13963 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
13965 (rs6000_asm_output_dwarf_datarel): Declare.
13966 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
13967 (rs6000_aix_asm_output_dwarf_datarel): New.
13968 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
13969 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
13970 (EH_FRAME_THROUGH_COLLECT2): Define.
13971 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
13972 (EH_FRAME_THROUGH_COLLECT2): Define.
13973 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13974 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
13975 (EH_FRAME_THROUGH_COLLECT2): New.
13976 (ASM_OUTPUT_DWARF_DATAREL): New.
13977 * doc/tm.texi: Regenerate.
13979 2015-09-18 Richard Biener <rguenther@suse.de>
13981 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
13982 we're in early phase.
13983 (schedule_generic_params_dies_gen): Likewise.
13984 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
13985 work as possible, retaining unhandled cases.
13986 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
13987 clear out generic_type_instances at the end.
13988 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
13989 (dwarf2out_early_finish): ... here. Do most of
13990 gen_remaining_tmpl_value_param_die_attribute here.
13992 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
13994 PR tree-optimization/67283
13995 * tree-sra.c (type_consists_of_records_p): Rename to...
13996 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13997 (completely_scalarize_record): Rename to...
13998 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13999 (scalarize_elem): New.
14000 (analyze_all_variable_accesses): Follow renamings.
14002 2015-09-18 Richard Biener <rguenther@suse.de>
14004 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
14007 2015-09-18 Richard Biener <rguenther@suse.de>
14009 PR tree-optimization/66142
14010 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
14011 treat MEM[&x] and x the same.
14012 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
14013 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
14014 when we simplified sth.
14015 (vn_reference_maybe_forwprop_address): Likewise.
14016 (valueize_refs_1): When we simplified through
14017 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
14018 set valueized_anything to true.
14019 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
14020 one ref kills the other instead of just a offset-based test.
14021 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
14022 for the operand_equal_p test to compare bases and also compare
14025 2015-09-17 Christian Bruel <christian.bruel@st.com>
14027 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
14029 2015-09-17 Richard Henderson <rth@redhat.com>
14032 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
14033 pointers that encode the alignment of the object.
14035 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
14037 PR rtl-optimization/66790
14038 * df-problems.c (LIVE): Amend documentation.
14040 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
14042 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
14044 (GTFILES): Replace optabs.c with optabs-libfunc.c.
14045 * genopinit.c (main): Add an include guard to insn-opinit.h.
14046 Protect the rtx_code parts with NUM_RTX_CODE.
14047 * optabs.h: Split parts out to...
14048 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
14049 * optabs.c: Split parts out to...
14050 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
14051 * cilk-common.c: Include optabs-query.h rather than optabs.h.
14052 * fold-const.c: Likewise.
14053 * target-globals.c: Likewise.
14054 * tree-if-conv.c: Likewise.
14055 * tree-ssa-forwprop.c: Likewise.
14056 * tree-ssa-loop-prefetch.c: Likewise.
14057 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
14058 Remove unncessary include files.
14059 * tree-ssa-phiopt.c: Likewise.
14060 * tree-ssa-reassoc.c: Likewise.
14061 * tree-switch-conversion.c: Likewise.
14062 * tree-vect-data-refs.c: Likewise.
14063 * tree-vect-generic.c: Likewise.
14064 * tree-vect-loop.c: Likewise.
14065 * tree-vect-patterns.c: Likewise.
14066 * tree-vect-slp.c: Likewise.
14067 * tree-vect-stmts.c: Likewise.
14068 * tree-vrp.c: Likewise.
14069 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
14070 rather than optabs.h.
14071 * expr.c: Include optabs-tree.h.
14072 * function.c: Likewise.
14074 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
14076 PR middle-end/65958
14077 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
14078 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
14079 * config/arm/arm.c: Include common/common-target.h.
14080 (use_return_insn): Return 0 if the static chain register was saved
14081 above a non-APCS frame.
14082 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
14083 (struct scratch_reg): New.
14084 (get_scratch_register_on_entry): New function.
14085 (release_scratch_register_on_entry): Likewise.
14086 (arm_emit_probe_stack_range): Likewise.
14087 (output_probe_stack_range): Likewise.
14088 (arm_expand_prologue): Factor out code dealing with the IP register
14089 for nested function and adjust it for stack checking.
14090 Invoke arm_emit_probe_stack_range if static builtin stack checking
14092 (thumb1_expand_prologue): Sorry out if static builtin stack checking
14094 (arm_expand_epilogue): Add the saved static chain register, if any, to
14095 the amount of pre-pushed registers to pop.
14096 (arm_frame_pointer_required): Return true if static stack checking is
14097 enabled and we want to catch the exception with the EABI unwinder.
14098 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
14099 (UNSPEC_PROBE_STACK_RANGE): Likewise.
14100 * config/arm/arm.md (probe_stack): New insn.
14101 (probe_stack_range): Likewise.
14103 2015-09-17 Richard Biener <rguenther@suse.de>
14105 * genmatch.c (parser::parse_expr): Improve error message
14106 for mis-placed flags.
14108 2015-09-17 Richard Biener <rguenther@suse.de>
14110 * passes.c (rest_of_decl_compilation): Always call early_global_decl
14111 debug hook when we created a varpool node.
14112 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
14113 dwarf2out_early_global_decl, when not just add location or
14114 value attributes to existing DIEs.
14116 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
14118 * config/aarch64/aarch64.md (copysigndf3): New.
14119 (copysignsf3): Likewise.
14121 2015-09-17 David S. Miller <davem@davemloft.net>
14123 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
14124 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
14125 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
14126 (HARD_REGNO_CALLER_SAVE_MODE): Define.
14127 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
14128 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
14129 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
14130 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
14131 provide when flag_pic.
14133 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
14135 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
14136 object_allocator change.
14138 2015-09-17 Bin Cheng <bin.cheng@arm.com>
14140 PR tree-optimization/66388
14141 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
14142 (dump_iv): Dump no_overflow information.
14143 (alloc_iv): Initialize new field for struct iv.
14144 (mark_bivs): Count number of no_overflow bivs.
14145 (find_deriving_biv_for_expr, record_biv_for_address_use): New
14147 (idx_find_step): Call new functions above.
14148 (add_candidate_1, add_candidate): New paramter.
14149 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
14150 (get_computation_aff): Simplify convertion of cand for BIV.
14151 (get_computation_cost_at): Step cand's base if necessary.
14153 2015-09-17 Bin Cheng <bin.cheng@arm.com>
14155 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
14157 (tree_simplify_using_condition): Ditto.
14158 (simplify_using_initial_conditions): Ditto.
14159 (loop_exits_before_overflow): Pass new argument to function
14160 simplify_using_initial_conditions. Remove case for type conversions
14162 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
14164 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
14165 in iv base using loop initial conditions.
14167 2015-09-16 Jeff Law <law@redhat.com>
14169 PR tree-optimization/47679
14170 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
14171 (free_all_edge_infos): Use it.
14172 (allocate_edge_info): Free preexisting edge info data.
14173 (pass_dominator::execute): Set up initial edge info structures.
14174 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
14175 thread_across_edge.
14176 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
14177 If non-null, then push/pop markers appropriately.
14178 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14179 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
14180 thread-across_edge.
14182 2015-09-16 James Bowman <james.bowman@ftdichip.com>
14184 * config/ft32/ft32.c: Fix the memory address space predicate.
14186 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
14189 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
14190 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14192 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
14194 * toplev.h (check_global_declaration): Remove declaration.
14195 * toplev.c (check_global_declaration): Move to ...
14196 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
14197 (analyze_functions): Update call.
14199 2015-09-16 David S. Miller <davem@davemloft.net>
14201 * lra-constraints.c (simplify_operand_subreg): Do not assume that
14202 lowpart of a SUBREG has offset zero.
14204 2015-09-16 Jeff Law <law@redhat.com>
14206 PR tree-optimization/47679
14207 * tree-ssa-dom.c (enum expr_kind): Moved from here to
14208 tree-ssa-scopedtables.h.
14209 (struct hashable_expr, class expr_hash_elt): Likewise.
14210 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
14211 Move associated methods into tree-ssa-scopedtables.c.
14212 (avail_expr_hash, initialize_expr_from_cond): Similarly.
14213 (hashable_expr_equal_p, add_expr_commutative): Likewise.
14214 (add_hashable_expr): Likewise.
14215 (record_cond): Delete element directly.
14216 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
14217 private copy ctor and assignment operator methods.
14218 (expr_elt_hasher): Inline trivial methods.
14219 (initialize_expr_from_cond): Prototype.
14220 * tree-ssa-scopedtables.c: Add necessary includes, functions and
14221 methods that were previously in tree-ssa-dom.c. Improve various
14224 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
14226 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
14228 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
14231 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
14234 2015-09-16 Richard Biener <rguenther@suse.de>
14236 PR middle-end/67253
14237 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
14238 location of possibly shared trees.
14240 2015-09-16 Richard Biener <rguenther@suse.de>
14242 PR middle-end/67271
14243 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
14245 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
14247 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
14248 offset and size computations instead of HOST_WIDE_INT.
14250 2015-09-16 Richard Biener <rguenther@suse.de>
14252 PR middle-end/67442
14253 * fold-const.c (extract_muldiv_1): Properly extend multiplication
14254 result before builting a tree via wide_int_to_tree.
14256 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
14258 * Makefile.in: Add memory-block.cc
14259 (pool_allocator::initialize): Use fixed block size.
14260 (pool_allocator::release): Use memory_block_pool.
14261 (pool_allocator::allocate): Likewise.
14262 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
14264 * cfg.c (initialize_original_copy_tables): Likewise.
14265 * cselib.c (elt_list_pool, elt_loc_list_pool,
14266 cselib_val_pool): Likewise.
14267 * df-problems.c (df_chain_alloc): Likewise.
14268 * df-scan.c (df_scan_alloc): Likewise.
14269 * dse.c (cse_store_info_pool, rtx_store_info_pool,
14270 read_info_type_pool, insn_info_type_pool, bb_info_pool,
14271 group_info_pool, deferred_change_pool): Likewise.
14272 * et-forest.c (et_nodes, et_occurrences): Likewise.
14273 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
14274 ipcp_agg_lattice_pool): Likewise.
14275 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
14276 * ipa-profile.c (histogram_pool): Likewise.
14277 * ipa-prop.c (ipa_refdesc_pool): Likewise.
14278 * ira-build.c (live_range_pool, allocno_pool, object_pool,
14279 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
14280 * ira-color.c (update_cost_record_pool): Likewise.
14281 * lra-lives.c (lra_live_range_pool): Likewise.
14282 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
14283 * memory-block.cc: New file.
14284 * memory-block.h: New file.
14285 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
14286 * sched-deps.c (sched_deps_init): Likewise.
14287 * sel-sched-ir.c (sched_lists_pool): Likewise.
14288 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
14289 * tree-sra.c (access_pool): Likewise.
14290 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
14291 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
14292 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
14293 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
14294 * tree-ssa-strlen.c (strinfo_pool): Likewise.
14295 * tree-ssa-structalias.c (variable_info_pool): Likewise.
14296 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
14297 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
14299 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
14301 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
14303 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
14306 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
14308 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
14309 to pass TLS call argument, according to current ABI.
14310 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
14311 callx0 for TLS call, according to current ABI.
14313 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
14315 * tree-eh.c (lower_try_finally_dup_block): Clear location information
14316 on stack restore statements.
14317 (decide_copy_try_finally): Do not consider a stack restore statement as
14318 coming from sources.
14320 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
14322 * config/alpha/alpha.c (alpha_expand_block_clear): Use
14323 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
14325 2015-09-15 Jeff Law <law@redhat.com>
14327 PR tree-optimization/47679
14328 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
14329 methods and private members.
14330 (avail_exprs_stack): Similarly. Change type of global
14331 from a pair of expr_hash_elt_t to the new class.
14332 (expr_elt_hasher::hash): Corresponding changes.
14333 (expr_elt_hasher::equal): Similarly.
14334 (avail_expr_hash): Similarly.
14335 (pass_dominator::execute): Similarly.
14336 (dom_opt_dom_walker::thread_across_edge): Similarly.
14337 (record_cond): Similarly.
14338 (dom_opt_dom_walker::before_dom_children): Similarly.
14339 (dom_opt_dom_walker::after_dom_children): Similarly.
14340 (lookup_avail_expr): Likewise.
14341 (initialize_hash_element): Now a expr_hash_elt constructor.
14342 (initialize_hash_element_from_expr): Similarly.
14343 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
14344 (free_expr_hash_elt): Call dtor for the element.
14345 (remove_local_expressions_from_table): Now the "pop_to_marker"
14346 method in the available_exprs_stack class.
14347 (avail_expr_stack::record_expr): Method factored out.
14348 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
14350 (hashable_expr_equal_p): Fix formatting.
14352 2015-09-15 David Malcolm <dmalcolm@redhat.com>
14354 * input.h (location_get_source_line): Drop "expanded_location"
14355 param in favor of a file and line number.
14356 * input.c (location_get_source_line): Likewise.
14357 (dump_location_info): Update for change in signature of
14358 location_get_source_line.
14359 * diagnostic.c (diagnostic_print_caret_line): Likewise.
14361 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
14363 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
14364 Bump to 4KB for SJLJ exceptions.
14365 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
14366 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
14367 * doc/tm.texi: Regenerate.
14369 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14371 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
14372 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
14375 2015-09-15 Richard Biener <rguenther@suse.de>
14377 PR tree-optimization/67470
14378 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
14379 structure for PHI hoisting by inserting a forwarder block
14382 2015-09-15 Christian Bruel <christian.bruel@st.com>
14384 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
14385 (arm_option_print): New function.
14387 2015-09-15 Christian Bruel <christian.bruel@st.com>
14390 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
14391 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
14392 Remove flags parameter.
14393 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
14394 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
14395 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
14396 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
14397 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
14398 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
14399 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
14400 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
14402 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14404 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
14406 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
14407 AARCH64_VALID_SIMD_DREG_MODE.
14409 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14411 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
14412 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
14413 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
14414 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
14415 aarch64_ld4_lane<mode>): Combine together, making...
14416 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14417 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14418 aarch64_st4_lane<mode>): Combine together, making...
14419 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14420 * config/aarch64/iterators.md (nregs): Add comment.
14422 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14424 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
14425 Change operand mode from <V_TWO_ELEM> to BLK.
14426 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
14427 (aarch64_vec_store_lanesoi_lane<mode): Likewise
14428 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14429 (aarch64_ld2_lane<mode>): Likewise.
14430 (aarch64_st2_lane<VQ:mode>): Likewise.
14431 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
14433 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14435 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
14436 Change operand mode from <V_FOUR_ELEM> to BLK.
14437 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
14438 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
14439 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14440 (aarch64_ld4_lane<mode>): Likewise.
14441 (aarch64_st4_lane<mode>): Likewise.
14442 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
14444 2015-09-15 Richard Biener <rguenther@suse.de>
14446 PR middle-end/67563
14447 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
14448 transfer EH info from old to new stmt.
14449 (replace_call_with_value): Likewise.
14450 (replace_call_with_call_and_fold): Likewise.
14451 (gimple_fold_builtin_memory_op): Likewise.
14452 (gimple_fold_builtin_memset): Likewise.
14453 (gimple_fold_builtin_stpcpy): Likewise.
14454 (gimple_fold_call): Likewise.
14456 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14458 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
14460 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
14461 (aarch64_simd_intEI_type_node): Likewise.
14462 (aarch64_simd_builtin_std_type): Remove EImode case.
14463 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
14464 * config/aarch64/aarch64-modes.def: Remove EImode.
14466 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14468 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
14469 Change operand mode from <V_THREE_ELEM> to BLK.
14470 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
14471 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
14472 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14473 (aarch64_ld3_lane<mode>): Likewise.
14474 (aarch64_st3_lane<mode>): Likewise.
14475 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
14477 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14479 * config/aarch64/aarch64-simd.md
14480 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
14481 Change all TImode operands to BLKmode.
14482 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
14483 Change all EImode operands to BLKmode.
14484 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
14485 Change all OImode operands to BLKmode.
14487 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
14488 and call set_mem_size.
14489 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
14491 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
14493 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14495 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
14497 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
14499 (vec_store_lanesci_lane<mode>): Rename to...
14500 (aarch64_vec_store_lanesci_lane<mode>): ...this.
14502 (vec_store_lanesxi_lane<mode>): Rename to...
14503 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
14505 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14506 aarch64_st4_lane<mode>): Follow renaming.
14508 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14510 * config/s390/s390.c (s390_const_operand_ok): Add missing
14513 2015-09-15 Richard Biener <rguenther@suse.de>
14516 * lto-streamer.h (lto_location_cache::current_sysp): Properly
14518 * lto-streamer-out.c (clear_line_info): Likewise.
14520 2015-09-15 Richard Biener <rguenther@suse.de>
14522 * doc/match-and-simplify.texi: Fix wording.
14524 2015-09-15 Bin Cheng <bin.cheng@arm.com>
14526 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
14527 unnecessary type conversion in op1.
14529 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
14531 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
14532 (dup_block_and_redirect): Delete function.
14533 (can_dup_for_shrink_wrapping): New function.
14534 (fix_fake_fallthrough_edge): New function.
14535 (try_shrink_wrapping): Rewrite function.
14536 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
14538 2015-09-14 Rich Felker <dalias@libc.org>
14540 * configure.ac: Change target pattern for sh TLS support
14541 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
14542 * configure: Regenerate.
14544 2015-09-14 Jeff Law <law@redhat.com>
14546 PR tree-optimization/47679
14547 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
14548 type rather than void *.
14550 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
14553 * diagnostic.c (diagnostic_initialize): Do not set
14554 some_warnings_are_errors.
14555 (diagnostic_finish): Use DK_WERROR count instead.
14556 (diagnostic_report_diagnostic): Do not set
14557 some_warnings_are_errors.
14558 * diagnostic.h (struct diagnostic_context): Remove
14559 some_warnings_are_errors.
14561 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
14563 * config/sparc/predicates.md (const_all_ones_operand): Use
14564 CONSTM1_RTX to simplify definition.
14566 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
14569 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
14572 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
14574 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
14575 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
14576 OPT_fshow_column to handled saved option cases.
14577 (append_compiler_options): Do not skip the above added options.
14579 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14582 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
14583 nopcrelative_literal_loads.
14584 (aarch64_classify_address): Likewise.
14585 (aarch64_constant_pool_reload_icode): Define.
14586 (aarch64_secondary_reload): Handle secondary reloads for
14588 (aarch64_override_options): Handle nopcrelative_literal_loads.
14589 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
14590 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
14592 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
14593 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
14594 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
14596 * doc/invoke.texi (mpc-relative-literal-loads): Document.
14598 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
14600 PR middle-end/67401
14601 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
14602 sync_compare_and_swap_optab libcall to target_oval.
14604 2015-09-14 Marek Polacek <polacek@redhat.com>
14606 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
14608 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
14610 2015-09-11 Mark Wielaard <mjw@redhat.com>
14613 * toplev.c (check_global_declaration): Check and use
14614 warn_unused_const_variable.
14615 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
14616 (-Wunused-variable): Remove non-constant. For C implies
14617 -Wunused-const-variable.
14618 (-Wunused-const-variable): New.
14620 2015-09-14 Richard Biener <rguenther@suse.de>
14622 * doc/match-and-simplify.texi: Update for changed syntax
14623 of inner ifs and the new switch expression.
14625 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
14627 * config/i386/haswell.md: New file describing Haswell pipeline.
14628 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
14629 haswell-like processors.
14630 (ix86_reassociation_width): Increase reassociation width for 64-bit
14631 Haswell processor family.
14632 * config/i386/i386.md: Introduce haswell cpu and include new md file.
14634 2015-09-14 Richard Biener <rguenther@suse.de>
14636 * doc/match-and-simplify.texi: Fixup some formatting issues
14637 and document the 's' flag.
14639 2015-09-13 Olivier Hainque <hainque@adacore.com>
14640 Eric Botcazou <ebotcazou@adacore.com>
14642 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
14643 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
14644 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
14645 (TARGET_CPU_gr5): Likewise.
14646 (TARGET_CPU_gr6): Likewise.
14647 (MULTILIB_DEFAULTS): Likewise.
14648 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
14649 for mcpu=gr5 and mcpu=gr6.
14650 (MULTILIB_DIRNAMES): Adjust accordingly.
14652 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14654 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
14655 (mem_ref_p): Likewise.
14656 (outermost_indep_loop): Adjust.
14657 (mem_ref_in_stmt): Likewise.
14658 (determine_max_movement): Likewise.
14659 (mem_ref_alloc): Likewise.
14660 (record_mem_ref_loc): Likewise.
14661 (set_ref_stored_in_loop): Likewise.
14662 (mark_ref_stored): Likewise.
14663 (gather_mem_refs_stmt): Likewise.
14664 (mem_refs_may_alias_p): Likewise.
14665 (for_all_locs_in_loop): Likewise.
14666 (struct rewrite_mem_ref_loc): Likewise.
14667 (rewrite_mem_refs): Likewise.
14668 (struct first_mem_ref_loc_1): Likewise.
14669 (first_mem_ref_loc): Likewise.
14670 (struct sm_set_flag_if_changed): Likewise.
14671 (execute_sm_if_changed_flag_set): Likewise.
14672 (execute_sm): Likewise.
14673 (hoist_memory_references):
14674 (struct ref_always_accessed): Likewise.
14675 (ref_always_accessed_p): Likewise.
14676 (refs_independent_p): Likewise.
14677 (record_dep_loop): Likewise.
14678 (ref_indep_loop_p_1): Likewise.
14679 (ref_indep_loop_p_2): Likewise.
14680 (ref_indep_loop_p): Likewise.
14681 (can_sm_ref_p): Likewise.
14682 (find_refs_for_sm): Likewise.
14683 (tree_ssa_lim_finalize): Likewise.
14685 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14687 * dwarf2out.c (dw_attr_ref): Remove typedef.
14688 (dw_line_info_ref): Likewise.
14689 (pubname_ref): Likewise.
14690 (dw_ranges_ref): Likewise.
14691 (dw_ranges_by_label_ref): Likewise.
14692 (comdat_type_node_ref): Likewise.
14694 (get_AT_low_pc): Likewise.
14695 (get_AT_hi_pc): Likewise.
14696 (get_AT_string): Likewise.
14697 (get_AT_flag): Likewise.
14698 (get_AT_unsigned): Likewise.
14699 (get_AT_ref): Likewise.
14700 (get_AT_file): Likewise.
14701 (remove_AT): Likewise.
14702 (print_die): Likewise.
14703 (check_die): Likewise.
14704 (die_checksum): Likewise.
14705 (attr_checksum_ordered): Likewise.
14706 (struct checksum_attributes): Likewise.
14707 (collect_checksum_attributes): Likewise.
14708 (die_checksum_ordered): Likewise.
14709 (same_die_p): Likewise.
14710 (is_declaration_die): Likewise.
14711 (clone_die): Likewise.
14712 (clone_as_declaration): Likewise.
14713 (copy_declaration_context): Likewise.
14714 (break_out_comdat_types): Likewise.
14715 (copy_decls_walk): Likewise.
14716 (output_location_lists): Likewise.
14717 (external_ref_hasher::hash): Likewise.
14718 (optimize_external_refs_1): Likewise.
14719 (build_abbrev_table): Likewise.
14720 (size_of_die): Likewise.
14721 (unmark_all_dies): Likewise.
14722 (size_of_pubnames): Likewise.
14723 (output_die_abbrevs): Likewise.
14724 (output_die): Likewise.
14725 (output_pubnames): Likewise.
14726 (add_ranges_num): Likewise.
14727 (add_ranges_by_labels): Likewise.
14728 (add_high_low_attributes): Likewise.
14729 (gen_producer_string): Likewise.
14730 (dwarf2out_set_name): Likewise.
14731 (new_line_info_table): Likewise.
14732 (prune_unused_types_walk_attribs): Likewise.
14733 (prune_unused_types_update_strings): Likewise.
14734 (prune_unused_types): Likewise.
14735 (resolve_addr): Likewise.
14736 (optimize_location_lists_1): Likewise.
14737 (index_location_lists): Likewise.
14738 (dwarf2out_finish): Likewise.
14740 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14742 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
14744 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14746 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
14747 (dump_asserts_for): Adjust.
14748 (register_new_assert_for): Likewise.
14749 (process_assert_insertions): Likewise.
14750 (insert_range_assertions): Likewise.
14752 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14754 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
14755 and remove typedef.
14756 (new_temp_expr_table): Adjust.
14757 (free_temp_expr_table): Likewise.
14758 (version_to_be_replaced_p): Likewise.
14759 (make_dependent_on_partition): Likewise.
14760 (add_to_partition_kill_list): Likewise.
14761 (remove_from_partition_kill_list): Likewise.
14762 (add_dependence): Likewise.
14763 (finished_with_expr): Likewise.
14764 (process_replaceable): Likewise.
14765 (kill_expr): Likewise.
14766 (kill_virtual_exprs): Likewise.
14767 (mark_replaceable): Likewise.
14768 (find_replaceable_in_bb): Likewise.
14769 (find_replaceable_exprs): Likewise.
14770 (debug_ter): Likewise.
14772 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14774 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
14775 (struct btr_user): Rename from btr_user_s.
14776 (struct btr_def): Rename from btr_def_s.
14777 (find_btr_def_group): Adjust.
14778 (add_btr_def): Likewise.
14779 (new_btr_user): Likewise.
14780 (note_other_use_this_block): Likewise.
14781 (compute_defs_uses_and_gen): Likewise.
14782 (link_btr_uses): Likewise.
14783 (build_btr_def_use_webs): Likewise.
14784 (block_at_edge_of_live_range_p): Likewise.
14785 (btr_def_live_range): Likewise.
14786 (combine_btr_defs): Likewise.
14787 (move_btr_def): Likewise.
14788 (migrate_btr_def): Likewise.
14789 (migrate_btr_defs): Likewise.
14791 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14793 * var-tracking.c (shared_hash_def): Rename to shared_hash.
14794 (shared_hash): Remove typedef.
14795 (struct dataflow_set): Adjust.
14796 (shared_hash_unshare): Likewise.
14797 (dataflow_set_merge): Likewise.
14798 (vt_initialize): Likewise.
14799 (vt_finalize): Likewise.
14801 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14803 * var-tracking.c (struct location_chain): Rename from
14804 location_chain_def.
14805 (struct variable_part): Adjust.
14806 (variable_htab_free): Likewise.
14807 (unshare_variable): Likewise.
14808 (get_init_value): Likewise.
14809 (get_addr_from_local_cache): Likewise.
14810 (drop_overlapping_mem_locs): Likewise.
14811 (val_reset): Likewise.
14812 (struct variable_union_info): Likewise.
14813 (variable_union): Likewise.
14814 (find_loc_in_1pdv): Likewise.
14815 (insert_into_intersection): Likewise.
14816 (intersect_loc_chains): Likewise.
14817 (canonicalize_loc_order_check): Likewise.
14818 (canonicalize_values_mark): Likewise.
14819 (canonicalize_values_star): Likewise.
14820 (canonicalize_vars_star): Likewise.
14821 (variable_merge_over_cur): Likewise.
14822 (remove_duplicate_values): Likewise.
14823 (variable_post_merge_new_vals): Likewise.
14824 (variable_post_merge_perm_vals): Likewise.
14825 (find_mem_expr_in_1pdv): Likewise.
14826 (dataflow_set_preserve_mem_locs): Likewise.
14827 (dataflow_set_remove_mem_locs): Likewise.
14828 (variable_part_different_p): Likewise.
14829 (onepart_variable_different_p): Likewise.
14830 (find_src_set_src): Likewise.
14831 (dump_var): Likewise.
14832 (set_slot_part): Likewise.
14833 (clobber_slot_part): Likewise.
14834 (delete_slot_part): Likewise.
14835 (vt_expand_var_loc_chain): Likewise.
14836 (emit_note_insn_var_location): Likewise.
14837 (vt_finalize): Likewise.
14839 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14841 * dse.c (store_info_t): Remove typedef.
14842 (group_info_t): Likewise.
14843 (const_group_info_t): Likewise.
14844 (deferred_change_t): Likewise.
14845 (get_group_info): Adjust.
14846 (free_store_info): Likewise.
14847 (canon_address): Likewise.
14848 (clear_rhs_from_active_local_stores): Likewise.
14849 (record_store): Likewise.
14850 (replace_read): Likewise.
14851 (check_mem_read_rtx): Likewise.
14852 (scan_insn): Likewise.
14853 (remove_useless_values): Likewise.
14854 (dse_step1): Likewise.
14855 (dse_step2_init): Likewise.
14856 (dse_step2_nospill): Likewise.
14857 (scan_stores_nospill): Likewise.
14858 (scan_reads_nospill): Likewise.
14859 (dse_step3_exit_block_scan): Likewise.
14860 (dse_step3): Likewise.
14861 (dse_step5_nospill): Likewise.
14862 (dse_step6): Likewise.
14864 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14866 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
14867 (alias_set_entry): Remove typedef.
14868 (alias_set_subset_of): Adjust.
14869 (alias_sets_conflict_p): Likewise.
14870 (init_alias_set_entry): Likewise.
14871 (get_alias_set): Likewise.
14872 (new_alias_set): Likewise.
14873 (record_alias_subset): Likewise.
14875 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
14877 * doc/install.texi (Downloading the source): Mark up
14878 contrib/download_prerequisites properly and drop leading "./".
14880 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14882 * config/arc/arc.h: Remove define of STRUCT_VALUE.
14883 * config/lm32/lm32.h: Likewise.
14884 * config/mep/mep.h: Likewise.
14885 * config/visium/visium.h: Likewise.
14886 * system.h: Poison STRUCT_VALUE macro.
14888 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
14890 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
14891 CONSTANT_P operands.
14893 2015-09-11 David S. Miller <davem@davemloft.net>
14895 * config/sparc/constraints.md: Make "U" constraint a real register
14897 * config/sparc/sparc.c (TARGET_LRA_P): Define.
14898 (D_MODES, DF_MODES): Add missing cast.
14899 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
14900 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
14901 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
14903 * config/sparc/sparc.h (PROMOTE_MODE): Define.
14904 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
14905 provide these insn when flag_pic.
14907 2015-09-11 Jeff Law <law@redhat.com>
14909 PR tree-optimization/47679
14910 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
14911 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
14912 member with m_. Update inline member functions as necessary. Add
14914 * tree-ssa-scopedtables.c: Update const_and_copies's member
14915 functions to use m_ prefix to access the stack.
14917 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
14919 * graphite-optimize-isl.c (disable_tiling): Remove.
14920 (get_schedule_for_band): Do not use disable_tiling.
14921 (get_prevector_map): Delete function.
14922 (enable_polly_vector): Remove.
14923 (get_schedule_for_band_list): Remove dead code.
14925 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
14927 * graphite-optimize-isl.c (get_tile_map): Refactor.
14928 (get_schedule_for_band): Same.
14929 (getScheduleForBand): Same.
14930 (get_prevector_map): Same.
14931 (get_schedule_for_band_list): Same.
14932 (get_schedule_map): Same.
14933 (get_single_map): Same.
14934 (apply_schedule_map_to_scop): Same.
14935 (optimize_isl): Same.
14937 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14940 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
14942 * config/aarch64/iterators.md (GPF_TF_F16): New.
14945 2015-09-10 Nathan Sidwell <nathan@acm.org>
14947 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
14948 (nvptx_reorg): Adjust comments.
14950 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
14953 * configure.ac: Check if setenv and unsetenv are declared.
14954 * configure: Rebuild.
14955 * config.in: Rebuild.
14956 * system.h: Declare setenv and unsetenv if not declared.
14958 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14960 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
14961 commentary to simplify permute mask adjustment equation.
14962 (special_handling_values): Add SH_VPERM.
14963 (const_load_sequence_p): New function.
14964 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
14965 the mask loaded from the constant pool.
14966 (adjust_vperm): New function.
14967 (handle_special_swappables): Call adjust_vperm.
14968 (dump_swap_insn_table): Handle SH_VPERM.
14970 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
14972 * shrink-wrap.c (requires_stack_frame_p): Remove static.
14973 * shrink-wrap.h (requires_stack_frame_p): Put back.
14975 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
14977 * reload1.c (elimination_costs_in_insn): Locally turn
14978 -Wmaybe-uninitialized into a warning.
14980 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
14982 * shrink-wrap.c (requires_stack_frame_p): Make static.
14983 (prepare_shrink_wrap): Likewise.
14984 (dup_block_and_redirect): Likewise.
14985 * shrink-wrap.h: Remove declarations of those functions.
14987 2015-09-10 Mark Wielaard <mjw@redhat.com>
14989 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
14991 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
14994 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
14995 missing simplify_gen_subreg.
14997 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14999 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
15000 the vector element is bigger than 64 bit.
15002 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15004 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
15005 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
15007 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15009 * config/s390/s390.c: Add V1TImode to constant pool modes.
15011 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15014 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
15015 predicate. Set predicable_short_it attr to "no".
15017 2015-09-10 Jiong Wang <jiong.wang@arm.com>
15019 PR rtl-optimization/67421
15020 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
15021 left wide shift tranformation.
15023 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
15025 * common/config/arc/arc-common.c: Remove references to A5.
15026 * config/arc/arc-opts.h: Likewise.
15027 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
15028 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
15029 * config/arc/t-arc-newlib: Likewise.
15031 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
15033 * config/arc/arc.md (length): Fix attribute length for conditional
15034 executed instructions with long immediate.
15036 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15038 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
15039 type for second alternative.
15041 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
15043 * doc/invoke.texi (Downloading GCC): Mention
15044 contrib/download_prerequisites script.
15046 2015-09-10 Jakub Jelinek <jakub@redhat.com>
15049 * gimplify.c (gimplify_omp_for): If inner stmt is not found
15050 for combined loop, assert seen_error () and return GS_ERROR.
15052 PR middle-end/67521
15053 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
15054 if decl is already in outer->variables.
15056 PR middle-end/67517
15057 * gimplify.c (gimplify_scan_omp_clauses): Instead of
15058 asserting that decl is not specified in octx->variables,
15059 break out of the loop if it is.
15062 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
15063 iterator is not explicitly determined, but is defined inside
15064 of the combined workshare region, handle it like if it has
15065 DECL_EXPR in OMP_FOR_PRE_BODY.
15067 2015-09-09 Nathan Sidwell <nathan@acm.org>
15069 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
15070 (*cmp<mode>): Add assembler spacing.
15071 (setcc_int<mode>, set_cc_float<mode>): Likewise.
15072 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
15074 (write_func_decl_from_insn): Refactor argument loops & comma emission.
15075 (nvptx_expand_call): Likewise.
15076 (nvptx_output_call_insn): Likewise.
15077 (nvptx_reorg_subreg): Add spacing.
15079 2015-09-09 Marek Polacek <polacek@redhat.com>
15081 PR middle-end/67512
15082 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
15085 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
15088 * doc/invoke.texi ([Wsubobject-linkage]): Document.
15090 2015-09-09 Tom de Vries <tom@codesourcery.com>
15092 * params-list.h: Add missing copyright notice.
15094 2015-09-09 Nathan Sidwell <nathan@acm.org>
15096 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
15097 sel_truesi, not andsi.
15099 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15101 * config/arm/arm.md (*subsi3_compare0): Rename to...
15102 (subsi3_compare0): ... This.
15103 (modsi3): New define_expand.
15104 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
15105 when operand is power of 2.
15107 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15109 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
15110 (*neg<mode>2_compare0): Rename to...
15111 (neg<mode>2_compare0): ... This.
15112 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
15113 Move check for speed inside the if-then-elses. Reflect
15114 CSNEG sequence in MOD by power of 2 case.
15116 2015-09-09 Alan Modra <amodra@gmail.com>
15119 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
15120 reload replacement for PRE_MODIFY address reg.
15122 2015-09-09 Sebastian Pop <s.pop@samsung.com>
15124 PR tree-optimization/53852
15125 * config.in: Regenerate.
15126 * configure: Regenerate.
15127 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
15128 * graphite-optimize-isl.c (optimize_isl): Stop computation when
15129 PARAM_MAX_ISL_OPERATIONS is reached.
15130 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
15131 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
15132 result equal to isl_stat_ok as the status now can be isl_error_quota.
15133 (subtract_commutative_associative_deps): Same.
15134 (compute_deps): Same.
15136 2015-09-08 Aditya Kumar <hiraditya@msn.com>
15137 Sebastian Pop <s.pop@samsung.com>
15139 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
15140 Return the parameter if it was saved in corresponding
15141 parameter_rename_map of the region.
15142 (copy_def): Copy def from sese region to the newly created region.
15143 (copy_internal_parameters): Copy all the internal parameters defined
15144 within a region to the newly created region.
15145 (graphite_regenerate_ast_isl): Copy parameters to the new region before
15146 translating isl to gimple.
15147 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
15148 the loop-nest does not have any data-references.
15149 (build_graphite_scops): Create a scop only when there is at least one
15151 (contains_only_close_phi_nodes): Deleted.
15152 (print_graphite_scop_statistics): Deleted
15153 (print_graphite_statistics): Deleted
15154 (limit_scops): Deleted.
15155 (build_scops): Removed call to limit_scops.
15156 * sese.c (new_sese): Construct.
15157 (free_sese): Destruct.
15158 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
15160 (set_rename): Pass sese region so that parameters inside the region can
15161 be added to its parameter_rename_map.
15162 (rename_uses): Pass sese region.
15163 (graphite_copy_stmts_from_block): Do not copy parameters that have been
15164 generated in the header of the scop. For each SSA_NAME in the
15165 parameter_rename_map rename its usage.
15166 (invariant_in_sese_p_rec): Return false if tree t is defined outside
15168 (scalar_evolution_in_region): If the tree t is invariant just return t.
15169 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
15170 struct sese to keep track of all the parameters which need renaming.
15171 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
15173 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
15175 2015-09-08 Tom de Vries <tom@codesourcery.com>
15177 * Makefile.in (generated_files): Add params.list.
15178 (params.list, s-params.list): Add rule.
15179 * params.h (enum compiler_param): Include params-list.h. Move define
15180 DEFPARAM, include params.def and undef DEFPARAM ...
15181 * params-list.h: ... here. New file.
15183 2015-09-08 David Malcolm <dmalcolm@redhat.com>
15185 * pretty-print.h (printer_fn): Fix typo in comment.
15187 2015-09-07 Jeff Law <law@redhat.com>
15189 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
15191 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15193 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
15194 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
15195 (arm_neon_fp16_hw): New.
15197 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15199 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
15200 UNITS_PER_WORD >= 4.
15202 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15204 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
15205 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
15206 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
15207 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
15208 (aarch64_float_extend_lo_v2df): Rename to...
15209 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
15211 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
15212 (float_extend_lo): Add v4sf.
15214 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
15215 * config/aarch64/iterators.md (VQ_HSF): New iterator.
15216 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
15217 (Vwide): New mode_attr.
15219 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15221 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
15222 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
15223 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
15224 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
15225 V4HF and V8HF variants to iterator.
15227 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
15229 * config/aarch64/iterators.md (VDQF_F16): New.
15230 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
15232 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15234 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
15235 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
15236 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
15237 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
15238 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
15239 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15240 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
15241 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
15242 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
15243 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
15244 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
15245 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15246 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
15247 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
15248 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
15249 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
15250 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
15251 vld1q_dup_f16): New.
15253 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15255 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
15256 Reparameterize to...
15257 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
15258 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
15259 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
15261 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
15263 (float_truncate_lo_): Use BUILTIN_VDF iterator.
15265 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
15267 * config/aarch64/iterators.md (VDF, Vdtype): New.
15268 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
15270 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15272 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
15273 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
15274 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
15275 Add __builtin_aarch64_simd_hf.
15276 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
15277 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
15278 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
15279 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
15280 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
15281 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
15282 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
15283 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
15284 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
15286 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
15287 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
15288 (VDC, Vdbl): Add V4HF.
15290 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15292 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
15293 V4HFmode and V8HFmode.
15294 (aarch64_split_simd_move): Add case for V8HFmode.
15295 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
15296 (aarch64_simd_builtin_std_type): Handle HFmode.
15297 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
15299 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
15300 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
15301 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
15303 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
15306 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
15307 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
15309 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
15310 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
15311 vst1q_lane_f16): New.
15312 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
15313 (VALLDI_F16, VALL_F16): New.
15314 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
15315 Add cases for V4HF and V8HF.
15316 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
15318 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15320 * config/arm/arm-builtins.c (VAR11, VAR12): New.
15321 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
15322 vld4_dup): Add v4hf variant.
15323 (vget_high, vget_low): Add v8hf variant.
15324 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
15325 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
15326 v4hf and v8hf variants.
15328 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
15330 (V_DOUBLE): Add case for V4HF.
15332 (V_HALF): Add case for V8HF.
15333 (VDQX): Add V4HF, V8HF.
15334 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
15335 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
15337 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
15338 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
15339 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
15340 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
15341 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
15342 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
15343 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
15344 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
15345 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
15347 (neon_vcreate, neon_vreinterpretv8qi<mode>,
15348 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
15349 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
15350 Change VDX to VD_RE.
15352 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
15353 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
15354 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
15356 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
15357 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
15358 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
15359 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
15360 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
15361 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
15362 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
15363 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
15364 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
15366 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15368 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
15369 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
15370 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
15371 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
15372 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15373 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
15374 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
15375 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
15376 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
15377 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
15380 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15382 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
15384 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
15386 * config/arm/arm-builtins.c (v8hf_UP): New.
15387 (arm_init_simd_builtin_types): Initialise Float16x8_t.
15389 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
15391 * config/arm/arm_neon.h (float16x8_t): New typedef.
15393 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15395 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
15396 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
15397 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
15398 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
15399 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
15400 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
15401 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
15402 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
15403 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15404 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
15406 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
15408 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
15409 non-alphanumeric characters in the symbol name.
15411 2015-09-07 Marek Polacek <polacek@redhat.com>
15413 PR inline-asm/67448
15414 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
15417 2015-09-07 Marek Polacek <polacek@redhat.com>
15419 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
15421 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
15423 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
15426 2015-09-04 Jakub Jelinek <jakub@redhat.com>
15428 PR middle-end/67452
15429 * tree-ssa-live.c: Include cfgloop.h.
15430 (remove_unused_locals): Clear loop->simduid if simduid is about
15431 to be removed from cfun->local_decls.
15433 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15436 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
15439 2015-09-04 Tom de Vries <tom@codesourcery.com>
15441 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
15443 2015-09-04 Jeff Law <law@redhat.com>
15445 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
15446 unnecessary constructor. It's now trivial and implemented inside...
15447 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
15448 constructor. Add comments to various methods. Remove unused
15450 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
15451 * tree-vrp.c (identify_jump_threads): Likewise.
15452 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
15453 indentation issues.
15454 (thread_across_edge): Similarly.
15455 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
15456 arguments in constructor call.
15458 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
15460 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
15461 temp path contains a '-'.
15463 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
15464 Petr Murzin <petr.murzin@intel.com>
15465 Kirill Yukhin <kirill.yukhin@intel.com>
15467 * config/i386/i386-builtin-types.def
15468 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
15469 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
15470 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
15471 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
15472 * config/i386/i386.c
15473 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
15474 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15475 IX86_BUILTIN_SCATTERALTDIV16SI.
15476 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
15477 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
15478 __builtin_ia32_scatteraltdiv8si.
15479 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
15480 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15481 IX86_BUILTIN_SCATTERALTDIV16SI.
15482 (ix86_vectorize_builtin_scatter): New.
15483 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
15484 ix86_vectorize_builtin_scatter.
15486 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
15487 Petr Murzin <petr.murzin@intel.com>
15488 Kirill Yukhin <kirill.yukhin@intel.com>
15490 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
15491 * doc/tm.texi: Regenerate.
15492 * target.def: Add scatter builtin.
15493 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
15494 for loads/stores in case of gather/scatter accordingly.
15495 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15496 STMT_VINFO_GATHER_P(S).
15497 (vect_check_gather): Rename to ...
15498 (vect_check_gather_scatter): this.
15499 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
15500 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
15501 (vect_check_gather_scatter): Use it instead of vect_check_gather.
15502 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
15503 variable and new checkings for it accordingly.
15504 * tree-vect-stmts.c
15505 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15506 STMT_VINFO_GATHER_P(S).
15507 (vect_check_gather_scatter): Use it instead of vect_check_gather.
15508 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
15510 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15512 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
15514 (mulv16qi3): New define_expand.
15516 2015-09-03 Martin Sebor <msebor@redhat.com>
15519 * doc/extend.texi (Other Builtins): Document when the address
15520 of a built-in function can be taken.
15522 2015-09-03 Richard Biener <rguenther@suse.de>
15524 * dwarf2out.c (flush_limbo_die_list): Split out from ...
15525 (dwarf2out_early_finish): ... here.
15526 (dwarf2out_finish): Do not call dwarf2out_early_finish but
15527 flush_limbo_die_list. Assert we have no deferred asm names.
15529 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15531 * optabs.c (expand_binop): Don't create a broadcast vector with a
15532 source element wider than the inner mode.
15534 2015-09-03 Richard Biener <rguenther@suse.de>
15536 * varasm.c (output_constant): Use fold_convert instead of
15539 2015-09-03 Tom de Vries <tom@codesourcery.com>
15541 PR tree-optimization/65637
15542 * omp-low.c (expand_omp_for_static_chunk): Handle case that
15543 fin_bb has 2 predecessors.
15545 2015-09-03 Tom de Vries <tom@codesourcery.com>
15547 PR tree-optimization/65637
15548 * omp-low.c (find_phi_with_arg_on_edge): New function.
15549 (expand_omp_for_static_chunk): Fix inner loop phi.
15551 2015-09-03 Tom de Vries <tom@codesourcery.com>
15553 PR tree-optimization/65637
15554 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
15557 2015-09-03 Tom de Vries <tom@codesourcery.com>
15559 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
15561 2015-09-03 Tom de Vries <tom@codesourcery.com>
15563 * doc/invoke.texi (parloops-chunk-size): Add item.
15564 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
15565 * tree-parloops.c: Include params.h.
15566 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
15567 param parloops-chunk-size is used.
15569 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15571 PR middle-end/67351
15572 * fold-const.c (fold_binary_loc) : Move
15573 Transform (x >> c) << c into x & (-1<<c) or
15574 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
15575 types using simplify and match.
15576 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
15577 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
15579 2015-09-03 Richard Biener <rguenther@suse.de>
15582 * tree-ssa-structalias.c (ctor_for_analysis): New function.
15583 (create_variable_info_for_1): Use ctor_for_analysis instead
15584 of get_constructor.
15585 (create_variable_info_for): Likewise.
15587 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
15590 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
15591 in new callgraph edge.
15593 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
15598 * config/aarch64/aarch64-simd.md
15599 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
15600 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
15601 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
15602 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
15604 2015-09-02 Alan Modra <amodra@gmail.com>
15606 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
15607 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
15608 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
15610 2015-09-02 Alan Modra <amodra@gmail.com>
15613 * config/rs6000/predicates.md (current_file_function_operand): Don't
15614 return true for weak symbols.
15615 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
15617 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
15618 Andrew Bennett <andrew.bennett@imgtec.com>
15620 * config/mips/mips-opts.h (mips_cb_setting): New enum.
15621 * config/mips/mips-protos.h: Add definitions for
15622 mips_output_jump and mips_output_equal_conditional_branch
15623 * config/mips/mips.c (MIPS_JR): Change to support the
15625 (mips_emit_compare): Add support for the MIPS R6 conditional
15627 (mips_process_sync_loop): Likewise.
15628 (mips_output_order_conditional_branch): Likewise.
15629 (mips16_build_call_stub): Change MIPS_CALL to
15631 (mips_print_operand_punctuation): Update 's' case to only
15632 apply to micromips r2.
15633 (mips_adjust_insn_length): Add support for forbidden slot
15635 (mips_avoid_hazard): Likewise.
15636 (mips_reorg_process_insns): Likewise.
15637 (mips_output_jump): New function.
15638 (mips_output_equal_conditional_branch): Likewise.
15639 (mips_output_conditional_branch): Use jrc/bc if compact
15640 branch support is enabled. Ensure the forbidden slots
15641 between the two branch instructions is filled with a nop.
15642 (mips_option_override): Add support to process the compact
15643 branch option and set the correct defaults. Prevent
15644 non-explict relocs being using for MIPS R6.
15645 (mips_trampoline_init): Add compact branch support.
15646 (mips_mult_zero_zero_cost): Allow zero initialisation of
15647 accumulators with TARGET_DSP.
15648 * config/mips/mips.h (TARGET_CB_NEVER): New define.
15649 (TARGET_CB_MAYBE): New define.
15650 (TARGET_CB_ALWAYS): New define.
15651 (ISA_HAS_DELAY_SLOTS): New define.
15652 (ISA_HAS_COMPACT_BRANCHES): New define.
15653 (ISA_HAS_JRC): New define.
15654 (MIPS_BRANCH_C): New define.
15655 (MIPS_CALL): Removed.
15656 (MICROMIPS_J): Removed.
15657 * config/mips/mips.md (compact_form): New attr.
15658 (hazard): Add support for forbidden slots.
15659 (define_delay): Add support for compact branches.
15660 (*branch_order<mode>): Likewise.
15661 (*branch_order<mode>_inverted): Likewise.
15662 (*branch_equality<mode>): Likewise.
15663 (*branch_equality<mode>_inverted): Likewise.
15664 (*jump_absolute): Likewise.
15665 (*jump_pic): Likewise.
15666 (indirect_jump): Use mips_output_jump to produce assembly output.
15667 (tablejump_<mode>"): Likewise.
15668 (*<optab>"): Likewise.
15669 (<optab>_internal): Likewise.
15670 (sibcall_internal): Likewise.
15671 (sibcall_value_internal): Likewise.
15672 (sibcall_value_multiple_internal): Likewise.
15673 (call_internal): Likewise.
15674 (call_split): Likewise.
15675 (call_internal_direct): Likewise.
15676 (call_direct_split): Likewise.
15677 (call_value_internal): Likewise.
15678 (call_value_split): Likewise.
15679 (call_value_internal_direct): Likewise.
15680 (call_value_direct_split): Likewise.
15681 (call_value_multiple_internal): Likewise.
15682 (call_value_multiple_split): Likewise.
15683 (mips_get_fcsr_mips16_<mode>): Likewise.
15684 (mips_set_fcsr_mips16_<mode>): Likewise.
15685 (tls_get_tp_mips16_<mode>): Likewise.
15686 * config/mips/mips.opt: Add -mcompact-branches option.
15687 * config/mips/predicates.md (order_operator): Ensure the
15688 conditional compact branches are only used if the ISA them.
15689 * doc/invoke.texi: Document -mcompact-branches option.
15691 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
15694 * lra-lives.c (process_bb_lives): Process move pseudos with the
15695 same value for copies and preferences
15696 * lra-constraints.c (match_reload): Create match reload pseudo
15697 with the same value from single dying input pseudo.
15699 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
15702 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
15704 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
15706 * trans-mem.c: Add contributed-by.
15707 * trans-mem.h: Same.
15709 2015-09-01 Richard Biener <rguenther@suse.de>
15711 * expr.c (expand_expr_real_1): For expanding TERed defs
15712 set the current location to that of the def if not UNKNOWN.
15714 2015-09-01 David Sherwood <david.sherwood@arm.com>
15716 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
15718 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15720 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
15721 then_cost, else_cost fields. Change branch_cost field to unsigned int.
15722 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
15723 Include rtl-iter.h.
15724 (noce_simple_bbs): New function.
15725 (noce_try_move): Bail if basic blocks are not simple.
15726 (noce_try_store_flag): Likewise.
15727 (noce_try_store_flag_constants): Likewise.
15728 (noce_try_addcc): Likewise.
15729 (noce_try_store_flag_mask): Likewise.
15730 (noce_try_cmove): Likewise.
15731 (noce_try_minmax): Likewise.
15732 (noce_try_abs): Likewise.
15733 (noce_try_sign_mask): Likewise.
15734 (noce_try_bitop): Likewise.
15735 (bbs_ok_for_cmove_arith): New function.
15736 (noce_emit_all_but_last): Likewise.
15737 (noce_emit_insn): Likewise.
15738 (noce_emit_bb): Likewise.
15739 (noce_try_cmove_arith): Handle non-simple basic blocks.
15740 (insn_valid_noce_process_p): New function.
15741 (contains_mem_rtx_p): Likewise.
15742 (bb_valid_for_noce_process_p): Likewise.
15743 (noce_process_if_block): Allow non-simple basic blocks
15746 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
15748 * tree-ssa-dom.c (record_equivalences_from_phis,
15749 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
15750 (lookup_avail_expr): Likewise, and remove comment and unused temp.
15752 2015-09-01 Nick Clifton <nickc@redhat.com>
15754 * config/msp430/msp430.opt (mcpu): Fix typo.
15756 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15758 * config/aarch64/aarch64.c (aarch64_set_current_function):
15759 Re-layout any vector parameters have non-simd layout.
15760 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
15762 (aarch64_simd_expand_args): Delete call to the above.
15764 2015-08-31 Mike Frysinger <vapier@gentoo.org>
15766 * doc/invoke.texi (asan-stack): Add space before option.
15768 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
15770 * tree.h (zerop): New function.
15771 * tree.c (zerop): Likewise.
15772 (element_precision): Handle expressions.
15773 * match.pd (define_predicates): Add zerop.
15774 (x <= +Inf): Fix comment.
15775 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
15776 * fold-const.c (fold_binary_loc): ... here. Remove.
15778 2015-08-31 Richard Biener <rguenther@suse.de>
15780 PR middle-end/67381
15781 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
15783 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
15785 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
15786 (CEXPI): New operator list.
15787 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
15788 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
15790 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
15792 2015-08-31 Tom de Vries <tom@codesourcery.com>
15794 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
15795 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
15797 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
15798 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
15799 (rewrite_into_loop_closed_ssa): ... here.
15800 (replace_uses_in_dominated_bbs): Remove function.
15801 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
15802 rewrite_into_loop_closed_ssa_1.
15804 2015-08-31 Michael Matz <matz@suse.de>
15806 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
15807 enter entry and exit blocks for reverse post order.
15809 2015-08-31 Richard Biener <rguenther@suse.de>
15811 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
15812 (lto_location_cache::current_sysp): Likewise.
15813 (output_block::current_sysp): Likewise.
15814 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
15815 (lto_location_cache::apply_location_cache): Properly record
15816 system header locations.
15817 (lto_location_cache::input_location): Input whether a file
15818 is a system header.
15819 * lto-streamer-out.c (lto_output_location): Stream whether a file
15820 is a system header.
15822 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15825 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
15827 2015-08-31 Tom de Vries <tom@codesourcery.com>
15829 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
15830 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
15831 Improve function header comments.
15833 2015-08-30 Michael Collison <michael.collison@linaro.org>
15836 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
15839 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15841 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
15842 special_handling bitfield.
15843 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
15844 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
15845 that represents a general xxpermdi.
15846 (insn_is_swappable_p): Add handling for vec_concat of two
15847 doublewords, which maps to a specific xxpermdi.
15848 (adjust_xxpermdi): New function.
15849 (adjust_concat): Likewise.
15850 (handle_special_swappables): Call adjust_xxpermdi and
15852 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
15854 2015-08-30 Rich Felker <dalias@libc.org>
15856 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
15857 case instead of sh[123456ble]-*-*.
15859 2015-08-29 Anatoly Sokolov <aesok@post.ru>
15861 * ira.c (print_unform_and_important_classes,
15862 print_translated_classes): Remove reg_class_names static array.
15863 (print_unform_and_important_classes): Rename to ...
15864 (print_uniform_and_important_classes): ... this.
15865 (ira_debug_allocno_classes): Update accordingly.
15867 2015-08-29 Tom de Vries <tom@codesourcery.com>
15869 PR tree-optimization/46193
15870 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
15873 2015-08-28 Jeff Law <law@redhat.com>
15876 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15877 unable to find X NE 0 in the tables, return X as the simplified
15879 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15880 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15882 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15883 after removing the control flow statement and unnecessary edges.
15885 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
15888 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15890 PR tree-optimization/67283
15891 * tree-sra.c (type_consists_of_records_p): Rename to...
15892 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15894 (completely_scalarize_record): Rename to...
15895 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
15897 (scalarize_elem): New.
15899 2015-08-28 Jiong Wang <jiong.wang@arm.com>
15901 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
15902 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
15903 (aarch64_symbol_type): Likewise.
15904 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15906 (aarch64_expand_mov_immediate): Likewise.
15907 (aarch64_print_operand): Likewise.
15908 (aarch64_classify_tls_symbol): Likewise.
15910 2015-08-28 Richard Biener <rguenther@suse.de>
15912 * cgraphunit.c (symbol_table::compile): Move early debug generation
15914 (symbol_table::finalize_compilation_unit): ... back here and
15915 add a !seen_error () guard.
15917 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15919 * toplev.c (process_options): Do not use flag_loop_block,
15920 flag_loop_interchange, and flag_loop_strip_mine. Add check for
15921 flag_loop_optimize_isl.
15923 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15925 * Makefile.in (OBJS): Remove graphite-blocking.o and
15926 graphite-interchange.o.
15927 * common.opt (floop-strip-mine, floop-interchange, floop-block):
15928 Alias of floop-nest-optimize.
15929 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
15930 Document as alias of -floop-nest-optimize.
15931 * graphite-blocking.c: Remove.
15932 * graphite-interchange.c: Remove.
15933 * graphite-optimize-isl.c: Include dumpfile.h.
15934 (getScheduleForBand): Add dump for tiled loops. Use
15935 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
15936 * graphite-poly.c (scop_max_loop_depth): Remove.
15937 (print_scattering_function_1): Remove.
15938 (print_scattering_function): Remove.
15939 (print_scattering_functions): Remove.
15940 (debug_scattering_function): Remove.
15941 (debug_scattering_functions): Remove.
15942 (apply_poly_transforms): Remove use of flag_loop_block,
15943 flag_loop_strip_mine, and flag_loop_interchange.
15944 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
15946 (print_pdr_access_layout): Remove.
15947 (print_pdr): Print ISL representation.
15948 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
15949 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
15951 (openscop_print_pbb_domain): Remove.
15952 (print_pbb): Remove call to print_scattering_function.
15953 (openscop_print_scop_context): Remove.
15954 (print_scop_context): Do not print matrices anymore.
15955 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
15956 SCOP_TRANSFORMED_SCHEDULE.
15957 (print_isl_set): Add printing of a new line.
15958 (print_isl_map): Same.
15959 (print_isl_aff): Same.
15960 (print_isl_constraint): Same.
15961 (loop_to_lst): Remove.
15962 (scop_to_lst): Remove.
15963 (lst_indent_to): Remove.
15964 (print_lst): Remove.
15965 (debug_lst): Remove.
15966 (dot_lst_1): Remove.
15968 (reverse_loop_at_level): Remove.
15969 (reverse_loop_for_pbbs): Remove.
15970 * graphite-poly.h (pdr_dim_iter_domain): Remove.
15971 (pdr_nb_params): Remove.
15972 (pdr_alias_set_dim): Remove.
15973 (pdr_subscript_dim): Remove.
15974 (pdr_iterator_dim): Remove.
15975 (pdr_parameter_dim): Remove.
15976 (same_pdr_p): Remove.
15977 (struct poly_scattering): Remove.
15978 (struct poly_bb): Remove _original, _transformed, _saved.
15979 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
15980 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
15981 (PBB_NB_LOCAL_VARIABLES): Remove.
15982 (PBB_NB_SCATTERING_TRANSFORM): Remove.
15983 (schedule_to_scattering): Remove.
15984 (number_of_write_pdrs): Remove.
15985 (pbb_dim_iter_domain): Remove.
15986 (pbb_nb_params): Remove.
15987 (pbb_nb_scattering_orig): Remove.
15988 (pbb_nb_scattering_transform): Remove.
15989 (pbb_nb_dynamic_scattering_transform): Remove.
15990 (pbb_nb_local_vars): Remove.
15991 (pbb_iterator_dim): Remove.
15992 (pbb_parameter_dim): Remove.
15993 (psco_scattering_dim): Remove.
15994 (psct_scattering_dim): Remove.
15995 (psct_local_var_dim): Remove.
15996 (psco_iterator_dim): Remove.
15997 (psct_iterator_dim): Remove.
15998 (psco_parameter_dim): Remove.
15999 (psct_parameter_dim): Remove.
16000 (psct_dynamic_dim): Remove.
16001 (psct_static_dim): Remove.
16002 (psct_add_local_variable): Remove.
16003 (new_lst_loop): Remove.
16004 (new_lst_stmt): Remove.
16005 (free_lst): Remove.
16006 (copy_lst): Remove.
16007 (lst_add_loop_under_loop): Remove.
16008 (lst_depth): Remove.
16009 (lst_dewey_number): Remove.
16010 (lst_dewey_number_at_depth): Remove.
16011 (lst_pred): Remove.
16012 (lst_succ): Remove.
16013 (lst_find_pbb): Remove.
16014 (find_lst_loop): Remove.
16015 (lst_find_first_pbb): Remove.
16016 (lst_empty_p): Remove.
16017 (lst_find_last_pbb): Remove.
16018 (lst_contains_p): Remove.
16019 (lst_contains_pbb): Remove.
16020 (lst_create_nest): Remove.
16021 (lst_remove_from_sequence): Remove.
16022 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
16023 (lst_niter_for_loop): Remove.
16024 (pbb_update_scattering): Remove.
16025 (lst_update_scattering_under): Remove.
16026 (lst_update_scattering): Remove.
16027 (lst_insert_in_sequence): Remove.
16028 (lst_replace): Remove.
16029 (lst_substitute_3): Remove.
16030 (lst_distribute_lst): Remove.
16031 (lst_remove_all_before_including_pbb): Remove.
16032 (lst_remove_all_before_excluding_pbb): Remove.
16033 (struct scop): Remove original_schedule, transformed_schedule, and
16035 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
16036 (SCOP_SAVED_SCHEDULE): Remove.
16037 (poly_scattering_new): Remove.
16038 (poly_scattering_free): Remove.
16039 (poly_scattering_copy): Remove.
16040 (store_scattering_pbb): Remove.
16041 (store_lst_schedule): Remove.
16042 (restore_lst_schedule): Remove.
16043 (store_scattering): Remove.
16044 (restore_scattering_pbb): Remove.
16045 (restore_scattering): Remove.
16046 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
16047 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
16048 compute the scattering polyhedron dimension from the dimension of
16050 (build_scop_scattering): Update call to
16051 build_pbb_scattering_polyhedrons.
16052 (build_poly_scop): Remove call to scop_to_lst.
16053 * graphite.c (graphite_transform_loops): Add call to print_scop.
16054 (gate_graphite_transforms): Remove use of flag_loop_block,
16055 flag_loop_interchange, and flag_loop_strip_mine.
16057 2015-08-27 Sebastian Pop <s.pop@samsung.com>
16059 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
16060 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
16061 -floop-nest-optimize.
16062 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
16063 (generate_luj_sepclass): Remove.
16064 (generate_luj_options): Remove.
16065 (set_options): Remove opt_luj.
16066 (scop_to_isl_ast): Remove opt_luj.
16067 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
16068 flag_loop_unroll_jam.
16069 (getPrevectorMap_full): Remove.
16070 (getScheduleForBandList): Remove map_sepcl.
16071 (getScheduleMap): Same.
16072 (apply_schedule_map_to_scop): Remove sepcl.
16073 (optimize_isl): Same.
16074 * graphite-poly.c (apply_poly_transforms): Remove check for
16075 flag_loop_unroll_jam.
16076 (new_poly_bb): Remove map_sepclass.
16077 * graphite-poly.h (struct poly_bb): Same.
16078 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
16079 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
16080 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
16081 * toplev.c (process_options): Remove flag_loop_unroll_jam.
16083 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
16086 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
16087 (addqi3_cc): Ditto.
16088 (UNSPEC_ADD_CARRY): Remove.
16089 (addqi3_cconly_overflow): New expander.
16090 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
16091 Adjust for changed add<mode>3_carry.
16092 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
16093 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
16094 (<plusminus_insn><mode>3_carry): Remove expander.
16095 (*<plusminus_insn><mode>3_carry): Split insn pattern to
16096 add<mode>3_carry and sub<mode>3_carry.
16097 (plusminus_carry_mnemonic): Remove code attribute.
16098 (add<mode>3_carry): Canonicalize insn pattern.
16099 (*addsi3_carry_zext): Ditto.
16100 (sub<mode>3_carry): Ditto.
16101 (*subsi3_carry_zext): Ditto.
16102 (adcx<mode>3): Remove insn pattern.
16103 (addcarry<mode>): New insn pattern.
16104 (subborrow<mode>): Ditto.
16105 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
16106 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
16107 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
16108 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
16109 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
16110 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
16111 Rewrite expander to not clobber carry flag chains.
16113 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
16115 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
16116 instead of a rotate.
16118 2015-08-27 Marek Polacek <polacek@redhat.com>
16120 PR middle-end/67005
16121 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
16122 an entry into an irreducible region.
16124 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16126 * configure: Regenerate.
16128 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
16130 PR tree-optimization/67283
16131 * tree-sra.c (type_consists_of_records_p): Rename to...
16132 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
16134 (completely_scalarize_record): Rename to...
16135 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
16136 (scalarize_elem): New.
16138 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
16140 * tree-sra.c (completely_scalarize_var): Rename to...
16141 (create_total_scalarization_access): ... Here. Drop call to
16142 completely_scalarize_record.
16144 (analyze_all_variable_accesses): Replace completely_scalarize_var
16145 with create_total_scalarization_access and completely_scalarize_record.
16147 2015-08-27 Alan Modra <amodra@gmail.com>
16150 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
16153 2015-08-27 Richard Biener <rguenther@suse.de>
16155 * passes.c (rest_of_decl_compilation): Guard early_global_decl
16156 call with !seen_error ().
16157 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
16158 early debug generation and finish...
16159 (symbol_table::compile): ... here to put it after a !seen_error ()
16162 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16164 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
16167 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16168 Andre Vieira <andre.simoesdiasvieira@arm.com>
16170 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
16171 (*cb<optab><mode>1): Likewise.
16172 (*tb<optab><mode>1): Likewise.
16173 (*cb<optab><mode>1): Likewise.
16174 * config/aarch64/iterators.md (inv_cb): New code attribute.
16175 (inv_tb): Likewise.
16176 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
16177 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
16179 2015-08-27 Richard Biener <rguenther@suse.de>
16181 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
16183 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
16185 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
16188 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16190 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
16193 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
16195 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
16196 floating point in VSX registers.
16197 (rs6000_output_move_128bit): Always print out the set insn if we
16198 can't generate an appropriate 128-bit move.
16199 (rs6000_generate_compare): Add support for IEEE 128-bit floating
16200 point in VSX registers comparisons.
16201 (rs6000_expand_float128_convert): Likewise.
16203 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
16204 predicate for only GPR hard registers.
16206 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
16207 modes to iterators. Add new iterators for moving 128-bit values in
16208 scalar FPR registers and VSX registers.
16209 (FMOVE128): Likewise.
16210 (FMOVE128_FPR): Likewise.
16211 (FMOVE128_GPR): Likewise.
16212 (FMOVE128_VSX): Likewise.
16213 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
16216 (IBM128): Likewise.
16217 (TFIFKF): Likewise.
16218 (RELOAD): Add IEEE 128-bit floating point modes.
16219 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
16220 floating point in VSX registers modes.
16221 (signbit<mode>2, IBM128 iterator): Likewise.
16222 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
16223 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
16224 (negtf2): Likewise.
16225 (neg<mode>2, TFIFKF iterator): Likewise.
16226 (negtf2_internal): Likewise.
16227 (abstf2): Likewise.
16228 (abs<mode>2, TFIFKF iterator): Likewise.
16229 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
16230 VSX insn support for negate, absolute value, and negative absolute
16232 (ieee_128bit_vsx_neg<mode>2): Likewise.
16233 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
16234 (ieee_128bit_vsx_abs<mode>2): Likewise.
16235 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
16236 (ieee_128bit_vsx_nabs<mode>2): Likewise.
16237 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
16238 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
16239 floating point in VSX registers.
16240 (unpack<mode>_dm): Likewise.
16241 (unpack<mode>_nodm): Likewise.
16242 (pack<mode>): Likewise.
16243 (unpackv1ti): Likewise.
16244 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
16245 (packv1ti): Likewise.
16246 (pack<mode>, FMOVE128_VSX iterator): Likewise.
16247 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
16249 (extenddftf2_internal): Likewise.
16250 (trunctfdf2): Likewise.
16251 (trunctfdf2_internal2): Likewise.
16252 (fix_trunc_helper): Likewise.
16253 (fix_trunctfdi2"): Likewise.
16254 (floatditf2): Likewise.
16255 (floatuns<mode>tf2): Likewise.
16256 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
16257 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
16258 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
16259 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
16260 (float<SDI:mode><IFKF:mode>2): Likewise.
16261 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
16263 2015-08-26 Renlin Li <renlin.li@arm.com>
16265 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
16267 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
16268 Jiong Wang <jiong.wang@arm.com>
16270 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
16271 (tlsie_tiny_<mode>): New define_insn.
16272 (tlsie_tiny_sidi): Likewise.
16273 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
16275 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
16276 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
16278 (aarch64_expand_mov_immediate): Likewise.
16279 (aarch64_print_operand): Likewise.
16280 (arch64_classify_tls_symbol): Likewise.
16282 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16284 * config/arm/arm-arches.def: Replace single value flags with
16285 an initializer built from ARM_FSET_MAKE_CPU1.
16286 * config/arm/arm-cores.def: Likewise.
16287 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
16288 derivation from the ARM_CORE macro definition, use the given value
16290 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
16291 ARM_ARCH macro definition, use the given value instead.
16293 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16295 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
16297 (struct builtin_description): Replace field mask with field
16299 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
16300 (IWMMXT2_BUILTIN): Likewise.
16301 (IWMMXT2_BUILTIN2): Likewise.
16302 (FP_BUILTIN): Likewise.
16303 (CRC32_BUILTIN): Likewise.
16304 (CRYPTO_BUILTIN): Likewise.
16305 (iwmmx_mbuiltin): Likewise.
16306 (iwmmx2_mbuiltin): Likewise.
16307 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
16308 struct builtin_description.
16310 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16312 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
16313 (struct builtin_description): Change type of mask to unsigned
16315 * config/arm/arm-protos.h (insn_flags): Declare as type
16317 (tune_flags): Likewise.
16318 * config/arm/arm.c (feature_count): New.
16319 (insn_flags): Define as type arm_feature_set.
16320 (tune_flags): Likewise.
16321 (struct processors): Define field flags as type arm_feature_set.
16322 (all_cores): Update for change to struct processors.
16323 (all_architectures): Likewise.
16324 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
16326 (arm_option_override_internal): Likewise.
16327 (arm_option_override): Likewise.
16329 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
16330 Jiong Wang <jiong.wang@arm.com>
16332 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
16333 tls size for tiny, small, large memory model.
16334 (aarch64_load_symref_appropriately): Support new symbol types.
16335 (aarch64_expand_mov_immediate): Likewise.
16336 (aarch64_print_operand): Likewise.
16337 (aarch64_classify_tls_symbol): Likewise.
16338 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
16339 (aarch64_symbol_type): Likewise.
16340 * config/aarch64/aarch64.md (tlsle): Deleted.
16341 (tlsle12_<mode>): New define_insn.
16342 (tlsle24_<mode>): Likewise.
16343 (tlsle32_<mode>): Likewise.
16344 (tlsle48_<mode>): Likewise.
16345 * doc/sourcebuild.texi (AArch64-specific attributes): Document
16348 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16350 * config/arm/arm-protos.h (FL_NONE): New.
16352 (arm_feature_set): New.
16353 (ARM_FSET_MAKE): New.
16354 (ARM_FSET_MAKE_CPU1): New.
16355 (ARM_FSET_MAKE_CPU2): New.
16356 (ARM_FSET_CPU1): New.
16357 (ARM_FSET_CPU2): New.
16358 (ARM_FSET_EMPTY): New.
16359 (ARM_FSET_ANY): New.
16360 (ARM_FSET_HAS_CPU1): New.
16361 (ARM_FSET_HAS_CPU2): New.
16362 (ARM_FSET_HAS_CPU): New.
16363 (ARM_FSET_ADD_CPU1): New.
16364 (ARM_FSET_ADD_CPU2): New.
16365 (ARM_FSET_DEL_CPU1): New.
16366 (ARM_FSET_DEL_CPU2): New.
16367 (ARM_FSET_UNION): New.
16368 (ARM_FSET_INTER): New.
16369 (ARM_FSET_XOR): New.
16370 (ARM_FSET_EXCLUDE): New.
16371 (AFM_FSET_IS_EMPTY): New.
16372 (ARM_FSET_CPU_SUBSET): New.
16374 2015-08-26 Jiong Wang <jiong.wang@arm.com>
16376 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
16377 SYMBOL_TLSLE to SYMBOL_TLSLE24.
16378 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16380 (aarch64_expand_mov_immediate): Likewise.
16381 (aarch64_print_operand): Likewise.
16382 (aarch64_classify_symbol): Likewise.
16384 2015-08-26 Jiong Wang <jiong.wang@arm.com>
16386 * config/aarch64/aarch64.opt (mtls-size): New entry.
16387 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
16388 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
16389 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
16391 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16393 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
16394 ARM_CORE entry. Fix some white-space.
16395 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
16396 ARM_CORE definition.
16398 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16400 * fold-const.c (fold_binary_loc) : Move Optimize
16401 root(x)*root(y) as root(x*y) to match.pd.
16402 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
16403 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
16404 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
16405 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
16406 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
16407 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
16408 (mult (exps:s @0) (exps:s @1)) : New simplifier.
16409 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
16410 (rdiv @0 (exps:s @1)) : New simplifier.
16412 2015-08-25 Joseph Myers <joseph@codesourcery.com>
16414 * gcc.c (driver::finalize): Only assign to extra_specs if
16417 2015-08-25 Marek Polacek <polacek@redhat.com>
16419 PR middle-end/67330
16420 * varasm.c (declare_weak): Return after giving an error.
16422 2015-08-25 David Malcolm <dmalcolm@redhat.com>
16424 * gcc-main.c (main): Add params to driver ctor.
16425 * gcc.c (class env_manager): New.
16427 (env_manager::init): New.
16428 (env_manager::get): New.
16429 (env_manager::xput): New.
16430 (env_manager::restore): New.
16431 Poison getenv and putenv.
16432 (DEFAULT_TARGET_SYSTEM_ROOT): New.
16433 (target_system_root): Update initialization to use
16434 DEFAULT_TARGET_SYSTEM_ROOT.
16435 (struct spec_list): Add field "default_ptr".
16436 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
16437 (init_spec): Likewise.
16438 (set_spec): Clear field "default_ptr".
16439 (read_specs): Free "spec" and "buffer".
16440 (xputenv): Reimplement in terms of env_manager.
16441 (process_command): Replace ::getenv calls with calls to the
16442 env_manager singleton.
16443 (process_brace_body): Free string in three places.
16444 (driver::driver): New.
16445 (driver::~driver): New.
16446 (used_arg): Convert from a function to...
16447 (class used_arg_t): ...this class, and...
16448 (used_arg): ...this new global instance.
16449 (used_arg_t::finalize): New function.
16450 (getenv_spec_function): Add "const" to local "value". Replace
16451 ::getenv call with call to the env_manager singleton.
16452 (path_prefix_reset): New function.
16453 (driver::finalize): New function.
16454 * gcc.h (driver::driver): New.
16455 (driver::~driver): New.
16456 (driver::finalize): New.
16458 2015-08-25 Nathan Sidwell <nathan@acm.org>
16460 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
16461 target doesn't have one.
16463 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
16466 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
16468 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
16471 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
16472 a define_insn, remove second alternative.
16474 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
16475 Joseph Myers <joseph@codesourcery.com>
16477 * gcc.c (struct switchstr): Expand comment.
16479 2015-08-25 Nathan Sidwell <nathan@acm.org>
16481 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
16482 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
16484 2015-08-25 Richard Biener <rguenther@suse.de>
16486 PR middle-end/67306
16487 * genmatch.c (expr::gen_transform): Verify the result of
16488 builtin_decl_implicit.
16489 (dt_simplify::gen_1): Likewise.
16491 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
16493 * config/arm/constraints.md: Also list Cs and US ARM-specific
16494 constraints as used.
16496 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
16499 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
16501 (nonpic_symbol_mentioned_p): Likewise.
16502 (sh_delegitimize_address): Likewise.
16503 (sh_function_ok_for_sibcall): Take into account weak symbols.
16504 (sh_expand_sym_label2reg): New.
16505 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
16506 * config/sh/sh.md (UNSPEC_PCREL): New enum.
16507 (call_pcrel): Use sh_expand_sym_label2reg.
16508 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
16509 (symPCREL_label2reg) New expand.
16511 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
16513 * graphite-poly.c: Change type of region from void* to sese.
16514 * graphite-poly.h (struct scop): Changing the type of scop::region
16515 from void* to sese. Change accessor macro accordingly.
16516 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
16518 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
16520 * graphite-scop-detection.c (stmt_simple_for_scop_p):
16521 Constrain only on INTEGER_TYPE.
16523 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16526 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
16527 -mefficient-unaligned-vsx on ISA 2.7.
16529 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
16530 option to a masked option.
16532 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
16533 logic for -mefficient-unaligned-vsx so that it is set via an arch
16534 ISA option, instead of being set if -mtune=power8 is set. Move
16535 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
16536 near other default option handling.
16538 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16540 * genflags.c (gen_macro): Delete.
16541 (gen_proto): Don't create GEN.*CALL.* macros.
16542 * gensupport.h (get_file_location): Declare.
16543 * gensupport.c (rtx_locs): New variable.
16544 (read_md_rtx): Record rtx locations.
16545 (get_file_location): New function.
16546 * target-insns.def (call, call_pop, call_value, call_value_pop)
16547 (sibcall, sibcall_value): New patterns.
16548 * gentarget-def.c (parse_argument): New function.
16549 (def_target_insn): Use it. Handle optional operands. Raise an
16550 error if an .md pattern has the wrong number of operands for the
16551 pattern name. Remove the names of unused operands from the prototype.
16552 * builtins.c (expand_builtin_apply): Use targetm functions
16553 instead of HAVE_call_value and GEN_CALL_VALUE.
16554 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
16555 and sibcall_value_pop.
16556 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
16558 * config/alpha/alpha.md (untyped_call): Likewise.
16559 * config/iq2000/iq2000.md (untyped_call): Likewise.
16560 * config/m68k/m68k.md (untyped_call): Likewise.
16561 * config/mips/mips.md (untyped_call): Likewise.
16562 * config/pa/pa.md (untyped_call): Likewise.
16563 * config/rs6000/rs6000.md (untyped_call): Likewise.
16564 * config/sparc/sparc.md (untyped_call): Likewise.
16565 * config/tilegx/tilegx.md (untyped_call): Likewise.
16566 * config/tilepro/tilepro.md (untyped_call): Likewise.
16567 * config/visium/visium.md (untyped_call): Likewise.
16568 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
16569 gen_call_value instead of GEN_CALL_VALUE.
16570 * config/arm/arm.md (untyped_call): Likewise.
16571 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
16574 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16576 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
16577 (have_cbranchcc4): New variable.
16578 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
16579 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
16580 (if_convert): Initialize have_cbranchcc4.
16582 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16584 * builtins.c (expand_cmpstrn): Rename to...
16585 (expand_cmpstrn_or_cmpmem): ...this.
16586 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
16587 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
16588 Remove mode argument.
16589 (expand_builtin): Update accordingly.
16591 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16593 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
16594 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
16595 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
16596 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
16597 Add predicates for operands 0 and 3.
16598 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
16600 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
16601 immediate_operand to nonmemory_operand.
16603 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16605 * df-scan.c (df_insn_info_init_fields): New function, split out
16607 (df_insn_create_insn_record): ...here.
16608 (df_insn_info_free_fields): New function, split out from...
16609 (df_insn_info_delete): ...here.
16610 (df_insn_rescan): Use the new functions instead of freeing and
16611 reallocating the df_insn_info.
16613 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16615 * doc/install.texi (Binaries): Remove links no longer valid.
16617 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
16619 * config/nvptx/mkoffload.c (process): Replace
16620 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
16622 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
16625 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
16627 2015-08-24 Renlin Li <renlin.li@arm.com>
16629 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
16630 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
16631 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
16632 * config/arm/constraints.md ("j"): Add check for high code.
16634 2015-08-24 Tom de Vries <tom@codesourcery.com>
16636 PR tree-optimization/65468
16637 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
16640 2015-08-24 Nathan Sidwell <nathan@acm.org>
16642 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
16643 change to nvptx_type_from_mode call. Use arg_promotion for both
16644 split and non-split args.
16646 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16648 * target-insns.def (movstr): New pattern.
16649 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
16650 (expand_movstr): Use targetm rather than HAVE_movstr/
16653 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16655 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
16658 2015-08-24 Andrew Pinski <apinski@cavium.com>
16660 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
16661 AARCH64_EXTRA_TUNING_OPTION.
16662 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
16664 (aarch64_extra_tuning_flags): Base the shifted value on the index
16665 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
16666 * config/aarch64/aarch64.c: Remove the last argument to
16667 AARCH64_EXTRA_TUNING_OPTION.
16669 2015-08-23 Nathan Sidwell <nathan@acm.org>
16671 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
16673 (nvptx_declare_function_name): Insert formatting tabs for
16676 2015-08-23 Tom de Vries <tom@codesourcery.com>
16678 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
16679 parm_decl, rather than generating a dummy default def in cfun.
16680 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
16681 ssa_name from cfun and child_fn do not share a stmt as def stmt.
16682 (move_stmt_op): Handle PARM_DECl.
16683 (gather_ssa_name_hash_map_from): New function.
16684 (move_sese_region_to_fn): Add default defs for function params, and add
16685 them to vars_map. Release copied ssa names.
16686 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
16688 2015-08-23 Tom de Vries <tom@codesourcery.com>
16690 * doc/sourcebuild.texi: Rename vect_no_int_max with
16691 vect_no_int_min_max. Update description.
16693 2015-08-22 Andrew Pinski <apinski@cavium.com>
16695 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
16696 * config/aarch64/aarch64-protos.h
16697 (aarch64_fusion_pairs_index): New enum.
16698 (aarch64_fusion_pairs): Base the shifted value on the index instead
16699 Rewrite AARCH64_FUSE_ALL to be based on the end index.
16700 of the argument to AARCH64_FUSION_PAIR.
16701 * config/aarch64/aarch64.c: Remove the last argument to
16702 AARCH64_FUSION_PAIR.
16704 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
16706 * dominance.c (new_zero_array): Define.
16707 (dom_info): Redefine as class with proper encapsulation.
16708 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
16710 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
16711 allocations/deallocations. Pass function as parameter (instead of
16713 (dom_info::get_idom): Define accessor method.
16714 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
16715 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
16716 (calculate_dominance_info): Adjust to use dom_info class.
16717 (verify_dominators): Likewise.
16719 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
16721 * print-rtl.c (print_rtx): Check the correct range for
16722 flag_dump_unnumbered_links to behave as documented.
16724 PR rtl-optimization/67227
16725 PR rtl-optimization/64164
16726 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
16727 (nonoverlapping_memrefs_p): Test offsets and sizes when given
16728 identical gimple_reg exprs.
16730 2015-08-21 Nathan Sidwell <nathan@acm.org>
16732 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
16734 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
16735 crtl->stack_alignment_needed to determine alignment.
16736 (nvptx_get_drap_rtx): New.
16737 (TARGET_GET_DRAP_RTX): Override.
16738 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
16740 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16742 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
16744 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16746 * configure.ac: Remove uwin* cases.
16747 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
16748 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
16749 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
16750 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
16751 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
16752 i[34567]86-*-uwin*, powerpc-*-beos*.
16754 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
16756 * gencodes.c (gencodes): Print the comma for the preceding
16757 enum value rather than the current one. Use aliased enum values
16758 rather than #defines for compiled-out patterns.
16759 (main): Update accordingly. Replace LAST_INSN_CODE with
16761 * lra.c (insn_code_data): Update accordingly.
16762 (finish_insn_code_data_once, get_static_insn_data): Likewise.
16763 * recog.h (target_recog): Likewise.
16764 (preprocess_insn_constraints): Change parameter to unsigned int.
16765 * recog.c (preprocess_insn_constraints): Likewise.
16766 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
16767 * tree-vect-stmts.c (vectorizable_operation): Simplify.
16769 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
16771 PR rtl-optimization/61657
16772 * loop-iv.c (iv_number_of_iterations): Declare up and down as
16773 unsigned. Remove superflous uint64_t cast.
16775 2014-08-21 Felix Yang <felix.yang@huawei.com>
16776 Jiji Jiang <jiangjiji@huawei.com>
16778 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
16779 argument and get builtin function code directly from CALL.
16780 (gimple_stringop_fixed_value): Modified accordingly.
16781 (gimple_stringops_transform, gimple_stringops_values_to_profile):
16782 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
16784 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
16786 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
16788 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16790 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
16792 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
16793 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
16794 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
16795 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
16796 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
16797 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
16798 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
16799 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
16800 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
16801 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
16803 * match.pd (SIN ) : New Operator.
16804 (TAN) : New Operator.
16805 (mult (SQRT@1 @0) @1) : New simplifier.
16806 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
16807 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16808 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16809 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
16810 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
16811 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
16812 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
16813 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
16814 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
16815 (rdiv @0 (POW:s @1 @2)) : New simplifier.
16817 2015-08-21 Bin Cheng <bin.cheng@arm.com>
16819 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
16820 loop if EXPR is simplified to const value.
16822 2015-08-21 Yury Gribov <y.gribov@samsung.com>
16824 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
16825 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
16827 2015-08-21 Richard Biener <rguenther@suse.de>
16829 PR middle-end/67285
16830 * gimple-fold.c (replace_stmt_with_simplification): Assert
16831 seq is empty when replacing a call with itself but different
16833 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
16834 a call require that it is const.
16836 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16838 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
16839 * builtins.c (get_object_alignment_2): Adjust.
16840 * varasm.c (align_variable): Likewise.
16841 (get_variable_align): Likewise.
16842 (build_constant_desc): Likewise.
16843 (force_const_mem): Likewise.
16844 * doc/tm.texi.in: Likewise.
16845 * doc/tm.texi: Regenerate.
16847 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16849 * genconfig.c (main): Always define HAVE_cc0.
16850 * recog.c (rest_of_handle_peephole2): Adjust.
16852 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16854 * reorg.c (relax_delay_slots): Don't use #if to check value of
16857 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16859 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
16860 * targhooks.c (default_have_conditional_execution): Adjust.
16862 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
16864 * rtl.h (rtvec_all_equal_p): Declare.
16865 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
16866 * rtl.c (rtvec_all_equal_p): New function.
16867 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
16868 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
16869 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
16870 * config/arm/arm.c (neon_vdup_constant): Likewise.
16871 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
16872 * config/tilegx/constraints.md (W, Y): Likewise.
16873 * config/tilepro/constraints.md (W, Y): Likewise.
16874 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
16875 (classify_immediate): Use unwrap_const_vec_duplicate.
16876 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
16877 (reg_or_v2s8bit_operand): Likewise.
16878 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
16879 (reg_or_v4s8bit_operand): Likewise.
16881 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16883 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
16884 (vec_shasigma_be): New #define.
16885 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
16886 (VPMSUMH): Likewise.
16887 (VPMSUMW): Likewise.
16888 (VPMSUMD): Likewise.
16889 (VPMSUM): New BU_P8V_OVERLOAD_2.
16890 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
16891 entries for VEC_MADD and VEC_VPMSUM.
16893 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
16895 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
16896 Multiply argument avr_n_flash by 64 to match unit of "KiB".
16897 (avr_pgm_check_var_decl): Same.
16899 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
16901 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
16902 initialization of HFmode scalar type (float16_t) to...
16903 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
16906 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
16908 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
16909 having an -mfp16-format.
16911 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
16913 * config/i386/predicates.md (vector_all_ones_operand): Use
16914 CONSTM1_RTX to simplify definition.
16916 2015-08-20 Richard Biener <rguenther@suse.de>
16918 * toplev.c (compile_file): Remove loop calling late_global_decl
16920 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
16921 on decls we assembled.
16923 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
16925 * common/config/aarch64/aarch64-common.c
16926 (AARCH64_CPU_NAME_LENGTH): Delete.
16927 (aarch64_option_extension): New.
16928 (all_extensions): Likewise.
16929 (processor_name_to_arch): Likewise.
16930 (arch_to_arch_name): Likewise.
16932 (all_architectures): Likewise.
16933 (aarch64_get_extension_string_for_isa_flags): Likewise.
16934 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
16935 architecture names.
16936 * config/aarch64/aarch64-protos.h
16937 (aarch64_get_extension_string_for_isa_flags): New.
16938 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
16939 (aarch64_option_print): Get the string to print from
16940 aarch64_get_extension_string_for_isa_flags.
16941 (aarch64_declare_function_name): Likewise.
16942 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
16943 (MCPU_TO_MARCH_SPEC): This.
16944 (ASM_CPU_SPEC): Use it.
16945 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
16946 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
16947 (EXTRA_SPEC_FUNCTIONS): Use it.
16949 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
16951 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
16952 expansion when !ISA_HAS_LWL_LWR.
16953 (mips_block_move_straight): Update the size of elements copied to
16954 account for alignment when !ISA_HAS_LWL_LWR.
16955 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
16957 2015-08-19 Jiong Wang <jiong.wang@arm.com>
16959 * expr.c (expand_expr_real_2): Check gimple statement during
16960 LSHIFT_EXPR expand.
16962 2015-08-19 Magnus Granberg <zorry@gentoo.org>
16964 * common.opt (fstack-protector): Initialize to -1.
16965 (fstack-protector-all): Likewise.
16966 (fstack-protector-strong): Likewise.
16967 (fstack-protector-explicit): Likewise.
16968 * configure.ac: Add --enable-default-ssp.
16969 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
16970 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
16972 * doc/install.texi: Document --enable-default-ssp.
16973 * config.in: Regenerated.
16974 * configure: Likewise.
16976 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
16978 PR rtl-optimization/64164
16979 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
16980 (parm_in_stack_slot_p): ... this. Disregard mode, what
16981 matters is whether the parm will live in a pseudo or a stack
16983 (expand_one_ssa_partition): Deal with params without a default
16984 def. Disregard mode.
16985 * cfgexpand.h: Renamed function declaration.
16986 * tree-ssa-coalesce.c: Adjust.
16987 * function.c (split_complex_args): Allocate stack slot for
16988 unassigned parms before splitting.
16989 (parm_in_unassigned_mem_p): New. Use it instead of
16990 parm_maybe_byref_p throughout this file.
16991 (assign_parm_setup_block): Use it. Accept pseudos in the
16992 expand-assigned rtl.
16993 (assign_parm_setup_reg): Drop BLKmode requirement.
16994 (assign_parm_setup_stack): Allocate and fill in the address of
16995 unassigned MEM parms.
16997 2015-08-19 David Sherwood <david.sherwood@arm.com>
16999 * genmodes.c (emit_mode_unit_size_inline): New function.
17000 (emit_mode_unit_precision_inline): New function.
17001 (emit_insn_modes_h): Emit new #define. Emit new functions.
17002 (emit_mode_unit_size): New function.
17003 (emit_mode_unit_precision): New function.
17004 (emit_mode_adjustments): Add mode_unit_size adjustments.
17005 (emit_insn_modes_c): Emit new arrays.
17006 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
17007 use new inline methods.
17009 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17011 * config/aarch64/aarch64.c (bit_count): Delete prototype
17013 (aarch64_print_operand): Use popcount_hwi instead of the above.
17015 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17017 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
17020 2015-08-19 Marek Polacek <polacek@redhat.com>
17022 PR middle-end/67133
17023 * gimple-ssa-isolate-paths.c
17024 (insert_trap_and_remove_trailing_statements): Rename to ...
17025 (insert_trap): ... this. Don't remove trailing statements; split
17027 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
17029 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
17032 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
17033 conditionalize the whole on __GNUC__. Add fallback code
17034 depending neither on undefined nor implementation-defined behaviour.
17036 2015-08-19 Jiong Wang <jiong.wang@arm.com>
17038 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
17039 whitespaces with tab.
17041 2015-08-19 Florian Weimer <fweimer@redhat.com>
17043 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
17044 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
17045 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
17046 Move Name_Ids instantiation to the Prj.Proc package, to avoid
17049 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17051 * config/arm/arm.c (bounds_check): Use %wd print format
17052 for HOST_WIDE_INT arguments.
17054 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
17056 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
17057 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
17058 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
17059 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
17060 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
17061 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
17062 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
17063 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
17064 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
17067 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
17069 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
17070 function.c, graphite-scop-detection.c, haifa-sched.c,
17071 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
17072 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
17073 varasm.c: Remove typedefs of structs.
17075 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
17077 * config/rs6000/altivec.h (vec_adde): New define.
17078 (vec_addec): Likewise.
17079 (vec_double): Likewise.
17080 (vec_bperm): Likewise.
17081 (vec_gb): Likewise.
17082 * config/rs6000/rs6000-builtin.def (ADDE): New
17083 BU_ALTIVEC_OVERLOAD_3.
17085 (DOUBLE): New BU_VSX_OVERLOAD_1.
17086 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
17087 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
17088 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
17089 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
17090 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
17091 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
17092 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
17093 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
17094 and P8V_BUILTIN_VEC_VBPERMQ.
17096 2015-08-18 Jason Merrill <jason@redhat.com>
17098 * print-tree.c (print_node): Handle TREE_BINFO.
17100 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17102 PR middle-end/36757
17103 * builtins.c (expand_builtin_signbit): Add asserts to make sure
17104 we can expand BUILT_IN_SIGNBIT inline.
17105 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
17106 * doc/extend.texi: Document the type-generic __builtin_signbit.
17108 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
17110 PR rtl-optimization/67218
17111 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
17112 (simplify_unary_operation_1): Use it.
17114 2015-08-18 Marek Polacek <polacek@redhat.com>
17116 PR middle-end/67222
17117 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
17118 if the call isn't valid.
17119 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
17120 gimple_call_builtin_p.
17121 (call_may_clobber_ref_p_1): Likewise.
17122 (stmt_kills_ref_p): Likewise.
17124 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
17126 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
17127 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
17128 (mips_hard_regno_scratch_ok): Likewise.
17129 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
17130 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
17132 2015-08-18 Bin Cheng <bin.cheng@arm.com>
17134 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
17135 (determine_value_range): Call refine_value_range_using_guard for
17136 each loop initial condition to improve value range.
17138 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
17140 * config/i386/i386.c: Remove include of fibheap.h.
17142 2015-08-17 Richard Biener <rguenther@suse.de>
17144 PR tree-optimization/67221
17145 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
17146 (sccvn_dom_walker::before_dom_children): Mark backedges of
17147 non-executable blocks as not executable.
17149 2015-08-17 David Sherwood <david.sherwood@arm.com>
17151 * config/arm/arm.c (neon_element_bits): Replace call to
17152 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
17153 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
17154 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
17155 (neon_vdup_lane<mode>): Likewise.
17156 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
17157 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
17158 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
17159 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
17160 * config/spu/spu.c (arith_immediate_p): Likewise.
17161 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
17162 * expr.c (expand_expr_real_2): Likewise.
17163 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
17164 * simplify-rtx.c (simplify_immed_subreg): Likewise.
17165 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
17166 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
17168 * fold-const.c (fold_binary_loc): Replace call to
17169 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
17170 GET_MODE_UNIT_PRECISION (m).
17172 2015-08-17 Mike Stump <mikestump@comcast.net>
17174 * config/arm/arm.c (arm_block_move_unaligned_straight):
17175 Emit normal move instead of unaligned load when source or destination
17176 are appropriately aligned.
17178 2015-08-17 Richard Biener <rguenther@suse.de>
17179 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17181 PR middle-end/16107
17182 * match.pd (div (coss (op @0) : New simplifier.
17184 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
17186 PR rtl-optimization/64164
17188 PR middle-end/66983
17189 PR rtl-optimization/67000
17190 PR middle-end/67034
17191 PR middle-end/67035
17192 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17193 * tree-ssa-copyrename.c: Removed.
17194 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17195 -ftree-coalesce-vars.
17196 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17197 * common.opt (ftree-copyrename): Ignore.
17198 (ftree-coalesce-inlined-vars): Likewise.
17199 * doc/invoke.texi: Remove the ignored options above.
17200 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17201 * tree-ssa-coalesce.h: ... here.
17202 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17203 headers required by it.
17204 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17205 across variables when flag_tree_coalesce_vars. Check register
17206 use and promoted modes to allow coalescing. Do not coalesce
17207 maybe-byref parms with SSA_NAMEs of other variables, or
17208 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
17209 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17210 with its member functions to tree-ssa-coalesce.c.
17211 (var_map_base_init): Likewise. Renamed to
17212 compute_samebase_partition_bases.
17213 (partition_view_normal): Drop want_bases parameter.
17214 (partition_view_bitmap): Likewise.
17215 * tree-ssa-live.h: Adjust declarations.
17216 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
17217 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17218 default defs at the entry point.
17219 (dump_part_var_map): New.
17220 (compute_optimized_partition_bases): New, called by...
17221 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17222 of compute_samebase_partition_bases. Adjust.
17223 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17224 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
17225 (ssa_default_def_partition): New.
17226 (get_rtl_for_parm_ssa_default_def): New.
17227 (align_local_variable, add_stack_var): Support anonymous SSA
17229 (defer_stack_allocation): Likewise. Declare earlier.
17230 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17231 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17232 Do no record deferred-allocation marker in
17233 SA.partition_to_pseudo.
17234 (expand_stack_vars): Adjust check for the marker in it.
17235 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17236 redundant MEM attr setting.
17237 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17239 (expand_one_stack_var): ... this. New wrapper to check and
17240 skip already expanded SSA partitions.
17241 (record_alignment_for_reg_var): New, factored out of...
17242 (expand_one_var): ... this.
17243 (expand_one_ssa_partition): New.
17244 (adjust_one_expanded_partition_var): New.
17245 (expand_one_register_var): Check and skip already expanded SSA
17247 (expand_used_vars): Don't create DECLs for anonymous SSA
17248 names. Expand all SSA partitions, then adjust all SSA names.
17249 (pass::execute): Replace the loops that set
17250 SA.partition_to_pseudo from partition leaders and cleared
17251 DECL_RTL for multi-location variables, and that which used to
17252 rename vars and set attrs, with one that clears DECL_RTL and
17253 checks that PARMs and RESULTs default_defs match DECL_RTL.
17254 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17255 * emit-rtl.c: Include stor-layout.h.
17256 (set_reg_attrs_for_parm): Handle NULL decl.
17257 (set_reg_attrs_for_decl_rtl): Take mode from expression if
17259 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
17260 rather than its possibly-NULL DECL.
17261 * explow.c (promote_ssa_mode): New.
17262 * explow.h (promote_ssa_mode): Declare.
17263 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17264 (read_complex_part): Export.
17265 * expr.h (read_complex_part): Declare.
17266 * cfgexpand.h (parm_maybe_byref_p): Declare.
17267 * function.c: Include cfgexpand.h.
17268 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17269 (use_register_for_parm_decl): Wrapper for the above to
17270 special-case the result_ptr.
17271 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17272 (split_complex_args): Take assign_parm_data_all argument.
17273 Pass it to rtl_for_parm. Set up rtl and context for split
17274 args. Reset complex parm before fetching its default decl
17276 (assign_parms_unsplit_complex): Use the default-def complex
17277 parm rtl if it matches the components.
17278 (assign_parms_augmented_arg_list): Adjust.
17279 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17280 multiple locations. Recognize split complex args.
17281 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17282 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17283 (assign_parm_setup_block): Prefer SSA-assigned location, and
17284 fill in its address if the memory location of a maybe-byref
17285 parm was not assigned by cfgexpand.
17286 (assign_parm_setup_reg): Likewise. Adjust its mode as
17287 needed. Use entry_parm for equiv if stack_parm is NULL. Make
17288 sure passed_pointer parms don't need conversion. Copy address
17289 or value as needed.
17290 (assign_parm_setup_stack): Prefer SSA-assigned location.
17291 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17292 rtl before testing for pointer bounds. Special-case result_ptr.
17293 (expand_function_start): Maybe reset DECL_RTL of result.
17294 Prefer SSA-assigned location for result and static chain.
17295 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
17296 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
17297 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17298 anonymous SSA names. Use promote_ssa_mode.
17299 (get_temp_reg): Likewise.
17300 (remove_ssa_form): Adjust.
17301 * stor-layout.c (layout_decl): Don't set mem attributes of
17303 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17304 and get its reg_usage for reg invalidation.
17305 (compute_bb_dataflow): Pass it insn.
17306 (emit_notes_in_bb): Likewise.
17308 2015-08-14 Marek Polacek <polacek@redhat.com>
17310 * tree-core.h (tree_base): Fix typo.
17312 2015-08-14 Marek Polacek <polacek@redhat.com>
17314 PR middle-end/67133
17315 * gimple.c (infer_nonnull_range_by_attribute): Check that the
17316 nonnull argument position is not outside function arguments.
17318 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
17321 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
17322 'lconst_atomic' with 'const_atomic'.
17323 (atomic_fetch_<optab><mode>): Likewise.
17324 (atomic_<optab>_fetch<mode>): Likewise.
17325 * config/aarch64/iterators.md (lconst-atomic): Move below
17327 (const_atomic): New.
17329 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
17330 Bernd Schmidt <bernds@codesourcery.com>
17332 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
17334 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
17335 (DWARF2_DEBUGGING_INFO): Don't define.
17336 * debug.h (dwarf2_lineno_debug_hooks): Declare.
17337 * toplev.c (process_options): Add a case for it.
17338 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
17339 (dwarf2out_init): Skip most initializations if
17340 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
17342 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
17343 DWARF2_LINENO_DEBUGGING_INFO.
17344 * opts.c (set_debug_level): Likewise.
17346 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
17348 * config/arm/types.md (is_neon_type): Add missing types.
17350 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
17352 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
17354 * config/i386/i386.c (PTA_SKYLAKE): New macros.
17355 (processor_alias_table): Add skylake description.
17356 (enum processor_model): Add skylake processor.
17357 (arch_names_table): Add skylake record.
17358 * doc/invoke.texi: Add skylake item.
17360 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
17362 * ira-int.h: Include recog.h.
17363 * ira-build.c: Don't include recog.h.
17364 * ira-color.c: Likewise.
17365 * ira-conflicts.c: Likewise.
17366 * ira-costs.c: Likewise.
17367 * ira-emit.c: Likewise.
17368 * ira-lives.c: Likewise.
17370 * sched-deps.c: Likewise.
17371 * sel-sched.c: Likewise.
17372 * target-globals.c: Likewise.
17374 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
17377 * reload1.c (elimination_costs_in_insn): Make it obvious to the
17378 compiler that the n_dups and n_operands loop bounds are invariant.
17380 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17382 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
17383 expressions in A and B.
17385 2015-08-13 Richard Biener <rguenther@suse.de>
17387 * tree.c (nonnull_arg_p): Move from ...
17388 * tree-vrp.c (nonnull_arg_p): ... here.
17389 * tree.h (nonnull_arg_p): Declare.
17390 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
17391 here, register ptr != 0 for nonnull_arg_p pointer arguments.
17392 Properly initialize static chain and by-reference result pointer.
17393 (run_scc_vn): Adjust.
17395 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
17397 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
17400 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
17402 * config/aarch64/aarch64-protos.h
17403 (aarch64_gen_atomic_cas): Declare.
17404 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
17405 Choose appropriate instruction pattern for the target.
17406 (aarch64_gen_atomic_cas): New.
17407 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
17408 (atomic_compare_and_swap<mode>_1): Rename to
17409 aarch64_compare_and_swap<mode>. Fix some indentation.
17410 (aarch64_compare_and_swap<mode>_lse): New.
17411 (aarch64_atomic_cas<mode>): New.
17413 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
17415 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
17418 2015-08-13 Richard Biener <rguenther@suse.de>
17420 PR tree-optimization/67191
17421 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
17422 assert we value-numbered last stmts operand because it can validly
17423 trigger for unreachable code.
17425 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17427 PR rtl-optimization/67103
17428 * ifcvt.c (noce_try_store_flag_constants): Move
17429 x = (-(test != 0) & (b - a)) + a transformation to...
17430 (noce_try_cmove): ... Here. Try it if normal conditional
17433 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
17435 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
17437 * config/mips/mips.md (processor): Remove w32 and w64.
17439 2015-08-13 Richard Biener <rguenther@suse.de>
17441 PR tree-optimization/66502
17442 PR tree-optimization/67167
17443 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
17444 backedge arguments.
17445 (vn_phi_lookup): Adjust.
17446 (vn_phi_insert): Likewise.
17447 (visit_phi): Prefer to value-number to another PHI node
17448 over value-numbering to a PHI argument.
17449 (init_scc_vn): Mark DFS back edges.
17451 2015-08-13 Richard Biener <rguenther@suse.de>
17453 * gimple.h (gcall::code_): New constant static member.
17454 (gcond::code_): Likewise.
17455 * gimple.c (gcall::code_): Define.
17456 (gcond::code_): Likewise.
17457 (is_a_helper <const gcond *>): Add.
17458 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
17459 and forward to a new gcall overload with less checking and a
17460 cheaper way to access the operand.
17461 (gimple_call_lhs_ptr): Likewise.
17462 (gimple_call_set_lhs): Likewise.
17463 (gimple_call_internal_p): Likewise.
17464 (gimple_call_with_bounds_p): Likewise.
17465 (gimple_call_set_with_bounds): Likewise.
17466 (gimple_call_internal_fn): Likewise.
17467 (gimple_call_set_ctrl_altering): Likewise.
17468 (gimple_call_ctrl_altering_p): Likewise.
17469 (gimple_call_fntype): Likewise.
17470 (gimple_call_fn): Likewise.
17471 (gimple_call_fn_ptr): Likewise.
17472 (gimple_call_set_fndecl): Likewise.
17473 (gimple_call_fndecl): Likewise.
17474 (gimple_call_chain): Likewise.
17475 (gimple_call_num_args): Likewise.
17476 (gimple_call_arg): Likewise.
17477 (gimple_call_arg_ptr): Likewise.
17478 (gimple_call_set_arg): Likewise.
17479 (gimple_call_noreturn_p): Likewise.
17480 (gimple_cond_code): Likewise.
17481 (gimple_cond_lhs): Likewise.
17482 (gimple_cond_rhs): Likewise.
17483 (gimple_has_lhs): Reduce checking.
17485 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17487 PR middle-end/25529
17488 * match.pd (div (mult @0 @1) @1) : New simplifier.
17490 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17493 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
17494 predicate to allow construction of vector constants using the
17495 VSLDOI vector shift instruction.
17497 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
17500 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
17501 the number of bytes to be shifted left and filled in with either
17502 all zero or all one bits.
17503 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
17505 (output_vec_const_move): On power8, generate XXLORC to generate
17506 a vector constant with all 1's. Do a split if we need to use a
17507 VSLDOI instruction.
17509 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
17510 properly test for the MSB.
17512 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
17513 vector constants that can be created with VSLDOI.
17515 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
17518 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17519 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17520 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17521 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17522 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17523 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17524 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17525 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17526 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17528 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
17530 * config/xtensa/constraints.md (define_constraint "Y"): New
17532 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
17533 * config/xtensa/linux.h (ASM_SPEC): Likewise.
17534 * config/xtensa/predicates.md (move_operand): Match constants
17535 and symbols in the presence of TARGET_AUTO_LITPOOLS.
17536 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
17537 immediate references to TLS data.
17538 (xtensa_emit_move_sequence): Don't force constants to memory in
17539 the presence of TARGET_AUTO_LITPOOLS.
17540 (print_operand): Add 'y' format, same as default, but capable of
17541 printing SF mode constants as well.
17542 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
17543 (movsf_internal): Add movi pattern that loads literal.
17544 (movsf, movdf): Don't force constants to memory in the presence
17545 of TARGET_AUTO_LITPOOLS.
17546 (movdf_internal): Add 'Y' constraint.
17547 * config/xtensa/xtensa.opt (mauto-litpools): New option.
17548 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
17550 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17552 * config/arm/arm-fpus.def: Replace booleans with feature flags.
17554 * config/arm/arm.c (ARM_FPU): Update macro.
17555 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
17556 (TARGET_FP16): Likewise.
17557 (TARGET_CRYPTO): Likewise.
17558 (TARGET_NEON): Likewise.
17559 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
17562 2015-08-12 Tom de Vries <tom@codesourcery.com>
17566 * doc/install.texi: Remove --with_host_libstdcxx item. Update
17567 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
17568 accordingly. Mention default for --with-stage1-ldflags.
17570 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17572 * config/arm/arm.h (arm_fpu_feature_set): New.
17573 (ARM_FPU_FSET_HAS): New.
17574 (FPU_FL_NONE): New.
17575 (FPU_FL_NEON): New.
17576 (FPU_FL_FP16): New.
17577 (FPU_FL_CRYPTO): New.
17579 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17581 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
17582 after -mcmodel=large -fPIC sorry.
17584 2015-08-12 Richard Biener <rguenther@suse.de>
17586 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
17587 comparison operand order and commutative ternary op operand order.
17588 (sccvn_dom_walker::cond_stack): New state to track temporary
17590 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
17592 (sccvn_dom_walker::record_cond): Add a single temporary conditional
17594 (sccvn_dom_walker::record_conds): Add a temporary conditional
17595 expressions and all related expressions also true/false.
17596 (sccvn_dom_walker::before_dom_children): Record temporary
17597 expressions based on the controlling condition of a single
17598 predecessor. When trying to simplify a conditional statement
17599 lookup expressions we might have inserted earlier.
17601 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
17604 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
17605 to ARM core registers.
17607 2015-08-12 Nathan Sidwell <nathan@acm.org>
17609 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
17610 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
17612 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
17614 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
17615 line with comments.
17616 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
17618 2015-08-12 Richard Biener <rguenther@suse.de>
17620 * gimple.h (remove_pointer): New trait.
17621 (GIMPLE_CHECK2): New inline template function.
17622 (gassign::code_): New constant static member.
17623 (is_a_helper<const gassign *>): Add.
17624 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
17625 and forward to a new gassign overload with less checking and a
17626 cheaper way to access the operand.
17627 (gimple_assign_lhs_ptr): Likewise.
17628 (gimple_assign_set_lhs): Likewise.
17629 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
17631 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
17633 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
17635 (gimple_assign_rhs_code): Likewise.
17636 * gimple.c (gassign::code_): Define.
17638 2015-08-12 Richard Biener <rguenther@suse.de>
17640 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17641 Eliminate edges marked as not executable by SCCVN.
17642 * tree-ssa-sccvn.c: Include gimple-iterator.h.
17643 (cond_dom_walker): Rename to sccvn_dom_walker.
17644 (sccvn_dom_walker::before_dom_children): Value-number defs
17646 (run_scc_vn): Remove loop value-numbering all SSA names.
17647 Drop not visited SSA names to varying.
17649 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
17651 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17652 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17653 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17654 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17655 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17656 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17657 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17658 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17659 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17661 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
17664 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
17665 to enum feature_priority and feature_list.
17666 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
17667 and isa_names_table.
17669 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
17671 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
17672 vect_induction_def.
17674 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17678 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
17679 account when deciding what was the command-line status.
17681 2015-08-11 Nathan Sidwell <nathan@acm.org>
17683 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
17685 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
17686 we're not the only contributor to target phi.
17688 2015-08-11 Jiong Wang <jiong.wang@arm.com>
17690 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
17693 2015-08-11 Tom de Vries <tom@codesourcery.com>
17695 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
17697 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
17699 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
17701 * config/i386/i386.md (cpu): Remove knl.
17703 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
17706 PR middle-end/66332
17707 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
17708 open-coded sequence.
17709 * omp-low.c (oacc_process_reduction_data): Remove handline of
17710 GOMP_DEVICE_HOST_NONSHM.
17712 * lto-streamer-in.c (lto_input_mode_table): Adjust to
17713 GET_MODE_INNER changes.
17715 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
17716 Ilya Verbin <ilya.verbin@intel.com>
17718 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
17720 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
17722 * doc/options.texi (EnabledBy): Document that the argument must be
17724 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
17725 Not enabled by -Wall.
17726 * optc-gen.awk: Give nicer error messages. Detect if the argument
17727 of EnabledBy is not a Common option.
17728 * common.opt (Wnull-dereference): Not enabled by -Wall.
17729 * opt-functions.awk (lang_enabled_by): Nicer error messages.
17731 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
17733 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
17734 model == 0x4f as Broadwell.
17736 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17738 PR rtl-optimization/67028
17739 * combine.c (simplify_comparison): Fix comment. Rearrange code.
17740 Add test to see if a const_int fits in the new mode.
17742 2015-08-07 DJ Delorie <dj@redhat.com>
17744 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
17746 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
17748 PR rtl-optimization/67029
17749 * ira-color.c: Include "recog.h" before including "ira-int.h".
17750 * target-globals.c: Likewise.
17751 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
17752 adds an alternative_mask argument and use it instead of
17753 preferred_alternatives.
17754 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
17755 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
17756 * sched-deps.c: Include "ira-int.h" after including "ira.h".
17757 (sched_analyze_insn): Update call to
17758 ira_implicitly_set_insn_hard_regs.
17759 * sel-sched.c: Include "ira-int.h" after including "ira.h".
17760 (implicit_clobber_conflict_p): Update call to
17761 ira_implicitly_set_insn_hard_regs.
17763 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
17765 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
17767 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
17770 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
17771 currently_expanding_to_rtl is set.
17773 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
17775 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
17776 * configure: Regenerate.
17778 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17779 Jiong Wang <jiong.wang@arm.com>
17781 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
17782 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
17783 (REG_CLASS_NAMES): Likewise.
17784 (REG_CLASS_CONTENTS): Likewise.
17785 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
17786 (aarch64_register_move_cost): Likewise.
17787 (aarch64_load_symref_appropriately): Invoke the new added pattern if
17789 * config/aarch64/constraints.md (Uc0): New constraint.
17791 2015-08-06 Jiong Wang <jiong.wang@arm.com>
17793 * config/aarch64/constraints.md (Usf): Add the test of
17794 aarch64_is_noplt_call_p.
17796 2015-08-06 Jiong Wang <jiong.wang@arm.com>
17798 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
17800 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
17801 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
17802 (call_symbol): Likewise.
17804 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
17806 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
17807 for vectorizing multiplication patterns.
17808 * tree-vectorizer.h: Adjust the number of patterns.
17810 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
17812 * config/i386/sse.md (*vec_concatv2df): Declare added
17813 alternatives as sselog type.
17815 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17817 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
17820 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17822 * config/s390/s390.c (s390_expand_tbegin): Expand either
17823 tbegin_1_z13 or tbegin_1 depending on VX flag.
17824 * config/s390/s390.md ("tbegin_1_z13"): New expander.
17826 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17828 * config/s390/s390.opt: Clarify description for -mzvector
17829 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
17832 2015-08-06 Richard Biener <rguenther@suse.de>
17834 * gimple.h (gimple_call_set_fn): Access op member directly.
17835 (gimple_call_chain_ptr): Likewise.
17836 (gimple_call_set_chain): Likewise.
17837 (gimple_cond_lhs_ptr): Likewise.
17838 (gimple_cond_set_lhs): Likewise.
17839 (gimple_cond_rhs_ptr): Likewise.
17840 (gimple_cond_set_rhs): Likewise.
17841 (gimple_cond_true_label): Likewise.
17842 (gimple_cond_set_true_label): Likewise.
17843 (gimple_cond_set_false_label): Likewise.
17844 (gimple_cond_false_label): Likewise.
17845 (gimple_label_label): Likewise.
17846 (gimple_label_set_label): Likewise.
17847 (gimple_goto_set_dest): Likewise.
17848 (gimple_asm_input_op): Likewise.
17849 (gimple_asm_input_op_ptr): Likewise.
17850 (gimple_asm_set_input_op): Likewise.
17851 (gimple_asm_output_op): Likewise.
17852 (gimple_asm_output_op_ptr): Likewise.
17853 (gimple_asm_set_output_op): Likewise.
17854 (gimple_asm_clobber_op): Likewise.
17855 (gimple_asm_set_clobber_op): Likewise.
17856 (gimple_asm_label_op): Likewise.
17857 (gimple_asm_set_label_op): Likewise.
17858 (gimple_switch_index): Likewise.
17859 (gimple_switch_index_ptr): Likewise.
17860 (gimple_return_retval_ptr): Likewise.
17861 (gimple_return_retval): Likewise.
17862 (gimple_return_set_retval): Likewise.
17863 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
17864 (gimple_switch_label): Likewise.
17865 (gimple_switch_set_label): Likewise.
17867 2015-08-06 Richard Biener <rguenther@suse.de>
17869 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
17870 bool comparison canonicalization and restrict to integers.
17872 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
17874 * coretypes.h (enum symbol_visibility): Relocate here.
17875 * flag-types.h (enum symbol_visibility): Remove.
17876 * tree-core.h (enum symbol_visibility): Remove.
17878 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
17881 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
17882 for no_split_stack function attribute along with
17884 (rs6000_expand_split_stack_prologue): Likewise.
17886 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
17887 Jeff Law <law@redhat.com>
17890 * doc/invoke.texi (Wnull-dereference): New.
17891 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
17892 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
17893 Warn for potential NULL dereferences.
17894 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
17895 * ubsan.c (instrument_nonnull_arg): Call
17896 infer_nonnull_range_by_attribute.
17897 (instrument_nonnull_return): Likewise.
17898 * common.opt (Wnull-dereference); New.
17899 * gimple.c (infer_nonnull_range): Remove bool arguments.
17900 (infer_nonnull_range_by_dereference): New.
17901 (infer_nonnull_range_by_attribute): New.
17902 * gimple.h: Update declarations.
17904 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17906 * gensupport.c (sequence_num): Replace with...
17907 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
17908 ...these new variables.
17909 (init_rtx_reader_args_cb): Update accordingly.
17910 (get_num_code_insns): Likewise.
17911 (read_md_rtx): Rework to use a while loop and get_c_test.
17912 Use the new counters. Remove redundant DEFINE_SUBST case.
17913 * genoutput.c (gen_split): Delete.
17914 (main): Don't call it.
17916 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17918 * gensupport.h (get_c_test): Declare.
17919 * gensupport.c (get_c_test): New function.
17920 * genconditions.c (main): Use it.
17921 * genrecog.c (validate_pattern): Likewise.
17922 (match_pattern_1): Likewise. Remove c_test argument.
17923 (match_pattern): Update accordingly and remove c_test argument.
17924 (main): Update accordingly.
17926 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17928 * gensupport.h (get_num_insn_codes): Declare.
17929 * gensupport.c (get_num_insn_codes): New function.
17930 * genattrtab.c (optimize_attrs): Rename max_insn_code to
17932 (main): Likewise. Use get_num_insn_codes.
17933 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
17935 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17937 PR middle-end/66311
17938 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
17939 is zero- rather than sign-extended.
17941 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17943 * target-insns.def (can_extend): Delete.
17945 2015-08-05 Richard Biener <rguenther@suse.de>
17947 PR tree-optimization/67121
17948 * tree-if-conv.c (combine_blocks): Clear range-info produced
17949 by stmts no longer executed conditionally.
17951 2015-08-05 Nick Clifton <nickc@redhat.com>
17953 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
17954 to allow identical far pointers to remain.
17956 2015-08-05 Richard Biener <rguenther@suse.de>
17958 PR middle-end/67120
17959 * match.pd: Compare address bases with == if they are decls
17960 or SSA names, not operand_equal_p. Otherwise fail.
17962 2015-08-05 Richard Biener <rguenther@suse.de>
17964 PR tree-optimization/67055
17965 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
17968 * g++.dg/torture/pr67055.C: New testcase.
17970 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
17972 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
17974 (define_attr "enabled"): Handle avx521vl and noavx512vl.
17975 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
17976 AVX-512 alternative out of SSE.
17977 (define_insn "*vec_concatv2df"): Ditto.
17979 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
17981 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
17982 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
17983 CODE_FOR_avx_ptestv4di.
17984 * config/i386/sse.md (define_mode_iterator V_AVX): New.
17985 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
17986 (define_insn "avx_ptest256"): Merge this ...
17987 (define_insn "sse4_1_ptest"): And this ...
17988 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
17990 2015-08-05 Richard Biener <rguenther@suse.de>
17992 PR tree-optimization/67109
17993 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
17994 against too big groups. Print whether this is a load or store
17995 group. Rename from ...
17996 (vect_analyze_group_access): ... this which is now a wrapper
17997 dissolving an invalid group.
17998 (vect_analyze_data_ref_accesses): Print whether this is a load
18001 2015-08-05 Richard Biener <rguenther@suse.de>
18003 PR middle-end/67107
18004 * match.pd: Guard const_binop result checking against NULL_TREE
18007 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
18009 * cse.c (cse_insn): Restoring old behaviour for src_eqv
18010 when dest and value in the REG_EQUAL are same and dest
18011 is STRICT_LOW_PART.
18013 2015-08-04 Anatoly Sokolov <aesok@post.ru>
18015 * config/moxie/moxie.h (PRINT_OPERAND,
18016 PRINT_OPERAND_ADDRESS): Remove macros.
18017 * config/moxie/moxie-protos.h (moxie_print_operand,
18018 moxie_print_operand_address): Remove declaration.
18019 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
18020 TARGET_PRINT_OPERAND_ADDRESS): Define.
18021 (moxie_print_operand, moxie_print_operand_address): Make static.
18023 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
18026 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
18027 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
18029 2015-08-04 Richard Biener <rguenther@suse.de>
18031 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
18033 (dt_operand::gen_gimple_expr): Adjust.
18035 2015-08-04 Richard Biener <rguenther@suse.de>
18037 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
18038 bool compares on RHS.
18039 * match.pd: Add X ==/!= !X is false/true pattern.
18041 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
18043 * config/aarch64/aarch64.c: Change inner loop statement cost
18044 to be consistent with other targets.
18046 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
18048 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
18051 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
18053 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
18054 (machine_function): Remove pseudos field.
18056 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18058 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18059 Exit early and use target_option_current_node if processing current
18062 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18064 * doc/extend.texi (AArch64 Function Attributes): New node.
18065 (AArch64 Pragmas): Likewise.
18067 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18069 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18070 Initialize simd builtins if TARGET_SIMD.
18071 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
18072 Make sure that the builtins are initialized only once no matter how
18073 many times the function is called.
18074 (aarch64_init_builtins): Unconditionally initialize crc builtins.
18075 (aarch64_relayout_simd_param): New function.
18076 (aarch64_simd_expand_args): Use above during argument expansion.
18077 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
18078 simd builtins if TARGET_SIMD.
18079 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
18081 (aarch64_relayout_simd_types): Likewise.
18083 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18085 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
18086 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
18087 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
18088 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18090 (aarch64_reset_previous_fndecl): New function.
18091 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
18093 * config/aarch64/aarch64-c.c: New file.
18094 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
18095 Push and pop options at beginning and end. Remove ifdef
18096 __ARM_FEATURE_CRC32.
18097 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
18098 Add pragma +nothing+simd and +nothing+crypto where appropriate.
18099 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
18100 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
18102 (aarch64_register_pragmas): Likewise.
18103 (aarch64_reset_previous_fndecl): Likewise.
18104 (aarch64_process_target_attr): Likewise.
18105 (aarch64_override_options_internal): Likewise.
18107 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18109 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
18111 (aarch64_can_inline_p): Likewise.
18112 (TARGET_CAN_INLINE_P): Define.
18114 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18116 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
18117 Remove static. Handle OPT_mgeneral_regs_only,
18118 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
18119 OPT_momit_leaf_frame_pointer.
18120 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
18121 (aarch64_attr_opt_type): New enum.
18122 (aarch64_attribute_info): New struct.
18123 (aarch64_handle_attr_arch): New function.
18124 (aarch64_handle_attr_cpu): Likewise.
18125 (aarch64_handle_attr_tune): Likewise.
18126 (aarch64_handle_attr_isa_flags): Likewise.
18127 (aarch64_attributes): New table.
18128 (aarch64_process_one_target_attr): New function.
18129 (num_occurences_in_str): Likewise.
18130 (aarch64_process_target_attr): Likewise.
18131 (aarch64_option_valid_attribute_p): Likewise.
18132 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
18133 * config/aarch64/aarch64-protos.h: Include input.h
18134 (aarch64_handle_option): Declare prototype.
18136 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18138 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
18139 * config/aarch64/aarch64.c: Include target-globals.h
18140 (aarch64_previous_fndecl): New variable.
18141 (aarch64_set_current_function): New function.
18142 (TARGET_SET_CURRENT_FUNCTION): Define.
18144 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18146 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
18147 (explicit_arch): Likewise.
18148 (x_aarch64_isa_flags): Likewise.
18149 (mgeneral-regs-only): Mark as Save.
18150 (mfix-cortex-a53-835769): Likewise.
18151 (mcmodel=): Likewise.
18152 (mstrict-align): Likewise.
18153 (momit-leaf-frame-pointer): Likewise.
18154 (mtls-dialect): Likewise.
18155 (master=): Likewise.
18156 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
18157 (aarch64_isa_flags): Remove extern declaration.
18158 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
18159 to indicate success or failure.
18160 (aarch64_validate_march): Likewise.
18161 (aarch64_validate_mtune): Likewise.
18162 (aarch64_isa_flags): Delete.
18163 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
18164 instead of aarch64_isa_flags.
18165 (aarch64_get_tune_cpu): New function.
18166 (aarch64_get_arch): Likewise.
18167 (aarch64_override_options): Use above and set up explicit_tune_core
18169 (aarch64_print_extension): Move earlier in file. Add isa_flags
18170 argument and use that instead of the global aarch64_isa_flags.
18171 (aarch64_option_save): New function.
18172 (aarch64_option_restore): Likewise.
18173 (aarch64_option_print): Likewise.
18174 (aarch64_declare_function_name): Likewise.
18175 (aarch64_start_file): Delete.
18176 (TARGET_ASM_FILE_START): Do not define.
18177 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
18178 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
18181 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18183 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
18184 flag_omit_leaf_frame_pointer to 2.
18186 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18188 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
18190 (TARGET_FIX_ERR_A53_835769): New macro.
18191 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18192 handling of opts->x_aarch64_fix_a53_err835769.
18193 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
18194 than aarch64_fix_a53_err835769.
18195 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
18196 * config/aarch64/aarch64-linux.h: Likewise.
18198 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
18200 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
18201 ix86_expand_int_movcc as boolean.
18203 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18205 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
18206 (aarch64_cpu_string): Likewise.
18207 (aarch64_tune_string): Likewise.
18208 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
18209 (aarch64_parse_extension): Return aarch64_parse_opt_result.
18210 Add extra argument to put result into.
18211 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
18212 (aarch64_parse_cpu): Add arguments to put results into. Return
18213 aarch64_parse_opt_result.
18214 (aarch64_parse_tune): Likewise.
18215 (aarch64_override_options_after_change_1): New function.
18216 (aarch64_override_options_internal): New function.
18217 (aarch64_validate_mcpu): Likewise.
18218 (aarch64_validate_march): Likewise.
18219 (aarch64_validate_mtune): Likewise.
18220 (aarch64_override_options): Update to reflect above changes.
18221 Move some logic into aarch64_override_options_internal.
18222 Initialize target_option_default_node and target_option_current_node.
18223 (aarch64_override_options_after_change): Move logic into
18224 aarch64_override_options_after_change_1 and call it with global_options.
18225 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
18226 flag values from that.
18228 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18230 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18231 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
18232 * config/aarch64/aarch64.c (struct processor): Add arch field.
18233 (all_architectures): Handle above, move above all_cores.
18234 (all_cores): Handle above.
18235 (aarch64_parse_arch): Handle above changes.
18236 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
18237 above. Update comments.
18238 (armv8.1-a): Likewise.
18239 * config/aarch64/aarch64-cores.def: Update according to above.
18240 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
18241 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
18242 aarch64_arch_driver_info.
18244 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18246 * config/aarch64/aarch64.c (struct processor): Add ident field.
18247 Rename core sched_core.
18248 (all_cores): Handle above changes.
18249 (all_architectures): Likewise.
18250 (aarch64_parse_arch): Likewise.
18251 (aarch64_override_options): Likewise.
18253 2015-08-04 Richard Biener <rguenther@suse.de>
18255 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
18256 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
18257 comparisons embedded in [VEC_]COND_EXPRs.
18259 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
18261 * tree-if-conv.c: Fix various typos in comments.
18262 * tree-vect-stmts.c: Likewise.
18264 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
18266 PR tree-optimization/67043
18267 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
18268 preheader after hoisting invariant in it.
18269 (find_defs): Force recomputation of all luids.
18271 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
18273 * config/rs6000/htm.md (tabort.): Restrict the source operand to
18274 using a base register.
18276 2015-08-03 David Malcolm <dmalcolm@redhat.com>
18278 * main.c (main): Pass in NULL for toplev's external_timer.
18279 * timevar.c: Include coretypes.h.
18280 (class timer::named_items): New.
18281 (timer::named_items::named_items): New.
18282 (timer::named_items::~named_items): New.
18283 (timer::named_items::push): New.
18284 (timer::named_items::pop): New.
18285 (timer::named_items::print): New.
18286 (timer::timer): Initialize field "m_jit_client_items".
18287 (timer::~timer): New.
18288 (timer::push): Move bulk of implementation to...
18289 (timer::push_internal): ...here. New function.
18290 (timer::pop): Move bulk of implementation to...
18291 (timer::pop_internal): ...here. New function.
18292 (timer::push_client_item): New.
18293 (timer::pop_client_item): New.
18294 (timer::print_row): New function, taken from timer::print.
18295 (timer::print): Print "GCC items" header if we also have client
18296 items. Move row-printing to timer::print_row. Print any client
18298 (timer::get_topmost_item_name): New method.
18299 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
18300 (TV_JIT_CLIENT_CODE): New.
18301 * timevar.h (timer::push_client_item): New declaration.
18302 (timer::pop_client_item): New declaration.
18303 (timer::get_topmost_item_name): New method.
18304 (timer::push_internal): New declaration.
18305 (timer::pop_internal): New declaration.
18306 (timer::print_row): New declaration.
18307 (timer::named_items): New declaration.
18308 (timer::m_jit_client_items): New field.
18309 (timer): Add friend class named_items.
18310 (auto_timevar::auto_timevar): Add timer param.
18311 (auto_timevar::~auto_timevar): Use field "m_timer".
18312 (auto_timevar::m_timer): New field.
18313 * toplev.c (initialize_rtl): Add g_timer as param when
18314 constructing auto_timevar instance.
18315 (toplev::toplev): Add "external_timer" param, and use it to
18316 initialize the "g_timer" global if non-NULL.
18317 (toplev::~toplev): If this created "g_timer", delete it.
18318 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
18319 with "external_timer" timer *.
18321 2015-08-03 Alexander Basov <coohpt@gmail.com>
18323 PR middle-end/64744
18324 PR middle-end/48470
18325 PR middle-end/43404
18326 * cfgexpand.c (expand_one_var): Add check if stack is going to
18327 be used in naked function.
18328 * expr.c (expand_expr_addr_expr_1): Remove excess checking
18329 whether expression should not reside in MEM.
18330 * function.c (use_register_for_decl): Do not use registers for
18331 non-register things (volatile, float, BLKMode) in naked functions.
18333 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
18336 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
18337 Adjust splits to match new pattern.
18339 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
18341 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
18344 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
18345 point in VSX registers.
18347 * config/rs6000/constraints.md (wb constraint): Document unused
18349 (we constraint): Likewise.
18350 (wo constraint): Likewise.
18351 (wp constraint): New constraint for IEEE 128-bit floating point in
18353 (wq constraint): Likewise.
18355 * config/rs6000/predicates.md (easy_fp_constant): Add support for
18356 IEEE 128-bit floating point in VSX registers.
18357 (easy_scalar_constant): Likewise.
18359 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
18360 constraints (wp, wq) for IEEE 128-bit floating point in VSX
18362 (rs6000_init_hard_regno_mode_ok): Likewise.
18364 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
18365 floating point in VSX registers.
18368 (VSX_M2): Likewise.
18374 (vsx_le_permute_<mode>): Add support to properly swap bytes for
18375 IEEE 128-bit floating point in VSX registers on little endian.
18376 (vsx_le_undo_permute_<mode>): Likewise.
18377 (vsx_le_perm_load_<mode>): Likewise.
18378 (vsx_le_perm_store_<mode>): Likewise.
18379 (splitters for IEEE 128-bit fp moves): Likewise.
18381 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
18384 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
18385 floating point in VSX registers.
18388 * doc/md.text (Machine Constraints): Document wp and wq
18389 constraints on PowerPC.
18391 2015-08-03 Jeff Law <law@redhat.com>
18393 PR middle-end/66314
18394 PR gcov-profile/66899
18395 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
18396 iterate over the jump threading paths when an element in the
18397 jump threading paths array is eliminated.
18399 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
18401 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
18403 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
18405 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
18406 is_use_properly_guarded the variable def_preds. Free its
18407 contents before returning.
18408 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
18409 (is_use_properly_guarded): Replace local variable def_preds with
18410 a parameter. Adjust accordingly. Only update *def_preds if it's
18413 2015-08-03 Richard Biener <rguenther@suse.de>
18415 * genmatch.c (simplify::for_subst_vec): New member.
18416 (binary_ok): New helper for for lowering.
18417 (lower_for): Delay substituting operators into result expressions
18418 if we can merge the results eventually again.
18419 (capture_info::walk_result): Adjust for user_id appearing as
18420 result expression operator.
18421 (expr::gen_transform): Likewise.
18422 (dt_simplify::gen_1): Likewise.
18423 (dt_simplify::gen): Pass not substituted operators to tail
18424 functions or initialize local variable with it.
18425 (decision_tree::gen): Adjust function signature.
18426 * match.pd: Fix tests against global code and add default
18427 cases to switch stmts.
18429 2015-08-03 Richard Biener <rguenther@suse.de>
18431 * genmatch.c (dt_simplify::gen): Create captures array
18432 with an initializer.
18434 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18436 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
18437 the host compiler is affected by placement new aliasing bug.
18438 * configure: Regenerate.
18439 * Makefile.in (ALIASING_FLAGS): New variable.
18440 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
18442 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
18445 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
18446 (negmulsf3_vfp): Likewise.
18447 (muldf3negdf_vfp): Disable for -frounding-math.
18448 (mulsf3negsf_vfp): Likewise.
18449 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
18450 fix MULT cost with -frounding-math.
18452 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18454 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
18455 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
18456 explicit. Prefer to add the flag whenever possible.
18457 (noce_process_if_block): Try noce_try_store_flag_constants before
18460 2015-08-03 Richard Biener <rguenther@suse.de>
18462 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
18463 New hash-map to record equivalent transforms.
18464 (dt_node::analyze): Populate the equivalent transforms hash-map.
18465 (dt_simplify::info): Add reference to hash-map entry.
18466 (dt_simplify::gen): If we have split out a function for the
18467 transform, generate a call to it.
18468 (sinfo_hashmap_traits::hash): New function.
18469 (compare_op): New helper function for ...
18470 (sinfo_hashmap_traits::equal_keys): ... this new function.
18471 (decision_tree::gen): Split out common equivalent transforms
18474 2015-08-03 Richard Biener <rguenther@suse.de>
18476 * gimple-fold.c (fold_gimple_assign): Remove folding of
18477 the comparison in COND_EXPRs.
18479 2015-08-03 Richard Biener <rguenther@suse.de>
18481 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
18482 on the rhs of assignments first simplify the embedded
18485 2015-08-03 Richard Biener <rguenther@suse.de>
18487 PR tree-optimization/66917
18488 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
18490 (DR_VECT_AUX): New macro.
18491 (set_dr_misalignment): Adjust.
18492 (dr_misalignment): Likewise.
18493 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18494 Compute whether the base is at least element aligned.
18495 * tree-vect-stmts.c (ensure_base_align): Adjust.
18496 (vectorizable_store): If the base is not element aligned
18497 preserve alignment of the original access if misalignment is unknown.
18498 (vectorizable_load): Likewise.
18500 2015-08-02 Martin Sebor <msebor@redhat.com>
18502 * doc/invoke.texi (Wframe-address): Document it.
18503 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
18504 Clarify possible effects of calling the functions with non-zero
18505 arguments and mention -Wframe-address.
18506 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
18508 2015-08-01 Michael Collison <michael.collison@linaro.org
18509 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18511 * config/arm/arm.md (*arm_smin_cmp): New pattern.
18512 (*arm_umin_cmp): Likewise.
18514 2015-08-01 Caroline Tice <cmtice@google.com>
18517 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
18519 (vtbl_find_mangled_name): New function.
18520 (vtbl_register_mangled_name): New function.
18521 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
18522 mangled name in mangled name vectors.
18523 (find_or_create_vtbl_map_node): Ditto.
18524 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
18525 update recursion_depth on function entry; pass it to every recursive
18526 call; automatically exit if depth > 25 (give up looking at that point).
18527 (verify_bb_vtables): Initialize recursion_depth and pass it to
18528 var_is_used_for_virtual_call_p.
18529 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
18530 global variable decls.
18531 (vtbl_register_mangled_name): New extern function decl.
18533 2015-08-01 Tom de Vries <tom@codesourcery.com>
18535 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
18537 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
18539 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
18540 operation_no_trapping_overflow. Allow non-overflow operations.
18541 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
18544 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
18547 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
18549 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18551 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
18552 Enable for TARGET_32BIT.
18553 (*if_move_neg): Likewise.
18555 2015-07-31 Nick Clifton <nickc@redhat.com>
18557 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
18558 Returns true for __model__.
18559 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18561 2015-07-31 Alan Modra <amodra@gmail.com>
18564 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
18565 (rs6000_emit_prologue): Set it.
18566 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
18568 2015-07-31 Richard Biener <rguenther@suse.de>
18570 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
18571 -> X == (C1 ^ C2) which is already implemented in match.pd.
18572 Remove redundant dispatching to fold_relational_const.
18573 Move unordered self and NaN compares ...
18574 * match.pd: ... as patterns here. Remove some stray captures
18577 2015-07-31 Petr Murzin <petr.murzin@intel.com>
18579 * config/i386/i386.c
18580 (bdesc_special_args): Convert mask type from signed to unsigned for
18582 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
18583 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
18584 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
18585 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
18586 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
18587 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
18588 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
18589 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
18590 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
18591 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
18592 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
18593 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
18594 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
18595 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
18596 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
18597 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
18598 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
18599 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
18600 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
18601 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
18602 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
18603 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
18604 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
18605 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
18606 * config/i386/i386-builtin-types.def
18607 (V16QI_FTYPE_V16SI): Remove.
18608 (V8DF_FTYPE_V8SI): Ditto.
18609 (V8HI_FTYPE_V8DI): Ditto.
18610 (V8SI_FTYPE_V8DI): Ditto.
18611 (V8SF_FTYPE_V8DF): Ditto.
18612 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
18613 (V16HI_FTYPE_V16SI): Ditto.
18614 (V16SF_FTYPE_V16HI): Ditto.
18615 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
18616 (V16SF_FTYPE_V16SI): Ditto.
18617 (V4DI_FTYPE_V4DI): Ditto.
18618 (V16SI_FTYPE_V16SF): Ditto.
18619 (V16SF_FTYPE_FLOAT): Ditto.
18620 (V8DF_FTYPE_DOUBLE): Ditto.
18621 (V8DI_FTYPE_INT64): Ditto.
18622 (V8DI_FTYPE_V4DI): Ditto.
18623 (V16QI_FTYPE_V8DI): Ditto.
18624 (UINT_FTYPE_V4SF): Ditto.
18625 (UINT64_FTYPE_V4SF): Ditto.
18626 (UINT_FTYPE_V2DF): Ditto.
18627 (UINT64_FTYPE_V2DF): Ditto.
18628 (V16SI_FTYPE_V16SI): Ditto.
18629 (V8DI_FTYPE_V8DI): Ditto.
18630 (V16SI_FTYPE_PV4SI): Ditto.
18631 (V16SF_FTYPE_PV4SF): Ditto.
18632 (V8DI_FTYPE_PV2DI): Ditto.
18633 (V8DF_FTYPE_PV2DF): Ditto.
18634 (V4DI_FTYPE_PV2DI): Ditto.
18635 (V4DF_FTYPE_PV2DF): Ditto.
18636 (V16SI_FTYPE_PV2SI): Ditto.
18637 (V16SF_FTYPE_PV2SF): Ditto.
18638 (V8DI_FTYPE_PV4DI): Ditto.
18639 (V8DF_FTYPE_PV4DF): Ditto.
18640 (V8SF_FTYPE_FLOAT): Ditto.
18641 (V4SF_FTYPE_FLOAT): Ditto.
18642 (V4DF_FTYPE_DOUBLE): Ditto.
18643 (V8SF_FTYPE_PV4SF): Ditto.
18644 (V8SI_FTYPE_PV4SI): Ditto.
18645 (V4SI_FTYPE_PV2SI): Ditto.
18646 (V8SF_FTYPE_PV2SF): Ditto.
18647 (V8SI_FTYPE_PV2SI): Ditto.
18648 (V16SF_FTYPE_PV8SF): Ditto.
18649 (V16SI_FTYPE_PV8SI): Ditto.
18650 (V8DI_FTYPE_V8SF): Ditto.
18651 (V4DI_FTYPE_V4SF): Ditto.
18652 (V2DI_FTYPE_V4SF): Ditto.
18653 (V64QI_FTYPE_QI): Ditto.
18654 (V32HI_FTYPE_HI): Ditto.
18655 (V8UHI_FTYPE_V8UHI): Ditto.
18656 (V16UHI_FTYPE_V16UHI): Ditto.
18657 (V32UHI_FTYPE_V32UHI): Ditto.
18658 (V2UDI_FTYPE_V2UDI): Ditto.
18659 (V4UDI_FTYPE_V4UDI): Ditto.
18660 (V8UDI_FTYPE_V8UDI): Ditto.
18661 (V4USI_FTYPE_V4USI): Ditto.
18662 (V8USI_FTYPE_V8USI): Ditto.
18663 (V16USI_FTYPE_V16USI): Ditto.
18664 (V2DF_FTYPE_V2DF_UINT64): Ditto.
18665 (V2DI_FTYPE_V2DF_V2DF): Ditto.
18666 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
18667 (V8DF_FTYPE_V8DF_V8DI): Ditto.
18668 (V4SF_FTYPE_V4SF_UINT64): Ditto.
18669 (V4SI_FTYPE_V4SF_V4SF): Ditto.
18670 (V16SF_FTYPE_V16SF_V16SI): Ditto.
18671 (V64QI_FTYPE_V32HI_V32HI): Ditto.
18672 (V32HI_FTYPE_V16SI_V16SI): Ditto.
18673 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
18674 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
18675 (V32HI_FTYPE_V64QI_V64QI): Ditto.
18676 (V32HI_FTYPE_V32HI_V32HI): Ditto.
18677 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
18678 (V16SI_FTYPE_V16SI_V4SI): Ditto.
18679 (V16SI_FTYPE_V16SI_V16SI): Ditto.
18680 (V16SI_FTYPE_V32HI_V32HI): Ditto.
18681 (V16SI_FTYPE_V16SI_SI): Ditto.
18682 (V8DI_FTYPE_V8DI_V8DI): Ditto.
18683 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
18684 (V8DI_FTYPE_V16SI_V16SI): Ditto.
18685 (V8DI_FTYPE_V8DI_V2DI): Ditto.
18686 (QI_FTYPE_QI): Ditto.
18687 (SI_FTYPE_SI): Ditto.
18688 (DI_FTYPE_DI): Ditto.
18689 (QI_FTYPE_QI_QI): Ditto.
18690 (QI_FTYPE_QI_INT): Ditto.
18691 (HI_FTYPE_HI_INT): Ditto.
18692 (SI_FTYPE_SI_INT): Ditto.
18693 (DI_FTYPE_DI_INT): Ditto.
18694 (HI_FTYPE_V16QI_V16QI): Ditto.
18695 (SI_FTYPE_V32QI_V32QI): Ditto.
18696 (DI_FTYPE_V64QI_V64QI): Ditto.
18697 (QI_FTYPE_V8HI_V8HI): Ditto.
18698 (HI_FTYPE_V16HI_V16HI): Ditto.
18699 (SI_FTYPE_V32HI_V32HI): Ditto.
18700 (QI_FTYPE_V4SI_V4SI): Ditto.
18701 (QI_FTYPE_V8SI_V8SI): Ditto.
18702 (QI_FTYPE_V2DI_V2DI): Ditto.
18703 (QI_FTYPE_V4DI_V4DI): Ditto.
18704 (QI_FTYPE_V8DI_V8DI): Ditto.
18705 (HI_FTYPE_V16SI_V16SI): Ditto.
18706 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
18707 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
18708 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
18709 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
18710 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
18711 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
18712 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
18713 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
18714 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
18715 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
18716 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
18717 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
18718 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
18719 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
18720 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
18721 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
18722 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
18723 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
18724 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
18725 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
18726 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
18727 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
18728 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
18729 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
18730 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
18731 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
18732 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
18733 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
18734 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
18735 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
18736 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
18737 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
18738 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
18739 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
18740 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
18741 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
18742 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
18743 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
18744 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
18745 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
18746 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
18747 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
18748 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
18749 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
18750 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
18751 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
18752 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
18753 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
18754 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
18755 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
18756 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
18757 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
18758 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
18759 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
18760 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
18761 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
18762 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
18763 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
18764 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
18765 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
18766 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
18767 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
18768 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
18769 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
18770 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
18771 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
18772 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
18773 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
18774 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
18775 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
18776 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
18777 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
18778 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
18779 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
18780 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
18781 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
18782 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
18783 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
18784 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
18785 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
18786 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
18787 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
18788 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
18789 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
18790 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
18791 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
18792 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
18793 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
18794 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
18795 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
18796 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
18797 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
18798 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
18799 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
18800 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
18801 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
18802 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
18803 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
18804 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
18805 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
18806 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
18807 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
18808 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
18809 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
18810 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
18811 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
18812 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
18813 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
18814 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
18815 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
18816 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
18817 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
18818 (HI_FTYPE_HI): Ditto.
18819 (HI_FTYPE_V16QI): Ditto.
18820 (SI_FTYPE_V32QI): Ditto.
18821 (DI_FTYPE_V64QI): Ditto.
18822 (QI_FTYPE_V8HI): Ditto.
18823 (HI_FTYPE_V16HI): Ditto.
18824 (SI_FTYPE_V32HI): Ditto.
18825 (QI_FTYPE_V4SI): Ditto.
18826 (QI_FTYPE_V8SI): Ditto.
18827 (HI_FTYPE_V16SI): Ditto.
18828 (QI_FTYPE_V2DI): Ditto.
18829 (QI_FTYPE_V4DI): Ditto.
18830 (QI_FTYPE_V8DI): Ditto.
18831 (V16QI_FTYPE_HI): Ditto.
18832 (V32QI_FTYPE_SI): Ditto.
18833 (V64QI_FTYPE_DI): Ditto.
18834 (V8HI_FTYPE_QI): Ditto.
18835 (V16HI_FTYPE_HI): Ditto.
18836 (V32HI_FTYPE_SI): Ditto.
18837 (V4SI_FTYPE_QI): Ditto.
18838 (V4SI_FTYPE_HI): Ditto.
18839 (V8SI_FTYPE_QI): Ditto.
18840 (V8SI_FTYPE_HI): Ditto.
18841 (V2DI_FTYPE_QI): Ditto.
18842 (V4DI_FTYPE_QI): Ditto.
18843 (HI_FTYPE_HI_HI): Ditto.
18844 (SI_FTYPE_SI_SI): Ditto.
18845 (DI_FTYPE_DI_DI): Ditto.
18846 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
18847 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
18848 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
18849 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
18850 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
18851 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
18852 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
18853 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
18854 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
18855 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
18856 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
18857 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
18858 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
18859 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
18860 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
18861 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
18862 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
18863 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
18864 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
18865 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
18866 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
18867 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
18868 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
18869 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
18870 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
18871 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
18872 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
18873 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
18874 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
18875 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
18876 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
18877 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
18878 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
18879 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
18880 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
18881 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
18882 (V16SI_FTYPE_HI): Ditto.
18883 (V8DI_FTYPE_QI): Ditto.
18884 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
18885 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
18886 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
18887 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
18888 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
18889 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
18890 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
18891 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
18892 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
18893 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
18894 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
18895 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
18896 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
18897 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
18898 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
18899 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
18900 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
18901 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
18902 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
18903 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
18904 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
18905 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
18906 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
18907 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
18908 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
18909 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
18910 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
18911 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
18912 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
18913 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
18914 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
18915 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
18916 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
18917 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
18918 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
18919 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
18920 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
18921 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
18922 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
18923 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
18924 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
18925 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
18926 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
18927 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
18928 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
18929 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
18930 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
18931 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
18932 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
18933 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
18934 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
18935 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
18936 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
18937 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
18938 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
18939 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
18940 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
18941 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
18942 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
18943 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
18944 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
18945 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
18946 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
18947 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
18948 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
18949 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
18950 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
18951 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
18952 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
18953 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
18954 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
18955 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
18956 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
18957 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
18958 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
18959 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
18960 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
18961 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
18962 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
18963 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
18964 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
18965 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
18966 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
18967 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
18968 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
18969 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
18970 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
18971 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
18972 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
18973 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
18974 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
18975 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
18976 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
18977 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
18978 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
18979 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
18980 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
18981 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
18982 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
18983 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
18984 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
18985 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
18986 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
18987 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
18988 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
18989 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
18990 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
18991 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
18992 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
18993 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
18994 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
18995 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
18996 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
18997 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
18998 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
18999 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
19000 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
19001 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
19002 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
19003 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
19004 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
19005 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
19006 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
19007 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
19008 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
19009 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
19010 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
19011 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
19012 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
19013 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
19014 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
19015 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
19016 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
19017 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
19018 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
19019 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
19020 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
19021 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
19022 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
19023 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
19024 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
19025 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
19026 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
19027 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
19028 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
19029 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
19030 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
19031 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
19032 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
19033 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
19034 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
19035 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
19036 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
19037 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
19038 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
19039 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
19040 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
19041 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
19042 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
19043 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
19044 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
19045 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
19046 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
19047 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
19048 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
19049 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
19050 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
19051 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
19052 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
19053 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
19054 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
19055 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
19056 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
19057 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
19058 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
19059 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
19060 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
19061 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
19062 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
19063 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
19064 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
19065 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
19066 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
19067 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
19068 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
19069 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
19070 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
19071 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
19072 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
19073 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
19074 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
19075 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
19076 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
19077 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
19078 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
19079 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
19080 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
19081 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
19082 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
19083 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
19084 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
19085 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
19086 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
19087 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
19088 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
19089 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
19090 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
19091 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
19092 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
19093 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
19094 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
19095 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
19096 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
19097 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
19098 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
19099 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
19100 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
19101 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
19102 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
19103 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
19104 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
19105 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
19106 (QI_FTYPE_V8DF_INT_QI): Ditto.
19107 (QI_FTYPE_V4DF_INT_QI): Ditto.
19108 (QI_FTYPE_V2DF_INT_QI): Ditto.
19109 (HI_FTYPE_V16SF_INT_HI): Ditto.
19110 (QI_FTYPE_V8SF_INT_QI): Ditto.
19111 (QI_FTYPE_V4SF_INT_QI): Ditto.
19112 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
19114 2015-07-31 Richard Biener <rguenther@suse.de>
19116 * gimple-fold.c (fold_gimple_assign): Remove folding of
19119 2015-07-31 Tom de Vries <tom@codesourcery.com>
19121 PR tree-optimization/66846
19122 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
19123 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
19124 (expand_omp_target) [ENABLE_CHECKING]: Same.
19125 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
19126 cfun if !LOOPS_NEED_FIXUP.
19127 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
19128 that omp_for already has its own loop struct.
19129 * tree-parloops.c (create_phi_for_local_result)
19130 (create_call_for_reduction): Handle simple latch bb.
19131 (create_parallel_loop): Add simple latch bb to preserve
19132 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
19133 (gen_parallel_loop): Remove call to cancel_loop_tree.
19134 (parallelize_loops): Skip loops that are inner loops of parallelized
19136 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
19137 verify_loop_structure.
19139 2015-07-30 Anatoly Sokolov <aesok@post.ru>
19141 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
19142 * config/v850/v850.md (RV_REGNUM): New constants.
19143 * config/v850/v850.c (v850_libcall_value): New functions.
19144 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
19145 (TARGET_LIBCALL_VALUE): Define.
19147 2015-07-30 Anatoly Sokolov <aesok@post.ru>
19149 * rtl.h (lowpart_subreg): Move in file.
19150 * loop-iv.c (lowpart_subreg): Move to...
19151 * simplify-rtx.c (lowpart_subreg): ...here.
19152 (simplify_binary_operation_1): Use lowpart_subreg instead of
19153 simplify_gen_subreg.
19154 * expr.c (expand_expr_real_2): Ditto.
19155 * emit-rtl.c (gen_lowpart_common): Ditto.
19156 * combine.c (gen_lowpart_for_combine): Ditto.
19157 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
19158 expand_debug_source_expr): Ditto.
19160 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
19162 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
19163 (expand_builtin_atomic_clear): Remove support for atomic_clear
19166 2015-07-30 Richard Biener <rguenther@suse.de>
19168 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
19169 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
19170 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
19171 redundant operand canonicalization.
19173 2015-07-30 David Sherwood <david.sherwood@arm.com>
19175 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
19176 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
19177 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
19178 * config/arm/arm.c (neon_valid_immediate): Likewise.
19179 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
19180 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
19181 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
19182 (expand_vec_perm_vpshufb2_vpermq): Likewise.
19183 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
19184 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
19185 * config/i386/sse.md
19186 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
19187 (*ssse3_palignr<mode>_perm): Likewise.
19188 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
19189 * config/spu/spu.c (arith_immediate_p): Likewise.
19190 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
19191 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
19193 2015-07-30 Richard Biener <rguenther@suse.de>
19195 * genmatch.c (decision_tree::gen_gimple): Merge with ...
19196 (decision_tree::gen_generic): ... this into ...
19197 (decision_tree::gen): ... this.
19198 (main): Adjust callers.
19200 2015-07-30 Richard Biener <rguenther@suse.de>
19202 * genmatch.c (verbose): New global.
19203 (warning_at): Add overload with source_location.
19204 (capture_info::capture_info): Add bool whether generating gimple
19205 or generic. Add gimple member.
19206 (capture_info::cinfo): Add capture member.
19207 (capture_info::walk_match): Record capture. Warn on
19208 non-captured leafs.
19209 (capture_info::walk_c_expr): Add more fragments captures cannot
19210 escape through. Warn on escaped captures.
19211 (dt_simplify::gen_1): Warn on operands we force to have no
19213 (main): Initialize verbose.
19214 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
19216 2015-07-30 Richard Biener <rguenther@suse.de>
19218 PR middle-end/67053
19219 * match.pd: Allow both operands to independently have conversion
19220 when simplifying compares of addresses.
19222 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
19226 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
19227 around those cases that need one.
19229 2015-07-29 Aditya Kumar <hiraditya@msn.com>
19231 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
19233 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
19235 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
19236 New. Copied from config/i386/gnu-user.h.
19237 (ASM_COMMENT_START): Likewise.
19238 (DBX_REGISTER_NUMBER): Likewise.
19240 2015-07-29 Richard Biener <rguenther@suse.de>
19242 * gimple-fold.c (fold_gimple_cond): Remove.
19243 (fold_stmt_1): Do not call it.
19245 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
19247 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
19248 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
19250 * config/aarch64/aarch64-modes.def: Add HFmode.
19252 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19253 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
19255 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
19256 aarch64_promoted_type): New.
19258 (aarch64_float_const_representable_p): Disable HFmode.
19259 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
19260 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
19261 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
19263 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
19264 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
19266 * config/aarch64/iterators.md (GPF_F16): New.
19268 2015-07-29 Richard Biener <rguenther@suse.de>
19270 * match.pd: Merge address comparison patterns and make them
19271 handle some more cases.
19273 2015-07-29 Richard Biener <rguenther@suse.de>
19275 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
19276 (parser::parse_capture): Add bool argument on whether to reject
19278 (parser::parse_expr): Adjust.
19279 (parser::parse_op): Likewise.
19280 (parser::parse_pattern): Likewise.
19282 2015-07-29 Richard Biener <rguenther@suse.de>
19284 * gimple-fold.c (has_use_on_stmt): New function.
19285 (replace_stmt_with_simplification): Use it to allow
19286 abnormals originally referenced in the stmt.
19287 (fold_stmt_1): Canonicalize operand order.
19289 2015-07-28 David Sherwood <david.sherwood@arm.com>
19291 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
19292 GET_MODE_INNER unconditionally.
19293 * config/spu/spu.c (arith_immediate_p): Likewise.
19294 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
19295 * expmed.c (synth_mult): Remove check for VOIDmode result from
19297 (expand_mult_const): Likewise.
19298 * fold-const.c (fold_binary_loc): Replace call to element_precision
19299 with call to GET_MODE_PRECISION.
19300 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
19302 (emit_mode_inner): Likewise.
19303 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
19305 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
19306 (GET_MODE_UNIT_PRECISION): Likewise.
19307 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
19308 * simplify-rtx.c (simplify_immed_subreg): Likewise.
19309 * stor-layout.c (bitwise_type_for_mode): Update assert.
19310 (element_precision): Remove.
19312 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19314 * target-insns.def (reload_load_address): New targetm instruction
19316 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
19318 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19320 * target-insns.def (atomic_test_and_set): New targetm instruction
19322 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
19323 HAVE_*/gen_* interface.
19325 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19327 * target-insns.def (can_extend, ptr_extend): New targetm instruction
19329 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
19330 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
19331 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
19332 * rtlanal.c (nonzero_bits1): Likewise.
19333 (num_sign_bit_copies1): Likewise.
19335 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19337 * target-insns.def (eh_return): New targetm instruction pattern.
19338 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
19340 * function.c (thread_prologue_and_epilogue_insns): Remove
19341 preprocessor condition.
19343 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19345 * target-insns.def (indirect_jump): New targetm instruction pattern.
19346 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
19349 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19351 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
19352 instead of nonimmediate_operand. Remove C condiition.
19354 2015-07-28 Richard Biener <rguenther@suse.de>
19356 * match.pd: Add more simplification of address comparisons.
19358 2015-07-28 Richard Biener <rguenther@suse.de>
19360 * match.pd: Re-order two cases in comparison with max/min
19361 value simplification to make it apply for bools.
19363 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19365 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
19366 Handle simple SIGN_EXTEND or ZERO_EXTEND.
19367 (aarch64_rtx_costs): Properly strip extend or extract before
19368 passing down to rtx costs again.
19370 2015-07-28 Nick Clifton <nickc@redhat.com>
19372 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
19373 Optimizes the case where -mes0 is active and a constant symbolic
19375 * config/rl78/rl78-protos.h: Prototype the new function.
19376 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
19378 2015-07-28 Tom de Vries <tom@codesourcery.com>
19380 * tree-parloops.c (reduc_stmt_res): New function.
19381 (initialize_reductions, add_field_for_reduction)
19382 (create_phi_for_local_result, create_loads_for_reductions)
19383 (create_stores_for_reduction, build_new_reduction): Handle case that
19384 reduc_stmt is a phi.
19385 (gather_scalar_reductions): Allow double_reduc reductions.
19387 2015-07-28 Richard Biener <rguenther@suse.de>
19389 * fold-const.c (fold_comparison): Remove equality folding
19390 of decl addresses ...
19391 * match.pd: ... here and merge with existing pattern.
19393 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19395 PR tree-optimization/66828
19396 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
19397 from int64_t to uint64_t.
19399 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
19401 * opts-common.c (read_cmdline_option): List DriverOnly enum values
19402 as valid only in the error message of the driver, not in the
19403 messages of the language compilers.
19405 2015-07-27 Tom de Vries <tom@codesourcery.com>
19407 * tree-parloops.c (gather_scalar_reductions): Simplify function
19410 2015-07-27 Marek Polacek <polacek@redhat.com>
19412 * ipa-devirt.c (types_same_for_odr): Fix typo.
19414 2015-07-27 Jason Merrill <jason@redhat.com>
19417 * dwarf2out.c (gen_inlined_subroutine_die): Check
19418 cgraph_function_possibly_inlined_p.
19420 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
19422 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
19423 Place integer variant first.
19424 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
19426 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
19429 * config/arm/arm-builtins.c (enum arm_builtins):
19430 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
19431 (ARM_BUILTIN_NEON_BASE): Rename macro to....
19432 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
19433 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
19434 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
19436 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
19439 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
19440 Add qualifier_lane_index.
19441 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
19442 (arm_getlane_qualifiers): Use qualifier_lane_index.
19443 (arm_lanemac_qualifiers): Rename to...
19444 (arm_mac_n_qualifiers): ...this.
19445 (LANEMAC_QUALIFIERS): Rename to...
19446 (MAC_N_QUALIFIERS): ...this.
19447 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
19448 (arm_setlane_qualifiers): Use qualifier_lane_index.
19449 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
19450 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
19451 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
19452 (arm_expand_neon_builtin): Handle qualifier_lane_index.
19454 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
19455 * config/arm/arm.c (bounds_check): Likewise, improve error message.
19456 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
19457 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
19458 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
19459 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
19460 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
19461 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
19462 qualifiers to TERNOP_IMM.
19463 (vdup_lane): Change qualifiers to GETLANE.
19464 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
19465 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
19466 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
19467 vqdmlsl_n): Change qualifiers to MAC_N.
19469 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
19470 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
19471 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
19472 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
19473 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
19474 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
19475 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
19476 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
19477 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
19478 Remove call to neon_lane_bounds.
19480 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
19482 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
19483 Place integer variant first.
19485 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
19487 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
19488 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
19489 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
19490 for armv6kz targets.
19491 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
19492 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
19493 (FL_FOR_ARCH6ZK): Remove.
19494 (FL_FOR_ARCH6KZ): New.
19495 (arm_arch6zk): New declaration.
19496 * config/arm/arm-tables.opt: Regenerate.
19497 * config/arm/arm.c (arm_arch6kz): New.
19498 (arm_option_override): Set arm_arch6kz.
19499 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
19500 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
19501 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
19503 2015-07-27 Marek Polacek <polacek@redhat.com>
19507 * doc/invoke.texi: Document -Wtautological-compare.
19509 2015-07-27 Richard Biener <rguenther@suse.de>
19511 * genmatch.c (decision_tree::gen_gimple): Split out large
19512 subtrees into separate functions.
19513 (decision_tree::gen_generic): Likewise.
19515 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
19517 * config/alpha/alpha.c: Use SUBREG_P predicate.
19518 * config/alpha/predicates.md: Ditto.
19520 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
19522 * config.host (s390*-*-*): Include driver-native.c only when
19523 building with s390* as host *and* target.
19525 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
19528 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
19529 T bit register modified_between_p check.
19531 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19533 * config/i386/i386.c: Use SUBREG_P predicate.
19534 * config/i386/i386.md: Ditto.
19535 * config/i386/sse.md: Ditto.
19536 * config/i386/predicates.md: Ditto.
19538 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19541 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
19542 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
19544 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19546 * Makefile.in: Remove use of TREEBROWSER.
19547 * config.in: Regenerated.
19548 * configure: Regenerated.
19549 * configure.ac: Remove definition of TREEBROWSER.
19550 * tree-browser.c: Removed.
19551 * tree-browser.def: Removed.
19553 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19555 * graphite-scop-detection.c: Include gimple-pretty-print.h.
19556 (stmt_simple_for_scop_p): Print when a stmt is not handled in
19558 (scopdet_basic_block_info): Print when a loop or bb cannot be
19559 represented in Graphite.
19561 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19564 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
19565 execution guard when min_size is less than size_needed.
19567 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19569 * doc/install.texi: Document supported versions of ISL.
19571 2015-07-25 Jeff Law <law@redhat.com>
19575 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19576 unable to find X NE 0 in the tables, return X as the simplified
19578 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19579 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
19580 to VISISTED_BBS. */
19581 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19582 after removing the control flow statement and unnecessary edges.
19584 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
19587 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
19589 PR rtl-optimization/64164
19590 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19591 * tree-ssa-copyrename.c: Removed.
19592 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19593 -ftree-coalesce-vars.
19594 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19595 * common.opt (ftree-copyrename): Ignore.
19596 (ftree-coalesce-inlined-vars): Likewise.
19597 * doc/invoke.texi: Remove the ignored options above.
19598 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19599 * tree-ssa-coalesce.h: ... here.
19600 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19601 headers required by it.
19602 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19603 across variables when flag_tree_coalesce_vars. Check register
19604 use and promoted modes to allow coalescing. Moved to
19605 tree-ssa-coalesce.c.
19606 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19607 with its member functions to tree-ssa-coalesce.c.
19608 (var_map_base_init): Likewise. Renamed to
19609 compute_samebase_partition_bases.
19610 (partition_view_normal): Drop want_bases parameter.
19611 (partition_view_bitmap): Likewise.
19612 * tree-ssa-live.h: Adjust declarations.
19613 * tree-ssa-coalesce.c: Include explow.h.
19614 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19615 default defs at the entry point.
19616 (dump_part_var_map): New.
19617 (compute_optimized_partition_bases): New, called by...
19618 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19619 of compute_samebase_partition_bases. Adjust.
19620 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19621 * cfgexpand.c (leader_merge): New.
19622 (get_rtl_for_parm_ssa_default_def): New.
19623 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19624 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19625 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19626 redundant MEM attr setting.
19627 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19629 (expand_one_stack_var): ... this. New wrapper to check and
19630 skip already expanded SSA partitions.
19631 (record_alignment_for_reg_var): New, factored out of...
19632 (expand_one_var): ... this.
19633 (expand_one_ssa_partition): New.
19634 (adjust_one_expanded_partition_var): New.
19635 (expand_one_register_var): Check and skip already expanded SSA
19637 (expand_used_vars): Don't create DECLs for anonymous SSA
19638 names. Expand all SSA partitions, then adjust all SSA names.
19639 (pass::execute): Replace the loops that set
19640 SA.partition_to_pseudo from partition leaders and cleared
19641 DECL_RTL for multi-location variables, and that which used to
19642 rename vars and set attrs, with one that clears DECL_RTL and
19643 checks that PARMs and RESULTs default_defs match DECL_RTL.
19644 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19645 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19646 * explow.c (promote_ssa_mode): New.
19647 * explow.h (promote_ssa_mode): Declare.
19648 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19649 * function.c: Include cfgexpand.h.
19650 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19651 (use_register_for_parm_decl): Wrapper for the above to
19652 special-case the result_ptr.
19653 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19654 (split_complex_args): Take assign_parm_data_all argument.
19655 Pass it to rtl_for_parm. Set up rtl and context for split
19657 (assign_parms_augmented_arg_list): Adjust.
19658 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19659 multiple locations. Recognize split complex args.
19660 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19661 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19662 (assign_parm_setup_block): Prefer SSA-assigned location.
19663 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19664 if stack_parm is NULL.
19665 (assign_parm_setup_stack): Prefer SSA-assigned location.
19666 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19667 rtl before testing for pointer bounds. Special-case result_ptr.
19668 (expand_function_start): Maybe reset DECL_RTL of result.
19669 Prefer SSA-assigned location for result and static chain.
19670 Factor out DECL_RESULT and SET_DECL_RTL.
19671 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19672 anonymous SSA names. Use promote_ssa_mode.
19673 (get_temp_reg): Likewise.
19674 (remove_ssa_form): Adjust.
19675 * stor-layout.c (layout_decl): Don't set mem attributes of
19677 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19678 and get its reg_usage for reg invalidation.
19679 (compute_bb_dataflow): Pass it insn.
19680 (emit_notes_in_bb): Likewise.
19682 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19684 * config/i386/i386.c (ix86_va_start): Remove
19685 unneeded !TARGET_64BIT check.
19686 (ix86_gimplify_va_arg): Ditto.
19688 2015-07-24 Tom de Vries <tom@codesourcery.com>
19690 * graphite-sese-to-poly.c (build_poly_scop): Always call
19691 rewrite_commutative_reductions_out_of_ssa.
19693 2015-07-24 Tom de Vries <tom@codesourcery.com>
19695 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
19696 flag_associative_math to FLOAT_TYPE_P. Honour
19697 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
19699 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
19702 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
19703 and "%qD" in warning_at instead of "%q+D" in warning.
19705 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
19707 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
19708 (ix86_function_abi): Cleanup.
19710 2015-07-24 Michael Darling <darlingm@gmail.com>
19713 * acinclude.m4: Reflects renaming of configure.in to configure.ac
19714 * configure: Likewise
19715 * configure.ac: Likewise
19716 * doc/install.texi: Likewise
19717 * doc/tm.texi: Likewise
19718 * doc/tm.texi.in: Likewise
19720 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19722 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
19723 manually swapping values.
19724 * cse.c (fold_rtx): Likewise.
19725 * lra-eliminations.c (form_sum): Likewise.
19727 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
19730 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
19731 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
19732 (*jcc_1, *jcc_2, jump, simple_return_internal)
19733 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
19734 Set length_nobnd attribute instead of length attribute.
19735 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
19736 (length_nobnd): Remove attribute.
19737 (length): Remove length_nobnd processing.
19739 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
19741 * gimplify.c (omp_default_clause): New function. Reorganize flow
19742 for clarity. Broken out of ...
19743 (omp_notice_variable): ... here.
19745 2015-07-24 Gary Funck <gary@intrepid.com>
19747 PR middle-end/66984
19748 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
19749 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
19751 2015-07-24 Tom de Vries <tom@codesourcery.com>
19753 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
19754 exit-first loop transform.
19756 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
19759 * tree-cfg.c (struct replace_decls_d): New struct.
19760 (replace_block_vars_by_duplicates_1): New function.
19761 (replace_block_vars_by_duplicates): Use it to replace the decls
19762 in the value exprs by duplicates.
19764 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19766 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
19767 -shared, -symbolic, -rdynamic.
19769 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19772 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
19773 -dynamic-linker within %{!static %{!shared, and -rdynamic within
19776 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
19779 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
19780 edge summary is available.
19782 2015-07-24 Richard Biener <rguenther@suse.de>
19784 * genmatch.c (struct dt_node): Add statistic fields.
19785 (dt_node::analyze): New method.
19786 (decision_tree::gen_gimple): Call analyze on the root node
19787 and print statistics to stderr.
19788 (decision_tree::gen_generic): Likewise.
19790 2015-07-24 Richard Biener <rguenther@suse.de>
19792 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
19793 against the highest or lowest possible integer ...
19794 * match.pd: ... as patterns here.
19796 2015-07-24 Richard Biener <rguenther@suse.de>
19798 * genmatch.c (struct capture_info): Add same_as field.
19799 (capture_info::capture_info): Initialize same_as.
19800 (capture_info::walk_match): Compute same_as.
19801 (capture_info::walk_result): Compute stuff for the leader.
19802 (capture_info::walk_c_expr): Likewise.
19803 (dt_simplify::gen_1): Only look at leaders when deciding
19804 to force no side-effects or emit side-effects of omitted operands.
19806 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19808 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
19809 reg note to the GPR -> FPR save instructions.
19811 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19813 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
19815 (s390_expand_insv): Don't generate risbg pattern for constant zero
19817 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
19818 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
19821 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19823 * config/s390/s390.c (s390_reorg): Clean up handling of processors
19826 (s390_issue_rate): Likewise.
19827 (s390_sched_reorder): Likewise.
19828 (s390_sched_variable_issue): Likewise.
19829 (s390_loop_unroll_adjust): Likewise.
19830 (s390_option_override): Likewise.
19832 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19834 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
19835 processor capabilities with -march=native.
19836 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
19837 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
19838 (S390_TARGET_BITS_STRING): Macro to simplify specs.
19840 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19842 * config/s390/s390.c (s390_issue_rate): Handle
19843 PROCESSOR_2094_Z9_EC.
19844 (s390_option_override): Likewise.
19845 (s390_adjust_priority): Likewise.
19847 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19849 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
19850 when cross compiling.
19852 2015-07-24 Richard Biener <rguenther@suse.de>
19854 * fold-const.c (maybe_canonicalize_comparison_1): Move
19855 A code CST canonicalization ...
19856 * match.pd: ... to a pattern here.
19858 2015-07-24 Jiong Wang <jiong.wang@arm.com>
19861 2015-07-22 Jiong Wang <jiong.wang@arm.com>
19863 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19864 (HONOR_REG_ALLOC_ORDER): Define.
19866 2015-07-24 Richard Biener <rguenther@suse.de>
19868 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
19869 * fold-const.c (fold_comparison): Move parameter does not
19870 alias &local simplification ...
19871 * match.pd: ... as a pattern here.
19873 2015-07-24 Richard Biener <rguenther@suse.de>
19875 * gimple-fold.c (replace_stmt_with_simplification): Special-case
19876 valueizing call operands.
19877 * gimple-match-head.c (maybe_push_res_to_seq): Take
19878 number of call arguments from ops array.
19879 (do_valueize): New function.
19880 (gimple_simplify): Return true if valueization changed
19881 any operand even if the result didn't simplify further.
19883 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19885 PR middle-end/25530
19886 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
19888 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19890 PR middle-end/25529
19891 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
19893 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19895 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
19898 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19900 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
19903 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
19905 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
19906 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
19908 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
19909 ms_va_list_type_node initialization.
19911 2015-07-23 Jeff Law <law@redhat.com>
19914 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19915 unable to find X NE 0 in the tables, return X as the simplified
19917 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19918 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
19919 to VISISTED_BBS. */
19920 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19921 after removing the control flow statement and unnecessary edges.
19923 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
19925 * tree-pass.h (get_current_pass_name): Removed.
19927 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
19929 PR rtl-optimization/64164
19930 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19931 * tree-ssa-copyrename.c: Removed.
19932 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19933 -ftree-coalesce-vars.
19934 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19935 * common.opt (ftree-copyrename): Ignore.
19936 (ftree-coalesce-inlined-vars): Likewise.
19937 * doc/invoke.texi: Remove the ignored options above.
19938 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19939 * tree-ssa-coalesce.h: ... here.
19940 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19941 headers required by it.
19942 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19943 across variables when flag_tree_coalesce_vars. Check register
19944 use and promoted modes to allow coalescing. Moved to
19945 tree-ssa-coalesce.c.
19946 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19947 with its member functions to tree-ssa-coalesce.c.
19948 (var_map_base_init): Likewise. Renamed to
19949 compute_samebase_partition_bases.
19950 (partition_view_normal): Drop want_bases parameter.
19951 (partition_view_bitmap): Likewise.
19952 * tree-ssa-live.h: Adjust declarations.
19953 * tree-ssa-coalesce.c: Include explow.h.
19954 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19955 default defs at the entry point.
19956 (dump_part_var_map): New.
19957 (compute_optimized_partition_bases): New, called by...
19958 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19959 of compute_samebase_partition_bases. Adjust.
19960 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19961 * cfgexpand.c (leader_merge): New.
19962 (get_rtl_for_parm_ssa_default_def): New.
19963 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19964 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19965 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19966 redundant MEM attr setting.
19967 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19969 (expand_one_stack_var): ... this. New wrapper to check and
19970 skip already expanded SSA partitions.
19971 (record_alignment_for_reg_var): New, factored out of...
19972 (expand_one_var): ... this.
19973 (expand_one_ssa_partition): New.
19974 (adjust_one_expanded_partition_var): New.
19975 (expand_one_register_var): Check and skip already expanded SSA
19977 (expand_used_vars): Don't create DECLs for anonymous SSA
19978 names. Expand all SSA partitions, then adjust all SSA names.
19979 (pass::execute): Replace the loops that set
19980 SA.partition_to_pseudo from partition leaders and cleared
19981 DECL_RTL for multi-location variables, and that which used to
19982 rename vars and set attrs, with one that clears DECL_RTL and
19983 checks that PARMs and RESULTs default_defs match DECL_RTL.
19984 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19985 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19986 * explow.c (promote_ssa_mode): New.
19987 * explow.h (promote_ssa_mode): Declare.
19988 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19989 * function.c: Include cfgexpand.h.
19990 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19991 (use_register_for_parm_decl): Wrapper for the above to
19992 special-case the result_ptr.
19993 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19994 (split_complex_args): Take assign_parm_data_all argument.
19995 Pass it to rtl_for_parm. Set up rtl and context for split
19997 (assign_parms_augmented_arg_list): Adjust.
19998 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19999 multiple locations. Recognize split complex args.
20000 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20001 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
20002 (assign_parm_setup_block): Prefer SSA-assigned location.
20003 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
20004 if stack_parm is NULL.
20005 (assign_parm_setup_stack): Prefer SSA-assigned location.
20006 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
20007 rtl before testing for pointer bounds. Special-case result_ptr.
20008 (expand_function_start): Maybe reset DECL_RTL of result.
20009 Prefer SSA-assigned location for result and static chain.
20010 Factor out DECL_RESULT and SET_DECL_RTL.
20011 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20012 anonymous SSA names. Use promote_ssa_mode.
20013 (get_temp_reg): Likewise.
20014 (remove_ssa_form): Adjust.
20015 * stor-layout.c (layout_decl): Don't set mem attributes of
20017 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20018 and get its reg_usage for reg invalidation.
20019 (compute_bb_dataflow): Pass it insn.
20020 (emit_notes_in_bb): Likewise.
20022 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
20025 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
20027 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
20028 (rs6000_emit_2insn_and): Handle dot forms.
20029 * config/rs6000/rs6000.md (and<mode>3): Adjust.
20030 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
20031 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
20033 2015-07-23 Richard Biener <rguenther@suse.de>
20035 * generic-match-head.c: Include cgraph.h.
20036 * gimple-match-head.c: Likewise.
20037 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
20039 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
20040 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
20043 2015-07-23 Richard Biener <rguenther@suse.de>
20045 * gimple-fold.c (fold_gimple_cond): Do not require folding
20046 results to pass valid_gimple_rhs_p.
20047 * tree-cfg.h (fold_cond_expr_cond): Remove.
20048 * tree-cfg.c (fold_cond_expr_cond): Likewise.
20049 (make_edges): Do not call it.
20050 * tree-inline.c (tree_function_versioning): Likewise.
20052 2015-07-23 Tom de Vries <tom@codesourcery.com>
20054 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
20055 vect_force_simple_reduction.
20056 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
20057 (vect_is_simple_reduction_1): Add and handle
20058 need_wrapping_integral_overflow parameter.
20059 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
20060 need_wrapping_integral_overflow parameter.
20061 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
20062 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
20065 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
20067 PR tree-optimization/66926,66951
20068 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
20069 INNER_LOOP and fix up condition for renaming virtual operands.
20071 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20073 * combine.c (try_combine): Use std::swap instead of manually
20076 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
20078 * config/mips/i6400.md: New file.
20079 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
20080 (mips64r6): Likewise.
20082 * config/mips/mips-tables.opt: Regenerate.
20083 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
20084 (mips_issue_rate): Add support for i6400.
20085 (mips_multipass_dfa_lookahead): Likewise.
20086 * config/mips/mips.h (TUNE_I6400): Define.
20087 * config/mips/mips.md: Include i6400.md.
20088 (processor): Add i6400.
20089 * doc/invoke.texi (-march=@var{arch}): Add i6400.
20091 2015-07-23 Richard Biener <rguenther@suse.de>
20093 PR middle-end/66916
20094 * match.pd: Guard widen and sign-change comparison simplification
20097 2015-07-23 Richard Biener <rguenther@suse.de>
20099 PR tree-optimization/66945
20100 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
20101 ::before_dom_children): Force the propagators idea of
20102 non-executable edges to materialize, not what the folder
20105 2015-07-23 Richard Biener <rguenther@suse.de>
20107 * gimple.h (gimple_cond_make_false): Use 0 != 0.
20108 (gimple_cond_make_true): Use 1 != 0.
20110 2015-07-22 DJ Delorie <dj@redhat.com>
20112 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
20115 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
20116 (ashrhi3): Likewise.
20117 (lshrhi3): Likewise.
20118 (movhi): Take advantage of zero-extend to load small constants.
20119 (movpsi): Likewise.
20120 (and<mode>3): Likewise.
20121 (zero_extendqihi2): Likewise.
20122 (zero_extendqisi2): New.
20123 * config/msp430/constraints.md (N,O): New.
20124 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
20126 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
20129 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
20130 to enum feature_priority and feature_list.
20131 (fold_builtin_cpu): Add F_AES to enum processor_features
20132 and isa_names_table.
20134 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
20137 * config/i386/linux-common.h (MPX_SPEC): Use linker option
20138 for 64bit target only.
20140 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
20142 * config/nvptx/nvptx.c: Expand some comments.
20144 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
20146 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
20147 (cortex_a53_advsimd): ...This.
20149 2015-07-22 Richard Biener <rguenther@suse.de>
20151 * genmatch.c (expr::gen_transform): Clarify error message
20152 and display location.
20154 2015-07-22 Richard Biener <rguenther@suse.de>
20156 * genmatch.c (struct operand): Add location member.
20157 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
20159 (struct simplify): Remove match_location and result_location
20161 (elsehwere): Adjust.
20163 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
20165 * config/mips/m5100.md: New file.
20166 * config/mips/mips-cpus.def (m5100, m5101): Define.
20167 * config/mips/mips-tables.opt: Regenerate.
20168 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
20169 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
20170 -march=m5101 to -mips32r5.
20171 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
20172 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
20174 * config/mips/mips.md: Include m5100.md.
20175 (processor): Add m5100.
20176 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
20178 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
20180 * config/mips/mips-cpus.def (interaptiv): Define.
20181 * config/mips/mips-tables.opt: Regenerate.
20182 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
20184 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
20185 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
20187 2015-07-22 Jiong Wang <jiong.wang@arm.com>
20190 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
20191 (HONOR_REG_ALLOC_ORDER): Define.
20193 2015-07-22 Richard Biener <rguenther@suse.de>
20195 PR tree-optimization/66952
20196 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
20197 blocks we end up executing unconditionally reset all SSA
20198 info such as range and alignment.
20199 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
20200 * tree-ssanames.c (reset_flow_sensitive_info): New function.
20202 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
20204 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
20207 2015-07-22 Richard Biener <rguenther@suse.de>
20209 * genmatch.c (parser::parse_result): Properly handle
20210 match with result operands and conditions.
20212 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
20215 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
20216 Add qualifier_struct_load_store_lane_index.
20217 (aarch64_types_loadstruct_lane_qualifiers): Use
20218 qualifier_struct_load_store_lane_index for lane index argument for
20220 (aarch64_types_storestruct_lane_qualifiers): Ditto.
20221 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20222 (aarch64_simd_expand_args): Add new argument describing mode of
20223 builtin. Check lane bounds for arguments with
20224 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20225 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
20226 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20227 (aarch64_simd_expand_builtin): Handle arguments with
20228 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
20229 aarch64_simd_expand_args.
20230 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
20231 vst[234]_lane with BUILTIN_VALLDIF.
20232 * config/aarch64/aarch64-simd.md:
20233 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
20234 endianness reversal on lane index.
20235 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
20236 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
20237 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
20238 (vec_store_lanesci_lane<mode>): Ditto.
20239 (vec_store_lanesxi_lane<mode>): Ditto.
20240 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
20241 reversal of lane index.
20242 (aarch64_ld3_lane<mode>): Ditto.
20243 (aarch64_ld4_lane<mode>): Ditto.
20244 (aarch64_st2_lane<mode>): Ditto.
20245 (aarch64_st3_lane<mode>): Ditto.
20246 (aarch64_st4_lane<mode>): Ditto.
20247 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
20248 to qmode. Add new mode parameter. Update uses.
20249 (__LD3_LANE_FUNC): Ditto.
20250 (__LD4_LANE_FUNC): Ditto.
20251 (__ST2_LANE_FUNC): Ditto.
20252 (__ST3_LANE_FUNC): Ditto.
20253 (__ST4_LANE_FUNC): Ditto.
20255 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
20257 * doc/invoke.texi (Language Independent Options): Rename node to
20258 Diagnostic Message Formatting Options.
20260 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
20263 * lra-remat.c (operand_to_remat): Prevent using insns with input
20264 subregs processed separately by IRA.
20266 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
20268 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
20270 (single_imm_use): Check for iterator node.
20271 (num_imm_uses): Likewise.
20272 * tree-ssa-operands.c (has_zero_uses_1): Delete.
20273 (single_imm_use_1): Check for iterator node.
20275 2015-07-21 Mike Frysinger <vapier@gentoo.org>
20276 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20278 * configure.ac: Add check for new options in isl-0.15.
20279 * config.in, configure: Rebuilt.
20280 * graphite-blocking.c: Include <isl/constraint.h>
20281 * graphite-interchange.c, graphite-poly.c: Likewise.
20282 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
20283 * graphite.c: Likewise.
20284 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
20286 * graphite-dependences.c: Include <isl/constraint.h>.
20287 (max_number_of_out_dimensions): Returns isl_stat.
20288 (extend_schedule_1): Likewise
20289 (extend_schedule): Corresponding changes.
20290 * graphite-optimize-isl.c: Include <isl/constraint.h> and
20292 (getSingleMap): Change return type of isl_stat.
20293 (optimize_isl): Conditionally use
20294 isl_options_set_schedule_serialize_sccs.
20295 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
20296 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
20298 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
20301 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
20302 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
20304 2015-07-21 Richard Biener <rguenther@suse.de>
20306 PR tree-optimization/66948
20307 * genmatch.c (capture_info::walk_match): Also recurse to
20308 captures. Properly compute expr state from captures of
20310 * match.pd: Add single-use guards to
20311 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
20313 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
20315 * config/nvptx/mkoffload.c (process): Add static destructor call.
20317 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20319 PR middle-end/66915
20320 * match.pd (A - B -> A + (-B)): Don't allow folding
20321 when type if a fixed-point type.
20323 2015-07-20 DJ Delorie <dj@redhat.com>
20325 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
20326 (iorqi3_real): Likewise for set1.
20328 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
20330 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
20333 2015-07-20 Aditya Kumar <hiraditya@msn.com>
20335 * graphite-isl-ast-to-gimple.c:
20336 Refactor so that each function can access 'region'. This will help
20337 maintain a parameter rename_map within a region.
20339 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
20341 * config/rs6000/rs6000.md (*lt0_disi): New.
20343 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
20346 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
20347 "available letters" comment.
20348 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
20349 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
20350 and_2rld_operand): Delete.
20351 (and_operand): Adjust.
20352 (rotate_mask_operator): New.
20353 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
20354 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
20355 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
20356 extract_ME): Delete.
20357 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20358 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
20359 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
20360 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20361 rs6000_emit_2insn_and): New.
20362 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
20363 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
20364 includes_rldic_lshift_p, includes_rldicr_lshift_p,
20365 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
20366 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20367 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
20368 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
20369 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20370 rs6000_emit_2insn_and): New.
20371 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
20372 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
20374 <NOT>: Don't fall through to next case.
20375 <AND>: Handle the various rotate-and-mask cases directly.
20376 <IOR>: Always cost as one insn.
20377 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
20378 (and<mode>3): Adjust expander for the new patterns.
20379 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
20380 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
20381 (*and<mode>3_imm_dot_shifted): New.
20382 (*and<mode>3_mask): Delete, rewrite as ...
20383 (and<mode>3_mask): ... New.
20384 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
20385 (andsi3_internal0_nomc): Delete.
20386 (*andsi3_internal6): Delete.
20387 (*and<mode>3_2insn): New.
20388 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
20389 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
20390 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
20391 *insvdi_internal3): Delete.
20392 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
20393 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
20394 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
20395 *ior<mode>_mask): New.
20396 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
20397 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
20398 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
20399 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
20401 (ashr<mode>3): Delete expander.
20402 (*ashr<mode>3): Rename to ...
20403 (ashr<mode>3): ... This.
20404 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
20405 (*rotldi3_internal4, *rotldi3_internal5 and split,
20406 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
20407 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
20408 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
20409 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
20410 (splitter for loading a mask): Adjust.
20411 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
20413 2015-07-20 Marek Polacek <polacek@redhat.com>
20415 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
20416 output_add_clobbers, output_added_clobbers_hard_reg_p,
20417 gen_rtx_scratch): Remove declarations.
20419 2015-07-20 Marek Polacek <polacek@redhat.com>
20422 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
20424 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20426 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
20427 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
20429 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20431 * combine.c (combine_simplify_rtx): Move simplification step
20432 before various transformations/substitutions.
20434 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
20436 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
20437 (struct int_traits): Likewise.
20439 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20441 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
20442 function to vmsdbgout_function_decl.
20444 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
20447 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
20448 from misaligned positions.
20449 (ix86_expand_pinsr): Reject insertions to misaligned positions.
20451 2015-07-18 Sebastian Pop <s.pop@samsung.com>
20453 PR middle-end/46851
20454 PR middle-end/60340
20455 * Makefile.in: Removed omega.o.
20456 * common.opt: Document flag fcheck-data-deps as deprecated.
20457 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
20458 its associated params: omega-max-vars, omega-max-geqs,
20459 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
20460 omega-max-keys, omega-eliminate-redundant-constraints.
20461 * doc/loop.texi: Remove all the section on Omega.
20462 * graphite-blocking.c: Include missing params.h: it used to be
20463 included through tree-data-ref.h and omega.h.
20464 * graphite-isl-ast-to-gimple.c: Same.
20465 * graphite-optimize-isl.c: Same.
20466 * graphite-sese-to-poly.c: Same.
20467 * graphite.c: Same.
20470 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
20471 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
20472 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
20473 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
20474 * passes.def: Remove pass_check_data_deps.
20475 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
20476 (dump_conflict_function): Same.
20477 (dump_subscript): Same.
20478 (print_direction_vector): Same.
20479 (print_dir_vectors): Same.
20480 (print_lambda_vector): Same.
20481 (print_dist_vectors): Same.
20482 (dump_data_dependence_relation): Same.
20483 (dump_data_dependence_relations): Same.
20484 (dump_dist_dir_vectors): Same.
20486 (init_omega_eq_with_af): Removed.
20487 (omega_extract_distance_vectors): Removed.
20488 (omega_setup_subscript): Removed.
20489 (init_omega_for_ddr_1): Removed.
20490 (init_omega_for_ddr): Removed.
20491 (ddr_consistent_p): Removed.
20492 (compute_affine_dependence): Do not use omega to check data
20494 (compute_data_dependences_for_bb): Removed.
20495 (analyze_all_data_dependences): Removed.
20496 (tree_check_data_deps): Removed.
20497 * tree-data-ref.h: Do not include omega.h.
20498 (compute_data_dependences_for_bb): Removed.
20499 (tree_check_data_deps): Removed.
20500 * tree-ssa-loop.c (pass_check_data_deps): Removed.
20501 (make_pass_check_data_deps): Removed.
20502 * tree-ssa-phiopt.c: Include params.h.
20503 * tree-vect-data-refs.c: Same.
20504 * tree-vect-slp.c: Same.
20506 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
20508 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
20509 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
20510 (mem->fpreg splitters): Ditto.
20511 (general_operand->nonimmediate_operand splitter): Use explicit modes.
20512 Disable DFmode for TARGET_64BIT.
20514 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
20517 * config/i386/i386.c (ix86_expand_prologue): Replicate static
20518 chain on the stack.
20520 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
20522 * config/nvptx/mkoffload.c (process): Constify host data.
20523 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20524 Constify host data.
20525 (generate_host_descr_file): Likewise.
20527 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
20528 Sebastian Pop <s.pop@samsung.com>
20530 PR middle-end/61929
20531 * graphite-dependences.c (add_pdr_constraints): Renamed
20532 pdr->extent to pdr->subscript_sizes.
20533 * graphite-interchange.c (build_linearized_memory_access): Add
20534 back all gcc_assert's that the "isl_int to isl_val conversion"
20535 patch has removed. Refactored.
20536 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
20537 * graphite-poly.c (new_poly_dr): Same.
20538 (free_poly_dr): Same.
20539 * graphite-poly.h (struct poly_dr): Same.
20540 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
20541 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
20542 * graphite-scop-detection.h: Fix space.
20543 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
20544 back all gcc_assert's removed by a previous patch.
20545 (wrap): Remove the_isl_ctx global variable that the same patch has
20547 (build_loop_iteration_domains): Same.
20548 (add_param_constraints): Same.
20549 (pdr_add_data_dimensions): Same. Refactored.
20550 (build_poly_dr): Renamed extent to subscript_sizes.
20552 2015-07-17 Marek Polacek <polacek@redhat.com>
20554 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
20555 * match.pd: ... here.
20557 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
20559 * config/nvptx/mkoffload.c (process): Constify target data.
20560 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20561 Constify target data.
20562 (generate_target_offloadend_file): Likewise.
20564 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
20566 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
20567 to allow renaming of PHI arguments on edges incoming from outer
20568 loop header, add corresponding check before start PHI iterator.
20569 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
20570 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
20571 with true force_vectorize. Set-up dominator for outer loop too.
20572 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
20573 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
20574 was marked with force_vectorize and has restricted cfg.
20575 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
20577 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
20578 do peeling for outer loops.
20580 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
20581 Matthias Klose <doko@ubuntu.com>
20583 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
20584 build-sysroot, sysroot from the `Miscenalleous configure options' to
20585 the `Directories' section and strip trailing `/' from with_sysroot.
20586 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
20587 * configure: Regenerated.
20589 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20592 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
20593 (TARGET_HARD_DF_REGS): Ditto.
20594 (TARGET_HARD_XF_REGS): Ditto.
20595 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
20596 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
20597 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
20598 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
20599 (*movsf_internal): Add alternatives 16 and 17. Enable
20600 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
20602 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20604 PR rtl-optimization/66891
20605 * calls.c (expand_call): Wrap precompute_register_parameters with
20606 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
20608 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
20610 * config/nvptx/mkoffload.c (process): Constify mapping variables.
20611 Define target data struct and initialize it.
20613 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
20615 PR rtl-optimization/66626
20616 * ira.h (emit-rtl.h): Include.
20617 (non_spilled_static_chain_regno_p): New.
20618 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
20619 unless it is non spilled static chain pseudo.
20620 (assign_hard_rego): Spill memory profitable allocno unless it is
20621 non spilled static chain pseudo.
20622 (allocno_spill_priority_compare): Put non spilled static chain
20623 pseudo at the end of sorted array.
20624 (improve_allocation): Do nothing if we have static chain and
20626 (allocno__priority_compare_func): Put non spilled static chain
20627 pseudo at the beginning of sorted array.
20628 (move_spill_restore): Ignore non spilled static chain pseudo.
20629 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
20630 to non spilled static chain pseudo.
20631 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
20632 pseudo at the beginning of sorted array.
20633 (spill_for): Spill non spilled static chain pseudo last.
20634 * lra-constraints.c (lra_constraints): Remove static chain pseudo
20635 check for equivalence.
20637 2015-07-16 Martin Liska <mliska@suse.cz>
20640 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
20641 dst_ctx if it does not exist.
20643 2015-07-16 Martin Liska <mliska@suse.cz>
20645 * hash-set.h (remove): New function.
20646 (iterator): New iteration class for hash_set.
20648 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20650 * genattrtab.c (make_canonical): Add a file_location parameter.
20651 Use fatal_at rather than fatal.
20652 (get_attr_value): Likewise. Update call to make_canonical.
20653 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
20654 (make_internal_attr): Update calls accordingly.
20656 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20658 * read-md.h (message_with_line, error_with_line): Delete.
20659 * read-md.c (message_with_line, error_with_line): Delete.
20660 * gensupport.h: Include read-md.h.
20661 (md_rtx_info): New structure.
20662 (read_md_rtx): Use it. Return a bool success value.
20663 * gensupport.c (read_md_rtx): Likewise.
20664 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
20665 (main): Update after interface changes.
20666 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
20667 (main): Update after interface changes.
20668 * genattrtab.c (insn_code_number): Delete.
20669 (optimize_attrs): Add a max_insn_code parameter and use it instead
20670 of insn_code_number.
20671 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
20672 Use *_at rather than *_with_line functions.
20673 (gen_insn): Likewise.
20674 (gen_delay): Likewise.
20675 (gen_insn_reserv): Likewise.
20676 (gen_bypass): Take an md_rtx_info rather than an rtx.
20677 (main): Update after interface changes. Use a local max_insn_code
20678 variable instead of insn_code_number.
20679 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
20680 an rtx. Use fatal_at rather than fatal.
20681 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
20682 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
20683 (gen_absence_set, gen_final_absence_set, gen_automaton)
20684 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
20685 (main): Update after interface changes.
20686 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
20688 (main): Update after interface changes.
20689 * genconditions.c (main): Use new read_md_rtx interface.
20690 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
20691 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
20692 (main): Update after interface changes.
20693 * genemit.c (insn_code_number, insn_index_number): Delete.
20694 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20695 Use fatal_at rather than fatal.
20696 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
20698 (gen_split): Likewise.
20699 (main): Update after interface changes.
20700 * genextract.c (line_no): Delete.
20701 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20702 Update call to walk_rtx.
20703 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
20704 rather than message_with_line.
20705 (walk_rtx): Add an md_rtx_info argument. Update call to
20706 VEC_safe_set_locstr.
20707 (main): Update after interface changes.
20708 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
20709 and lineno. Use error_at rather than separate message_with_line
20710 calls and have_error assignments.
20711 (main): Update after interface changes.
20712 * genmddump.c (main): Use new read_md_rtx interface.
20713 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
20714 (main): Update after interface changes.
20715 * genoutput.c (next_code_number): Delete.
20716 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20717 (gen_peephole, gen_expand, gen_split): Likewise.
20718 (note_constraint): Likewise. Use *_at rather than *_with_line
20720 (main): Update after interface changes.
20721 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
20723 (main): Update after interface changes.
20724 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
20725 than an rtx and lineno.
20726 (process_define_constraint): Likewise.
20727 (process_define_register_constraint): Likewise.
20728 (main): Update after interface changes.
20729 * genrecog.c (next_insn_code, pattern_lineno): Delete.
20730 (validate_pattern): Replace top-level rtx with an md_rtx_info.
20731 Use *_at rather than *_with_line functions.
20732 (match_pattern_2): Likewise.
20733 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
20734 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
20735 Use *_at rather than *_with_line functions.
20736 * gentarget-def.c (add_insn): New function.
20737 (main): Use it. Use new read_md_rtx interface.
20739 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20741 * gensupport.h (compute_test_codes): Take a file_location rather
20742 than a line number.
20743 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
20744 rather than *_with_line functions.
20745 (process_define_predicate): Update call to compute_test_codes.
20746 * genpreds.c (validate_exp): Take a file_location rather than a
20747 line number. Use *_at functions rather than *_with_line functions.
20748 (process_define_predicate): Update call to validate_exp.
20749 (constraint_data): Replace lineno field with a file_location.
20750 (add_constraint): Take a file_location rather than a line number.
20751 Use *_at functions rather than *_with_line functions. Fix error
20752 message for address constraints. Update after changes to
20753 validate_exp, constraint_data and compute_test_codes.
20754 (process_define_constraint): Update accordingly.
20755 (process_define_register_constraint): Likewise.
20757 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20759 * genoutput.c (data): Use a file_location to record the source
20762 (idata, idata_end): Remove initialization.
20763 (constraint_data): Replace lineno with a file_location.
20764 (output_insn_data): Update after changes to data.
20765 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
20766 (scan_operands): Likewise, using *_at rather than *_with_line
20768 (process_template): Likewise.
20769 (validate_insn_alternatives): Likewise.
20770 (validate_insn_operands): Likewise.
20771 (validate_optab_operands): Likewise.
20772 (init_insn_for_nothing): Initialize idata and idata_end.
20773 (note_constraint): Update after changes to constraint_data,
20774 using at rather than with_line functions.
20775 (mdep_constraint_len): Take a file_location rather than a
20776 line number. Use at rather than with_line functions.
20778 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20780 * read-md.h (fatal_at): Declare.
20781 * read-md.c (fatal_at): New function.
20782 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
20783 to record the source position.
20784 (check_attr_test): Take a file_location instead of a line number.
20785 Use fatal_at instead of fatal.
20786 (check_attr_value): Update after above changes, using "at"
20787 rather than "with_line" reporting functions.
20788 (convert_set_attr_alternative): Likewise.
20789 (gen_attr): Likewise.
20790 (check_defs): Likewise. Don't assign to read_md_filename.
20791 (gen_insn): Update initialization after above changes.
20792 (gen_delay): Likewise.
20793 (write_insn_cases): Print the filename for a define_peephole.
20794 (gen_insn_reserv): Take a line number as argument and update
20795 the call to check_attr_test.
20796 (main): Pass a line number to gen_insn_reserv.
20798 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20800 * read-md.h (file_location): New structure.
20801 (directive_handler_t): Take a file_location rather than a line number.
20802 (message_at, error_at): Declare.
20803 (read_skip_construct): Delete.
20804 * read-md.c (message_with_line_1): Replace with...
20805 (message_at_1): ...this new function.
20806 (message_at, error_at): New functions.
20807 (message_with_line, error_with_line): Update to use message_at_1.
20808 (handle_enum): Take a file_location rather than a line number
20809 and use error_at for error reporting.
20810 (handle_include): Likewise.
20811 (read_skip_construct): Likewise. Make static.
20812 (handle_file): Update after above changes. Pass a file_location
20813 rather than a line number to handle_directive.
20814 * gensupport.c (queue_elem): Replace separate filename and lineno
20815 with a file_location.
20816 (queue_pattern): Replace filename and lineno arguments with a
20817 file_location. Update after change to queue_elem.
20818 (process_define_predicate): Replace lineno argument with a
20819 file_location and use error_at for error reporting. Update
20820 after above changes.
20821 (process_rtx): Likewise.
20822 (subst_pattern_match): Likewise.
20823 (get_alternatives_number): Likewise.
20824 (alter_predicate_for_insn): Likewise.
20825 (rtx_handle_directive): Likewise.
20826 (is_predicable): Update after above changes, using error_at rather
20827 than error_with_line.
20828 (has_subst_attribute): Likewise.
20829 (identify_predicable_attribute): Likewise.
20830 (alter_attrs_for_subst_insn): Likewise.
20831 (process_one_cond_exec): Likewise.
20832 (process_substs_on_one_elem): Likewise.
20833 (process_define_subst): Likewise.
20834 (check_define_attr_duplicates): Likewise.
20835 (read_md_rtx): Update after change to queue_elem.
20837 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20839 * genoutput.c (next_index_number): Delete.
20840 (data): Remove index_number.
20841 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
20842 (main): Remove manipulation of next_index_number.
20844 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20846 * genattrtab.c (check_attr_value): Remove handling of null attrs.
20847 (make_canonical): Likewise.
20849 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
20851 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
20852 instead of adjust_address_nv.
20853 (restore_stack_nonlocal): Likewise.
20854 (nonlocal_goto): Likewise.
20856 2015-07-16 Tom de Vries <tom@codesourcery.com>
20858 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
20859 not have a corresponding loop header phi.
20861 2015-07-16 Tom de Vries <tom@codesourcery.com>
20863 * tree-parloops.c (create_loads_for_reductions): Handle case that
20864 reduction is unused.
20866 2015-07-16 Richard Biener <rguenther@suse.de>
20868 PR tree-optimization/66894
20869 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
20870 about deriving NE_EXPR from truncated values.
20872 2015-07-16 Martin Liska <mliska@suse.cz>
20875 (object_allocator): Add new class.
20876 (pool_allocator::initialize): Use the underlying class.
20877 (pool_allocator::allocate): Likewise.
20878 (pool_allocator::remove): Likewise.
20879 (operator new): A new generic allocator.
20880 * asan.c (struct asan_mem_ref): Remove unused members.
20881 (asan_mem_ref_new): Replace new operator with
20882 object_allocator::allocate.
20883 (free_mem_ref_resources): Change deallocation.
20884 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
20885 with object_allocator.
20886 * config/sh/sh.c (add_constant): Replace new operator with
20887 object_allocator::allocate.
20888 (sh_reorg): Change call to a release method.
20889 * cselib.c (struct elt_list): Remove unused members.
20890 (new_elt_list): Replace new operator with
20891 object_allocator::allocate.
20892 (new_elt_loc_list): Likewise.
20893 (new_cselib_val): Likewise.
20894 (unchain_one_elt_list): Change delete operator with remove method.
20895 (unchain_one_elt_loc_list): Likewise.
20896 (unchain_one_value): Likewise.
20897 (cselib_finish): Release newly added static allocators.
20898 * cselib.h (struct cselib_val): Remove unused members.
20899 (struct elt_loc_list): Likewise.
20900 * df-problems.c (df_chain_alloc): Replace pool_allocator with
20902 * df-scan.c (struct df_scan_problem_data): Likewise.
20903 (df_scan_alloc): Likewise.
20904 * df.h (struct dataflow): Likewise.
20905 * dse.c (struct read_info_type): Likewise.
20906 (struct insn_info_type): Likewise.
20907 (struct dse_bb_info_type): Likewise.
20908 (struct group_info): Likewise.
20909 (struct deferred_change): Likewise.
20910 (get_group_info): Likewise.
20911 (delete_dead_store_insn): Likewise.
20912 (free_read_records): Likewise.
20913 (replace_read): Likewise.
20914 (check_mem_read_rtx): Likewise.
20915 (scan_insn): Likewise.
20916 (dse_step1): Likewise.
20917 (dse_step7): Likewise.
20918 * et-forest.c (struct et_occ): Remove unused members.
20919 (et_new_occ): Use allocate instead of new operator.
20920 (et_new_tree): Likewise.
20921 (et_free_tree): Call release method explicitly.
20922 (et_free_tree_force): Likewise.
20923 (et_free_pools): Likewise.
20924 (et_split): Use remove instead of delete operator.
20925 * et-forest.h (struct et_node): Remove unused members.
20926 * ipa-cp.c: Change pool_allocator to object_allocator.
20927 * ipa-inline-analysis.c: Likewise.
20928 * ipa-profile.c: Likewise.
20929 * ipa-prop.c: Likewise.
20930 * ipa-prop.h: Likewise.
20931 * ira-build.c (initiate_cost_vectors): Cast return value.
20932 (ira_allocate_cost_vector): Likewise.
20933 * ira-color.c (struct update_cost_record): Remove unused members.
20934 * lra-int.h (struct lra_live_range): Likewise.
20935 (struct lra_copy): Likewise.
20936 (struct lra_insn_reg): Likewise.
20937 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
20938 * lra.c (new_insn_reg): Replace new operator with allocate method.
20939 (free_insn_regs): Same for operator delete.
20940 (finish_insn_regs): Release new static allocator.
20941 (finish_insn_recog_data): Likewise.
20942 (lra_free_copies): Replace delete operator with remove method.
20943 (lra_create_copy): Replace operator new with allocate method.
20944 (invalidate_insn_data_regno_info): Same for remove method.
20945 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
20946 (free_debug_insn_changes): Replace delete operator with remove method.
20947 (replace_oldest_value_reg): Replace operator new with allocate method.
20948 (pass_cprop_hardreg::execute): Release new static variable.
20949 * sched-deps.c (sched_deps_init): Change pool_allocator to
20951 * sel-sched-ir.c: Likewise.
20952 * sel-sched-ir.h: Likewise.
20953 * stmt.c (expand_case): Likewise.
20954 (expand_sjlj_dispatch_table): Likewise.
20955 * tree-sra.c (struct access): Remove unused members.
20956 (struct assign_link): Likewise.
20957 (sra_deinitialize): Release newly added static pools.
20958 (create_access_1):Replace operator new with allocate method.
20959 (build_accesses_from_assign): Likewise.
20960 (create_artificial_child_access): Likewise.
20961 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
20962 pool_allocator to object_allocator.
20963 * tree-ssa-pre.c: Likewise.
20964 * tree-ssa-reassoc.c: Likewise.
20965 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
20966 * tree-ssa-strlen.c: Likewise.
20967 * tree-ssa-structalias.c: Likewise.
20968 * var-tracking.c (onepart_pool_allocate): New function.
20969 (unshare_variable): Use the newly added function.
20970 (variable_merge_over_cur): Likewise.
20971 (variable_from_dropped): Likewise.
20972 (variable_was_changed): Likewise.
20973 (set_slot_part): Likewise.
20974 (emit_notes_for_differences_1): Likewise.
20975 (vt_finalize): Release newly added static pools.
20977 2015-07-16 Martin Jambor <mjambor@suse.cz>
20979 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
20980 all uses. Fix two typos in its general comment.
20981 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
20983 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
20985 * config/i386/linux-common.h (LINK_MPX): New.
20986 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
20987 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
20988 indicating '-z bndplt' support by linker.
20989 * configure: Regenerate.
20990 * config.in: Regenerate.
20992 2015-07-16 Richard Biener <rguenther@suse.de>
20994 * fold-const.c (fold_widened_comparison): Remove.
20995 (fold_sign_changed_comparison): Likewise.
20996 (fold_comparison): Move widened and sign-changed comparison
20998 * match.pd: ... to patterns here.
20999 * generic-match-head.c: Include target.h.
21000 * gimple-match-head.c: Likewise.
21002 2015-07-16 Richard Biener <rguenther@suse.de>
21004 * tree-ssa-dom.c (dom_valueize): New function.
21005 (record_temporary_equivalences): Also record equivalences
21006 for dominating stmts that have uses of equivalences we are
21009 2015-07-16 Bin Cheng <bin.cheng@arm.com>
21011 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
21012 add_autoinc_candidates.
21013 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
21014 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
21015 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
21016 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
21018 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
21019 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
21020 Remove parameter struct iv*. Call add_autoinc_candidates here.
21021 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
21022 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
21024 (find_iv_candidates): Call new functions.
21026 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
21028 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
21029 uninitialized-variable warning.
21031 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
21034 * config/sh/sh.md (movdi): Split simple reg move to two movsi
21035 when the destination is R0.
21037 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
21040 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
21041 * config/i386/i386.c (ix86_expand_pextr): New function.
21042 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
21043 for non-lowpart subregs.
21044 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
21045 (insv<mode>): Use SWI248 mode iterator.
21046 (insv<mode>_1): Ditto.
21048 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
21049 Sebastian Pop <s.pop@samsung.com>
21051 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
21052 iterator to use_stmt.
21054 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
21055 Sebastian Pop <s.pop@samsung.com>
21057 * graphite-scop-detection.c (build_scops_1): Discard scops for
21060 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
21061 Sebastian Pop <s.pop@samsung.com>
21063 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
21064 case of a return statement in scop.
21066 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
21067 Sebastian Pop <s.pop@samsung.com>
21069 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
21070 INTEGER_TYPE parameters.
21071 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
21072 VECTOR_CST in scan_tree_for_params.
21073 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
21075 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
21077 * gimple-pretty-print.h: Don't include pretty-print.h.
21078 * tree-streamer.h: Don't include lto-streamer.h.
21079 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
21080 * gimple-streamer-in.c: Remove redundant includes.
21081 * gimple-streamer-out.c: Likewise.
21082 * ipa-devirt.c: Likewise.
21083 * ipa-icf.c: Likewise.
21084 * ipa-inline-analysis.c: Likewise.
21085 * ipa-polymorphic-call.c: Likewise.
21086 * ipa-profile.c: Likewise.
21087 * ipa-prop.c: Likewise.
21088 * ipa-pure-const.c: Likewise.
21089 * lto-cgraph.c: Likewise.
21090 * lto-streamer-in.c: Likewise.
21091 * lto-streamer-out.c: Likewise.
21092 * lto-streamer.c: Likewise.
21093 * tree-streamer-in.c: Likewise.
21094 * tree-streamer-out.c: Likewise.
21095 * tree-streamer.c: Likewise.
21097 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
21099 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
21101 * opts.c: Remove multiline #include comment.
21103 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
21105 * config/nvptx/mkoffload.c (process): Add C++ protection to
21108 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21111 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
21112 null before IEEE 128-bit floating point support patch.
21114 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21116 * simplify-rtx.c (simplify_ternary_operation): Add simplification
21117 for (!c) != {0,...,0} ? a : b for vector modes.
21119 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
21120 Martin Jambor <mjambor@suse.cz>
21122 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
21123 struct func_body_info* instead of struct ipa_node_params*, expecting
21124 fbi->info to be filled in. Replace throughout. Adjust call to
21125 ipa_load_from_parm_agg.
21126 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
21127 instead of struct ipa_node_params*. Adjust calls to other functions
21128 so that they pass either fbi or fbi->info.
21129 (set_switch_stmt_execution_predicate): Likewise.
21130 (will_be_nonconstant_predicate): Likewise.
21131 (compute_bb_predicates): Likewise.
21132 (estimate_function_body_sizes): Move asserts earlier. Fill in
21133 struct func_body_info, replace parms_info with fbi.info. Adjust
21134 calls to functions that now accept struct func_body_info.
21135 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
21136 (struct func_body_info): Likewise.
21137 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
21138 remove static. Adjust callers.
21139 (ipa_load_from_parm_agg): Remove.
21140 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
21141 (func_body_info): Likewise.
21142 (ipa_load_from_parm_agg): Adjust prototype.
21144 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21146 * gensupport.c (rtx_handle_directive): Adjust.
21147 * read-rtl.c (apply_iterators): Take vector to add rtxs to
21148 instead of expr list rtx.
21149 (add_define_attr_for_define_subst): Likewise.
21150 (add_define_subst_attr): Likewise.
21151 (read_subst_mapping): Likewise.
21152 (read_rtx): Likewise.
21153 * rtl.h (read_rtx): Adjust.
21155 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21157 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
21159 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
21162 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
21163 (*tls_local_dynamic_base_64_<mode>): Ditto.
21164 (*tls_local_dynamic_base_64_largepic): Ditto.
21165 (tls_global_dynamic_64_<mode>): Update expander pattern.
21166 (tls_local_dynamic_base_64_<mode>): Ditto.
21168 2015-07-15 Richard Biener <rguenther@suse.de>
21170 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
21171 and bool_var == 1 -> bool_var simplifications ...
21172 * match.pd: ... to patterns here. Factor out negate_expr_p
21173 cases from the A - B -> A + (-B) patterns as negate_expr_p
21174 predicate and add a -(A + B) -> (-B) - A pattern.
21176 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
21178 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
21180 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
21181 Robert Suchanek <robert.suchanek@imgtec.com>
21183 * config/mips/mips.c (mips_int_mask): New enum.
21184 (mips_shadow_set): Likewise.
21185 (int_mask): New variable.
21186 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
21187 (machine_function): Add int_mask and use_shadow_register_set.
21188 (mips_attribute_table): Add attribute handlers for interrupt and
21189 use_shadow_register_set.
21190 (mips_interrupt_mask): New static function.
21191 (mips_handle_interrupt_attr): Likewise.
21192 (mips_handle_use_shadow_register_set_attr): Likewise.
21193 (mips_use_shadow_register_set): Change return type to enum
21194 mips_shadow_set. Add argument handling for use_shadow_register_set
21196 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
21197 compare with mips_shadow_set enum.
21198 (mips_compute_frame_info): Add interrupt mask and
21199 use_shadow_register_set to per-function information structure.
21200 Add a stack slot for EPC unconditionally.
21201 (mips_expand_prologue): Compare use_shadow_register_set value
21202 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
21203 masked interrupt register but in EIC mode use K0 and save Cause in K0.
21204 EPC saved and restored unconditionally. Use PMODE_INSN macro when
21205 copying the stack pointer from the shadow register set.
21206 * config/mips/mips.h (SR_IM0): New define.
21207 * config/mips/mips.md (mips_rdpgpr): Rename to...
21208 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
21209 * doc/extend.texi (Declaring Attributes of Functions): Document
21210 optional arguments for interrupt and use_shadow_register_set
21213 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
21215 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
21216 interrupt attribute.
21217 (mips_expand_prologue): Disable the floating point unit in an ISR.
21218 * config/mips/mips.h (SR_COP1): New define.
21220 2015-07-15 Richard Biener <rguenther@suse.de>
21222 * genmatch.c (parser::peek, parser::peek_ident): Add argument
21223 to tell how many tokens to peek ahead (default 1).
21224 (parser::eat_token, parser::eat_ident): Return token consumed.
21225 (parser::parse_result): Parse new switch statement.
21226 * match.pd: Use case statements where appropriate.
21228 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
21230 PR rtl-optimization/58066
21231 * calls.c (expand_call): Precompute register parameters before stack
21232 alignment is performed.
21234 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
21236 PR rtl-optimization/66838
21237 * postreload.c (reload_cse_move2add): Also process
21238 CALL_INSN_FUNCTION_USAGE when resetting information of
21239 call-clobbered registers.
21241 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21242 Cesar Philippidis <cesar@codesourcery.com>
21243 Chung-Lin Tang <cltang@codesourcery.com>
21245 * config/nios2/constraints.md (U, v): New constraints.
21246 * config/nios2/predicates.md (rdprs_dcache_operand): New.
21247 (ldstex_memory_operand): New.
21248 * config/nios2/sync.md: New file.
21249 * config/nios2/nios2.md (unspecv): Add new builtin function
21251 (rdprs, flushd, flushda, wrpie, eni): New patterns.
21252 (top-level): Include sync.md.
21253 * config/nios2/nios2.c (N2_FTYPES): Add function types for
21255 (N2_BUILTINS): Add arch field setting, add new builtins.
21256 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
21258 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
21259 Also handle ldex/stex/ldsex/stsex builtins.
21260 (nios2_expand_rdprs_builtin): New function.
21261 (nios2_expand_cache_builtin): New function.
21262 (nios2_expand_wrpie_builtin): New function.
21263 (nios2_expand_eni_builtin): New function.
21264 (nios2_expand_builtin): Add arch field handling and new builtin
21266 * doc/extend.texi (Altera Nios II Built-in Functions): Document
21268 * doc/md.texi (Machine Constraints): Document U and v constraints.
21270 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21271 Cesar Philippidis <cesar@codesourcery.com>
21272 Chung-Lin Tang <cltang@codesourcery.com>
21274 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
21275 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
21276 callee_save_reg_size and uses_anonymous_args fields.
21277 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
21278 (nios2_create_cfa_notes): New function.
21279 (nios2_adjust_stack): New function for adjusting stack.
21280 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
21281 Use nios2_adjust_stack.
21282 (nios2_expand_epilogue): Likewise.
21283 (nios2_expand_return): New function.
21284 (nios2_can_use_return_insn): Update for CDX pop.n usage.
21285 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
21286 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
21287 * config/nios2/nios2.md (return): Use nios2_expand_return.
21289 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21290 Cesar Philippidis <cesar@codesourcery.com>
21291 Chung-Lin Tang <cltang@codesourcery.com>
21293 * config/nios2/predicates.md (pop_operation): New.
21294 (ldwm_operation, stwm_operation): New.
21295 (nios2_hard_register_operand): New.
21296 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
21297 (ldstwm_operation_p): Declare.
21298 (gen_ldstwm_peep): Declare.
21299 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
21300 (base_reg_adjustment_p): New.
21301 (pop_operation_p): New.
21302 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
21303 (nios2_ldstwm_regset_p): New.
21304 (ldstwm_operation_p): New.
21306 (nios2_ldst_parallel): New.
21307 (struct ldswm_operand): Declare.
21308 (compare_ldstwm_operands): New.
21309 (can_use_cdx_ldstw): New.
21310 (gen_ldstwm_peep): New.
21311 * config/nios2/nios2-ldstwm.sml: New.
21312 * config/nios2/nios2.md: Include ldstwm.md.
21313 * config/nios2/ldstwm.md: Generated.
21315 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21316 Cesar Philippidis <cesar@codesourcery.com>
21317 Chung-Lin Tang <cltang@codesourcery.com>
21319 * config/nios2/nios2.h (LABEL_ALIGN): Define.
21320 (REG_ALLOC_ORDER): Define.
21321 (ADJUST_REG_ALLOC_ORDER): Define.
21322 (HONOR_REG_ALLOC_ORDER): Define.
21323 (CDX_REG_P): Define.
21324 (ANDCLEAR_INT): Define.
21325 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
21326 (nios2_label_align): Declare.
21327 (nios2_cdx_narrow_form_p): Declare.
21328 (nios2_adjust_reg_alloc_order): Declare.
21329 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
21331 (nios2_large_unspec_reloc_p): New function, split from...
21332 (nios2_legitimate_pic_operand_p): ...here.
21333 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
21334 (nios2_print_operand_punct_valid_p): New.
21335 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
21336 (split_mem_address): New.
21337 (split_alu_insn): New.
21339 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
21340 (enum nios2_add_insn_kind): New.
21341 (nios2_add_insn_names, nios2_add_insn_narrow): New.
21342 (nios2_add_insn_classify): New.
21343 (nios2_add_insn_asm): New.
21344 (nios2_cdx_narrow_form_p): New.
21345 (label_align, min_labelno, max_labelno): New.
21346 (nios2_reorg): New.
21347 (nios2_label_align): New.
21348 (nios2_adjust_reg_alloc_order): New.
21349 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21350 (TARGET_MACHINE_DEPENDENT_REORG): Define.
21351 * config/nios2/constraints.md (P): New constraint.
21352 * config/nios2/predicates.md (const_and_operand): New.
21353 (and_operand): New.
21354 (stack_memory_operand): New.
21355 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
21356 (length): Update to use nios2_cdx_narrow_form_p().
21357 (type): Add new insn type values.
21358 (control, alu, st, ld, shift): Update insn reservations with
21359 new insn type values.
21360 (*high, *lo_sum): Define new insn patterns for constant generation.
21361 (movqi_internal, movhi_internal, movsi_internal): Reduce
21362 alternatives, update asm template to handle CDX variants, update
21364 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
21365 template, update type attributes.
21366 (extendhisi2, extendqi<mode>2): Likewise.
21367 (addsi3): Change to use function for asm string.
21368 (subsi3): Add CDX notation to asm template, update type attributes.
21369 (negsi3, one_cmplsi3): Likewise.
21370 (andsi3): New pattern, specialized from logical patterns.
21371 (<code>si3): Remove and case, combine alternatives, update asm
21373 (<shift_op>si3): Add CDX notation, update type attributes.
21374 (rotrsi3): Update type attribute.
21375 (*merge, extzv, insv): New insn patterns.
21376 (return): Change to define_expand.
21377 (simple_return): Add CDX notation, update type attributes.
21378 (indirect_jump): Add CDX notation.
21379 (jump): Update asm cases, update length attribute expression.
21380 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
21381 (nios2_cbranch): Update asm cases and length attribute expression
21382 to handle CDX variants.
21383 (nios2_cmp<code>): Update asm template.
21384 (nop): Add CDX notation, update type attributes.
21385 (trap): Add CDX notation.
21386 (ctrapsi4): Update asm cases and length attribute expression to
21387 handle CDX variant.
21388 * doc/md.texi (Machine Constraints): Document P constraint.
21390 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21391 Cesar Philippidis <cesar@codesourcery.com>
21392 Chung-Lin Tang <cltang@codesourcery.com>
21394 * config/nios2/nios2.h (SMALL_INT12): New macro.
21395 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
21396 (nios2_valid_addr_expr_p): Use it.
21397 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
21398 with implicit "io" instructions on R2.
21399 * config/nios2/constraints.md (w): New constraint.
21400 * config/nios2/predicates.md (ldstio_memory_operand): New.
21401 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
21402 operand predicate and constraint.
21403 (ld<bh>io_signed, st<bhw>io>): Likewise.
21404 * doc/md.texi (Machine Constraints): Document w constraint.
21406 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21407 Cesar Philippidis <cesar@codesourcery.com>
21408 Chung-Lin Tang <cltang@codesourcery.com>
21410 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
21411 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
21412 Nios II architecture level.
21413 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
21414 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
21415 (OPTION_DEFAULT_SPECS): Define.
21416 (ASM_SPEC): Add -march= spec strings.
21417 * config/nios2/nios2.c (nios2_option_override): Check for
21418 conflicts involving new options.
21419 * config.gcc (nios2*-*-*): Support --with-arch=.
21420 * doc/invoke.texi (Option Summary, Nios II Options): Document
21421 -march=, -mbmx, and -mcdx.
21423 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
21425 PR rtl-optimization/66626
21426 * lra-constraints.c (lra_constraints): Prevent equivalence
21427 substitution for static chain pseudo in functions with nonlocal
21430 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21432 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
21433 (nios2_emit_stack_limit_check): Add size parameter. Handle
21434 -fstack-limit-symbol as well as -fstack-limit-register.
21435 (nios2_expand_prologue): Emit only a single stack limit check,
21436 even if multiple stack adjustments are required.
21437 (nios2_option_override): Diagnose unsupported combination of -fpic
21438 and -stack-limit-symbol.
21440 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
21442 * Makefile.in (top_srcdir): New.
21443 * configure.ac: Use AM_ZLIB.
21444 * configure: Regeneated.
21446 2015-07-14 Matthias Klose <doko@ubuntu.com>
21449 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
21451 2015-07-14 Richard Biener <rguenther@suse.de>
21453 PR tree-optimization/66863
21454 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
21455 what we record for conversion use stmt lhs inequalities.
21457 2015-07-14 Richard Biener <rguenther@suse.de>
21459 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
21460 (decision_tree::gen_gimple): Likewise.
21462 2015-07-14 Tom de Vries <tom@codesourcery.com>
21464 * gcc.c (greater_than_spec_func): Declare forward.
21465 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
21466 -ftree-parallelize-loops={0,1}.
21467 (static_spec_functions): Add greater_than_spec_func function with name
21469 (greater_than_spec_func): New function.
21471 2015-07-14 Richard Biener <rguenther@suse.de>
21473 * tree-ssa-dom.c (record_temporary_equivalences): Merge
21474 wideing type conversion case from record_equivalences_from_incoming_edge
21475 and use record_equality to record equivalences.
21476 (record_equivalences_from_incoming_edge): Call
21477 record_temporary_equivalences.
21479 2015-07-14 Richard Biener <rguenther@suse.de>
21481 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
21482 (struct if_expr): New.
21483 (struct with_expr): Likewise.
21484 (is_a_helper): Add helpers for if_expr and with_expr.
21485 (struct simplify): Add simplify_kind enum and member. Remove
21487 (simplify::simplify): Adjust.
21488 (lower_commutative): Adjust.
21489 (lower_opt_convert): Likewise.
21490 (lower_cond): Likewise.
21491 (replace_id): Handle with_expr and if_expr.
21492 (lower_for): Adjust.
21493 (dt_simplify::gen_1): New recursive worker, split out from ...
21494 (dt_simplify::gen): ... here. Deal with if and with expansion
21496 (capture_info::capture_info): Take context argument
21497 (capture_info::walk_result): Only analyze specific result.
21498 (parser::parse_result): New function.
21499 (parser::parse_simplify): Adjust to parse ifs with then end
21501 (parser::parse_if): Simplify.
21502 (parser::parse_pattern): Pass down simplify kind.
21503 * match.pd: Convert if structure to new syntax.
21505 2015-07-13 Marek Polacek <polacek@redhat.com>
21507 * rtl.c (rtx_equal_p_cb): Fix typo.
21509 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
21511 * omega.h: Don't include config.h, don't include params.h again if
21512 omega.h has already been included.
21513 * graphite-poly.h: Include sese.h.
21514 * graphite.c: Don't include sese.h, remove needless includes and
21515 minimize includes outside #ifdef HAVE_isl block.
21516 * graphite-blocking.c: Don't include sese.h, remove needless includes,
21517 and wrap entire file in #ifdef HAVE_isl
21518 * graphite-dependences.c: Likewise.
21519 * graphite-interchange.c: Likewise.
21520 * graphite-isl-ast-to-gimple.c: Likewise.
21521 * graphite-optimize-isl.c: Likewise.
21522 * graphite-poly.c: Likewise.
21523 * graphite-scop-detection.c: Likewise.
21524 * graphite-sese-to-poly.c: Likewise.
21526 2015-07-13 Tom de Vries <tom@codesourcery.com>
21528 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
21530 2015-07-13 Renlin Li <renlin.li@arm.com>
21533 * simplify-rtx.c (simplify_const_relational_operation): Add
21534 side_effects_p checks.
21536 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
21538 * bitmap.h: Fix double word typos.
21539 * builtins.c: Same.
21541 * cfgloopmanip.c: Same.
21544 * cgraphclones.c: Same.
21546 * config/aarch64/aarch64-protos.h: Same.
21547 * config/aarch64/aarch64.c: Same.
21548 * config/aarch64/aarch64.md: Same.
21549 * config/arm/arm.md: Same.
21550 * config/arm/arm1020e.md: Same.
21551 * config/arm/arm1026ejs.md: Same.
21552 * config/arm/arm926ejs.md: Same.
21553 * config/arm/fa526.md: Same.
21554 * config/arm/fa606te.md: Same.
21555 * config/arm/fa626te.md: Same.
21556 * config/arm/fa726te.md: Same.
21557 * config/arm/fmp626.md: Same.
21558 * config/darwin.c: Same.
21559 * config/epiphany/epiphany.c: Same.
21560 * config/frv/frv.c: Same.
21561 * config/ft32/ft32.c: Same.
21562 * config/gnu-user.h: Same.
21563 * config/h8300/constraints.md: Same.
21564 * config/i386/i386.c: Same.
21565 * config/i386/i386.md: Same.
21566 * config/iq2000/iq2000.md: Same.
21567 * config/mips/mips.c: Same.
21568 * config/mmix/mmix.md: Same.
21569 * config/moxie/moxie.c: Same.
21570 * config/nds32/nds32.md: Same.
21571 * config/pa/pa.h: Same.
21572 * config/rs6000/aix.h: Same.
21573 * config/rs6000/rs6000.h: Same.
21574 * config/sh/sh.c: Same.
21575 * config/tilegx/tilegx.md: Same.
21576 * config/tilepro/gen-mul-tables.cc: Same.
21579 * doc/invoke.texi: Same.
21581 * dwarf2out.c: Same.
21584 * genmatch.c: Same.
21585 * gimplify.c: Same.
21586 * hash-table.h: Same.
21587 * internal-fn.c: Same.
21589 * ipa-devirt.c: Same.
21592 * ipa-profile.c: Same.
21593 * ipa-prop.c: Same.
21594 * ipa-prop.h: Same.
21597 * reg-stack.c: Same.
21598 * regcprop.c: Same.
21603 * tree-inline.c: Same.
21604 * tree-sra.c: Same.
21605 * tree-ssa-dom.c: Same.
21606 * tree-ssa-loop-ivopts.c: Same.
21607 * tree-ssa-structalias.c: Same.
21608 * tree-ssa-tail-merge.c: Same.
21609 * tree-ssa-ter.c: Same.
21610 * tree-ssa-threadupdate.c: Same.
21611 * tree-ssa-uninit.c: Same.
21612 * tree-ssanames.c: Same.
21613 * tree-vect-loop-manip.c: Same.
21614 * tree-vrp.c: Same.
21616 * valtrack.c: Same.
21619 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21621 PR middle-end/66726
21622 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
21623 tree_ssa_phiopt_worker): Call it.
21625 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21627 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
21628 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
21631 2015-07-11 Marek Polacek <polacek@redhat.com>
21633 PR middle-end/66353
21634 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
21635 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
21636 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
21637 rather than bb_has_abnormal_call_pred.
21638 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
21639 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
21640 rather than bb_has_abnormal_call_pred.
21642 2015-07-10 Anatoly Sokolov <aesok@post.ru>
21644 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
21645 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
21646 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21647 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
21648 v850_legitimate_address_p): New functions.
21649 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21651 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
21654 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
21655 indirect sibcall with register arguments if register available
21656 for argument passing.
21657 (init_cumulative_args): Set cfun->machine->arg_reg_available
21658 to (cum->nregs > 0) or to true if function has a variable
21660 (function_arg_advance_32): Set cfun->machine->arg_reg_available
21661 to false if cum->nregs <= 0.
21662 * config/i386/i386.h (machine_function): Add arg_reg_available.
21664 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
21666 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
21667 and gen_higpart instead of gen_rtx_SUBREG.
21668 * config/i386/i386.md
21669 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
21670 (read-modify peephole2): Use gen_lowpart instead of
21671 gen_rtx_SUBREG for operand 5.
21673 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
21675 * config/tilepro/gen-mul-tables.cc (main): Change include list for
21677 * config/tilepro/mul-tables.c: Regenerate.
21678 * config/tilegx/mul-tables.c: Regenerate.
21680 2015-07-10 Richard Biener <rguenther@suse.de>
21682 * fold-const.c (distribute_bit_expr): Remove.
21683 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
21684 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
21685 to A & (B | C) and simplifying A << C1 << C2 to ...
21686 * match.pd: ... patterns here.
21688 2015-07-10 Jiong Wang <jiong.wang@arm.com>
21690 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21691 Mark mem as READONLY and NOTRAP for PIC symbol.
21693 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
21695 * gimple-predict.h: New file.
21696 (gimple_predict_predictor, gimple_predict_set_predictor,
21697 gimple_predict_outcome, gimple_predict_set_outcome,
21698 gimple_build_predict): Relocate here.
21699 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
21700 gimple_predict_outcome, gimple_predict_set_outcome): Move to
21702 * gimple.c (gimple_build_predict): Move to gimple-predict.h
21703 * basic-block.h: Don't include cfghooks.h.
21704 * backend.h: Don't include predict.h.
21705 * cfghooks.h: Include predict.h.
21706 * gimple-pretty-print.c: Include gimple-predict.h.
21707 * gimplify.c: Likwise.
21708 * predict.c: Adjust includes.
21709 * tree-inline.c: Likewise.
21710 * asan.c: Likewise.
21711 * auto-inc-dec.c: Likewise.
21712 * auto-profile.c: Likewise.
21713 * bb-reorder.c: Likewise.
21714 * builtins.c: Likewise.
21715 * caller-save.c: Likewise.
21716 * calls.c: Likewise.
21717 * cfganal.c: Likewise.
21718 * cfgbuild.c: Likewise.
21720 * cfgcleanup.c: Likewise.
21721 * cfgexpand.c: Likewise.
21722 * cfghooks.c: Likewise.
21723 * cfgloopanal.c: Likewise.
21724 * cfgloop.c: Likewise.
21725 * cfgloopmanip.c: Likewise.
21726 * cfgrtl.c: Likewise.
21727 * cgraph.c: Likewise.
21728 * cgraphunit.c: Likewise.
21729 * combine.c: Likewise.
21730 * cprop.c: Likewise.
21733 * dojump.c: Likewise.
21735 * except.c: Likewise.
21736 * expmed.c: Likewise.
21737 * expr.c: Likewise.
21738 * final.c: Likewise.
21739 * fold-const.c: Likewise.
21740 * function.c: Likewise.
21741 * fwprop.c: Likewise.
21742 * gcc-plugin.h: Likewise.
21743 * gcse.c: Likewise.
21744 * genattrtab.c: Likewise.
21745 * genemit.c: Likewise.
21746 * gengtype.c: Likewise.
21747 * genopinit.c: Likewise.
21748 * genoutput.c: Likewise.
21749 * genpreds.c: Likewise.
21750 * genrecog.c: Likewise.
21751 * gimple-fold.c: Likewise.
21752 * gimple-iterator.c: Likewise.
21753 * gimple-ssa-isolate-paths.c: Likewise.
21754 * gimple-ssa-strength-reduction.c: Likewise.
21755 * graph.c: Likewise.
21756 * graphite-blocking.c: Likewise.
21757 * graphite.c: Likewise.
21758 * graphite-dependences.c: Likewise.
21759 * graphite-interchange.c: Likewise.
21760 * graphite-isl-ast-to-gimple.c: Likewise.
21761 * graphite-optimize-isl.c: Likewise.
21762 * graphite-poly.c: Likewise.
21763 * graphite-scop-detection.c: Likewise.
21764 * graphite-sese-to-poly.c: Likewise.
21765 * haifa-sched.c: Likewise.
21766 * ifcvt.c: Likewise.
21767 * internal-fn.c: Likewise.
21768 * ipa-cp.c: Likewise.
21769 * ipa-profile.c: Likewise.
21770 * ipa-split.c: Likewise.
21771 * ipa-utils.c: Likewise.
21772 * ira-build.c: Likewise.
21773 * ira-color.c: Likewise.
21774 * ira-conflicts.c: Likewise.
21775 * ira-costs.c: Likewise.
21776 * ira-emit.c: Likewise.
21777 * ira-lives.c: Likewise.
21778 * jump.c: Likewise.
21779 * loop-doloop.c: Likewise.
21780 * loop-init.c: Likewise.
21781 * loop-invariant.c: Likewise.
21782 * loop-unroll.c: Likewise.
21783 * lower-subreg.c: Likewise.
21784 * lra-assigns.c: Likewise.
21786 * lra-coalesce.c: Likewise.
21787 * lra-constraints.c: Likewise.
21788 * lra-lives.c: Likewise.
21789 * lto-cgraph.c: Likewise.
21790 * lto-streamer-in.c: Likewise.
21791 * mode-switching.c: Likewise.
21792 * modulo-sched.c: Likewise.
21793 * omp-low.c: Likewise.
21794 * optabs.c: Likewise.
21795 * passes.c: Likewise.
21796 * postreload.c: Likewise.
21797 * postreload-gcse.c: Likewise.
21798 * profile.c: Likewise.
21799 * recog.c: Likewise.
21800 * regstat.c: Likewise.
21801 * reload1.c: Likewise.
21802 * reorg.c: Likewise.
21803 * rtlanal.c: Likewise.
21804 * sched-ebb.c: Likewise.
21805 * sel-sched-ir.c: Likewise.
21806 * sese.c: Likewise.
21807 * shrink-wrap.c: Likewise.
21808 * simplify-rtx.c: Likewise.
21809 * stmt.c: Likewise.
21810 * store-motion.c: Likewise.
21811 * tracer.c: Likewise.
21812 * trans-mem.c: Likewise.
21813 * tree-call-cdce.c: Likewise.
21814 * tree-cfg.c: Likewise.
21815 * tree-cfgcleanup.c: Likewise.
21816 * tree-chkp.c: Likewise.
21817 * tree-complex.c: Likewise.
21818 * tree-eh.c: Likewise.
21819 * tree-if-conv.c: Likewise.
21820 * tree-loop-distribution.c: Likewise.
21821 * tree-outof-ssa.c: Likewise.
21822 * tree-parloops.c: Likewise.
21823 * tree-predcom.c: Likewise.
21824 * tree-pretty-print.c: Likewise.
21825 * tree-profile.c: Likewise.
21826 * tree-sra.c: Likewise.
21827 * tree-ssa.c: Likewise.
21828 * tree-ssa-coalesce.c: Likewise.
21829 * tree-ssa-dce.c: Likewise.
21830 * tree-ssa-dom.c: Likewise.
21831 * tree-ssa-forwprop.c: Likewise.
21832 * tree-ssa-ifcombine.c: Likewise.
21833 * tree-ssa-loop-ch.c: Likewise.
21834 * tree-ssa-loop-im.c: Likewise.
21835 * tree-ssa-loop-ivcanon.c: Likewise.
21836 * tree-ssa-loop-ivopts.c: Likewise.
21837 * tree-ssa-loop-manip.c: Likewise.
21838 * tree-ssa-loop-prefetch.c: Likewise.
21839 * tree-ssa-loop-unswitch.c: Likewise.
21840 * tree-ssa-math-opts.c: Likewise.
21841 * tree-ssa-phiopt.c: Likewise.
21842 * tree-ssa-pre.c: Likewise.
21843 * tree-ssa-reassoc.c: Likewise.
21844 * tree-ssa-sink.c: Likewise.
21845 * tree-ssa-tail-merge.c: Likewise.
21846 * tree-ssa-threadedge.c: Likewise.
21847 * tree-ssa-threadupdate.c: Likewise.
21848 * tree-switch-conversion.c: Likewise.
21849 * tree-tailcall.c: Likewise.
21850 * tree-vect-data-refs.c: Likewise.
21851 * tree-vect-loop.c: Likewise.
21852 * tree-vect-loop-manip.c: Likewise.
21853 * tree-vectorizer.c: Likewise.
21854 * tree-vrp.c: Likewise.
21855 * ubsan.c: Likewise.
21856 * value-prof.c: Likewise.
21857 * varasm.c: Likewise.
21858 * var-tracking.c: Likewise.
21859 * config/aarch64/aarch64-builtins.c: Likewise.
21860 * config/aarch64/aarch64.c: Likewise.
21861 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21862 * config/alpha/alpha.c: Likewise.
21863 * config/arc/arc.c: Likewise.
21864 * config/arm/arm.c: Likewise.
21865 * config/avr/avr.c: Likewise.
21866 * config/bfin/bfin.c: Likewise.
21867 * config/c6x/c6x.c: Likewise.
21868 * config/cr16/cr16.c: Likewise.
21869 * config/cris/cris.c: Likewise.
21870 * config/darwin.c: Likewise.
21871 * config/darwin-c.c: Likewise.
21872 * config/epiphany/epiphany.c: Likewise.
21873 * config/epiphany/mode-switch-use.c: Likewise.
21874 * config/epiphany/resolve-sw-modes.c: Likewise.
21875 * config/fr30/fr30.c: Likewise.
21876 * config/frv/frv.c: Likewise.
21877 * config/ft32/ft32.c: Likewise.
21878 * config/h8300/h8300.c: Likewise.
21879 * config/i386/i386.c: Likewise.
21880 * config/i386/winnt.c: Likewise.
21881 * config/ia64/ia64.c: Likewise.
21882 * config/iq2000/iq2000.c: Likewise.
21883 * config/lm32/lm32.c: Likewise.
21884 * config/m32c/m32c.c: Likewise.
21885 * config/m32r/m32r.c: Likewise.
21886 * config/m68k/m68k.c: Likewise.
21887 * config/mcore/mcore.c: Likewise.
21888 * config/mep/mep.c: Likewise.
21889 * config/microblaze/microblaze.c: Likewise.
21890 * config/mips/mips.c: Likewise.
21891 * config/mmix/mmix.c: Likewise.
21892 * config/mn10300/mn10300.c: Likewise.
21893 * config/moxie/moxie.c: Likewise.
21894 * config/msp430/msp430.c: Likewise.
21895 * config/nds32/nds32.c: Likewise.
21896 * config/nds32/nds32-cost.c: Likewise.
21897 * config/nds32/nds32-fp-as-gp.c: Likewise.
21898 * config/nds32/nds32-intrinsic.c: Likewise.
21899 * config/nds32/nds32-isr.c: Likewise.
21900 * config/nds32/nds32-md-auxiliary.c: Likewise.
21901 * config/nds32/nds32-memory-manipulation.c: Likewise.
21902 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21903 * config/nds32/nds32-predicates.c: Likewise.
21904 * config/nios2/nios2.c: Likewise.
21905 * config/nvptx/nvptx.c: Likewise.
21906 * config/pa/pa.c: Likewise.
21907 * config/pdp11/pdp11.c: Likewise.
21908 * config/rl78/rl78.c: Likewise.
21909 * config/rs6000/rs6000.c: Likewise.
21910 * config/rx/rx.c: Likewise.
21911 * config/s390/s390.c: Likewise.
21912 * config/sh/sh.c: Likewise.
21913 * config/sh/sh-mem.cc: Likewise.
21914 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21915 * config/sh/sh_treg_combine.cc: Likewise.
21916 * config/sparc/sparc.c: Likewise.
21917 * config/spu/spu.c: Likewise.
21918 * config/stormy16/stormy16.c: Likewise.
21919 * config/tilegx/tilegx.c: Likewise.
21920 * config/tilepro/tilepro.c: Likewise.
21921 * config/v850/v850.c: Likewise.
21922 * config/vax/vax.c: Likewise.
21923 * config/visium/visium.c: Likewise.
21924 * config/xtensa/xtensa.c: Likewise.
21926 2015-07-10 Richard Biener <rguenther@suse.de>
21928 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
21929 (decision_tree::gen_gimple): Likewise.
21930 (decision_tree::gen_generic): Likewise.
21932 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
21935 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
21936 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
21938 2015-07-10 Jakub Jelinek <jakub@redhat.com>
21940 PR middle-end/66820
21941 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
21942 or ORT_TASK contexts.
21943 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
21946 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21948 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
21951 2015-07-10 Tom de Vries <tom@codesourcery.com>
21953 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
21954 insert nit + 1 bound.
21956 2015-07-10 Richard Biener <rguenther@suse.de>
21958 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
21959 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
21960 (if_convertible_loop_p_1): For this always compute bb predicates.
21961 (if_convertible_loop_p): And free them.
21963 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21965 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
21968 2015-07-10 Richard Biener <rguenther@suse.de>
21970 PR tree-optimization/66823
21971 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
21972 inverted predicate.
21974 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
21976 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
21977 to handle mips[32|64]r3 and mips[32|64]r5.
21979 2015-07-09 Jakub Jelinek <jakub@redhat.com>
21981 PR middle-end/66633
21982 * tree-nested.c (get_static_chain): Or in a flag into
21983 info->static_chain_added.
21984 (get_frame_field, get_nonlocal_debug_decl): Likewise.
21985 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
21986 2015-07-01 changes.
21987 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
21988 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
21991 PR tree-optimization/66718
21992 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
21994 (vect_simd_lane_linear): New function.
21995 (vectorizable_simd_clone_call): Support using linear arguments for
21996 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
21998 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22001 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
22003 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
22005 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
22006 Use machine mode, not enum machine_mode in the prototype.
22008 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
22009 classify 128-bit floating point support.
22010 (FLOAT128_IBM_P): Likewise.
22011 (FLOAT128_VECTOR_P): Likewise.
22012 (FLOAT128_2REG_P): Likewise.
22013 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
22014 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
22015 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
22016 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
22018 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
22019 tests against TFmode/TDmode, since those modes do not use VSX
22021 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
22023 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
22024 tests against TFmode, etc.
22025 (invalid_e500_subreg): Add tests against IFmode/KFmode.
22026 (reg_offset_addressing_ok_p): Likewise.
22027 (rs6000_legitimate_offset_address_p): Likewise.
22028 (rs6000_legitimize_address): Likewise.
22029 (rs6000_legitimize_reload_address): Likewise.
22030 (rs6000_legitimate_address_p): Clean up tests against TFmode and
22031 TDmode to use the new helper macros, which will include IFmode and
22033 (rs6000_emit_move): Likewise.
22034 (rs6000_darwin64_record_arg_recurse): Likewise.
22035 (print_operand): Likewise.
22036 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
22037 that uses a single vector register as a vector and not as a
22038 floating point register in terms of the calling sequence.
22039 (rs6000_discover_homogeneous_aggregate): Likewise.
22040 (rs6000_return_in_memory): Likewise.
22041 (init_cumulative_args): Likewise.
22042 (rs6000_function_arg_boundary): Likewise.
22043 (rs6000_function_arg_advance_1): Likewise.
22044 (rs6000_function_arg): Likewise.
22045 (rs6000_pass_by_reference): Likewise.
22046 (rs6000_gimplify_va_arg): Likewise.
22047 (rs6000_secondary_reload_memory): Use machine_mode not enum
22049 (rs6000_split_multireg_move): Use new helper macros.
22050 (spe_func_has_64bit_regs_p): Likewise.
22051 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
22052 (output_toc): Use new helper macros.
22053 (rs6000_register_move_cost): Likewise.
22054 (rs6000_function_value): Add IEEE 128-bit floating point calling
22056 (rs6000_libcall_value): Likewise.
22057 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
22058 floating point support.
22059 (rs6000_vector_mode_supported_p): Likewise.
22061 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
22063 PR rtl-optimization/66782
22064 * lra-int.h (struct lra_insn_recog_data): Add comment about
22065 clobbered hard regs for arg_hard_regs.
22066 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
22067 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
22068 Add condition for processing used hard regs.
22069 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
22070 Process clobbered hard regs.
22072 2015-07-09 Michael Matz <matz@suse.de>
22074 * genmatch.c (fprintf_indent): New function.
22075 (operand::gen_transform): Add indent parameter.
22076 (expr::gen_transform, c_expr::gen_transform,
22077 capture::gen_transform): Ditto and use fprintf_indent.
22078 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
22079 (dt_operand::gen, dt_operand::gen_predicate,
22080 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
22081 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
22082 (decision_tree::gen_gimple): Adjust calls and indent generated
22084 (decision_tree::gen_generic): Ditto.
22085 (write_predicate): Ditto.
22087 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
22090 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
22091 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
22092 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
22093 {GENERAL,SSE,MMX}_REG_P where appropriate.
22095 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
22097 * lto-streamer.h: Don't include target.h and alloc-pool.h.
22098 * builtins.c: Adjust includes.
22099 * gimple.c: Likewise.
22100 * ipa-icf.c: Likewise.
22101 * lto-opts.c: Likewise.
22102 * ipa-reference.c: Likewise.
22103 * lto-section-out.c: Likewise.
22104 * lto-streamer-in.c: Likewise.
22105 * lto-streamer-out.c: Likewise.
22106 * opts-global.c: Likewise.
22107 * symtab.c: Likewise.
22108 * tree-chkp.c: Likewise.
22109 * tree-ssa-live.c: Likewise.
22110 * tree-streamer-in.c: Likewise.
22111 * tree-streamer-out.c: Likewise.
22112 * config/darwin.c: Likewise.
22113 * config/i386/winnt.c: Likewise.
22115 2015-07-09 Richard Biener <rguenther@suse.de>
22117 * genmatch.c (struct expr): Add force_single_use flag.
22118 (expr::expr): Add copy constructor.
22119 (capture_info::walk_match): Gather force_single_use captures.
22120 (expr::gen_transform): Use possibly NULLified sequence.
22121 (dt_simplify::gen): Apply single-use restrictions by NULLifying
22122 seq if any constrained expr is not single-use.
22123 (parser::parse_expr): Refactor to allow multiple flags. Handle
22124 's' flag to force an expression have a single-use if the pattern
22125 simplifies to more than one statement.
22126 * match.pd: Convert most single_use conditionals to :s flags.
22128 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22130 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
22131 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22132 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
22134 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
22136 * flags.h: Don't include flag-types.h or options.h.
22137 * opts-common.c: Adjust includes.
22138 * opts-global.c: Likewise.
22139 * common/config/epiphany/epiphany-common.c: Likewise.
22141 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22144 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
22147 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22150 * config/i386/i386.c (ix86_return_in_memory): Return true
22151 if int_size_in_bytes returns negative for IA MCU.
22153 2015-07-09 Marek Polacek <polacek@redhat.com>
22155 PR tree-optimization/66718
22156 * Makefile.in (OBJS): Add gimple-laddress.o.
22157 * passes.def: Schedule pass_laddress.
22158 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
22159 * tree-pass.h (make_pass_laddress): Declare.
22160 * gimple-laddress.c: New file.
22162 2015-07-09 Richard Biener <rguenther@suse.de>
22164 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
22166 2015-07-09 Richard Biener <rguenther@suse.de>
22168 PR tree-optimization/66807
22169 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
22171 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
22173 * function.c (stack_protect_epilogue): Use if rather than switch for
22174 check targetm.have_stack_protect_test.
22176 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22178 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
22179 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
22180 * config/arc/arc.h: Likewise.
22181 * config/arm/arm.h: Likewise.
22182 * config/bfin/bfin.h: Likewise.
22183 * config/epiphany/epiphany.h: Likewise.
22184 * config/frv/frv.h: Likewise.
22185 * config/ia64/ia64.h: Likewise.
22186 * config/iq2000/iq2000.h: Likewise.
22187 * config/lm32/lm32.h: Likewise.
22188 * config/m32r/m32r.h: Likewise.
22189 * config/mcore/mcore.h: Likewise.
22190 * config/mep/mep.h: Likewise.
22191 * config/microblaze/microblaze.h: Likewise.
22192 * config/mips/mips.h: Likewise.
22193 * config/mmix/mmix.h: Likewise.
22194 * config/mn10300/mn10300.h: Likewise.
22195 * config/nds32/nds32.h: Likewise.
22196 * config/nios2/nios2.h: Likewise.
22197 * config/pa/pa.h: Likewise.
22198 * config/rl78/rl78.h: Likewise.
22199 * config/sh/sh.h: Likewise.
22200 * config/sparc/sparc.h: Likewise.
22201 * config/stormy16/stormy16.h: Likewise.
22202 * config/tilegx/tilegx.h: Likewise.
22203 * config/tilepro/tilepro.h: Likewise.
22204 * config/v850/v850.h: Likewise.
22205 * config/xtensa/xtensa.h: Likewise.
22206 * doc/tm.texi: Regenerate.
22207 * doc/tm.texi.in: Adjust.
22208 * combine.c (simplify_set): Likewise.
22209 (simplify_comparison): Likewise.
22210 * expr.c (store_constructor): Likewise.
22211 * internal-fn.c (expand_arith_overflow): Likewise.
22212 * reload.c (push_reload): Likewise.
22213 (find_reloads): Likewise.
22214 (find_reloads_subreg_address): Likewise.
22215 * reload1.c (eliminate_regs_1): Likewise.
22216 * rtlanal.c (nonzero_bits1): Likewise.
22217 (num_sign_bit_copies1): Likewise.
22218 * simplify-rtx.c (simplify_truncation): Likewise.
22220 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22222 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
22223 of AUTO_INC_DEC with the preprocessor.
22224 * combine.c (combine_instructions): Likewise.
22225 (can_combine_p): Likewise.
22226 (try_combine): Likewise.
22227 * emit-rtl.c (try_split): Likewise.
22228 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22229 * lower-subreg.c (resolve_simple_move): Likewise.
22230 * lra.c (update_inc_notes): Likewise.
22231 * recog.c (asm_operand_ok): Likewise.
22232 (constrain_operands): Likewise.
22233 * regrename.c (scan_rtx_address): Likewise.
22234 * reload.c (update_auto_inc_notes): Likewise.
22235 (reg_inc_found_and_valid_p): Likewise.
22236 * reload1.c (reload): Likewise.
22237 (emit_input_reload_insns): Likewise.
22238 (delete_output_reload): Likewise.
22239 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22240 * valtrack.c (cleanup_auto_inc_dec): Likewise.
22242 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22244 * rtl.h: Always define AUTO_INC_DEC.
22245 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
22246 * combine.c (combine_instructions): Likewise.
22247 (can_combine_p): Likewise.
22248 (try_combine): Likewise.
22249 * emit-rtl.c (try_split): Likewise.
22250 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22251 * lower-subreg.c (resolve_simple_move): Likewise.
22252 * lra.c (update_inc_notes): Likewise.
22253 * recog.c (asm_operand_ok): Likewise.
22254 (constrain_operands): Likewise.
22255 * regrename.c (scan_rtx_address): Likewise.
22256 * reload.c (update_auto_inc_notes): Likewise.
22257 (find_equiv_reg): Likewise.
22258 * reload1.c (reload): Likewise.
22259 (reload_as_needed): Likewise.
22260 (choose_reload_regs): Likewise.
22261 (emit_input_reload_insns): Likewise.
22262 (delete_output_reload): Likewise.
22263 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22264 * valtrack.c (cleanup_auto_inc_dec): Likewise.
22266 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22268 * combine.c (can_combine_def_p): Don't check the value of
22269 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
22270 (combinable_i3pat): Likewise.
22271 (mark_used_regs_combine): Likewise.
22272 * regrename.c (rename_chains): Likewise.
22273 * reload.c (find_reloads_address): Likewise.
22274 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
22276 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22278 * combine.c (update_rsp_from_reg_equal): Don't check if
22279 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
22280 (reg_nonzero_bits_for_combine): Likewise.
22281 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
22283 * config/frv/frv.h: Likewise.
22284 * config/lm32/lm32.h: Likewise.
22285 * config/mep/mep.h: Likewise.
22286 * config/mips/mips.h: Likewise.
22287 * config/rs6000/rs6000.h: Likewise.
22288 * config/sh/sh.h: Likewise.
22289 * config/tilegx/tilegx.h (enum reg_class): Likewise.
22290 * config/tilepro/tilepro.h: Likewise.
22291 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
22292 * doc/tm.texi: Regenerate.
22293 * doc/tm.texi.in: Adjust.
22294 * rtlanal.c (nonzero_bits1): Likewise.
22296 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22298 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
22299 with the preprocessor.
22300 (combine_instructions): Likewise.
22301 (try_combine): Likewise.
22303 (distribute_notes): Likewise.
22305 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22307 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
22309 (simplify_set): Likewise.
22310 * cse.c (cse_insn): Likewise.
22311 * fold-const.c (fold_single_bit_test): Likewise.
22312 (fold_unary_loc): Likewise.
22313 * postreload.c (reload_cse_simplify_set): Likewise.
22314 (reload_cse_simplify_operands): Likewise.
22316 2015-07-08 Jiong Wang <jiong.wang@arm.com>
22318 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
22319 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
22321 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
22324 * config/i386/x86intrin.h: Include <adxintrin.h> even if
22325 __iamcu__ is defined.
22327 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
22329 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
22331 2015-07-08 Iain Sandoe <iain@codesourcery.com>
22334 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
22335 names from preservation.
22337 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
22340 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
22342 (function_arg_advance_32): Don't pass vectors in registers for
22344 (function_arg_32): Likewise.
22345 (ix86_return_in_memory): Don't return vectors in registers for
22348 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
22350 PR middle-end/66334
22351 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
22352 hard regno live at the start of BB with incoming abnormal edges.
22353 * lra-lives.c (process_bb_lives): Ditto.
22355 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
22358 * config/nvptx/mkoffload.c (main): Create an offload image only in
22359 64-bit configurations.
22361 2015-07-08 Martin Liska <mliska@suse.cz>
22364 * tree-sra.c (create_access_1): Call ctor without brackets.
22365 (create_artificial_child_access): Likewise.
22367 2015-07-08 Richard Biener <rguenther@suse.de>
22369 PR tree-optimization/66793
22370 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
22371 Properly split the block after stmts ending it.
22373 2015-07-08 Richard Biener <rguenther@suse.de>
22375 PR tree-optimization/66794
22376 * passes.c (execute_function_todo): Assert that post-dominators
22378 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
22379 Free post-dominators.
22381 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22383 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
22386 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
22388 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
22389 more than or equal 8 and less than 32 when optimizing for size.
22391 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22393 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
22394 COSTS_N_INSNS (1) and increment it appropriately throughout the
22397 2015-07-08 Richard Biener <rguenther@suse.de>
22399 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
22401 2015-07-08 Alan Modra <amodra@gmail.com>
22403 * target.def (rtx_costs): Remove "code" param, add "mode".
22404 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
22405 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
22406 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
22407 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
22408 call. Track mode when given in rtx.
22409 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
22410 (default_address_cost): Pass Pmode to rtx_cost.
22411 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
22412 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
22414 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
22415 (notreg_cost): Add mode param. Use it.
22416 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
22417 mode param and pass to set_src_cost. Update all calls.
22418 (hash_scan_set): Formatting.
22419 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
22420 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
22422 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
22423 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
22424 emit_store_flag): Update set_src_cost and rtx_cost calls.
22425 * auto-inc-dec.c (attempt_change): Likewise.
22426 * calls.c (precompute_register_parameters): Likewise.
22427 * combine.c (expand_compound_operation, make_extraction,
22428 force_to_mode, distribute_and_simplify_rtx): Likewise.
22429 * dojump.c (prefer_and_bit_test): Likewise.
22430 * dse.c (find_shift_sequence): Likewise.
22431 * expr.c (compress_float_constant): Likewise.
22432 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
22433 * ifcvt.c (noce_try_sign_mask): Likewise.
22434 * loop-doloop.c (doloop_optimize): Likewise.
22435 * loop-invariant.c (create_new_invariant): Likewise.
22436 * lower-subreg.c (shift_cost, compute_costs): Likewise.
22437 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
22438 lshift_cheap_p): Likewise.
22439 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
22440 try_replace_in_use, reload_cse_move2add): Likewise.
22441 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
22443 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
22444 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
22445 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
22446 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
22447 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
22448 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
22450 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
22451 * config/arc/arc.c (arc_rtx_costs): Likewise.
22452 * config/arm/arm.c (arm_rtx_costs): Likewise.
22453 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
22454 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
22455 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
22456 * config/cris/cris.c (cris_rtx_costs): Likewise.
22457 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
22458 * config/frv/frv.c (frv_rtx_costs): Likewise.
22459 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
22460 * config/i386/i386.c (ix86_rtx_costs): Likewise.
22461 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
22462 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
22463 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
22464 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
22465 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
22466 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
22467 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
22468 * config/mep/mep.c (mep_rtx_cost): Likewise.
22469 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
22470 * config/mips/mips.c (mips_rtx_costs): Likewise.
22471 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
22472 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
22473 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
22474 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
22475 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
22476 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
22477 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
22478 * config/pa/pa.c (hppa_rtx_costs): Likewise.
22479 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
22480 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
22481 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
22482 * config/s390/s390.c (s390_rtx_costs): Likewise.
22483 * config/sh/sh.c (sh_rtx_costs): Likewise.
22484 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
22485 * config/spu/spu.c (spu_rtx_costs): Likewise.
22486 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
22487 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
22488 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
22489 * config/v850/v850.c (v850_rtx_costs): Likewise.
22490 * config/vax/vax.c (vax_rtx_costs): Likewise.
22491 * config/visium/visium.c (visium_rtx_costs): Likewise.
22492 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
22493 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
22494 "code" param, and pass as outer_code to first rtx_cost call. Pass
22495 mode to rtx_cost calls.
22496 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
22498 (aarch64_rtx_costs_wrapper): Update.
22499 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
22500 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
22502 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
22503 and rtx_cost calls.
22504 (avr_operand_rtx_cost): Similarly.
22505 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
22506 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
22507 * config/mips/mips.c (mips_stack_address_p): Comment typo.
22508 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
22509 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
22510 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
22512 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
22513 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
22514 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
22515 * doc/tm.texi: Regenerate.
22517 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
22519 * tree-core.h: Include symtab.h.
22520 * rtl.h: Include hard-reg-set.h but not flags.h.
22521 (HARD_CONST): Remove condition compilation involving HARD_CONST since
22522 hard-reg-set.h is always included.
22523 * regs.h: Don't include hard-reg-set.h or rtl.h.
22524 * cfg.h: Include dominance.h.
22525 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
22526 * backend.h: New. Aggregate commonly used backend header files.
22527 * gimple-ssa.h: Don't include tree-hasher.h.
22528 * ssa.h: New. Aggregate commonly used SSA header files.
22529 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
22530 * sel-sched-ir.h: Flatten includes.
22531 * lra-int.h: Flatten completely.
22532 * sel-sched-dump.h: Flatten includes.
22533 * ira-int.h: Flatten includes.
22534 * gimple-streamer.h: Remove all includes.
22535 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
22536 * resource.h: Flatten hard-reg-set.h and df.h.
22537 * sched-int.h: Flatten insn-arrt.h and df.h.
22538 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
22539 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
22540 * genattrtab.c (write_header): Adjust generated includes.
22541 * genautomata.c (main): Likewise.
22542 * genconditions.c (write-header): Likewise.
22543 * genemit.c (main): Likewise.
22544 * gengtype.c (open_base_files): Likewise.
22545 * genopinit.c (main): Likewise.
22546 * genoutput.c (output_prologue): Likewise.
22547 * genpeep.c (main): Likewise.
22548 * genpreds.c (write_insn_preds_c): Likewise.
22549 * genrecog.c (write_header): Likewise.
22550 * alias.c: Adjust includes.
22551 * asan.c: Likewise.
22552 * attribs.c: Likewise.
22553 * auto-inc-dec.c: Likewise.
22554 * auto-profile.c: Likewise.
22555 * bb-reorder.c: Likewise.
22556 * bt-load.c: Likewise.
22557 * builtins.c: Likewise.
22558 * caller-save.c: Likewise.
22559 * calls.c: Likewise.
22560 * ccmp.c: Likewise.
22562 * cfganal.c: Likewise.
22563 * cfgbuild.c: Likewise.
22564 * cfgcleanup.c: Likewise.
22565 * cfgexpand.c: Likewise.
22566 * cfghooks.c: Likewise.
22567 * cfgloop.c: Likewise.
22568 * cfgloopanal.c: Likewise.
22569 * cfgloopmanip.c: Likewise.
22570 * cfgrtl.c: Likewise.
22571 * cgraph.c: Likewise.
22572 * cgraphbuild.c: Likewise.
22573 * cgraphclones.c: Likewise.
22574 * cgraphunit.c: Likewise.
22575 * cilk-common.c: Likewise.
22576 * combine-stack-adj.c: Likewise.
22577 * combine.c: Likewise.
22578 * compare-elim.c: Likewise.
22579 * convert.c: Likewise.
22580 * coverage.c: Likewise.
22581 * cppbuiltin.c: Likewise.
22582 * cprop.c: Likewise.
22584 * cselib.c: Likewise.
22585 * data-streamer-in.c: Likewise.
22586 * data-streamer-out.c: Likewise.
22587 * data-streamer.c: Likewise.
22588 * dbxout.c: Likewise.
22591 * debug.c: Likewise.
22592 * df-core.c: Likewise.
22593 * df-problems.c: Likewise.
22594 * df-scan.c: Likewise.
22596 * dojump.c: Likewise.
22597 * dominance.c: Likewise.
22598 * domwalk.c: Likewise.
22599 * double-int.c: Likewise.
22601 * dumpfile.c: Likewise.
22602 * dwarf2asm.c: Likewise.
22603 * dwarf2cfi.c: Likewise.
22604 * dwarf2out.c: Likewise.
22605 * emit-rtl.c: Likewise.
22606 * et-forest.c: Likewise.
22607 * except.c: Likewise.
22608 * explow.c: Likewise.
22609 * expmed.c: Likewise.
22610 * expr.c: Likewise.
22611 * final.c: Likewise.
22612 * fixed-value.c: Likewise.
22613 * fold-const.c: Likewise.
22614 * function.c: Likewise.
22615 * fwprop.c: Likewise.
22616 * gcc-plugin.h: Likewise.
22617 * gcse-common.c: Likewise.
22618 * gcse.c: Likewise.
22619 * generic-match-head.c: Likewise.
22620 * ggc-page.c: Likewise.
22621 * gimple-builder.c: Likewise.
22622 * gimple-expr.c: Likewise.
22623 * gimple-fold.c: Likewise.
22624 * gimple-iterator.c: Likewise.
22625 * gimple-low.c: Likewise.
22626 * gimple-match-head.c: Likewise.
22627 * gimple-pretty-print.c: Likewise.
22628 * gimple-ssa-isolate-paths.c: Likewise.
22629 * gimple-ssa-strength-reduction.c: Likewise.
22630 * gimple-streamer-in.c: Likewise.
22631 * gimple-streamer-out.c: Likewise.
22632 * gimple-walk.c: Likewise.
22633 * gimple.c: Likewise.
22634 * gimplify-me.c: Likewise.
22635 * gimplify.c: Likewise.
22636 * godump.c: Likewise.
22637 * graph.c: Likewise.
22638 * graphite-blocking.c: Likewise.
22639 * graphite-dependences.c: Likewise.
22640 * graphite-interchange.c: Likewise.
22641 * graphite-isl-ast-to-gimple.c: Likewise.
22642 * graphite-optimize-isl.c: Likewise.
22643 * graphite-poly.c: Likewise.
22644 * graphite-scop-detection.c: Likewise.
22645 * graphite-sese-to-poly.c: Likewise.
22646 * graphite.c: Likewise.
22647 * haifa-sched.c: Likewise.
22648 * hw-doloop.c: Likewise.
22649 * ifcvt.c: Likewise.
22650 * init-regs.c: Likewise.
22651 * internal-fn.c: Likewise.
22652 * ipa-chkp.c: Likewise.
22653 * ipa-comdats.c: Likewise.
22654 * ipa-cp.c: Likewise.
22655 * ipa-devirt.c: Likewise.
22656 * ipa-icf-gimple.c: Likewise.
22657 * ipa-icf.c: Likewise.
22658 * ipa-inline-analysis.c: Likewise.
22659 * ipa-inline-transform.c: Likewise.
22660 * ipa-inline.c: Likewise.
22661 * ipa-polymorphic-call.c: Likewise.
22662 * ipa-profile.c: Likewise.
22663 * ipa-prop.c: Likewise.
22664 * ipa-pure-const.c: Likewise.
22665 * ipa-ref.c: Likewise.
22666 * ipa-reference.c: Likewise.
22667 * ipa-split.c: Likewise.
22668 * ipa-utils.c: Likewise.
22669 * ipa-visibility.c: Likewise.
22671 * ira-build.c: Likewise.
22672 * ira-color.c: Likewise.
22673 * ira-conflicts.c: Likewise.
22674 * ira-costs.c: Likewise.
22675 * ira-emit.c: Likewise.
22676 * ira-lives.c: Likewise.
22678 * jump.c: Likewise.
22679 * langhooks.c: Likewise.
22681 * loop-doloop.c: Likewise.
22682 * loop-init.c: Likewise.
22683 * loop-invariant.c: Likewise.
22684 * loop-iv.c: Likewise.
22685 * loop-unroll.c: Likewise.
22686 * lower-subreg.c: Likewise.
22687 * lra-assigns.c: Likewise.
22688 * lra-coalesce.c: Likewise.
22689 * lra-constraints.c: Likewise.
22690 * lra-eliminations.c: Likewise.
22691 * lra-lives.c: Likewise.
22692 * lra-remat.c: Likewise.
22693 * lra-spills.c: Likewise.
22695 * lto-cgraph.c: Likewise.
22696 * lto-compress.c: Likewise.
22697 * lto-opts.c: Likewise.
22698 * lto-section-in.c: Likewise.
22699 * lto-section-out.c: Likewise.
22700 * lto-streamer-in.c: Likewise.
22701 * lto-streamer-out.c: Likewise.
22702 * lto-streamer.c: Likewise.
22704 * mode-switching.c: Likewise.
22705 * modulo-sched.c: Likewise.
22706 * omega.c: Likewise.
22707 * omp-low.c: Likewise.
22708 * optabs.c: Likewise.
22709 * opts-global.c: Likewise.
22710 * passes.c: Likewise.
22711 * plugin.c: Likewise.
22712 * postreload-gcse.c: Likewise.
22713 * postreload.c: Likewise.
22714 * predict.c: Likewise.
22715 * print-rtl.c: Likewise.
22716 * print-tree.c: Likewise.
22717 * profile.c: Likewise.
22718 * real.c: Likewise.
22719 * realmpfr.c: Likewise.
22720 * recog.c: Likewise.
22722 * reg-stack.c: Likewise.
22723 * regcprop.c: Likewise.
22724 * reginfo.c: Likewise.
22725 * regrename.c: Likewise.
22726 * regstat.c: Likewise.
22727 * reload.c: Likewise.
22728 * reload1.c: Likewise.
22729 * reorg.c: Likewise.
22730 * resource.c: Likewise.
22731 * rtl-chkp.c: Likewise.
22732 * rtlanal.c: Likewise.
22733 * rtlhooks.c: Likewise.
22734 * sanopt.c: Likewise.
22735 * sched-deps.c: Likewise.
22736 * sched-ebb.c: Likewise.
22737 * sched-rgn.c: Likewise.
22738 * sched-vis.c: Likewise.
22739 * sdbout.c: Likewise.
22740 * sel-sched-dump.c: Likewise.
22741 * sel-sched-ir.c: Likewise.
22742 * sel-sched.c: Likewise.
22743 * sese.c: Likewise.
22744 * shrink-wrap.c: Likewise.
22745 * simplify-rtx.c: Likewise.
22746 * stack-ptr-mod.c: Likewise.
22747 * stmt.c: Likewise.
22748 * stor-layout.c: Likewise.
22749 * store-motion.c: Likewise.
22750 * stringpool.c: Likewise.
22751 * symtab.c: Likewise.
22752 * target-globals.c: Likewise.
22753 * targhooks.c: Likewise.
22754 * toplev.c: Likewise.
22755 * tracer.c: Likewise.
22756 * trans-mem.c: Likewise.
22757 * tree-affine.c: Likewise.
22758 * tree-browser.c: Likewise.
22759 * tree-call-cdce.c: Likewise.
22760 * tree-cfg.c: Likewise.
22761 * tree-cfgcleanup.c: Likewise.
22762 * tree-chkp-opt.c: Likewise.
22763 * tree-chkp.c: Likewise.
22764 * tree-chrec.c: Likewise.
22765 * tree-complex.c: Likewise.
22766 * tree-data-ref.c: Likewise.
22767 * tree-dfa.c: Likewise.
22768 * tree-diagnostic.c: Likewise.
22769 * tree-dump.c: Likewise.
22770 * tree-eh.c: Likewise.
22771 * tree-emutls.c: Likewise.
22772 * tree-if-conv.c: Likewise.
22773 * tree-inline.c: Likewise.
22774 * tree-into-ssa.c: Likewise.
22775 * tree-iterator.c: Likewise.
22776 * tree-loop-distribution.c: Likewise.
22777 * tree-nested.c: Likewise.
22778 * tree-nrv.c: Likewise.
22779 * tree-object-size.c: Likewise.
22780 * tree-outof-ssa.c: Likewise.
22781 * tree-parloops.c: Likewise.
22782 * tree-phinodes.c: Likewise.
22783 * tree-predcom.c: Likewise.
22784 * tree-pretty-print.c: Likewise.
22785 * tree-profile.c: Likewise.
22786 * tree-scalar-evolution.c: Likewise.
22787 * tree-sra.c: Likewise.
22788 * tree-ssa-address.c: Likewise.
22789 * tree-ssa-alias.c: Likewise.
22790 * tree-ssa-ccp.c: Likewise.
22791 * tree-ssa-coalesce.c: Likewise.
22792 * tree-ssa-copy.c: Likewise.
22793 * tree-ssa-copyrename.c: Likewise.
22794 * tree-ssa-dce.c: Likewise.
22795 * tree-ssa-dom.c: Likewise.
22796 * tree-ssa-dse.c: Likewise.
22797 * tree-ssa-forwprop.c: Likewise.
22798 * tree-ssa-ifcombine.c: Likewise.
22799 * tree-ssa-live.c: Likewise.
22800 * tree-ssa-loop-ch.c: Likewise.
22801 * tree-ssa-loop-im.c: Likewise.
22802 * tree-ssa-loop-ivcanon.c: Likewise.
22803 * tree-ssa-loop-ivopts.c: Likewise.
22804 * tree-ssa-loop-manip.c: Likewise.
22805 * tree-ssa-loop-niter.c: Likewise.
22806 * tree-ssa-loop-prefetch.c: Likewise.
22807 * tree-ssa-loop-unswitch.c: Likewise.
22808 * tree-ssa-loop.c: Likewise.
22809 * tree-ssa-math-opts.c: Likewise.
22810 * tree-ssa-operands.c: Likewise.
22811 * tree-ssa-phiopt.c: Likewise.
22812 * tree-ssa-phiprop.c: Likewise.
22813 * tree-ssa-pre.c: Likewise.
22814 * tree-ssa-propagate.c: Likewise.
22815 * tree-ssa-reassoc.c: Likewise.
22816 * tree-ssa-sccvn.c: Likewise.
22817 * tree-ssa-scopedtables.c: Likewise.
22818 * tree-ssa-sink.c: Likewise.
22819 * tree-ssa-strlen.c: Likewise.
22820 * tree-ssa-structalias.c: Likewise.
22821 * tree-ssa-tail-merge.c: Likewise.
22822 * tree-ssa-ter.c: Likewise.
22823 * tree-ssa-threadedge.c: Likewise.
22824 * tree-ssa-threadupdate.c: Likewise.
22825 * tree-ssa-uncprop.c: Likewise.
22826 * tree-ssa-uninit.c: Likewise.
22827 * tree-ssa.c: Likewise.
22828 * tree-ssanames.c: Likewise.
22829 * tree-stdarg.c: Likewise.
22830 * tree-streamer-in.c: Likewise.
22831 * tree-streamer-out.c: Likewise.
22832 * tree-streamer.c: Likewise.
22833 * tree-switch-conversion.c: Likewise.
22834 * tree-tailcall.c: Likewise.
22835 * tree-vect-data-refs.c: Likewise.
22836 * tree-vect-generic.c: Likewise.
22837 * tree-vect-loop-manip.c: Likewise.
22838 * tree-vect-loop.c: Likewise.
22839 * tree-vect-patterns.c: Likewise.
22840 * tree-vect-slp.c: Likewise.
22841 * tree-vect-stmts.c: Likewise.
22842 * tree-vectorizer.c: Likewise.
22843 * tree-vrp.c: Likewise.
22844 * tree.c: Likewise.
22845 * tsan.c: Likewise.
22846 * ubsan.c: Likewise.
22847 * valtrack.c: Likewise.
22848 * value-prof.c: Likewise.
22849 * var-tracking.c: Likewise.
22850 * varasm.c: Likewise.
22851 * varpool.c: Likewise.
22852 * vmsdbgout.c: Likewise.
22853 * vtable-verify.c: Likewise.
22855 * wide-int.cc: Likewise.
22856 * xcoffout.c: Likewise.
22857 * config/aarch64/aarch64-builtins.c: Likewise.
22858 * config/aarch64/aarch64.c: Likewise.
22859 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22860 * config/alpha/alpha.c: Likewise.
22861 * config/arc/arc.c: Likewise.
22862 * config/arm/aarch-common.c: Likewise.
22863 * config/arm/arm-builtins.c: Likewise.
22864 * config/arm/arm-c.c: Likewise.
22865 * config/arm/arm.c: Likewise.
22866 * config/avr/avr-c.c: Likewise.
22867 * config/avr/avr-log.c: Likewise.
22868 * config/avr/avr.c: Likewise.
22869 * config/bfin/bfin.c: Likewise.
22870 * config/c6x/c6x.c: Likewise.
22871 * config/cr16/cr16.c: Likewise.
22872 * config/cris/cris.c: Likewise.
22873 * config/darwin-c.c: Likewise.
22874 * config/darwin.c: Likewise.
22875 * config/epiphany/epiphany.c: Likewise.
22876 * config/epiphany/mode-switch-use.c: Likewise.
22877 * config/epiphany/resolve-sw-modes.c: Likewise.
22878 * config/fr30/fr30.c: Likewise.
22879 * config/frv/frv.c: Likewise.
22880 * config/ft32/ft32.c: Likewise.
22881 * config/h8300/h8300.c: Likewise.
22882 * config/i386/i386-c.c: Likewise.
22883 * config/i386/i386.c: Likewise.
22884 * config/i386/msformat-c.c: Likewise.
22885 * config/i386/winnt-cxx.c: Likewise.
22886 * config/i386/winnt-stubs.c: Likewise.
22887 * config/i386/winnt.c: Likewise.
22888 * config/ia64/ia64-c.c: Likewise.
22889 * config/ia64/ia64.c: Likewise.
22890 * config/iq2000/iq2000.c: Likewise.
22891 * config/lm32/lm32.c: Likewise.
22892 * config/m32c/m32c-pragma.c: Likewise.
22893 * config/m32c/m32c.c: Likewise.
22894 * config/m32r/m32r.c: Likewise.
22895 * config/m68k/m68k.c: Likewise.
22896 * config/mcore/mcore.c: Likewise.
22897 * config/mep/mep-pragma.c: Likewise.
22898 * config/mep/mep.c: Likewise.
22899 * config/microblaze/microblaze-c.c: Likewise.
22900 * config/microblaze/microblaze.c: Likewise.
22901 * config/mips/mips.c: Likewise.
22902 * config/mmix/mmix.c: Likewise.
22903 * config/mn10300/mn10300.c: Likewise.
22904 * config/moxie/moxie.c: Likewise.
22905 * config/msp430/msp430-c.c: Likewise.
22906 * config/msp430/msp430.c: Likewise.
22907 * config/nds32/nds32-cost.c: Likewise.
22908 * config/nds32/nds32-fp-as-gp.c: Likewise.
22909 * config/nds32/nds32-intrinsic.c: Likewise.
22910 * config/nds32/nds32-isr.c: Likewise.
22911 * config/nds32/nds32-md-auxiliary.c: Likewise.
22912 * config/nds32/nds32-memory-manipulation.c: Likewise.
22913 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22914 * config/nds32/nds32-predicates.c: Likewise.
22915 * config/nds32/nds32.c: Likewise.
22916 * config/nios2/nios2.c: Likewise.
22917 * config/nvptx/nvptx.c: Likewise.
22918 * config/pa/pa.c: Likewise.
22919 * config/pdp11/pdp11.c: Likewise.
22920 * config/rl78/rl78-c.c: Likewise.
22921 * config/rl78/rl78.c: Likewise.
22922 * config/rs6000/rs6000-c.c: Likewise.
22923 * config/rs6000/rs6000.c: Likewise.
22924 * config/rx/rx.c: Likewise.
22925 * config/s390/s390-c.c: Likewise.
22926 * config/s390/s390.c: Likewise.
22927 * config/sh/sh-c.c: Likewise.
22928 * config/sh/sh-mem.cc: Likewise.
22929 * config/sh/sh.c: Likewise.
22930 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22931 * config/sh/sh_treg_combine.cc: Likewise.
22932 * config/sol2-c.c: Likewise.
22933 * config/sol2-cxx.c: Likewise.
22934 * config/sol2-stubs.c: Likewise.
22935 * config/sol2.c: Likewise.
22936 * config/sparc/sparc-c.c: Likewise.
22937 * config/sparc/sparc.c: Likewise.
22938 * config/spu/spu-c.c: Likewise.
22939 * config/spu/spu.c: Likewise.
22940 * config/stormy16/stormy16.c: Likewise.
22941 * config/tilegx/mul-tables.c: Likewise.
22942 * config/tilegx/tilegx-c.c: Likewise.
22943 * config/tilegx/tilegx.c: Likewise.
22944 * config/tilepro/mul-tables.c: Likewise.
22945 * config/tilepro/tilepro-c.c: Likewise.
22946 * config/tilepro/tilepro.c: Likewise.
22947 * config/v850/v850-c.c: Likewise.
22948 * config/v850/v850.c: Likewise.
22949 * config/vax/vax.c: Likewise.
22950 * config/visium/visium.c: Likewise.
22951 * config/vms/vms-c.c: Likewise.
22952 * config/vms/vms.c: Likewise.
22953 * config/vxworks.c: Likewise.
22954 * config/xtensa/xtensa.c: Likewise.
22956 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
22958 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
22959 Remove operand constraints. Change operand 2 predicate to
22960 nonmemory operand. Limit const_int values to mode bitsize. Only
22961 allow const_int values less than 32 when optimizing for size.
22962 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
22963 Remove operand constraints.
22964 (*bt<mode>): Use SImode for const_int values less than 32.
22965 (regmode): Remove mode attribute.
22967 2015-07-07 Anatoly Sokolov <aesok@post.ru>
22969 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22970 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
22971 moxie_legitimate_address_p): New functions.
22972 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
22974 2015-07-07 Tom de Vries <tom@codesourcery.com>
22976 PR tree-optimization/66642
22977 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
22978 header comment. Rename split_edge variable to edge_at_split. Split
22979 exit edge to create new loop exit bb. Insert loop exit phis in new
22982 2015-07-07 Tom de Vries <tom@codesourcery.com>
22984 * tree-cfg.c (get_virtual_phi): New function.
22985 * tree-cfg.h (get_virtual_phi): Declare.
22986 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
22987 (rewrite_virtuals_into_loop_closed_ssa): New function.
22988 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
22990 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
22991 (transform_to_exit_first_loop_alt): Use
22992 rewrite_virtuals_into_loop_closed_ssa.
22994 2015-07-07 Richard Biener <rguenther@suse.de>
22996 * fold-const.c (fold_binary_loc): Move
22997 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
22998 * match.pd: ... here.
22999 Add (X * C1) % C2 -> 0 simplification pattern derived from
23002 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
23005 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
23006 change for target/65249.
23008 2015-07-07 Paulo Matos <pmatos@broadcom.com>
23010 * symtab.c (address_matters_1): Fix typo in comment above.
23011 (can_increase_alignment_p): Likewise.
23013 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23015 * function.c (free_after_compilation): Clear PROP_cfg in
23016 f->curr_properties.
23018 2015-07-07 Richard Biener <rguenther@suse.de>
23020 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
23022 (add_control_edge): Remove excessive vertical space in dumping.
23023 (process_ssa_edge_worklist): Simulate at most one statement and
23024 return whether we did. Do not simulate PHIs if they are in a
23025 BB not yet simulated.
23026 (ssa_propagate): Adjust to always drain the BB worklist whenever
23027 a BB is available there, likewise the VARYING edges list before
23028 the interesting edge list.
23030 2015-07-07 Christian Bruel <christian.bruel@st.com>
23033 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
23035 2015-07-07 Richard Biener <rguenther@suse.de>
23037 PR middle-end/66739
23038 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
23041 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
23043 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
23044 modes for operands 0 and 3. Use SImode for operands 2 and 3.
23045 Copy operand 0 to a temporary if !ext_register_operand. Remove
23046 ancient extract_bit_field workaround.
23047 (insv<mode>_1): Rename from mov<mode>_insv_1.
23048 (*insvqi): Rename from *movqi_insv_2.
23049 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
23050 for renamed insvsi_1.
23051 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
23053 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
23055 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
23056 call to nvptx_reorg_subreg.
23058 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
23060 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
23061 * graphite-dependencies.c, graphite-interchange.c,
23062 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
23063 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
23066 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
23068 * match.pd: Remove element_mode inside HONOR_*.
23069 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
23070 (~X | X -> -1, ~X ^ X -> -1): Merge.
23071 * tree.c (build_each_one_cst): New function.
23072 * tree.h (build_each_one_cst): Likewise.
23074 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
23076 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23079 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
23081 * config.gcc <mips*-*-*>: Add fused-madd.opt.
23082 * config/mips/mips.opt (mfused-madd): Remove.
23083 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
23084 * config/mips/mips.h (TARGET_MIPS8000): New.
23085 (ISA_HAS_FP_MADD4_MSUB4): Remove.
23086 (ISA_HAS_FP_MADDF_MSUBF): Remove.
23087 (ISA_HAS_FP_MADD3_MSUB3): Remove.
23088 (ISA_HAS_NMADD4_NMSUB4): Remove.
23089 (ISA_HAS_NMADD3_NMSUB3): Remove.
23090 (ISA_HAS_FUSED_MADD4): New.
23091 (ISA_HAS_UNFUSED_MADD4): New.
23092 (ISA_HAS_FUSED_MADDF): New.
23093 (ISA_HAS_FUSED_MADD3): New.
23094 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
23095 (*fma<mode>4_madd3) New.
23096 (*fma<mode>4_madd4) New.
23097 (*fma<mode>4_maddf) New.
23099 (*fms<mode>4_msub3) New.
23100 (*fms<mode>4_msub4) New.
23102 (*fnma<mode>4_nmadd3) New.
23103 (*fnma<mode>4_nmadd4) New.
23105 (*fnms<mode>4_nmsub3) New.
23106 (*fnms<mode>4_nmsub4) New.
23107 (*madd4<mode>) Modify to be unfused only.
23108 (*msub4<mode>) Modify to be unfused only.
23109 (*nmadd4<mode>) Modify to be unfused only.
23110 (*nmsub4<mode>) Modify to be unfused only.
23111 (*madd3<mode>) Remove.
23112 (*msub3<mode>) Remove.
23113 (*nmadd3<mode>) Remove.
23114 (*nmsub3<mode>) Remove.
23115 (*nmadd3<mode>_fastmath) Remove.
23116 (*nmsub3<mode>_fastmath) Remove.
23117 (*nmadd4<mode>_fastmath) Update condition.
23118 (*nmsub4<mode>_fastmath) Update condition.
23120 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
23123 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
23124 alignment attribute, exploring one level down for records and arrays.
23126 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
23128 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
23129 modes for operands 0 and 1. Use SImode for operands 2 and 3.
23130 Copy operand 1 to a temporary if !ext_register_operand. Remove
23131 ancient extract_bit_field workaround.
23132 (*extv<mode>): Rename from *mov<mode>_extv_1.
23133 (*extvqi): Rename from *movqi_extv_1.
23134 (extzv<mode>): Rename from extzv. Use SWI248 modes for
23135 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
23136 to a temporary if !ext_register_operand. Remove ancient
23137 extract_bit_field workaround.
23138 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
23139 (*extzvqi): Rename from *movqi_extzv_2.
23140 (*testqi_ext_3): Remove modes from const_int_operand predicated
23141 operands. Add "n" constraint.
23142 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
23143 operand. Add "J" constraint.
23144 (*btsq, *btrq, *btcq peephole2s): Remove mode from
23145 const_0_to_63 predicated operand.
23146 (regmode): New insn attribute.
23147 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
23148 to nonmemory_operand. Use regmode insn attribute.
23149 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
23150 (*jcc_bt<mode>_mask): Remove mode from operand 3.
23151 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
23152 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
23153 operands. Use "N" constraint instead of "n".
23155 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
23157 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
23159 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
23162 * config/i386/i386.c (iamcu_cost): New.
23163 (m_IAMCU): Likewise.
23164 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
23165 (processor_target_table): Add an entry for "iamcu".
23166 (processor_alias_table): Likewise.
23167 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
23168 (ix86_adjust_cost): Likewise.
23169 (ia32_multipass_dfa_lookahead): Likewise.
23170 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
23171 * config/i386/x86-tune.def: Updated for m_IAMCU.
23173 2015-07-06 Richard Biener <rguenther@suse.de>
23175 PR tree-optimization/66772
23176 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
23177 values are available in the PHI node BB when there are
23178 still unexecutable edges.
23180 2015-07-06 Richard Biener <rguenther@suse.de>
23182 PR tree-optimization/66767
23183 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
23184 Make sure to build the alignment test on a SSA name without
23185 final alignment info valid only if the alignment test
23188 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
23191 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
23192 loop start when inserting LSETUP.
23194 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
23197 * config/i386/i386.c (ix86_option_override_internal): Allow
23198 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
23200 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23202 * read-md.c (decimal_string): Rename to ...
23203 (md_decimal_string): ... this.
23204 (handle_enum): Reflect this.
23206 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
23209 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
23211 2015-07-06 Richard Biener <rguenther@suse.de>
23213 PR middle-end/66759
23214 * match.pd: Add missing constraint of y to REAL_CST in
23215 REAL_CST - x CMP y to y - CST CMP x simplification.
23217 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
23219 PR tree-optimization/66757
23220 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
23222 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
23223 Sandra Loosemore <sandra@codesourcery.com>
23225 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
23226 Delete extern declaration.
23227 (gprel_constant_p): Add extern declaration.
23228 * config/nios2/constraints.md ("S"): Use gprel_constant_p
23229 instead of nios2_symbol_ref_in_small_data_p.
23230 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
23231 (nios2_symbol_ref_in_small_data_p): Make static.
23232 (gprel_constant_p): Make non-static.
23234 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
23236 * doc/fragments.texi (Target Fragment): Convert debian.org
23238 * doc/install.texi (Configuration): Ditto.
23240 2015-07-05 Jakub Jelinek <jakub@redhat.com>
23242 PR tree-optimization/66718
23243 * tree-vect-stmts.c (vectorizable_call): Replace uses of
23244 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
23246 PR tree-optimization/66718
23247 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
23248 vectorizable_load, vectorizable_condition): Move vectype,
23249 nunits, ncopies computation after checking what kind of statement
23252 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23254 * target-insns.def (extv, extzv, insv): New targetm instruction
23256 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
23258 * recog.c (simplify_while_replacing): Likewise.
23260 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23262 * target-insns.def (doloop_begin, doloop_end): New targetm
23263 instruction patterns.
23264 * loop-init.c: Include target.h.
23265 (pass_loop2::gate): Use the new targetm patterns instead of
23266 HAVE_*/gen_* interface.
23267 (pass_rtl_doloop::gate): Likewise.
23268 (pass_rtl_doloop::execute): Remove preprocessor condition.
23269 * hw-doloop.c: Build unconditionally.
23270 * loop-doloop.c: Likewise.
23271 (doloop_optimize): Use the new targetm patterns instead of
23272 HAVE_*/gen_* interface.
23273 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
23274 * modulo-sched.c (doloop_register_get): Likewise.
23276 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23278 * target-insns.def (clear_cache): New targetm instruction pattern.
23279 * builtins.c (expand_builtin___clear_cache): Use it instead of
23280 HAVE_*/gen_* interface.
23282 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23284 * target-insns.def (allocate_stack, check_stack, probe_stack)
23285 (probe_stack_address, split_stack_prologue, split_stack_space_check):
23286 New targetm instruction patterns.
23287 * explow.c (allocate_dynamic_stack_space): Use them instead of
23288 HAVE_*/gen_* interface.
23289 (emit_stack_probe): Likewise.
23290 (probe_stack_range): Likewise.
23291 * function.c (thread_prologue_and_epilogue_insns): Likewise.
23293 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23295 * target-insns.def (stack_protect_set, stack_protect_test): New
23296 targetm instruction patterns.
23297 * cfgexpand.c (stack_protect_prologue): Use them instead of
23298 HAVE_*/gen_* interface.
23299 * function.c (stack_protect_epilogue): Likewise.
23301 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23303 * expr.h (gen_move_insn_uncast): Delete.
23304 * expr.c (gen_move_insn_uncast): Delete.
23306 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23308 * target-insns.def (restore_stack_block, restore_stack_function)
23309 (restore_stack_nonlocal, save_stack_block, save_stack_function)
23310 (save_stack_nonlocal): New targetm instruction patterns.
23311 * builtins.c (expand_builtin_apply): Use them instead of
23312 HAVE_*/gen_* interface.
23313 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
23315 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23317 * target-insns.def (trap): New targetm instruction pattern.
23318 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
23320 * explow.c (allocate_dynamic_stack_space): Likewise.
23321 * ifcvt.c (find_if_header): Likewise.
23323 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23325 * target-insns.def (prefetch): New targetm instruction pattern.
23326 * tree-ssa-loop-prefetch.c: Include targeth.
23327 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
23328 of HAVE_*/gen_* interface.
23329 * builtins.c (expand_builtin_prefetch): Likewise.
23330 * toplev.c (process_options): Likewise.
23332 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23334 * target-insns.def (untyped_call, untyped_return): New targetm
23335 instruction patterns.
23336 * builtins.c (expand_builtin_apply): Use them instead of
23337 HAVE_*/gen_* interface.
23338 (result_vector): Define unconditionally.
23340 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23342 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
23343 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
23344 (nonlocal_goto_receiver): New targetm instruction patterns.
23345 * builtins.c (expand_builtin_setjmp_setup): Use them instead
23346 of HAVE_*/gen_* interface.
23347 (expand_builtin_setjmp_receiver): Likewise.
23348 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
23349 * except.c (expand_dw2_landing_pad_for_region): Likewise.
23351 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23353 * target.def: Add code_for_* hooks.
23354 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
23355 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
23356 * target-insns.def (casesi, tablejump): New targetm instruction
23358 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
23359 (do_tablejump): Likewise.
23360 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
23361 (expand_sjlj_dispatch_table): Likewise.
23362 * targhooks.c (default_case_values_threshold): Likewise.
23364 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
23366 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
23367 Use rtx_insn * instead of rtx.
23368 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
23369 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
23370 (nios2_call_tls_get_addr): Likewise.
23371 (nios2_emit_expensive_div): Likewise.
23372 (nios2_emit_move_sequence): Change return type to bool.
23373 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
23374 Change return type to bool.
23376 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23379 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
23381 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
23384 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
23385 of register_operand. Remove constraint.
23387 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
23389 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
23390 the first argument.
23392 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
23394 * attribs.c (decl_attributes): Guard inform with the return value
23395 of the preceding warning.
23397 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
23399 * doc/invoke.texi (moverride): Move to correct section.
23401 2015-07-03 Richard Biener <rguenther@suse.de>
23403 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
23405 (dt_operand::gen_gimple_expr): After valueizing operands
23406 re-canonicalize operand order for commutative tree codes.
23408 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
23411 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
23413 (__crc32w): Likewise.
23414 (__crc32d): Likewise.
23415 (__rdpmc): Likewise.
23416 (__rdtscp): Likewise.
23417 (_rdpmc): Likewise.
23418 (_rdtscp): Likewise.
23419 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
23422 2015-07-03 Richard Biener <rguenther@suse.de>
23424 * fold-const.c (fold_mathfn_compare): Remove.
23425 (fold_inf_compare): Likewise.
23426 (fold_comparison): Move floating point comparison simplifications...
23427 * match.pd: ... to patterns here. Introduce simple_comparisons
23428 operator list and use it for patterns formerly in fold_comparison.
23430 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
23432 PR tree-optimization/66119
23433 * toplev.c (process_options): Don't set up default values for
23434 the sra_max_scalarization_size_{speed,size} parameters.
23435 * tree-sra (analyze_all_variable_accesses): If no values
23436 have been set for the sra_max_scalarization_size_{speed,size}
23437 parameters, call get_move_ratio to get target defaults.
23439 2015-07-03 Richard Biener <rguenther@suse.de>
23441 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
23442 * match.pd: ... here.
23444 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
23447 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
23448 is not actually the default on FreeBSD.
23450 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23452 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
23454 (CMPGE_8HI): Likewise.
23455 (CMPGE_4SI): Likewise.
23456 (CMPGE_2DI): Likewise.
23457 (CMPGE_U16QI): Likewise.
23458 (CMPGE_U8HI): Likewise.
23459 (CMPGE_U4SI): Likewise.
23460 (CMPGE_U2DI): Likewise.
23461 (CMPLE_16QI): Likewise.
23462 (CMPLE_8HI): Likewise.
23463 (CMPLE_4SI): Likewise.
23464 (CMPLE_2DI): Likewise.
23465 (CMPLE_U16QI): Likewise.
23466 (CMPLE_U8HI): Likewise.
23467 (CMPLE_U4SI): Likewise.
23468 (CMPLE_U2DI): Likewise.
23469 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23470 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
23471 ALTIVEC_BUILTIN_VEC_CMPLE.
23472 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
23473 floating-point vector modes.
23474 (vector_nlt<mode>): New define_expand.
23475 (vector_nltu<mode>): Likewise.
23476 (vector_ngt<mode>): Likewise.
23477 (vector_ngtu<mode>): Likewise.
23479 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
23481 PR rtl-optimization/66706
23482 * combine.c (make_compound_operation): If an AND of SUBREG of
23483 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
23485 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
23487 * tree-pass.h (make_pass_ch_vect): New.
23488 * passes.def: Add pass_ch_vect just before pass_if_conversion.
23490 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
23491 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
23492 make_pass_ch_vect): New.
23493 (pass_ch): Extend ch_base.
23495 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
23496 (ch_base::copy_headers): ...here.
23498 2015-07-02 Richard Biener <rguenther@suse.de>
23500 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
23501 * fold-const.c (get_pointer_modulus_and_residue): Remove.
23502 (fold_binary_loc): Implement (T)ptr & CST in terms of
23503 get_pointer_alignment_1.
23504 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
23505 Make sure to build the alignment test on a SSA name without
23506 final alignment info valid only after the prologue.
23508 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
23510 * config/cris/cris.md ("epilogue"): Remove condition.
23511 ("prologue"): Ditto.
23513 2015-07-02 Richard Biener <rguenther@suse.de>
23515 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
23516 parameter to record a condition that is false.
23517 (record_conditions): When recording an extra NE_EXPR that is
23518 true also record a EQ_EXPR that is false.
23520 2015-07-02 Bin Cheng <bin.cheng@arm.com>
23522 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
23523 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
23524 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
23525 (set_iv, find_interesting_uses_address, add_candidate_1): New
23526 argument to alloc_iv.
23527 (find_interesting_uses_op, find_interesting_uses_cond): Don't
23528 duplicate struct iv.
23529 (free_loop_data): Don't free struct iv explicitly.
23530 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
23532 2015-07-01 DJ Delorie <dj@redhat.com>
23534 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
23536 (SUPPORTS_DISCRIMINATOR): Define.
23538 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23541 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
23542 there are no CALLs in the same pattern.
23544 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
23546 PR rtl-optimization/61047
23547 * rtlanal.c (get_initial_register_offset): New function.
23548 (rtx_addr_can_trap_p_1): Check offsets of stack references.
23550 2015-07-01 Richard Biener <rguenther@suse.de>
23552 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
23553 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
23554 ~X CMP C -> X CMP' ~C to ...
23555 * match.pd: ... patterns here.
23557 2015-07-01 Nick Clifton <nickc@redhat.com>
23559 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
23560 a 16-bit value into a 20-bit memory slot.
23562 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23564 * doc/sourcebuild.texi (AArch64-specific attributes): Document
23565 "aarch64_tiny", "aarch64_small", "aarch64_large",
23566 "aarch64_little_endian", "aarch64_big_endian".
23568 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23570 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
23571 Document "aarch64_small_fpic".
23573 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23575 * configure.ac: Add check for aarch64 assembler -fpic relocation
23577 * configure: Regenerate.
23578 * config.in: Regenerate.
23579 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
23580 to -fPIC if not support of -fpic relocation modifier in assembler.
23582 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23585 * rtl.c (classify_insn): Handle returns in PARALLELs.
23587 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
23589 PR middle-end/66633
23590 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
23591 to true if the function is nested and if not optimizing.
23592 (convert_local_omp_clauses): Initialize need_frame to true if the
23593 function contains nested functions and if not optimizing.
23595 2015-07-01 Richard Biener <rguenther@suse.de>
23597 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
23598 (X & Y) ^ Y -> ~X & Y transforms to ...
23599 * match.pd: ... here.
23601 2015-07-01 Richard Biener <rguenther@suse.de>
23603 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
23604 of converts to avoid uninteresting noise from the conversion
23605 simplifying patterns.
23607 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
23609 * config/c6x/c6x.c (try_rename_operands): Do not depend on
23610 gcc_assert evaluating its argument for side-effect.
23612 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
23615 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
23618 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
23620 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
23621 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
23622 (hash_scc): Add this_ref_p and ref_p parameters and pass them
23623 to the inner DFS walk.
23625 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23627 * target-insns.def (jump): New targetm instruction pattern.
23628 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
23629 instead of gen_jump.
23630 (fix_up_crossing_landing_pad): Likewise.
23631 (add_labels_and_missing_jumps): Likewise.
23632 (fix_crossing_conditional_branches): Likewise.
23633 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23634 (force_nonfallthru_and_redirect): Likewise.
23635 * cse.c (cse_insn): Likewise.
23636 * expmed.c (expand_divmod): Likewise.
23637 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
23638 * haifa-sched.c (init_before_recovery): Likewise.
23639 (sched_create_recovery_edges): Likewise.
23640 * ifcvt.c (find_cond_trap): Likewise.
23641 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
23642 (expand_float, expand_fix): Likewise.
23643 * stmt.c (emit_jump): Likewise.
23645 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23647 * defaults.h (HAVE_load_multiple, gen_load_multiple)
23648 (HAVE_store_multiple, gen_store_multiple): Delete.
23649 * target-insns.def (load_multiple, store_multiple): New targetm
23650 instruction patterns.
23651 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
23652 of HAVE_*/gen_* interface.
23654 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23656 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
23657 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
23658 (gen_mem_signal_fence): Delete.
23659 * target-insns.def (mem_signal_fence, mem_thread_fence)
23660 (memory_barrier): New targetm instruction patterns.
23661 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
23663 (expand_mem_signal_fence): Likewise.
23665 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23667 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
23668 * target-insns.def (epilogue, prologue, sibcall_prologue): New
23669 targetm instruction patterns.
23670 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
23672 * calls.c (expand_call): Likewise.
23673 * cfgrtl.c (cfg_layout_finalize): Likewise.
23674 * df-scan.c (df_get_entry_block_def_set): Likewise.
23675 (df_get_exit_block_use_set): Likewise.
23676 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
23677 * final.c (final_start_function): Likewise.
23678 * function.c (thread_prologue_and_epilogue_insns): Likewise.
23679 (reposition_prologue_and_epilogue_notes): Likewise.
23680 * reorg.c (find_end_label): Likewise.
23681 * toplev.c (process_options): Likewise.
23683 2015-06-30 David Malcolm <dmalcolm@redhat.com>
23685 * typed-splay-tree.h: New file.
23687 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
23690 * lra-int.h (lra_substitute_pseudo): Add a parameter.
23691 (lra_substitute_pseudo_within_insn): Ditto.
23692 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
23694 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
23695 to lra_substitute_pseudo.
23696 * lra-lives.c (process_bb_lives): Add an argument to
23697 lra_substitute_pseudo_within_insn call.
23698 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
23699 argument to lra_substitute_pseudo and
23700 lra_substitute_pseudo_within_insn calls.
23701 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
23703 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
23705 * configure: Regenerated.
23707 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
23709 * config.gcc: Support i[34567]86-*-elfiamcu target.
23710 * config/i386/iamcu.h: New.
23711 * config/i386/i386.opt: Add -miamcu.
23712 * doc/invoke.texi: Document -miamcu.
23713 * common/config/i386/i386-common.c (ix86_handle_option): Turn
23714 off x87/MMX/SSE/AVX codegen for -miamcu.
23715 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23716 __iamcu/__iamcu__ for -miamcu.
23717 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
23718 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
23719 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
23720 * config/i386/i386.c (ix86_option_override_internal): Ignore and
23721 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
23722 MCU by default. Default long double to 64-bit for Intel MCU.
23723 Turn on -freg-struct-return for Intel MCU. Issue an error when
23724 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
23726 (function_arg_advance_32): Pass value whose size is no larger
23727 than 8 bytes in registers for Intel MCU.
23728 (function_arg_32): Likewise.
23729 (ix86_return_in_memory): Return value whose size is no larger
23730 than 8 bytes in registers for Intel MCU.
23731 (iamcu_alignment): New function.
23732 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
23734 (ix86_local_alignment): Don't increase alignment for Intel MCU.
23735 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
23738 2015-06-30 Marek Polacek <polacek@redhat.com>
23740 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
23741 both operands of the resulting expression.
23743 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
23744 the final expression with the operand's type and then convert
23745 it to the type of the expression.
23747 2015-06-30 Richard Biener <rguenther@suse.de>
23749 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
23750 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
23751 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
23752 * match.pd: ... to patterns here.
23754 2015-06-30 Richard Biener <rguenther@suse.de>
23756 PR tree-optimization/66704
23757 * tree-vect-data-refs.c (vect_setup_realignment): Use
23758 make_ssa_name for non-SSA name source.
23760 2015-06-30 Jakub Jelinek <jakub@redhat.com>
23762 PR middle-end/66702
23763 * omp-low.c (simd_clone_adjust): Handle addressable linear
23764 or uniform parameters or non-gimple type uniform parameters.
23766 2015-06-30 Richard Biener <rguenther@suse.de>
23768 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
23769 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
23770 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
23771 * match.pd: ... here.
23772 Add a few cases of A - B -> A + (-B) when B "easily" negates.
23773 Move (x & y) | x -> x and friends before
23774 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
23776 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
23778 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
23779 -mfix-ut699 is not specified.
23780 (leon3_load): Rename into...
23781 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
23784 2015-06-30 Marek Polacek <polacek@redhat.com>
23786 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
23787 * match.pd: ... here.
23789 2015-06-30 Richard Biener <rguenther@suse.de>
23791 * target-insns.def (canonicalize_funcptr_for_compare): Add.
23792 * fold-const.c (build_range_check): Replace uses of
23793 HAVE_canonicalize_funcptr_for_compare.
23794 (fold_widened_comparison): Likewise.
23795 (fold_sign_changed_comparison): Likewise.
23796 * dojump.c: Include "target.h".
23797 (do_compare_and_jump): Replace uses of
23798 HAVE_canonicalize_funcptr_for_compare and
23799 gen_canonicalize_funcptr_for_compare.
23800 * expr.c (do_store_flag): Likewise.
23802 2015-06-30 Tom de Vries <tom@codesourcery.com>
23804 PR tree-optimization/66652
23805 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
23806 max_loop_iterations to determine if nit + 1 overflows.
23808 2015-06-30 Richard Biener <rguenther@suse.de>
23810 * tree-vrp.c (register_edge_assert_for_2): Also register
23811 asserts for dominating conversion results.
23813 2015-06-30 Bin Cheng <bin.cheng@arm.com>
23815 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
23816 field in struct iv.
23818 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
23821 * configure.ac: Fix filds and fildq test for 64-bit.
23822 * configure: Regenerated.
23824 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
23826 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
23827 (nvptx_reorg): Here. Keep the non-subreg pieces.
23829 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
23831 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
23832 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23834 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
23836 * config/i386/i386.md (*jcc_1): Use %! in asm template.
23837 Set attribute "length_nobnd" instead of "length".
23840 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
23842 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
23844 * config/nios2/nios2.c (nios2_delegitimize_address): Make
23845 assert less restrictive.
23847 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
23850 * cgraphunit.c (cgraph_node::finalize_function): Do not call
23851 do_warn_unused_parameter.
23852 * function.c (do_warn_unused_parameter): Move from here.
23853 * function.h (do_warn_unused_parameter): Do not declare.
23855 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23858 * gcc.target/arm/armv-sync-comp-swap.c: New.
23859 * gcc.target/arm/armv-sync-op-acquire.c: New.
23860 * gcc.target/arm/armv-sync-op-full.c: New.
23861 * gcc.target/arm/armv-sync-op-release.c: New.
23863 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23866 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
23867 initial acquire barrier with final barrier.
23869 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23872 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
23873 initial acquire barrier with final barrier.
23875 2015-06-29 Richard Henderson <rth@redhat.com>
23877 * config/i386/constraints.md (Bf): New constraint.
23878 * config/i386/i386-c.c (ix86_target_macros): Define
23879 __GCC_ASM_FLAG_OUTPUTS__.
23880 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
23882 * doc/extend.texi (FlagOutputOperands): Document them.
23884 2015-06-29 Jiong Wang <jiong.wang@arm.com>
23886 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
23887 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
23889 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
23890 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
23891 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
23892 (aarch64_symbol_context): Ditto.
23893 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
23894 and use new pattern name.
23895 (aarch64_expand_mov_immediate): Ditto.
23896 (aarch64_print_operand): Ditto.
23897 (aarch64_classify_tls_symbol): Ditto.
23899 2015-06-29 Marek Polacek <polacek@redhat.com>
23900 Marc Glisse <marc.glisse@inria.fr>
23902 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
23903 * match.pd: ... pattern here.
23905 2015-06-29 Tom de Vries <tom@codesourcery.com>
23907 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
23908 function structure.
23910 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23912 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
23913 feature description, split out the native option, add a link to
23914 the feature documentation, rearrange and slightly rewrite text.
23915 (Aarch64 options, -mcpu): Likewise.
23916 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
23917 +rdma implies Adv. SIMD.
23919 2015-06-29 Marek Polacek <polacek@redhat.com>
23922 * function.c (stack_protect_epilogue): Remove a cast to int.
23923 * doc/invoke.texi: Update -Wswitch-bool description.
23925 2015-06-29 Richard Biener <rguenther@suse.de>
23927 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
23928 * fold-const.c (fold_binary_loc): Move &A - &B simplification
23929 via ptr_difference_const ...
23930 * match.pd: ... here.
23931 When matching (X ^ Y) == Y also match with swapped operands.
23933 2015-06-29 Richard Biener <rguenther@suse.de>
23935 * lto-streamer.h (LTO_major_version): Bump to 5.
23937 2015-06-29 Richard Biener <rguenther@suse.de>
23939 PR tree-optimization/66677
23940 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
23941 STMT_VINFO_VEC_STMT clobbering less strict.
23943 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
23945 PR middle-end/64130
23946 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
23947 division, compute max and min when value ranges for dividend and
23948 divisor are available.
23950 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
23951 Sandra Loosemore <sandra@codesourcery.com>
23953 * regrename.h (regrename_do_replace): Change to return bool.
23954 * regrename.c (rename_chains): Check return value of
23955 regname_do_replace.
23956 (regrename_do_replace): Re-validate the modified insns and
23957 return bool status.
23958 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
23959 Update to match rename_chains changes.
23960 * config/c6x/c6x.c (try_rename_operands): Assert that
23961 regrename_do_replace returns true.
23963 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
23965 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
23966 operand 2 here. Use copy_addr_to_reg to copy non-index
23967 register operand 2 to a temporary.
23968 (<mode>_stx): Ditto for operand 1.
23969 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
23970 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
23971 (ix86_store_bounds): Ditto.
23973 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
23975 * print-tree.c (print_node) [TREE_VEC]: Print its length.
23977 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
23979 * gimple.c (gimple_call_set_fndecl): Remove.
23980 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
23981 build1_loc directly instead of build_fold_addr_expr_loc.
23983 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
23985 * hash-map.h (hash_map::traverse): Use the definition of the
23986 Key typedef rather than the typedef itself.
23988 2015-06-26 Martin Jambor <mjambor@suse.cz>
23991 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
23992 NULL instead of calling dump_enabled_p.
23994 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23996 * config/aarch64/aarch64.opt: (override): New.
23997 * doc/invoke.texi (override): Document.
23998 * config/aarch64/aarch64.c (aarch64_flag_desc): New
23999 (aarch64_fusible_pairs): Likewise.
24000 (aarch64_tuning_flags): Likewise.
24001 (aarch64_tuning_override_function): Likewise.
24002 (aarch64_tuning_override_functions): Likewise.
24003 (aarch64_parse_one_option_token): Likewise.
24004 (aarch64_parse_boolean_options): Likewise.
24005 (aarch64_parse_fuse_string): Likewise.
24006 (aarch64_parse_tune_string): Likewise.
24007 (aarch64_parse_one_override_token): Likewise.
24008 (aarch64_parse_override_string): Likewise.
24009 (aarch64_override_options): Parse the -override string if it
24012 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
24014 * config/aarch64/aarch64-protos.h (tune_params): Remove
24015 const from members.
24016 (aarch64_tune_params): Remove const, change to no longer be
24018 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
24019 change to no longer be a pointer, initialize to generic_tunings.
24020 (aarch64_min_divisions_for_recip_mul): Change dereference of
24021 aarch64_tune_params to member access.
24022 (aarch64_reassociation_width): Likewise.
24023 (aarch64_rtx_mult_cost): Likewise.
24024 (aarch64_address_cost): Likewise.
24025 (aarch64_branch_cost): Likewise.
24026 (aarch64_rtx_costs): Likewise.
24027 (aarch64_register_move_cost): Likewise.
24028 (aarch64_memory_move_cost): Likewise.
24029 (aarch64_sched_issue_rate): Likewise.
24030 (aarch64_builtin_vectorization_cost): Likewise.
24031 (aarch64_override_options): Take a copy of the selected tuning
24032 struct in to aarch64_tune_params, rather than just setting
24033 a pointer, change dereferences of aarch64_tune_params to member
24035 (aarch64_override_options_after_change): Change dereferences of
24036 aarch64_tune_params to member access.
24037 (aarch64_macro_fusion_p): Likewise.
24038 (aarch_macro_fusion_pair_p): Likewise.
24039 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
24041 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
24043 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
24044 (aarch64_tune_flags): Likewise.
24045 (AARCH64_TUNE_FMA_STEERING): Likewise.
24046 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
24047 to AARCH64_FL_USE_FMA_STEERING_PASS.
24048 (cortex-a57.cortex-a53): Likewise.
24049 (cortex-a72): Use cortexa72_tunings.
24050 (cortex-a72.cortex-a53): Likewise.
24051 (exynos-m1): Likewise.
24052 * config/aarch64/aarch64-protos.h (tune_params): Add
24053 a field: extra_tuning_flags.
24054 * config/aarch64/aarch64-tuning-flags.def: New.
24055 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
24056 (aarch64_extra_tuning_flags): Likewise.
24057 (aarch64_tune_params): Declare here.
24058 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
24059 (cortexa53_tunings): Likewise.
24060 (cortexa57_tunings): Likewise.
24061 (thunderx_tunings): Likewise.
24062 (xgene1_tunings): Likewise.
24063 (cortexa72_tunings): New.
24064 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
24065 (gate): Check against aarch64_tune_params.
24066 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
24069 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
24071 * config/aarch64/aarch64-fusion-pairs.def: New.
24072 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
24073 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
24074 aarch64_fusion_pairs.
24075 (AARCH64_FUSE_MOV_MOVK): Likewise.
24076 (AARCH64_FUSE_ADRP_ADD): Likewise.
24077 (AARCH64_FUSE_MOVK_MOVK): Likewise.
24078 (AARCH64_FUSE_ADRP_LDR): Likewise.
24079 (AARCH64_FUSE_CMP_BRANCH): Likewise.
24081 2015-06-26 Jiong Wang <jiong.wang@arm.com>
24083 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
24084 SYMBOL_SMALL_GOT_28K.
24085 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
24086 relocation modifiers.
24087 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
24088 (ldr_got_small_28k_<mode>): New.
24089 (ldr_got_small_28k_sidi): New.
24090 * config/aarch64/iterators.md (got_modifier): New mode iterator.
24091 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
24092 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
24093 SYMBOL_SMALL_GOT_28K.
24094 (aarch64_rtx_costs): Add costs for new instruction sequences.
24095 (initialize_aarch64_code_model): Initialize new model.
24096 (aarch64_classify_symbol): Recognize new model and new symbol classification.
24097 (aarch64_asm_preferred_eh_data_format): Support new model.
24098 (aarch64_load_symref_appropriately): Generate new instruction
24099 sequences for -fpic.
24100 (TARGET_USE_PSEUDO_PIC_REG): New definition.
24101 (aarch64_use_pseudo_pic_reg): New function.
24103 2015-06-26 Jiong Wang <jiong.wang@arm.com>
24105 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
24106 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
24107 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
24108 (aarch64_expand_mov_immediate): Ditto.
24109 (aarch64_print_operand): Ditto.
24110 (aarch64_classify_symbol): Ditto.
24112 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
24114 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
24116 2015-06-26 Bin Cheng <bin.cheng@arm.com>
24119 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
24120 assertion failed. Remove assertion itself.
24122 2015-06-26 Richard Biener <rguenther@suse.de>
24124 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
24125 and -A CMP CST -> A CMP -CST which is redundant with a pattern
24127 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
24128 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
24129 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
24130 * match.pd: ... patterns here.
24132 2015-06-26 Marek Polacek <polacek@redhat.com>
24134 * match.pd ((x | y) & ~(x & y) -> x ^ y,
24135 (x | y) & (~x ^ y) -> x & y): New patterns.
24137 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
24139 * rtl.h (emit): Add an optional boolean parameter to control
24140 whether barriers are emitted.
24141 * emit-rtl.c (emit): Likewise.
24142 * gensupport.c (get_emit_function): Return null rather than "emit".
24143 * genemit.c (gen_emit_seq): Handle the null return value.
24144 Don't emit barriers after the final instruction in the sequence.
24145 * gentarget-def.c (main): Don't emit barriers after the instruction.
24147 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24149 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
24150 TARGET_UNIFIED_ASM.
24152 2015-06-26 Richard Biener <rguenther@suse.de>
24154 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
24156 2015-06-26 Richard Biener <rguenther@suse.de>
24158 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
24159 irrespective on whether the inner operation has a single use
24160 of both off are constant.
24162 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
24163 Segher Boessenkool <segher@kernel.crashing.org>
24166 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
24167 before doing PUT_MODE or PUT_CODE on operands to avoid
24168 in-place RTX modification.
24170 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
24172 * gentarget-def.c (def_target_insn): Cast return of strtol to
24175 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24177 * gimple.h (gimple_call_set_fn): Move inline function.
24178 * gimple.c (gimple_call_set_fn): Relocate here.
24180 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
24184 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
24185 the replacement insn will work.
24187 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
24189 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
24192 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24194 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
24195 * cgraph.h: Include ipa-ref.h and plugin-api.h.
24196 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
24197 (symtab_node::address_can_be_compared_p): Move function.
24198 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
24200 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
24201 * auto-profile.c: Likewise.
24202 * bb-reorder.c: Likewise.
24203 * builtins.c: Likewise.
24204 * calls.c: Likewise.
24205 * cfgexpand.c: Likewise.
24206 * cgraphbuild.c: Likewise.
24207 * cgraphclones.c: Likewise.
24208 * cgraphunit.c: Likewise.
24209 * combine.c: Likewise.
24210 * coverage.c: Likewise.
24211 * data-streamer-in.c: Likewise.
24212 * data-streamer-out.c: Likewise.
24213 * data-streamer.c: Likewise.
24214 * dbxout.c: Likewise.
24215 * dwarf2out.c: Likewise.
24216 * except.c: Likewise.
24217 * expr.c: Likewise.
24218 * final.c: Likewise.
24219 * fold-const.c: Likewise.
24220 * ggc-page.c: Likewise.
24221 * gimple-fold.c: Likewise.
24222 * gimple-iterator.c: Likewise.
24223 * gimple-pretty-print.c: Likewise.
24224 * gimple-streamer-in.c: Likewise.
24225 * gimple-streamer-out.c: Likewise.
24226 * gimple.c: Likewise.
24227 * gimplify.c: Likewise.
24228 * ipa-chkp.c: Likewise.
24229 * ipa-comdats.c: Likewise.
24230 * ipa-cp.c: Likewise.
24231 * ipa-devirt.c: Likewise.
24232 * ipa-icf-gimple.c: Likewise.
24233 * ipa-icf.c: Likewise.
24234 * ipa-inline-analysis.c: Likewise.
24235 * ipa-inline-transform.c: Likewise.
24236 * ipa-inline.c: Likewise.
24237 * ipa-polymorphic-call.c: Likewise.
24238 * ipa-profile.c: Likewise.
24239 * ipa-prop.c: Likewise.
24240 * ipa-pure-const.c: Likewise.
24241 * ipa-ref.c: Likewise.
24242 * ipa-reference.c: Likewise.
24243 * ipa-split.c: Likewise.
24244 * ipa-utils.c: Likewise.
24245 * ipa-visibility.c: Likewise.
24247 * langhooks.c: Likewise.
24248 * lto-cgraph.c: Likewise.
24249 * lto-compress.c: Likewise.
24250 * lto-opts.c: Likewise.
24251 * lto-section-in.c: Likewise.
24252 * lto-section-out.c: Likewise.
24253 * lto-streamer-in.c: Likewise.
24254 * lto-streamer-out.c: Likewise.
24255 * lto-streamer.c: Likewise.
24256 * omp-low.c: Likewise.
24257 * opts-global.c: Likewise.
24258 * passes.c: Likewise.
24259 * predict.c: Likewise.
24260 * print-tree.c: Likewise.
24261 * profile.c: Likewise.
24263 * sanopt.c: Likewise.
24264 * stor-layout.c: Likewise.
24265 * symtab.c: Likewise.
24266 * toplev.c: Likewise.
24267 * trans-mem.c: Likewise.
24268 * tree-cfg.c: Likewise.
24269 * tree-chkp.c: Likewise.
24270 * tree-eh.c: Likewise.
24271 * tree-emutls.c: Likewise.
24272 * tree-inline.c: Likewise.
24273 * tree-nested.c: Likewise.
24274 * tree-parloops.c: Likewise.
24275 * tree-pretty-print.c: Likewise.
24276 * tree-profile.c: Likewise.
24277 * tree-sra.c: Likewise.
24278 * tree-ssa-alias.c: Likewise.
24279 * tree-ssa-live.c: Likewise.
24280 * tree-ssa-loop-ivcanon.c: Likewise.
24281 * tree-ssa-loop-ivopts.c: Likewise.
24282 * tree-ssa-pre.c: Likewise.
24283 * tree-ssa-sccvn.c: Likewise.
24284 * tree-ssa-strlen.c: Likewise.
24285 * tree-ssa-structalias.c: Likewise.
24286 * tree-streamer-in.c: Likewise.
24287 * tree-streamer-out.c: Likewise.
24288 * tree-streamer.c: Likewise.
24289 * tree-switch-conversion.c: Likewise.
24290 * tree-tailcall.c: Likewise.
24291 * tree-vect-data-refs.c: Likewise.
24292 * tree-vect-stmts.c: Likewise.
24293 * tree-vectorizer.c: Likewise.
24294 * tree.c: Likewise.
24295 * tsan.c: Likewise.
24296 * ubsan.c: Likewise.
24297 * value-prof.c: Likewise.
24298 * varasm.c: Likewise.
24299 * varpool.c: Likewise.
24300 * config/arm/arm.c: Likewise.
24301 * config/bfin/bfin.c: Likewise.
24302 * config/c6x/c6x.c: Likewise.
24303 * config/cris/cris.c: Likewise.
24304 * config/darwin-c.c: Likewise.
24305 * config/darwin.c: Likewise.
24306 * config/i386/i386.c: Likewise.
24307 * config/i386/winnt.c: Likewise.
24308 * config/microblaze/microblaze.c: Likewise.
24309 * config/mips/mips.c: Likewise.
24310 * config/rs6000/rs6000.c: Likewise.
24311 * config/rx/rx.c: Likewise.
24312 * config/s390/s390.c: Likewise.
24313 * config/tilegx/mul-tables.c: Likewise.
24315 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24317 * config/aarch64/aarch64.c, config/alpha/alpha.c,
24318 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
24319 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
24320 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
24321 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24322 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24323 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24324 config/microblaze/microblaze.c, config/mips/mips.c,
24325 config/mmix/mmix.c, config/mn10300/mn10300.c,
24326 config/moxie/moxie.c, config/msp430/msp430.c,
24327 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24328 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24329 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24330 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24331 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24332 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24333 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
24334 target-def.h include.
24335 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
24337 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24339 * Makefile.in (TARGET_DEF): Add target-insns.def.
24340 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
24341 (build/gentarget-def.o): New rule.
24342 (genprogrtl): Add target-def.
24343 * target-insns.def, gentarget-def.c: New files.
24344 * target.def: Add targetm.have_* and targetm.gen_* hooks,
24345 based on the contents of target-insns.def.
24346 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
24347 (HAVE_return, gen_return): Delete.
24348 * target-def.h: Include insn-target-def.h.
24349 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
24350 instead of direct calls. Rely on them to do the appropriate assertions.
24351 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
24352 (convert_jumps_to_returns): Use targetm interface instead of
24354 (thread_prologue_and_epilogue_insns): Likewise.
24355 * reorg.c (find_end_label, dbr_schedule): Likewise.
24356 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
24357 * shrink-wrap.c (convert_to_simple_return): Likewise.
24358 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
24360 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24362 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
24363 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
24364 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
24365 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
24366 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24367 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24368 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24369 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
24370 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
24371 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24372 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24373 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24374 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24375 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24376 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24377 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
24380 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24382 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
24383 (unbounded_int_hashmap_traits::key_type): Likewise.
24384 * hash-map.h (hash_map): Get the key type from the traits.
24385 * hash-traits.h (default_hash_traits): By default, inherit from the
24386 template parameter.
24387 * alias.c (alias_set_traits): Delete.
24388 (alias_set_entry_d::children): Use alias_set_hash as the first
24389 template parameter.
24390 (record_alias_subset): Update accordingly.
24391 * except.c (tree_hash_traits): Delete.
24392 (type_to_runtime_map): Use tree_hash as the first template parameter.
24393 (init_eh): Update accordingly.
24394 * genmatch.c (capture_id_map_hasher): Delete.
24395 (cid_map_t): Use nofree_string_hash as first template parameter.
24396 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
24397 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
24398 Use symbol_compare_hash as the first template parameter in
24399 subdivide_hash_map.
24400 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
24401 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
24402 template parameter.
24403 * passes.c (pass_registry_hasher): Delete.
24404 (name_to_pass_map): Use nofree_string_hash as the first template
24406 (register_pass_name): Update accordingly.
24407 * sanopt.c (sanopt_tree_map_traits): Delete.
24408 (sanopt_tree_triplet_map_traits): Delete.
24409 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
24410 template parameter.
24411 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
24412 the first template parameter.
24413 * sese.c (rename_map_hasher): Delete.
24414 (rename_map_type): Use tree_ssa_name_hash as the first template
24416 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
24417 (function_summary::m_map): Use map_hash as the first template
24419 (function_summary::release): Update accordingly.
24420 * tree-if-conv.c (phi_args_hash_traits): Delete.
24421 (predicate_scalar_phi): Use tree_operand_hash as the first template
24422 parameter to phi_arg_map.
24423 * tree-inline.h (dependence_hasher): Delete.
24424 (copy_body_data::dependence_map): Use dependence_hash as the first
24425 template parameter.
24426 * tree-inline.c (remap_dependence_clique): Update accordingly.
24427 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
24428 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
24430 (addr_stridxptr): Update accordingly.
24431 * value-prof.c (profile_id_traits): Delete.
24432 (cgraph_node_map): Use profile_id_hash as the first template
24434 (init_node_map): Update accordingly.
24435 * config/alpha/alpha.c (string_traits): Delete.
24436 (machine_function::links): Use nofree_string_hash as the first
24437 template parameter.
24438 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
24439 * config/m32c/m32c.c (pragma_traits): Delete.
24440 (pragma_htab): Use nofree_string_hash as the first template parameter.
24441 (m32c_note_pragma_address): Update accordingly.
24442 * config/mep/mep.c (pragma_traits): Delete.
24443 (pragma_htab): Use nofree_string_hash as the first template parameter.
24444 (mep_note_pragma_flag): Update accordingly.
24445 * config/mips/mips.c (mips16_flip_traits): Delete.
24446 (mflip_mips16_htab): Use nofree_string_hash as the first template
24448 (mflip_mips16_use_mips16_p): Update accordingly.
24449 (local_alias_traits): Delete.
24450 (mips16_local_aliases): Use nofree_string_hash as the first template
24452 (mips16_local_alias): Update accordingly.
24454 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24456 * hash-map-traits.h (default_hashmap_traits): Delete.
24458 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24460 * hash-map-traits.h (unbounded_hashmap_traits): New class.
24461 (unbounded_int_hashmap_traits): Likewise.
24462 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
24464 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24466 * ipa-icf.h (symbol_compare_hash): New class.
24467 (symbol_compare_hashmap_traits): Use it.
24468 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
24469 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
24470 (mem_alloc_description::reverse_mem_map_t): Remove redundant
24471 default_hashmap_traits.
24472 * sanopt.c (sanopt_tree_triplet_hash): New class.
24473 (sanopt_tree_triplet_map_traits): Use it.
24475 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24477 * gengtype-parse.c (require_template_declaration): Allow '+' in
24478 template parameters. Consolidate cases.
24479 * hash-traits.h (int_hash): New class.
24480 * alias.c (alias_set_hash): New structure.
24481 (alias_set_traits): Use it.
24482 * symbol-summary.h (function_summary::map_hash): New class.
24483 (function_summary::summary_hashmap_traits): Use it.
24484 * tree-inline.h (dependence_hash): New class.
24485 (dependence_hasher): Use it.
24486 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
24487 * value-prof.c (profile_id_hash): New class.
24488 (profile_id_traits): Use it.
24490 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24492 * config/mips/mips.c (mips16_flip_traits): Use it.
24493 (local_alias_traits, mips16_local_aliases): Convert from a map of
24494 rtxes to a map of symbol names.
24495 (mips16_local_alias): Update accordingly.
24497 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24499 * hash-traits.h (string_hash, nofree_string_hash): New classes.
24500 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
24501 * passes.c (pass_registry_hasher): Likewise.
24502 * config/alpha/alpha.c (string_traits): Likewise.
24503 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
24504 * config/m32c/m32c.c (pragma_traits): Likewise.
24505 * config/mep/mep.c (pragma_traits): Likewise.
24507 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24509 * tree-hash-traits.h (tree_hash): New class.
24510 * except.c: Include tree-hash-traits.h.
24511 (tree_hash_traits): Use tree_hash.
24513 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24515 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
24516 * sese.c: Include tree-hash-traits.h.
24517 (rename_map_hasher): Use tree_ssa_name_hasher.
24519 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24521 * tree-hash-traits.h (tree_decl_hash): New class.
24522 * tree-ssa-strlen.c: Include tree-hash-traits.h.
24523 (stridxlist_hash_traits): Use tree_decl_hash.
24525 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24527 * tree-hash-traits.h: New file.
24528 (tree_operand_hash): New class.
24529 * sanopt.c: Include tree-hash-traits.h.
24530 (sanopt_tree_map_traits): Use tree_operand_hash.
24531 * tree-if-conv.c: Include tree-hash-traits.h.
24532 (phi_args_hash_traits): Use tree_operand_hash.
24533 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
24534 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
24536 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24538 * hash-map-traits.h: Include hash-traits.h.
24539 (simple_hashmap_traits): New class.
24540 * mem-stats.h (hash_map): Change the default traits to
24541 simple_hashmap_traits<default_hash_traits<Key> >.
24543 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24545 * hash-table.h: Update comments.
24547 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24549 * hash-traits.h (default_hash_traits): New structure.
24550 * hash-set.h (default_hashset_traits): Delete.
24551 (hash_set): Use default_hash_traits<Key> instead of
24552 default_hashset_traits. Delete hash_entry type and use Key directly.
24553 * ipa-devirt.c (pair_traits): Delete.
24554 (default_hash_traits <type_pair>): Override.
24555 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
24556 (odr_types_equivalent_p, add_type_duplicate): Likewise.
24558 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24560 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
24562 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24564 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
24565 (has_is_empty, is_empty_helper): Delete.
24566 (has_mark_deleted, mark_deleted_helper): Delete.
24567 (has_mark_empty, mark_empty_helper): Delete.
24568 (hash_table::is_deleted): Call the Descriptor unconditionally.
24569 (hash_table::is_empty): Likewise.
24570 (hash_table::mark_deleted): Likewise.
24571 (hash_table::mark_empty): Likewise.
24573 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24575 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
24576 redundant typedefs and members.
24577 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
24578 redundant typedefs.
24579 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
24580 * ipa-devirt.c (odr_name_hasher): Likewise.
24581 (polymorphic_call_target_hasher): Likewise.
24582 * ira-costs.c (cost_classes_hasher): Likewise.
24583 * statistics.c (stats_counter_hasher): Likewise.
24584 * trans-mem.c (log_entry_hasher): Likewise.
24585 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
24586 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
24587 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
24588 * var-tracking.c (variable_hasher): Likewise.
24589 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
24590 Remove redundant typedefs and members.
24592 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24594 * hash-traits.h (ggc_cache_hasher): Rename to...
24595 (ggc_cache_remove): ...this and remove typedefs.
24596 (ggc_cache_ptr_hash): New class.
24597 * hash-table.h: Update commentary.
24598 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
24599 rather than ggc_cache_hasher.
24600 (const_wide_int_hasher, reg_attr_hasher): Likewise.
24601 (const_double_hasher, const_fixed_hasher): Likewise.
24602 * function.c (insn_cache_hasher): Likewise.
24603 * trans-mem.c (tm_wrapper_hasher): Likewise.
24604 * tree.h (tree_decl_map_cache_hasher): Likewise.
24605 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
24606 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
24607 * ubsan.c (tree_type_map_cache_hasher): Likewise.
24608 * varasm.c (tm_clone_hasher): Likewise.
24609 * config/i386/i386.c (dllimport_hasher): Likewise.
24610 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
24611 (tree_hasher): Likewise.
24613 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24615 * hash-traits.h (ggc_hasher): Rename to...
24616 (ggc_remover): ...this and remove typedefs.
24617 (ggc_cache_hasher): Update accordingly. Add typedefs.
24618 (ggc_ptr_hash): New class.
24619 * hash-table.h: Update comment.
24620 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
24622 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
24623 (tree_descriptor_hasher): Likewise.
24624 * cgraph.c (function_version_hasher): Likewise.
24625 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
24626 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
24627 (dw_loc_list_hasher, addr_hasher): Likewise.
24628 * function.h (used_type_hasher): Likewise.
24629 * function.c (temp_address_hasher): Likewise.
24630 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
24631 * libfuncs.h (libfunc_hasher): Likewise.
24632 * lto-streamer.h (decl_state_hasher): Likewise.
24633 * optabs.c (libfunc_decl_hasher): Likewise.
24634 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
24635 * varasm.c (section_hasher, object_block_hasher): Likewise.
24636 (const_rtx_desc_hasher): Likewise.
24637 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
24638 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
24640 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24642 * hash-traits.h (free_ptr_hash): New class.
24643 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
24644 rather than typed_free_remove. Remove redudant typedefs.
24645 (external_ref_hasher): Likewise.
24646 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
24647 (ehspec_hasher): Likewise.
24648 * ggc-common.c (saving_hasher): Likewise.
24649 * gimplify.c (gimplify_hasher): Likewise.
24650 * haifa-sched.c (delay_i2_hasher): Likewise.
24651 * loop-invariant.c (invariant_expr_hasher): Likewise.
24652 * loop-iv.c (biv_entry_hasher): Likewise.
24653 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
24654 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
24655 * tree-cfg.c (locus_discrim_hasher): Likewise.
24656 * tree-eh.c (finally_tree_hasher): Likewise.
24657 * tree-into-ssa.c (var_info_hasher): Likewise.
24658 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
24659 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
24660 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
24661 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
24662 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
24663 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
24664 (shared_bitmap_hasher): Likewise.
24665 * tree-ssa-threadupdate.c (redirection_data): Likewise.
24666 * tree-vectorizer.h (peel_info_hasher): Likewise.
24667 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
24668 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
24670 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24672 * hash-table.h: Update comments.
24673 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
24674 (nofree_ptr_hash): New class.
24675 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
24676 than typed_noop_remove. Remove redudant typedefs.
24677 * attribs.c (attribute_hasher): Likewise.
24678 * cfg.c (bb_copy_hasher): Likewise.
24679 * cselib.c (cselib_hasher): Likewise.
24680 * dse.c (invariant_group_base_hasher): Likewise.
24681 * dwarf2cfi.c (trace_info_hasher): Likewise.
24682 * dwarf2out.c (macinfo_entry_hasher): Likewise.
24683 (comdat_type_hasher, loc_list_hasher): Likewise.
24684 * gcse.c (pre_ldst_expr_hasher): Likewise.
24685 * genmatch.c (id_base): Likewise.
24686 * genrecog.c (test_pattern_hasher): Likewise.
24687 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
24688 * haifa-sched.c (delay_i1_hasher): Likewise.
24689 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
24690 * ipa-icf.h (congruence_class_group_hash): Likewise.
24691 * ipa-profile.c (histogram_hash): Likewise.
24692 * ira-color.c (allocno_hard_regs_hasher): Likewise.
24693 * lto-streamer.h (string_slot_hasher): Likewise.
24694 * lto-streamer.c (tree_entry_hasher): Likewise.
24695 * plugin.c (event_hasher): Likewise.
24696 * postreload-gcse.c (expr_hasher): Likewise.
24697 * store-motion.c (st_expr_hasher): Likewise.
24698 * tree-sra.c (uid_decl_hasher): Likewise.
24699 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
24700 (ssa_name_var_hash): Likewise.
24701 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
24702 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
24703 * tree-ssa-pre.c (pre_expr_d): Likewise.
24704 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
24705 * vtable-verify.h (registration_hasher): Likewise.
24706 * vtable-verify.c (vtbl_map_hasher): Likewise.
24707 * config/arm/arm.c (libcall_hasher): Likewise.
24708 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
24709 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
24710 * config/sol2.c (comdat_entry_hasher): Likewise.
24711 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
24712 (print_fold_checksum, fold_checksum_tree): Likewise.
24713 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
24714 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
24715 (fold_build_call_array_loc): Likewise.
24716 * tree-ssa-ccp.c (gimple_htab): Likewise.
24717 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
24718 rather than pointer_type.
24720 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24722 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
24723 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
24725 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24727 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
24728 (ggc_hasher::ggc_mx): Likewise.
24729 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
24730 that duplicate ggc_hasher ones.
24732 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24734 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
24735 (gt_cleare_cache): Check here for deleted and empty entries.
24736 Replace handle_cache_entry with a call to keep_cache_entry.
24737 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
24738 (ggc_cache_hasher::keep_cache_entry): New function.
24739 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
24740 (tm_wrapper_hasher::keep_cache_entry): New function.
24741 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
24742 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24743 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
24744 (type_cache_hasher::keep_cache_entry): New function.
24745 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
24746 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24747 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
24748 (tree_type_map_cache_hasher::keep_cache_entry): New function.
24749 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
24750 (tm_clone_hasher::keep_cache_entry): New function.
24751 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
24752 (dllimport_hasher::keep_cache_entry): New function.
24754 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24756 * hash-table.h: Include hash-traits.h.
24757 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
24758 (ggc_cache_hasher): Move to...
24759 * hash-traits.h: ...this new file.
24761 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24763 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
24764 struct cl_optimization.
24765 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
24766 * tree.c (make_node_stat): Allocate cl_optimization struct.
24767 (copy_node_stat): Allocate and copy cl_optimization struct.
24769 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24771 * function.h (struct incoming_args): Move struct.
24772 (pass_by_reference, reference_callee_copied): Remove prototypes.
24773 * emit-rtl.h (struct incoming_args): Relocate struct here.
24774 * calls.h (pass_by_reference, reference_callee_copied): Relocate
24776 * function.c (pass_by_reference, reference_callee_copied): Move.
24777 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
24778 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
24779 * ipa-chkp.c: Include calls.h.
24781 2015-06-25 Andrew Macleod <amacleod@redhat.com>
24783 * alias.h (alias_set_type): Move typedef.
24784 * coretypes.h (alias_set_type): Relocate typedef here.
24785 * rtl.h: Don't include alias.h.
24787 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24789 * cgraph.h (cgraph_rtl_info): Move to rtl.h
24790 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
24792 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
24793 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
24795 * calls.c: Include hard-reg-set.h before rtl.h.
24798 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24799 Vladimir Makarov <vmakarov@redhat.com>
24801 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
24804 2015-06-25 Richard Biener <rguenther@suse.de>
24806 * fold-const.c (fold_binary_loc): Move simplification of
24807 (X <<>> C1) & C2 ...
24808 * match.pd: ... here.
24810 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
24812 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
24814 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24816 * match.pd: Add patterns for vec_conds between 1 and 0.
24818 2015-06-25 Richard Biener <rguenther@suse.de>
24820 * tree-vect-stmts.c (vectorizable_conversion): Do not set
24821 STMT_VINFO_VEC_STMT for SLP.
24822 (vectorizable_store): Likewise.
24823 (vectorizable_load): Likewise.
24824 (vect_transform_stmt): Catch SLP vectorization clobbering
24825 STMT_VINFO_VEC_STMT.
24827 2015-06-25 Richard Biener <rguenther@suse.de>
24829 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
24831 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
24832 cleanup resulting dead code and parameters.
24833 (vect_transform_slp_perm_load): Adjust.
24835 2015-06-25 Nick Clifton <nickc@redhat.com>
24837 * config/bfin/bfin.c (bfin_expand_prologue): Set
24838 current_function_static_stack_size if flag_stack_usage_info is set.
24839 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
24840 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
24841 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
24842 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
24844 2015-06-25 Tom de Vries <tom@codesourcery.com>
24846 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
24847 comment that the generated IV is unsigned.
24849 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24852 * config/arm/arm.c (arm_dbx_register_number): Return
24853 DWARF_FRAME_REGISTERS by default.
24855 2015-06-25 Tom de Vries <tom@codesourcery.com>
24857 * dominance.c (calculate_dominance_info): Fix verify_dominators call
24858 argument. Call verify_dominator when reusing dominator info.
24860 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
24863 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
24864 an additional element of the unspec vector. Modify indices
24866 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
24867 * config/sh/sh.c (prepare_move_operands): Pass incremented
24868 const_int to gen_GOTaddr2picreg.
24869 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
24871 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24873 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
24874 Condition on TARGET_FLOAT.
24876 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24878 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
24881 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24883 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
24885 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
24886 aarch64_err_no_fpadvsimd.
24888 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
24889 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
24890 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
24891 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
24892 Turn error into assert, test TARGET_FLOAT.
24893 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
24896 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
24899 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
24901 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
24903 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
24905 2015-06-24 Renlin Li <renlin.li@arm.com>
24907 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
24908 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
24910 2015-06-24 Richard Biener <rguenther@suse.de>
24912 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
24914 (lower_opt_convert): Support lowering of conditional view_convert.
24915 (parser::parse_operation): Likewise.
24916 (parser::parse_for): Likewise.
24918 2015-06-24 Renlin Li <renlin.li@arm.com>
24920 * varasm.c (emit_local): Use unsigned int for align variable.
24922 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24925 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
24926 for negative numbers.
24928 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24930 PR rtl-optimization/66306
24931 * reload.c (find_reloads): Swap the match_dup info for
24932 commutative operands.
24934 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24936 * config/s390/vx-builtins.md
24937 ("vec_scatter_element<mode>_<non_vec_int>")
24938 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
24939 attribute with bhfgq.
24941 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24943 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
24945 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24947 * config/s390/s390-builtin-types.def: Add flag to indicate the
24948 options under which the function type is needed.
24949 * config/s390/s390-builtins.def: Add flag to indicate the options
24950 under which the builtin is enabled.
24951 * config/s390/s390-builtins.h: Add flags parameter to macro
24953 (bflags_for_builtin): New function.
24954 (flags_for_builtin): Renamed to ...
24955 (opflags_for_builtin): ... this.
24956 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
24957 flags_for_builtin to bflags_for_builtin and
24958 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
24959 * config/s390/s390.c: Add initialization of bflags_builtin and
24960 opflags_builtin arrays.
24961 Remove code for flags_builtin.
24962 (s390_init_builtins): Only create builtin function types if one of
24963 their flags is active.
24964 Only create builtins if all of their flags are active.
24965 (s390_expand_builtin): Rename flags_for_builtin to
24966 opflags_for_builtin.
24968 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24970 * config/s390/vecintrin.h: Remove internal builtins.
24972 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24974 * config/s390/s390.c (s390_secondary_reload): Fix check for
24975 GENERAL_REGS register class.
24977 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24979 * config/s390/s390.c (s390_support_vector_misalignment): Call
24980 default implementation for !TARGET_VX.
24982 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24984 * config/s390/s390.c (s390_legitimate_constant_p): Add
24987 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24989 * config/s390/s390.c (s390_vector_abi): New variable definition.
24990 (s390_check_type_for_vector_abi): New function.
24991 (TARGET_ASM_FILE_END): New macro definition.
24992 (s390_asm_file_end): New function.
24993 (s390_function_arg): Call s390_check_type_for_vector_abi.
24994 (s390_gimplify_va_arg): Likewise.
24995 * configure: Regenerate.
24996 * configure.ac: Check for .gnu_attribute Binutils feature.
24998 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
25001 * config/bfin/bfin.c (hwloop_optimize): Initialize
25002 JUMP_LABEL for newly created jump.
25004 2015-06-23 Tristan Gingold <gingold@adacore.com>
25006 * collect-utils.c (collect_wait): Unlink the response file here
25008 (do_wait): ...here.
25009 (utils_cleanup): ...and here.
25011 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
25013 * df-scan.c: Don't include target-def.h.
25014 * targhooks.c: Likewise.
25015 * config/arm/arm-c.c: Likewise.
25016 * config/i386/i386-c.c: Likewise.
25017 * config/nds32/nds32-cost.c: Likewise.
25018 * config/nds32/nds32-fp-as-gp.c: Likewise.
25019 * config/nds32/nds32-intrinsic.c: Likewise.
25020 * config/nds32/nds32-isr.c: Likewise.
25021 * config/nds32/nds32-md-auxiliary.c: Likewise.
25022 * config/nds32/nds32-memory-manipulation.c: Likewise.
25023 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25024 * config/nds32/nds32-predicates.c: Likewise.
25026 2015-06-23 Richard Biener <rguenther@suse.de>
25028 PR tree-optimization/66636
25029 * tree-vect-stmts.c (vectorizable_store): Properly compute the
25030 def type for further defs for strided stores.
25032 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
25034 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
25035 conditional selects.
25036 (setcc_int<mode>, setcc_float<mode>): Reformat.
25038 2015-06-23 Marek Polacek <polacek@redhat.com>
25040 * match.pd ((x + y) - (x | y) -> x & y,
25041 (x + y) - (x & y) -> x | y): New patterns.
25043 2015-06-23 Ludovic Courtès <ludo@gnu.org>
25046 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
25047 '-dynamic-linker' within %{!shared: ...}.
25049 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
25052 * config/i386/predicates.md (addsub_vm_operator): New predicate.
25053 (addsub_vs_operator): Ditto.
25054 (addsub_vs_parallel): Ditto.
25055 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
25056 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
25057 Put minus RTX before plus and adjust vec_merge selector.
25058 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
25059 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
25060 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
25061 (addsub vec_merge splitters): New combiner splitters.
25062 (addsub vec_select/vec_concat splitters): Ditto.
25064 2015-06-23 Bin Cheng <bin.cheng@arm.com>
25066 PR tree-optimization/66449
25067 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
25068 POINTER_PLUS_EXPR for pointers.
25070 2015-06-23 Alan Modra <amodra@gmail.com>
25072 * rtlanal.c (commutative_operand_precedence): Correct comments.
25073 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
25074 declaration. Return an int. Distinguish REG,REG return from
25076 (struct simplify_plus_minus_op_data): Make local to function.
25077 (simplify_plus_minus): Don't set canonicalized if merely sorting
25078 registers. Avoid packing ops if nothing changes. White space fixes.
25080 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
25082 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
25083 -fdump-ada-spec is passed but not if -fsyntax-only is.
25085 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
25088 * lra-lives.c (process_bb_lives): Check insn copying the same
25089 reload pseudo and don't create a copy for it.
25091 2015-06-22 Tom de Vries <tom@codesourcery.com>
25093 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
25096 2015-06-22 Tom de Vries <tom@codesourcery.com>
25098 * builtins.def (DEF_GOMP_BUILTIN): Test
25099 'flag_tree_parallelize_loops > 1' instead of
25100 'flag_tree_parallelize_loops'. Test flag_cilkplus.
25102 2015-06-22 Tom de Vries <tom@codesourcery.com>
25104 * dominance.c (calculate_dominance_info): Verify dominators if
25107 2015-06-22 Marek Polacek <polacek@redhat.com>
25109 * match.pd ((x ^ y) ^ (x | y) -> x & y,
25110 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
25111 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
25112 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
25114 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
25117 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
25118 cost of embedded comparison.
25120 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25123 * config/rs6000/predicates.md (altivec_register_operand): Permit
25124 virtual stack registers.
25125 (vsx_register_operand): Likewise.
25126 (vfloat_operand): Likewise.
25127 (vint_operand): Likewise.
25128 (vlogical_operand): Likewise.
25130 2015-06-22 Richard Biener <rguenther@suse.de>
25132 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
25133 and single_scalar_iteration_cost members.
25134 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
25135 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
25136 (vect_get_single_scalar_iteration_cost): Remove.
25137 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
25138 Use LOOP_VINFO_SCALAR_ITERATION_COST.
25139 * tree-vect-loop.c (destroy_loop_vec_info): Free
25141 (vect_get_single_scalar_iteration_cost): Compute result into
25142 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
25143 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
25144 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
25145 (vect_estimate_min_profitable_iters): Use them.
25147 2015-06-22 Christian Bruel <christian.bruel@st.com>
25150 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
25151 (TARGET_INSERT_ATTRIBUTES): Define.
25152 (thumb_flipper): New var.
25153 * config/arm/arm.opt (-mflip-thumb): New switch.
25155 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
25156 Martin Liska <mliska@suse.cz>
25159 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
25160 construction of arg_types.
25161 (sem_function::sem_function): Likewise.
25162 (sem_function::~sem_function): Remove destruction of arg_types.
25163 (sem_function::compatible_parm_types_p): New function.
25164 (sem_function::equals_wpa): Reorg matching of return values
25165 and parameter types.
25166 (sem_function::equals_private): Reorg mathcing of argument types.
25167 (sem_function::parse_tree_args): Remove.
25168 * ipa-icf.h (init_wpa): Do not call it.
25169 (parse_tree_args): Remove.
25170 (compatible_parm_types_p): Declare.
25171 (result_type): Remove.
25172 (arg_types): Remove.
25174 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
25177 * ipa-polymorphic-call.c
25178 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
25179 initializing alias oracle; fix formating; set base_alias_set if it
25182 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
25184 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
25185 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
25186 (find_inc): Likewise.
25187 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
25189 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
25190 * df-scan.c (df_swap_refs): Remove.
25191 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
25192 * dominance.c (link_roots): Use std::swap instead of manually swapping.
25193 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
25194 * fold-const.c (fold_relational_const): Likewise.
25195 * genattrtab.c (simplify_test_exp): Likewise.
25196 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
25197 gimple_simplify): Likewise.
25198 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
25199 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
25200 * ipa-devirt.c (add_type_duplicate): Likewise.
25201 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
25202 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
25203 * lra.c (lra_create_copy): Likewise.
25204 * lto-streamer-out.c (DFS::DFS): Likewise.
25205 * modulo-sched.c (get_sched_window): Likewise.
25206 * omega.c (omega_pretty_print_problem): Likewise.
25207 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
25208 * reload1.c (reloads_unique_chain_p): Likewise.
25209 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
25210 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
25212 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
25214 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
25215 predicate_mem_writes): Likewise.
25216 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
25217 * tree-predcom.c (combine_chains): Likewise.
25218 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
25219 refs_may_alias_p_1): Likewise.
25220 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
25221 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25222 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
25223 number_of_iterations_cond): Likewise.
25224 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
25225 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
25226 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
25227 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
25228 * tree-vrp.c (extract_range_from_binary_expr_1,
25229 extract_range_from_unary_expr_1): Likewise.
25231 2015-06-20 Marek Polacek <polacek@redhat.com>
25233 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
25235 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
25238 * config/sh/sh.c (prepare_move_operands): Replace subreg
25239 index term with R0 for base and index addressing.
25241 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
25243 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
25245 (movsf_aarch64): Change condition from register_operand to
25246 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
25247 load1. Change type for alternative 7 to store1.
25248 (movdf_aarch64): Likewise.
25250 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
25252 * config/vax/vax.md: Adjust sign/zero extend patterns to
25253 handle SUBREGs in operands[1].
25255 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25257 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
25258 of manually swapping.
25259 (expand_vec_perm_interleave2): Likewise.
25261 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
25263 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
25264 reuse bounds created for abnormal ssa names.
25266 2015-06-19 Jakub Jelinek <jakub@redhat.com>
25268 * config/nvptx/nvptx.md (allocate_stack): Rename to...
25269 (allocate_stack_<mode>): ... this, and add :P on both
25270 match_operand and unspec.
25271 (allocate_stack): New expander.
25273 2015-06-19 Christian Bruel <christian.bruel@st.com>
25277 * config/arm/arm.c (arm_set_current_function): Handle
25278 explicit default options.
25280 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
25282 * config/i386/i386.md (*movsicc_noc_zext): New insn.
25283 (zero-extended cmove with mem peephole2): New pattern.
25284 (cmove with mem peephole2): Merge patterns.
25286 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
25288 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
25290 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
25292 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
25293 * config/mips/mips.md (*madd4<mode>): Ditto.
25294 (*nmadd3<mode>) Ditto.
25295 (*nmadd4<mode>_fastmath): Ditto.
25296 (*nmadd3<mode>_fastmath): Ditto.
25297 (*nmsub4<mode>): Ditto.
25298 (*nmsub3<mode>): Ditto.
25299 (*nmsub4<mode>_fastmath): Ditto.
25300 (*nmsub3<mode>_fastmath): Ditto.
25302 2015-06-18 Michael Matz <matz@suse.de>
25304 PR middle-end/66253
25305 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
25306 grouped strided stores.
25307 (vectorizable_load): Don't use the DR from first_stmt in
25308 the non-SLP grouped strided case.
25310 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25313 * function.c (assign_bounds): Add arguments assign_regs,
25314 assign_special, assign_bt.
25315 (assign_parms): For vararg functions handle bounds in BT
25316 and special slots after incoming vararg bounds.
25318 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25320 PR middle-end/66568
25321 * cfgexpand.c (expand_return): Handle missing bounds.
25322 (expand_gimple_stmt_1): Likewise.
25323 * tree-chkp.c (chkp_expand_zero_bounds): New.
25324 * tree-chkp.h (chkp_expand_zero_bounds): New.
25326 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25328 PR middle-end/66567
25329 * ipa-chkp.c (chkp_maybe_create_clone): Require
25330 functions to be instrumentable.
25331 * tree-chkp.c (chkp_replace_function_pointer): Use
25332 chkp_instrumentable_p instead of attribute check.
25334 2015-06-18 Richard Biener <rguenther@suse.de>
25336 PR tree-optimization/66510
25337 * tree-vect-stmts.c (vectorizable_load): Properly compute the
25338 number of vector loads for SLP permuted loads.
25339 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
25340 check the stride for loop vectorization.
25341 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
25342 vectorization factor.
25343 (vect_analyze_group_access): If the group size is not a power
25344 of two require a epilogue loop.
25345 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
25346 compute and optimizing and alias test pruning after final
25347 vectorization factor computation.
25348 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
25350 (vect_transform_slp_perm_load): Properly compute the original
25351 number of vector load stmts.
25353 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
25355 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
25356 "unlikely character , in @var" warning.
25358 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
25360 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
25361 (ix86_function_arg_advance): Ditto.
25362 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
25364 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25366 * function.h (struct rtl_data): Remove struct and accessor macros.
25367 * emit-rtl.h (struct rtl_data): Relocate to here.
25368 * Makefile.in (GTFILES): Add emit-rtl.h.
25369 * df-core.c: Include emit-rtl.h.
25370 * genattrtab.c: Likewise.
25371 * genconditions.c: Likewise.
25372 * genpreds.c: Likewise.
25373 * genrecog.c: Likewise.
25374 * regcprop.c: Likewise.
25375 * resource.c: Likewise.
25376 * sched-rgn.c: Likewise.
25377 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25378 * config/i386/winnt.c: Likewise.
25380 2015-06-17 Jakub Jelinek <jakub@redhat.com>
25382 PR middle-end/66429
25383 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
25384 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
25385 and has_force_vectorize_loops flags from cfun into
25387 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
25388 if simduid is non-NULL.
25389 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
25390 * passes.def (pass_simduid_cleanup): Add new pass after loop
25392 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
25393 indirection from htab argument's type.
25394 (shrink_simd_arrays): New function.
25395 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
25396 Don't call adjust_simduid_builtins if there are no loops.
25397 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
25398 (pass_simduid_cleanup::execute): New method.
25399 (make_pass_simduid_cleanup): New function.
25401 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
25403 * tree-core.h (tree_target_option): Make opts field a pointer to a
25404 cl_target_option instead of an instance of the struct.
25405 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
25407 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
25408 TARGET_OPTION_NODE.
25409 (copy_node_stat): Allocate and copy struct cl_target_option.
25411 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25413 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
25414 Remove conditional exposure of prototypes.
25415 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
25416 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
25417 definitions in tree.h with functions.
25418 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
25420 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
25422 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
25424 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
25425 (*cmp<mode>_signed): ... this.
25426 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
25427 (*cmp<mode>_unsigned): ... this. Remove %b.
25429 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25431 * coretypes.h: Include input.h and as-a.h.
25432 * rtl.h: Include input.h and as-a.h for generator files.
25433 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
25434 * vec.c: Don't include diagnostic-core.h.
25435 * alias.c: Do not include input.h, line-map.h or is-a.h.
25436 * asan.c: Likewise.
25437 * attribs.c: Likewise.
25438 * auto-inc-dec.c: Likewise.
25439 * auto-profile.c: Likewise.
25440 * bb-reorder.c: Likewise.
25441 * bt-load.c: Likewise.
25442 * builtins.c: Likewise.
25443 * caller-save.c: Likewise.
25444 * calls.c: Likewise.
25445 * ccmp.c: Likewise.
25447 * cfganal.c: Likewise.
25448 * cfgbuild.c: Likewise.
25449 * cfgcleanup.c: Likewise.
25450 * cfgexpand.c: Likewise.
25451 * cfghooks.c: Likewise.
25452 * cfgloop.c: Likewise.
25453 * cfgloop.h: Likewise.
25454 * cfgloopanal.c: Likewise.
25455 * cfgloopmanip.c: Likewise.
25456 * cfgrtl.c: Likewise.
25457 * cgraph.c: Likewise.
25458 * cgraphbuild.c: Likewise.
25459 * cgraphclones.c: Likewise.
25460 * cgraphunit.c: Likewise.
25461 * cilk-common.c: Likewise.
25462 * combine-stack-adj.c: Likewise.
25463 * combine.c: Likewise.
25464 * compare-elim.c: Likewise.
25465 * convert.c: Likewise.
25466 * coverage.c: Likewise.
25467 * cppbuiltin.c: Likewise.
25468 * cprop.c: Likewise.
25470 * cselib.c: Likewise.
25471 * data-streamer-in.c: Likewise.
25472 * data-streamer-out.c: Likewise.
25473 * data-streamer.c: Likewise.
25474 * dbxout.c: Likewise.
25477 * debug.c: Likewise.
25478 * df-core.c: Likewise.
25479 * df-problems.c: Likewise.
25480 * df-scan.c: Likewise.
25483 * diagnostic-core.h: Likewise.
25484 * diagnostic.c: Likewise.
25485 * dojump.c: Likewise.
25486 * dominance.c: Likewise.
25487 * domwalk.c: Likewise.
25488 * double-int.c: Likewise.
25490 * dumpfile.c: Likewise.
25491 * dumpfile.h: Likewise.
25492 * dwarf2asm.c: Likewise.
25493 * dwarf2cfi.c: Likewise.
25494 * dwarf2out.c: Likewise.
25495 * emit-rtl.c: Likewise.
25496 * et-forest.c: Likewise.
25497 * except.c: Likewise.
25498 * explow.c: Likewise.
25499 * expmed.c: Likewise.
25500 * expr.c: Likewise.
25501 * final.c: Likewise.
25502 * fixed-value.c: Likewise.
25503 * fold-const.c: Likewise.
25504 * function.c: Likewise.
25505 * fwprop.c: Likewise.
25506 * gcc-plugin.h: Likewise.
25507 * gcse.c: Likewise.
25508 * generic-match-head.c: Likewise.
25509 * ggc-page.c: Likewise.
25510 * gimple-builder.c: Likewise.
25511 * gimple-expr.c: Likewise.
25512 * gimple-fold.c: Likewise.
25513 * gimple-iterator.c: Likewise.
25514 * gimple-low.c: Likewise.
25515 * gimple-match-head.c: Likewise.
25516 * gimple-pretty-print.c: Likewise.
25517 * gimple-ssa-isolate-paths.c: Likewise.
25518 * gimple-ssa-strength-reduction.c: Likewise.
25519 * gimple-streamer-in.c: Likewise.
25520 * gimple-streamer-out.c: Likewise.
25521 * gimple-streamer.h: Likewise.
25522 * gimple-walk.c: Likewise.
25523 * gimple.c: Likewise.
25524 * gimplify-me.c: Likewise.
25525 * gimplify.c: Likewise.
25526 * godump.c: Likewise.
25527 * graph.c: Likewise.
25528 * graphite-blocking.c: Likewise.
25529 * graphite-dependences.c: Likewise.
25530 * graphite-interchange.c: Likewise.
25531 * graphite-isl-ast-to-gimple.c: Likewise.
25532 * graphite-optimize-isl.c: Likewise.
25533 * graphite-poly.c: Likewise.
25534 * graphite-scop-detection.c: Likewise.
25535 * graphite-sese-to-poly.c: Likewise.
25536 * graphite.c: Likewise.
25537 * haifa-sched.c: Likewise.
25538 * hw-doloop.c: Likewise.
25539 * ifcvt.c: Likewise.
25540 * init-regs.c: Likewise.
25541 * input.c: Likewise.
25542 * internal-fn.c: Likewise.
25543 * ipa-chkp.c: Likewise.
25544 * ipa-comdats.c: Likewise.
25545 * ipa-cp.c: Likewise.
25546 * ipa-devirt.c: Likewise.
25547 * ipa-icf-gimple.c: Likewise.
25548 * ipa-icf.c: Likewise.
25549 * ipa-inline-analysis.c: Likewise.
25550 * ipa-inline-transform.c: Likewise.
25551 * ipa-inline.c: Likewise.
25552 * ipa-polymorphic-call.c: Likewise.
25553 * ipa-profile.c: Likewise.
25554 * ipa-prop.c: Likewise.
25555 * ipa-pure-const.c: Likewise.
25556 * ipa-ref.c: Likewise.
25557 * ipa-reference.c: Likewise.
25558 * ipa-split.c: Likewise.
25559 * ipa-utils.c: Likewise.
25560 * ipa-visibility.c: Likewise.
25562 * ira-build.c: Likewise.
25563 * ira-color.c: Likewise.
25564 * ira-conflicts.c: Likewise.
25565 * ira-costs.c: Likewise.
25566 * ira-emit.c: Likewise.
25567 * ira-lives.c: Likewise.
25569 * jump.c: Likewise.
25570 * langhooks.c: Likewise.
25572 * loop-doloop.c: Likewise.
25573 * loop-init.c: Likewise.
25574 * loop-invariant.c: Likewise.
25575 * loop-iv.c: Likewise.
25576 * loop-unroll.c: Likewise.
25577 * lower-subreg.c: Likewise.
25578 * lra-assigns.c: Likewise.
25579 * lra-coalesce.c: Likewise.
25580 * lra-constraints.c: Likewise.
25581 * lra-eliminations.c: Likewise.
25582 * lra-lives.c: Likewise.
25583 * lra-remat.c: Likewise.
25584 * lra-spills.c: Likewise.
25586 * lto-cgraph.c: Likewise.
25587 * lto-compress.c: Likewise.
25588 * lto-opts.c: Likewise.
25589 * lto-section-in.c: Likewise.
25590 * lto-section-out.c: Likewise.
25591 * lto-streamer-in.c: Likewise.
25592 * lto-streamer-out.c: Likewise.
25593 * lto-streamer.c: Likewise.
25595 * mode-switching.c: Likewise.
25596 * modulo-sched.c: Likewise.
25597 * omega.c: Likewise.
25598 * omp-low.c: Likewise.
25599 * optabs.c: Likewise.
25600 * opts-global.c: Likewise.
25601 * opts.h: Likewise.
25602 * passes.c: Likewise.
25603 * plugin.c: Likewise.
25604 * postreload-gcse.c: Likewise.
25605 * postreload.c: Likewise.
25606 * predict.c: Likewise.
25607 * pretty-print.h: Likewise.
25608 * print-rtl.c: Likewise.
25609 * print-tree.c: Likewise.
25610 * profile.c: Likewise.
25611 * real.c: Likewise.
25612 * realmpfr.c: Likewise.
25613 * recog.c: Likewise.
25615 * reg-stack.c: Likewise.
25616 * regcprop.c: Likewise.
25617 * reginfo.c: Likewise.
25618 * regrename.c: Likewise.
25619 * regstat.c: Likewise.
25620 * reload.c: Likewise.
25621 * reload1.c: Likewise.
25622 * reorg.c: Likewise.
25623 * resource.c: Likewise.
25624 * rtl-chkp.c: Likewise.
25625 * rtl-error.c: Likewise.
25626 * rtlanal.c: Likewise.
25627 * rtlhooks.c: Likewise.
25628 * sanopt.c: Likewise.
25629 * sched-deps.c: Likewise.
25630 * sched-ebb.c: Likewise.
25631 * sched-rgn.c: Likewise.
25632 * sched-vis.c: Likewise.
25633 * sdbout.c: Likewise.
25634 * sel-sched-dump.c: Likewise.
25635 * sel-sched-ir.c: Likewise.
25636 * sel-sched.c: Likewise.
25637 * sese.c: Likewise.
25638 * shrink-wrap.c: Likewise.
25639 * simplify-rtx.c: Likewise.
25640 * stack-ptr-mod.c: Likewise.
25641 * statistics.c: Likewise.
25642 * stmt.c: Likewise.
25643 * stor-layout.c: Likewise.
25644 * store-motion.c: Likewise.
25645 * streamer-hooks.c: Likewise.
25646 * stringpool.c: Likewise.
25647 * symtab.c: Likewise.
25648 * target-globals.c: Likewise.
25649 * targhooks.c: Likewise.
25650 * toplev.c: Likewise.
25651 * tracer.c: Likewise.
25652 * trans-mem.c: Likewise.
25653 * tree-affine.c: Likewise.
25654 * tree-browser.c: Likewise.
25655 * tree-call-cdce.c: Likewise.
25656 * tree-cfg.c: Likewise.
25657 * tree-cfgcleanup.c: Likewise.
25658 * tree-chkp-opt.c: Likewise.
25659 * tree-chkp.c: Likewise.
25660 * tree-chrec.c: Likewise.
25661 * tree-complex.c: Likewise.
25662 * tree-data-ref.c: Likewise.
25663 * tree-dfa.c: Likewise.
25664 * tree-diagnostic.c: Likewise.
25665 * tree-dump.c: Likewise.
25666 * tree-eh.c: Likewise.
25667 * tree-emutls.c: Likewise.
25668 * tree-if-conv.c: Likewise.
25669 * tree-inline.c: Likewise.
25670 * tree-into-ssa.c: Likewise.
25671 * tree-iterator.c: Likewise.
25672 * tree-loop-distribution.c: Likewise.
25673 * tree-nested.c: Likewise.
25674 * tree-nrv.c: Likewise.
25675 * tree-object-size.c: Likewise.
25676 * tree-outof-ssa.c: Likewise.
25677 * tree-parloops.c: Likewise.
25678 * tree-phinodes.c: Likewise.
25679 * tree-predcom.c: Likewise.
25680 * tree-pretty-print.c: Likewise.
25681 * tree-profile.c: Likewise.
25682 * tree-scalar-evolution.c: Likewise.
25683 * tree-sra.c: Likewise.
25684 * tree-ssa-address.c: Likewise.
25685 * tree-ssa-alias.c: Likewise.
25686 * tree-ssa-ccp.c: Likewise.
25687 * tree-ssa-coalesce.c: Likewise.
25688 * tree-ssa-copy.c: Likewise.
25689 * tree-ssa-copyrename.c: Likewise.
25690 * tree-ssa-dce.c: Likewise.
25691 * tree-ssa-dom.c: Likewise.
25692 * tree-ssa-dse.c: Likewise.
25693 * tree-ssa-forwprop.c: Likewise.
25694 * tree-ssa-ifcombine.c: Likewise.
25695 * tree-ssa-live.c: Likewise.
25696 * tree-ssa-loop-ch.c: Likewise.
25697 * tree-ssa-loop-im.c: Likewise.
25698 * tree-ssa-loop-ivcanon.c: Likewise.
25699 * tree-ssa-loop-ivopts.c: Likewise.
25700 * tree-ssa-loop-manip.c: Likewise.
25701 * tree-ssa-loop-niter.c: Likewise.
25702 * tree-ssa-loop-prefetch.c: Likewise.
25703 * tree-ssa-loop-unswitch.c: Likewise.
25704 * tree-ssa-loop.c: Likewise.
25705 * tree-ssa-math-opts.c: Likewise.
25706 * tree-ssa-operands.c: Likewise.
25707 * tree-ssa-phiopt.c: Likewise.
25708 * tree-ssa-phiprop.c: Likewise.
25709 * tree-ssa-pre.c: Likewise.
25710 * tree-ssa-propagate.c: Likewise.
25711 * tree-ssa-reassoc.c: Likewise.
25712 * tree-ssa-sccvn.c: Likewise.
25713 * tree-ssa-scopedtables.c: Likewise.
25714 * tree-ssa-sink.c: Likewise.
25715 * tree-ssa-strlen.c: Likewise.
25716 * tree-ssa-structalias.c: Likewise.
25717 * tree-ssa-tail-merge.c: Likewise.
25718 * tree-ssa-ter.c: Likewise.
25719 * tree-ssa-threadedge.c: Likewise.
25720 * tree-ssa-threadupdate.c: Likewise.
25721 * tree-ssa-uncprop.c: Likewise.
25722 * tree-ssa-uninit.c: Likewise.
25723 * tree-ssa.c: Likewise.
25724 * tree-ssanames.c: Likewise.
25725 * tree-stdarg.c: Likewise.
25726 * tree-streamer-in.c: Likewise.
25727 * tree-streamer-out.c: Likewise.
25728 * tree-streamer.c: Likewise.
25729 * tree-switch-conversion.c: Likewise.
25730 * tree-tailcall.c: Likewise.
25731 * tree-vect-data-refs.c: Likewise.
25732 * tree-vect-generic.c: Likewise.
25733 * tree-vect-loop-manip.c: Likewise.
25734 * tree-vect-loop.c: Likewise.
25735 * tree-vect-patterns.c: Likewise.
25736 * tree-vect-slp.c: Likewise.
25737 * tree-vect-stmts.c: Likewise.
25738 * tree-vectorizer.c: Likewise.
25739 * tree-vrp.c: Likewise.
25740 * tree.c: Likewise.
25741 * tsan.c: Likewise.
25742 * ubsan.c: Likewise.
25743 * valtrack.c: Likewise.
25744 * value-prof.c: Likewise.
25745 * var-tracking.c: Likewise.
25746 * varasm.c: Likewise.
25747 * varpool.c: Likewise.
25748 * vmsdbgout.c: Likewise.
25749 * vtable-verify.c: Likewise.
25751 * wide-int.cc: Likewise.
25752 * xcoffout.c: Likewise.
25753 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
25754 * common/common-targhooks.c: Likewise.
25755 * config/aarch64/aarch64-builtins.c: Likewise.
25756 * config/aarch64/aarch64.c: Likewise.
25757 * config/alpha/alpha.c: Likewise.
25758 * config/arc/arc.c: Likewise.
25759 * config/arm/aarch-common.c: Likewise.
25760 * config/arm/arm-builtins.c: Likewise.
25761 * config/arm/arm-c.c: Likewise.
25762 * config/arm/arm.c: Likewise.
25763 * config/avr/avr-c.c: Likewise.
25764 * config/avr/avr-log.c: Likewise.
25765 * config/avr/avr.c: Likewise.
25766 * config/bfin/bfin.c: Likewise.
25767 * config/c6x/c6x.c: Likewise.
25768 * config/cr16/cr16.c: Likewise.
25769 * config/cris/cris.c: Likewise.
25770 * config/darwin-c.c: Likewise.
25771 * config/darwin.c: Likewise.
25772 * config/default-c.c: Likewise.
25773 * config/epiphany/epiphany.c: Likewise.
25774 * config/epiphany/mode-switch-use.c: Likewise.
25775 * config/epiphany/resolve-sw-modes.c: Likewise.
25776 * config/fr30/fr30.c: Likewise.
25777 * config/frv/frv.c: Likewise.
25778 * config/ft32/ft32.c: Likewise.
25779 * config/glibc-c.c: Likewise.
25780 * config/h8300/h8300.c: Likewise.
25781 * config/i386/i386-c.c: Likewise.
25782 * config/i386/i386.c: Likewise.
25783 * config/i386/msformat-c.c: Likewise.
25784 * config/i386/winnt-cxx.c: Likewise.
25785 * config/i386/winnt-stubs.c: Likewise.
25786 * config/i386/winnt.c: Likewise.
25787 * config/ia64/ia64-c.c: Likewise.
25788 * config/ia64/ia64.c: Likewise.
25789 * config/iq2000/iq2000.c: Likewise.
25790 * config/lm32/lm32.c: Likewise.
25791 * config/m32c/m32c-pragma.c: Likewise.
25792 * config/m32c/m32c.c: Likewise.
25793 * config/m32r/m32r.c: Likewise.
25794 * config/m68k/m68k.c: Likewise.
25795 * config/mcore/mcore.c: Likewise.
25796 * config/mep/mep-pragma.c: Likewise.
25797 * config/mep/mep.c: Likewise.
25798 * config/microblaze/microblaze-c.c: Likewise.
25799 * config/microblaze/microblaze.c: Likewise.
25800 * config/mips/mips.c: Likewise.
25801 * config/mmix/mmix.c: Likewise.
25802 * config/mn10300/mn10300.c: Likewise.
25803 * config/moxie/moxie.c: Likewise.
25804 * config/msp430/msp430-c.c: Likewise.
25805 * config/msp430/msp430.c: Likewise.
25806 * config/nds32/nds32-cost.c: Likewise.
25807 * config/nds32/nds32-fp-as-gp.c: Likewise.
25808 * config/nds32/nds32-intrinsic.c: Likewise.
25809 * config/nds32/nds32-isr.c: Likewise.
25810 * config/nds32/nds32-md-auxiliary.c: Likewise.
25811 * config/nds32/nds32-memory-manipulation.c: Likewise.
25812 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25813 * config/nds32/nds32-predicates.c: Likewise.
25814 * config/nds32/nds32.c: Likewise.
25815 * config/nios2/nios2.c: Likewise.
25816 * config/nvptx/nvptx.c: Likewise.
25817 * config/pa/pa.c: Likewise.
25818 * config/pdp11/pdp11.c: Likewise.
25819 * config/rl78/rl78-c.c: Likewise.
25820 * config/rl78/rl78.c: Likewise.
25821 * config/rs6000/rs6000-c.c: Likewise.
25822 * config/rs6000/rs6000.c: Likewise.
25823 * config/rx/rx.c: Likewise.
25824 * config/s390/s390-c.c: Likewise.
25825 * config/s390/s390.c: Likewise.
25826 * config/sh/sh-c.c: Likewise.
25827 * config/sh/sh-mem.cc: Likewise.
25828 * config/sh/sh.c: Likewise.
25829 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25830 * config/sh/sh_treg_combine.cc: Likewise.
25831 * config/sol2-c.c: Likewise.
25832 * config/sol2-cxx.c: Likewise.
25833 * config/sol2-stubs.c: Likewise.
25834 * config/sol2.c: Likewise.
25835 * config/sparc/sparc-c.c: Likewise.
25836 * config/sparc/sparc.c: Likewise.
25837 * config/spu/spu-c.c: Likewise.
25838 * config/spu/spu.c: Likewise.
25839 * config/stormy16/stormy16.c: Likewise.
25840 * config/tilegx/mul-tables.c: Likewise.
25841 * config/tilegx/tilegx-c.c: Likewise.
25842 * config/tilegx/tilegx.c: Likewise.
25843 * config/tilepro/mul-tables.c: Likewise.
25844 * config/tilepro/tilepro-c.c: Likewise.
25845 * config/tilepro/tilepro.c: Likewise.
25846 * config/v850/v850-c.c: Likewise.
25847 * config/v850/v850.c: Likewise.
25848 * config/vax/vax.c: Likewise.
25849 * config/visium/visium.c: Likewise.
25850 * config/vms/vms-c.c: Likewise.
25851 * config/vms/vms.c: Likewise.
25852 * config/vxworks.c: Likewise.
25853 * config/winnt-c.c: Likewise.
25854 * config/xtensa/xtensa.c: Likewise.
25856 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
25858 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
25860 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
25862 2015-06-17 Richard Biener <rguenther@suse.de>
25864 PR tree-optimization/66251
25865 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
25866 stmts for SLP strided stores.
25869 2015-05-22 Richard Biener <rguenther@suse.de>
25871 PR tree-optimization/66251
25872 * tree-vect-stmts.c (vectorizable_conversion): Properly
25873 set STMT_VINFO_VEC_STMT even for the SLP case.
25875 2015-05-26 Michael Matz <matz@suse.de>
25877 PR middle-end/66251
25878 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
25879 STMT_VINFO_VEC_STMT, also with SLP.
25881 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
25884 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
25885 (*avx_addsubv4df3_1s): Ditto.
25886 (*sse3_addsubv2df3_1): Ditto.
25887 (*sse3_addsubv2df3_1s): Ditto.
25888 (*avx_addsubv8sf3_1): Ditto.
25889 (*avx_addsubv8sf3_1s): Ditto.
25890 (*sse3_addsubv4sf3_1): Ditto.
25891 (*sse3_addsubv4sf3_1s): Ditto.
25893 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
25895 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
25896 (SYSROOT_SUFFIX_SPEC): Update.
25897 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
25898 (STARTFILE_PREFIX_SPEC): Update.
25899 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
25900 (MULTILIB_REQUIRED): New.
25901 (MULTILIB_OSDIRNAMES): New.
25902 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
25903 (MULTILIB_REQUIRED): New.
25904 (MULTILIB_OSDIRNAMES): New.
25906 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
25908 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
25909 * config/aarch64/aarch64-options-extensions.def: Update "fP",
25910 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
25911 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
25912 (AARCH64_FL_PAN): New.
25913 (AARCH64_FL_LOR): New.
25914 (AARCH64_FL_RDMA): New.
25915 (AARCH64_FL_FOR_ARCH8_1): New.
25916 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
25917 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
25919 2015-06-16 Martin Liska <mliska@suse.cz>
25921 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
25922 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
25925 2015-06-16 Richard Biener <rguenther@suse.de>
25927 * tree-vect-stmts.c (vectorizable_store): Adjust.
25928 (vectorizable_load): Likewise.
25929 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
25931 (vect_create_data_ref_ptr): Likewise.
25932 (bump_vector_ptr): Adjust.
25934 2015-06-16 Richard Biener <rguenther@suse.de>
25936 * tree-vect-stmts.c (vectorizable_load): Properly start loads
25937 with the first element if this is grouped loads.
25939 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
25941 * config/arm/arm-protos.h (struct tune_params): Rename
25942 log_op_non_sc to log_op_non_short_circuit, and rename enum
25943 values to expand SC to SHORT_CIRCUIT.
25944 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
25945 to LOG_OP_NON_SHORT_CIRCUIT.
25946 (arm_fastmul_tune):Likewise
25947 (arm_strongarm_tune): Likewise.
25948 (arm_xscale_tune): Likewise.
25949 (arm_9e_tune): Likewise.
25950 (arm_marvell_pj4_tune): Likewise.
25951 (arm_v6t2_tune): Likewise.
25952 (arm_cortex_tune): Likewise.
25953 (arm_cortex_a8_tune): Likewise.
25954 (arm_cortex_a7_tune): Likewise.
25955 (arm_cortex_a15_tune): Likewise.
25956 (arm_cortex_a53_tune): Likewise.
25957 (arm_cortex_a57_tune): Likewise.
25958 (arm_xgene1_tune): Likewise.
25959 (arm_cortex_a5_tune): Likewise.
25960 (arm_cortex_a9_tune): Likewise.
25961 (arm_cortex_a12_tune): Likewise.
25962 (arm_v7m_tune): Likewise.
25963 (arm_cortex_m7_tune): Likewise.
25964 (arm_v6m_tune): Likewise.
25965 (arm_fa726te_tune): Likewise.
25967 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
25969 * altivec.md: Delete UNSPEC_VMLADDUHM.
25970 (mulv4si3_p8): New pattern.
25971 (mulv4si3): Use it for POWER8.
25972 (mulv8hi3): Use vmladduhm with zero addend.
25973 (altivec_vmladduhm): Descriptive RTL.
25975 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
25977 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
25978 to use neon_move instead of mov_imm.
25979 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
25980 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
25982 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
25983 aarch64_float_const_zero_rtx_p check before TFmode check.
25984 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
25986 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
25987 code and attributes to match. Change condition from register_operand
25988 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
25989 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
25992 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
25995 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
25996 there is no parent.
25998 2015-06-14 Shiva Chen <shiva0217@gmail.com>
26000 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
26001 HOST_WIDE_INT parameter.
26003 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
26006 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
26007 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
26009 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
26011 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
26013 * rtl.h (classify_insn): Declare.
26014 * emit-rtl.c (classify_insn): Move to...
26015 * rtl.c: ...here and add generator support.
26016 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
26017 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
26018 * genemit.c (gen_emit_seq): New function.
26019 (gen_expand, gen_split): Use it.
26021 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
26023 * tree.c (make_vector_stat): Fix comment to state that the
26024 function returns a VECTOR_CST.
26026 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
26028 * gensupport.h (add_implicit_parallel): Declare.
26029 * genrecog.c (add_implicit_parallel): Move to...
26030 * gensupport.c (add_implicit_parallel): ...here.
26031 (process_one_cond_exec): Use it.
26032 * genemit.c (gen_insn): Likewise.
26034 2015-06-13 Iain Sandoe <iain@codesourcery.com>
26037 * passes.c (rest_of_decl_compilation): Do not register globals for
26038 early debug if they are declared in built-ins.
26040 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
26042 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
26044 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26046 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
26048 (noce_try_cmove_arith): Likewise.
26049 (noce_get_alt_condition): Likewise.
26051 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26053 * common/config/i386/i386-common.c
26054 (OPTION_MASK_ISA_MWAITX_SET): New.
26055 (ix86_handle_option): Handle mwaitx.
26056 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
26057 (x86_64-*-*): Likewise.
26058 * config/i386/mwaitxintrin.h: New header.
26059 * config/i386/cpuid.h (bit_MWAITX): Define.
26060 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26062 * config/i386/i386.opt (mwaitx): New.
26063 * config/i386/i386-builtin-types.def
26064 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
26065 * config/i386/i386-c.c: Define __MWAITX__ if needed.
26066 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
26068 (ix86_option_override_internal): Handle new option.
26069 (processor_alias_table): Added PTA_MWAITX.
26070 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
26071 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
26072 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
26073 IX86_BUILTIN_MONITORX built-ins.
26074 * config/i386/i386.h (TARGET_MWAITX): New.
26075 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
26077 (mwaitx): New pattern.
26078 (monitorx_<mode>): New pattern.
26079 * config/i386/x86intrin.h: Include mwaitxintrin.h.
26080 * doc/extend.texi: Document monitorx and mwaitx builtins.
26081 * doc/invoke.texi: Document -mmwaitx option.
26083 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
26085 * emit-rtl.c (need_atomic_barrier_p): Mask model with
26086 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
26088 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
26090 * dbxout.c (xcoff_debug_hooks): Provide a function for
26091 register_main_translation_unit hook.
26093 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
26095 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
26096 variants cases from switch.
26097 (rs6000_post_atomic_barrier): Same.
26098 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
26099 (rs6000_expand_atomic_exchange): Same.
26100 (rs6000_expand_atomic_op): Same.
26101 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
26102 SYNC variants cases from switch.
26103 (atomic_load): Same.
26104 (atomic_store): Same.
26106 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
26108 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
26109 CONST_INT for goto.
26111 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
26114 * dwarf2out.c (check_die): Check for common duplicate attributes.
26115 (add_location_or_const_value_attribute): Do not add duplicate
26117 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
26119 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
26120 (gen_type_die_with_usage): Call check_die.
26121 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
26123 2015-06-11 Jason Merrill <jason@redhat.com>
26125 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
26128 2015-06-11 Marek Polacek <polacek@redhat.com>
26130 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
26132 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
26135 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
26136 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
26137 (*addx_extend_sp32): Fix pasto.
26138 (*subx_extend): Rename into...
26139 (*subx_extend_sp32): ...this.
26140 (*adddi3_extend_sp32): Add earlyclobber.
26141 (*subdi3_insn_sp32): Likewise.
26142 (*subdi3_extend_sp32): Likewise.
26143 (*and_not_di_sp32): Likewise.
26144 (*or_not_di_sp32): Likewise.
26145 (*xor_not_di_sp32): Likewise.
26146 (*negdi2_sp32): Likewise.
26147 (*one_cmpldi2_sp32): Likewise.
26149 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
26151 * debug.h (struct gcc_debug_hooks): Add a
26152 register_main_translation_unit hook.
26153 * debug.c (do_nothing_debug_hooks): Provide a function for this
26155 * dbxout.c (dbx_debug_hooks): Likewise.
26156 * sdbout.c (sdb_debug_hooks): Likewise.
26157 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
26158 * dwarf2out.c (main_translation_unit): New global variable.
26159 (dwarf2out_register_main_translation_unit): New function
26160 implementing the new hook.
26161 (dwarf2_debug_hooks): Assign
26162 dwarf2out_register_main_translation_unit to this new hook.
26163 (dwarf2out_init): Associate any main translation unit to
26166 2015-06-11 Marek Polacek <polacek@redhat.com>
26168 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
26170 2015-06-11 Marek Polacek <polacek@redhat.com>
26172 * match.pd: Use single_use throughout.
26174 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26176 * config/arm/arm.c (arm_option_params_internal): When optimising
26177 for speed set max_insns_skipped when arm_restrict_it.
26179 2015-06-11 Christian Bruel <christian.bruel@st.com>
26182 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
26184 (arm_cpu_builtins): New function.
26185 (arm_pragma_target_parse): Call arm_cpu_builtins.
26186 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
26187 (arm_register_target_pragmas): Likewise.
26188 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
26189 Call arm_register_target_pragmas.
26190 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
26191 (arm_pragma_target_parse): Likewise.
26193 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
26195 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
26196 of the second operand.
26198 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
26201 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
26202 to prepare mask operand for AVX512 modes.
26204 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
26207 * doc/md.texi (Machine Constraints): Document that on the PowerPC
26208 if you use a constraint that targets a VSX register, you must use
26209 %x<n> in the template.
26211 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
26213 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
26214 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
26215 (define_insn "trap"): New definition.
26217 2015-06-10 Richard Biener <rguenther@suse.de>
26219 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
26221 (vect_supported_load_permutation_p): ... here. Handle
26222 supportable permutations in reductions.
26223 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
26224 for vectorizing strided group loads.
26226 2015-06-10 Jakub Jelinek <jakub@redhat.com>
26229 * config/i386/i386.c (ix86_split_long_move): For collisions
26230 involving direct tls segment refs, move the UNSPEC_TP possibly
26231 wrapped in ZERO_EXTEND out of the address for lea, to each of
26234 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26236 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
26237 dmb sy. Adjust tabs.
26239 2015-06-10 Tom de Vries <tom@codesourcery.com>
26241 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
26243 2015-06-10 Martin Liska <mliska@suse.cz>
26246 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
26247 all enum values in mem_alloc_origin.
26248 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
26250 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
26251 * bitmap.c (bitmap_register): Likewise.
26252 (dump_bitmap_statistics): Likewise.
26253 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
26254 (ggc_record_overhead): Likewise.
26255 * hash-map.h: Likewise.
26256 * hash-set.h: Likewise.
26257 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
26258 * hash-table.h: Likewise.
26259 * vec.c (vec_prefix::register_overhead): Likewise.
26260 (vec_prefix::release_overhead): Likewise.
26261 (dump_vec_loc_statistics): Likewise.
26263 2015-06-09 Christian Bruel <christian.bruel@st.com>
26266 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
26267 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
26268 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
26269 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
26270 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
26271 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
26272 (arm_valid_target_attribute_p): Likewise.
26273 (arm_set_current_function, arm_can_inline_p): Likewise.
26274 (arm_valid_target_attribute_rec): Likewise.
26275 (arm_previous_fndecl): New variable.
26276 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
26277 (TARGET_CAN_INLINE_P): Define.
26278 (arm_asm_trampoline_template): Emit mode.
26279 (arm_file_start): Don't set unified syntax.
26280 (arm_declare_function_name): Set unified syntax and mode.
26281 (arm_option_override): Init target_option_default_node.
26282 and target_option_current_node.
26283 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
26284 (*call_symbol): Likewise.
26285 * doc/extend.texi: Document ARM/Thumb target attribute.
26286 * doc/invoke.texi: Likewise.
26288 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26291 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26292 PR rtl-optimization/64164
26293 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
26294 * tree-ssa-copyrename.c: Removed.
26295 * opts.c (default_options_table): Drop -ftree-copyrename. Add
26296 -ftree-coalesce-vars.
26297 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26298 * common.opt (ftree-copyrename): Ignore.
26299 (ftree-coalesce-inlined-vars): Likewise.
26300 * doc/invoke.texi: Remove the ignored options above.
26301 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26302 * tree-ssa-coalesce.h: ... here.
26303 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26304 headers required by it.
26305 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26306 across variables when flag_tree_coalesce_vars. Check register
26307 use and promoted modes to allow coalescing. Moved to
26308 tree-ssa-coalesce.c.
26309 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26310 with its member functions to tree-ssa-coalesce.c.
26311 (var_map_base_init): Likewise. Renamed to
26312 compute_samebase_partition_bases.
26313 (partition_view_normal): Drop want_bases parameter.
26314 (partition_view_bitmap): Likewise.
26315 * tree-ssa-live.h: Adjust declarations.
26316 * tree-ssa-coalesce.c: Include explow.h.
26317 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26318 default defs at the entry point.
26319 (dump_part_var_map): New.
26320 (compute_optimized_partition_bases): New, called by...
26321 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26322 of compute_samebase_partition_bases. Adjust.
26323 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26324 * cfgexpand.c (leader_merge): New.
26325 (get_rtl_for_parm_ssa_default_def): New.
26326 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26327 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26328 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
26329 redundant MEM attr setting.
26330 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
26332 (expand_one_stack_var): ... this. New wrapper to check and
26333 skip already expanded SSA partitions.
26334 (record_alignment_for_reg_var): New, factored out of...
26335 (expand_one_var): ... this.
26336 (expand_one_ssa_partition): New.
26337 (adjust_one_expanded_partition_var): New.
26338 (expand_one_register_var): Check and skip already expanded SSA
26340 (expand_used_vars): Don't create DECLs for anonymous SSA
26341 names. Expand all SSA partitions, then adjust all SSA names.
26342 (pass::execute): Replace the loops that set
26343 SA.partition_to_pseudo from partition leaders and cleared
26344 DECL_RTL for multi-location variables, and that which used to
26345 rename vars and set attrs, with one that clears DECL_RTL and
26346 checks that PARMs and RESULTs default_defs match DECL_RTL.
26347 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26348 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26349 * explow.c (promote_ssa_mode): New.
26350 * explow.h (promote_ssa_mode): Declare.
26351 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26352 * function.c: Include cfgexpand.h.
26353 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26354 (use_register_for_parm_decl): Wrapper for the above to
26355 special-case the result_ptr.
26356 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26357 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26358 multiple locations.
26359 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26360 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
26361 (assign_parm_setup_block): Prefer SSA-assigned location.
26362 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
26363 if stack_parm is NULL.
26364 (assign_parm_setup_stack): Prefer SSA-assigned location.
26365 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
26366 rtl before testing for pointer bounds. Special-case result_ptr.
26367 (expand_function_start): Maybe reset DECL_RTL of result.
26368 Prefer SSA-assigned location for result and static chain.
26369 Factor out DECL_RESULT and SET_DECL_RTL.
26370 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26371 anonymous SSA names. Use promote_ssa_mode.
26372 (get_temp_reg): Likewise.
26373 (remove_ssa_form): Adjust.
26374 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26375 and get its reg_usage for reg invalidation.
26376 (compute_bb_dataflow): Pass it insn.
26377 (emit_notes_in_bb): Likewise.
26378 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26379 fail assert on conversion between unsigned types.
26381 2015-06-09 Tom de Vries <tom@codesourcery.com>
26383 PR tree-optimization/65460
26384 * omp-low.c (expand_omp_target): Set parallelized_function on
26385 cgraph_node for child_fn.
26387 2015-06-09 Tom de Vries <tom@codesourcery.com>
26389 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
26390 parallelized_function before add_new_function.
26392 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
26394 * gcc-plugin.h: Move decls to plugin.h and include it.
26395 * plugin.h: Relocate decls from gcc-plugin.h
26396 * ggc-page.c: Include required header files.
26397 * passes.c: Likewise.
26398 * cgraphunit.c: Likewise.
26400 2015-06-09 Tom de Vries <tom@codesourcery.com>
26402 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
26404 2015-06-09 Jason Merrill <jason@redhat.com>
26407 * toplev.c (check_global_declaration): Don't warn about a clone.
26409 2015-06-09 Marek Polacek <polacek@redhat.com>
26411 PR tree-optimization/66299
26412 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
26413 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
26416 2015-06-09 Richard Biener <rguenther@suse.de>
26418 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
26419 (vect_analyze_slp_instance): Instead do not falsely drop
26422 2015-06-09 Richard Biener <rguenther@suse.de>
26424 PR middle-end/66423
26425 * match.pd: Handle A % (unsigned)(1 << B).
26427 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
26429 * varasm.c (output_object_block_htab): Remove.
26430 (output_object_block_compare): New.
26431 (output_object_blocks): Sort named object_blocks before outputting
26434 2015-06-09 Richard Biener <rguenther@suse.de>
26436 PR tree-optimization/66419
26437 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
26438 consider GROUP_GAP when detecting a perfect subchain.
26440 2015-06-09 Nick Clifton <nickc@redhat.com>
26442 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
26443 place read only data in the .frodata section.
26445 2015-06-09 Shiva Chen <shiva0217@gmail.com>
26447 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
26448 (atomic_store<mode>): Likewise.
26450 2015-06-09 Richard Biener <rguenther@suse.de>
26452 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
26454 2015-06-09 Richard Biener <rguenther@suse.de>
26456 PR middle-end/66413
26457 * tree-inline.c (insert_init_debug_bind): Unshare value.
26459 2015-06-09 Richard Biener <rguenther@suse.de>
26461 PR tree-optimization/66396
26462 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
26463 Rename virtual operands.
26465 2015-06-09 Tom de Vries <tom@codesourcery.com>
26467 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
26468 always return false.
26470 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26472 PR rtl-optimization/64164
26473 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
26474 * tree-ssa-copyrename.c: Removed.
26475 * opts.c (default_options_table): Drop -ftree-copyrename. Add
26476 -ftree-coalesce-vars.
26477 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26478 * common.opt (ftree-copyrename): Ignore.
26479 (ftree-coalesce-inlined-vars): Likewise.
26480 * doc/invoke.texi: Remove the ignored options above.
26481 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26482 * tree-ssa-coalesce.h: ... here.
26483 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26484 headers required by it.
26485 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26486 across variables when flag_tree_coalesce_vars. Check register
26487 use and promoted modes to allow coalescing. Moved to
26488 tree-ssa-coalesce.c.
26489 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26490 with its member functions to tree-ssa-coalesce.c.
26491 (var_map_base_init): Likewise. Renamed to
26492 compute_samebase_partition_bases.
26493 (partition_view_normal): Drop want_bases parameter.
26494 (partition_view_bitmap): Likewise.
26495 * tree-ssa-live.h: Adjust declarations.
26496 * tree-ssa-coalesce.c: Include explow.h.
26497 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26498 default defs at the entry point.
26499 (dump_part_var_map): New.
26500 (compute_optimized_partition_bases): New, called by...
26501 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26502 of compute_samebase_partition_bases. Adjust.
26503 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26504 * cfgexpand.c (leader_merge): New.
26505 (get_rtl_for_parm_ssa_default_def): New.
26506 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26507 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26508 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
26509 redundant MEM attr setting.
26510 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
26512 (expand_one_stack_var): ... this. New wrapper to check and
26513 skip already expanded SSA partitions.
26514 (record_alignment_for_reg_var): New, factored out of...
26515 (expand_one_var): ... this.
26516 (expand_one_ssa_partition): New.
26517 (adjust_one_expanded_partition_var): New.
26518 (expand_one_register_var): Check and skip already expanded SSA
26520 (expand_used_vars): Don't create DECLs for anonymous SSA
26521 names. Expand all SSA partitions, then adjust all SSA names.
26522 (pass::execute): Replace the loops that set
26523 SA.partition_to_pseudo from partition leaders and cleared
26524 DECL_RTL for multi-location variables, and that which used to
26525 rename vars and set attrs, with one that clears DECL_RTL and
26526 checks that PARMs and RESULTs default_defs match DECL_RTL.
26527 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26528 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26529 * explow.c (promote_ssa_mode): New.
26530 * explow.h (promote_ssa_mode): Declare.
26531 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26532 * function.c: Include cfgexpand.h.
26533 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26534 (use_register_for_parm_decl): Wrapper for the above to
26535 special-case the result_ptr.
26536 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26537 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26538 multiple locations.
26539 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26540 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
26541 (assign_parm_setup_block): Prefer SSA-assigned location.
26542 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
26543 if stack_parm is NULL.
26544 (assign_parm_setup_stack): Prefer SSA-assigned location.
26545 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
26546 rtl before testing for pointer bounds. Special-case result_ptr.
26547 (expand_function_start): Maybe reset DECL_RTL of result.
26548 Prefer SSA-assigned location for result and static chain.
26549 Factor out DECL_RESULT and SET_DECL_RTL.
26550 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26551 anonymous SSA names. Use promote_ssa_mode.
26552 (get_temp_reg): Likewise.
26553 (remove_ssa_form): Adjust.
26554 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26555 and get its reg_usage for reg invalidation.
26556 (compute_bb_dataflow): Pass it insn.
26557 (emit_notes_in_bb): Likewise.
26558 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26559 fail assert on conversion between unsigned types.
26561 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26564 * tree-inline.c (reset_debug_binding): New.
26565 (reset_debug_bindings): Likewise.
26566 (expand_call_inline): Call it.
26568 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26570 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
26573 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26575 * lto-streamer-out.c (lto_output_location): Stream
26576 reserved locations correctly.
26577 * lto-streamer-in.c (lto_output_location): Likewise.
26579 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
26581 * coretypes.h: Include hash-table.h and hash-set.h for host files.
26582 * ggc.h: Don't include statistics.h>
26583 * hash-map.h: Remove all includes.
26584 * hash-set.h: Likewise.
26585 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
26586 the include list. Remove <new>.
26587 * inchash.h: Remove all includes.
26588 * mem-stats.h: Likewise.
26589 * vec.h: No special processing for generators or ggc.
26590 * alias.c : Adjust include files.
26591 * alloc-pool.c : Likewise.
26592 * alloc-pool.h : Likewise.
26593 * asan.c : Likewise.
26594 * attribs.c : Likewise.
26595 * auto-inc-dec.c : Likewise.
26596 * auto-profile.c : Likewise.
26597 * bb-reorder.c : Likewise.
26598 * bitmap.c : Likewise.
26599 * bitmap.h : Likewise.
26600 * bt-load.c : Likewise.
26601 * builtins.c : Likewise.
26602 * caller-save.c : Likewise.
26603 * calls.c : Likewise.
26604 * ccmp.c : Likewise.
26605 * cfg.c : Likewise.
26606 * cfganal.c : Likewise.
26607 * cfgbuild.c : Likewise.
26608 * cfgcleanup.c : Likewise.
26609 * cfgexpand.c : Likewise.
26610 * cfghooks.c : Likewise.
26611 * cfgloop.c : Likewise.
26612 * cfgloop.h : Likewise.
26613 * cfgloopanal.c : Likewise.
26614 * cfgloopmanip.c : Likewise.
26615 * cfgrtl.c : Likewise.
26616 * cgraph.c : Likewise.
26617 * cgraphbuild.c : Likewise.
26618 * cgraphclones.c : Likewise.
26619 * cgraphunit.c : Likewise.
26620 * cilk-common.c : Likewise.
26621 * combine-stack-adj.c : Likewise.
26622 * combine.c : Likewise.
26623 * compare-elim.c : Likewise.
26624 * context.c : Likewise.
26625 * convert.c : Likewise.
26626 * coverage.c : Likewise.
26627 * cppbuiltin.c : Likewise.
26628 * cprop.c : Likewise.
26629 * cse.c : Likewise.
26630 * cselib.c : Likewise.
26631 * data-streamer-in.c : Likewise.
26632 * data-streamer-out.c : Likewise.
26633 * data-streamer.c : Likewise.
26634 * data-streamer.h : Likewise.
26635 * dbxout.c : Likewise.
26636 * dce.c : Likewise.
26637 * ddg.c : Likewise.
26638 * debug.c : Likewise.
26639 * df-core.c : Likewise.
26640 * df-problems.c : Likewise.
26641 * df-scan.c : Likewise.
26643 * dfp.c : Likewise.
26644 * dojump.c : Likewise.
26645 * dominance.c : Likewise.
26646 * domwalk.c : Likewise.
26647 * double-int.c : Likewise.
26648 * dse.c : Likewise.
26649 * dumpfile.c : Likewise.
26650 * dwarf2asm.c : Likewise.
26651 * dwarf2cfi.c : Likewise.
26652 * dwarf2out.c : Likewise.
26653 * emit-rtl.c : Likewise.
26654 * et-forest.c : Likewise.
26655 * except.c : Likewise.
26656 * except.h : Likewise.
26657 * explow.c : Likewise.
26658 * expmed.c : Likewise.
26659 * expr.c : Likewise.
26660 * final.c : Likewise.
26661 * fixed-value.c : Likewise.
26662 * fold-const.c : Likewise.
26663 * function.c : Likewise.
26664 * fwprop.c : Likewise.
26665 * gcc-plugin.h : Likewise.
26666 * gcc.c : Likewise.
26667 * gcse-common.c : Likewise.
26668 * gcse.c : Likewise.
26669 * genattrtab.c : Likewise.
26670 * genautomata.c : Likewise.
26671 * genconditions.c : Likewise.
26672 * genemit.c : Likewise.
26673 * generic-match-head.c : Likewise.
26674 * genextract.c : Likewise.
26675 * gengtype-state.c : Likewise.
26676 * gengtype.c : Likewise.
26677 * genhooks.c : Likewise.
26678 * genmatch.c : Likewise.
26679 * genmodes.c : Likewise.
26680 * genrecog.c : Likewise.
26681 * gensupport.c : Likewise.
26682 * ggc-common.c : Likewise.
26683 * ggc-internal.h : Likewise.
26684 * ggc-none.c : Likewise.
26685 * ggc-page.c : Likewise.
26686 * gimple-builder.c : Likewise.
26687 * gimple-expr.c : Likewise.
26688 * gimple-fold.c : Likewise.
26689 * gimple-iterator.c : Likewise.
26690 * gimple-low.c : Likewise.
26691 * gimple-match-head.c : Likewise.
26692 * gimple-pretty-print.c : Likewise.
26693 * gimple-ssa-isolate-paths.c : Likewise.
26694 * gimple-ssa-strength-reduction.c : Likewise.
26695 * gimple-ssa.h : Likewise.
26696 * gimple-streamer-in.c : Likewise.
26697 * gimple-streamer-out.c : Likewise.
26698 * gimple-streamer.h : Likewise.
26699 * gimple-walk.c : Likewise.
26700 * gimple.c : Likewise.
26701 * gimplify-me.c : Likewise.
26702 * gimplify.c : Likewise.
26703 * godump.c : Likewise.
26704 * graph.c : Likewise.
26705 * graphds.c : Likewise.
26706 * graphite-blocking.c : Likewise.
26707 * graphite-dependences.c : Likewise.
26708 * graphite-interchange.c : Likewise.
26709 * graphite-isl-ast-to-gimple.c : Likewise.
26710 * graphite-optimize-isl.c : Likewise.
26711 * graphite-poly.c : Likewise.
26712 * graphite-scop-detection.c : Likewise.
26713 * graphite-sese-to-poly.c : Likewise.
26714 * graphite.c : Likewise.
26715 * haifa-sched.c : Likewise.
26716 * hard-reg-set.h : Likewise.
26717 * hw-doloop.c : Likewise.
26718 * ifcvt.c : Likewise.
26719 * inchash.c : Likewise.
26720 * incpath.c : Likewise.
26721 * init-regs.c : Likewise.
26722 * input.c : Likewise.
26723 * internal-fn.c : Likewise.
26724 * ipa-chkp.c : Likewise.
26725 * ipa-comdats.c : Likewise.
26726 * ipa-cp.c : Likewise.
26727 * ipa-devirt.c : Likewise.
26728 * ipa-icf-gimple.c : Likewise.
26729 * ipa-icf.c : Likewise.
26730 * ipa-inline-analysis.c : Likewise.
26731 * ipa-inline-transform.c : Likewise.
26732 * ipa-inline.c : Likewise.
26733 * ipa-polymorphic-call.c : Likewise.
26734 * ipa-profile.c : Likewise.
26735 * ipa-prop.c : Likewise.
26736 * ipa-pure-const.c : Likewise.
26737 * ipa-ref.c : Likewise.
26738 * ipa-reference.c : Likewise.
26739 * ipa-split.c : Likewise.
26740 * ipa-utils.c : Likewise.
26741 * ipa-visibility.c : Likewise.
26742 * ipa.c : Likewise.
26743 * ira-build.c : Likewise.
26744 * ira-color.c : Likewise.
26745 * ira-conflicts.c : Likewise.
26746 * ira-costs.c : Likewise.
26747 * ira-emit.c : Likewise.
26748 * ira-lives.c : Likewise.
26749 * ira.c : Likewise.
26750 * jump.c : Likewise.
26751 * langhooks.c : Likewise.
26752 * lcm.c : Likewise.
26753 * libfuncs.h : Likewise.
26754 * lists.c : Likewise.
26755 * loop-doloop.c : Likewise.
26756 * loop-init.c : Likewise.
26757 * loop-invariant.c : Likewise.
26758 * loop-iv.c : Likewise.
26759 * loop-unroll.c : Likewise.
26760 * lower-subreg.c : Likewise.
26761 * lra-assigns.c : Likewise.
26762 * lra-coalesce.c : Likewise.
26763 * lra-constraints.c : Likewise.
26764 * lra-eliminations.c : Likewise.
26765 * lra-lives.c : Likewise.
26766 * lra-remat.c : Likewise.
26767 * lra-spills.c : Likewise.
26768 * lra.c : Likewise.
26769 * lto-cgraph.c : Likewise.
26770 * lto-compress.c : Likewise.
26771 * lto-opts.c : Likewise.
26772 * lto-section-in.c : Likewise.
26773 * lto-section-out.c : Likewise.
26774 * lto-streamer-in.c : Likewise.
26775 * lto-streamer-out.c : Likewise.
26776 * lto-streamer.c : Likewise.
26777 * lto-streamer.h : Likewise.
26778 * mcf.c : Likewise.
26779 * mode-switching.c : Likewise.
26780 * modulo-sched.c : Likewise.
26781 * omega.c : Likewise.
26782 * omp-low.c : Likewise.
26783 * optabs.c : Likewise.
26784 * opts-global.c : Likewise.
26785 * opts.h : Likewise.
26786 * passes.c : Likewise.
26787 * plugin.c : Likewise.
26788 * postreload-gcse.c : Likewise.
26789 * postreload.c : Likewise.
26790 * predict.c : Likewise.
26791 * print-rtl.c : Likewise.
26792 * print-tree.c : Likewise.
26793 * profile.c : Likewise.
26794 * read-md.c : Likewise.
26795 * read-md.h : Likewise.
26796 * read-rtl.c : Likewise.
26797 * real.c : Likewise.
26798 * realmpfr.c : Likewise.
26799 * recog.c : Likewise.
26800 * ree.c : Likewise.
26801 * reg-stack.c : Likewise.
26802 * regcprop.c : Likewise.
26803 * reginfo.c : Likewise.
26804 * regrename.c : Likewise.
26805 * regstat.c : Likewise.
26806 * reload.c : Likewise.
26807 * reload1.c : Likewise.
26808 * reorg.c : Likewise.
26809 * resource.c : Likewise.
26810 * rtl-chkp.c : Likewise.
26811 * rtl.c : Likewise.
26812 * rtl.h : Likewise.
26813 * rtlanal.c : Likewise.
26814 * rtlhash.c : Likewise.
26815 * rtlhash.h : Likewise.
26816 * rtlhooks.c : Likewise.
26817 * sanopt.c : Likewise.
26818 * sched-deps.c : Likewise.
26819 * sched-ebb.c : Likewise.
26820 * sched-rgn.c : Likewise.
26821 * sched-vis.c : Likewise.
26822 * sdbout.c : Likewise.
26823 * sel-sched-dump.c : Likewise.
26824 * sel-sched-ir.c : Likewise.
26825 * sel-sched-ir.h : Likewise.
26826 * sel-sched.c : Likewise.
26827 * sese.c : Likewise.
26828 * shrink-wrap.c : Likewise.
26829 * shrink-wrap.h : Likewise.
26830 * simplify-rtx.c : Likewise.
26831 * stack-ptr-mod.c : Likewise.
26832 * statistics.c : Likewise.
26833 * stmt.c : Likewise.
26834 * stor-layout.c : Likewise.
26835 * store-motion.c : Likewise.
26836 * stringpool.c : Likewise.
26837 * symtab.c : Likewise.
26838 * target-globals.c : Likewise.
26839 * targhooks.c : Likewise.
26840 * tlink.c : Likewise.
26841 * toplev.c : Likewise.
26842 * tracer.c : Likewise.
26843 * trans-mem.c : Likewise.
26844 * tree-affine.c : Likewise.
26845 * tree-affine.h : Likewise.
26846 * tree-browser.c : Likewise.
26847 * tree-call-cdce.c : Likewise.
26848 * tree-cfg.c : Likewise.
26849 * tree-cfgcleanup.c : Likewise.
26850 * tree-chkp-opt.c : Likewise.
26851 * tree-chkp.c : Likewise.
26852 * tree-chrec.c : Likewise.
26853 * tree-complex.c : Likewise.
26854 * tree-data-ref.c : Likewise.
26855 * tree-dfa.c : Likewise.
26856 * tree-diagnostic.c : Likewise.
26857 * tree-dump.c : Likewise.
26858 * tree-eh.c : Likewise.
26859 * tree-eh.h : Likewise.
26860 * tree-emutls.c : Likewise.
26861 * tree-hasher.h : Likewise.
26862 * tree-if-conv.c : Likewise.
26863 * tree-inline.c : Likewise.
26864 * tree-inline.h : Likewise.
26865 * tree-into-ssa.c : Likewise.
26866 * tree-iterator.c : Likewise.
26867 * tree-loop-distribution.c : Likewise.
26868 * tree-nested.c : Likewise.
26869 * tree-nrv.c : Likewise.
26870 * tree-object-size.c : Likewise.
26871 * tree-outof-ssa.c : Likewise.
26872 * tree-parloops.c : Likewise.
26873 * tree-phinodes.c : Likewise.
26874 * tree-predcom.c : Likewise.
26875 * tree-pretty-print.c : Likewise.
26876 * tree-profile.c : Likewise.
26877 * tree-scalar-evolution.c : Likewise.
26878 * tree-sra.c : Likewise.
26879 * tree-ssa-address.c : Likewise.
26880 * tree-ssa-alias.c : Likewise.
26881 * tree-ssa-ccp.c : Likewise.
26882 * tree-ssa-coalesce.c : Likewise.
26883 * tree-ssa-copy.c : Likewise.
26884 * tree-ssa-copyrename.c : Likewise.
26885 * tree-ssa-dce.c : Likewise.
26886 * tree-ssa-dom.c : Likewise.
26887 * tree-ssa-dse.c : Likewise.
26888 * tree-ssa-forwprop.c : Likewise.
26889 * tree-ssa-ifcombine.c : Likewise.
26890 * tree-ssa-live.c : Likewise.
26891 * tree-ssa-loop-ch.c : Likewise.
26892 * tree-ssa-loop-im.c : Likewise.
26893 * tree-ssa-loop-ivcanon.c : Likewise.
26894 * tree-ssa-loop-ivopts.c : Likewise.
26895 * tree-ssa-loop-manip.c : Likewise.
26896 * tree-ssa-loop-niter.c : Likewise.
26897 * tree-ssa-loop-prefetch.c : Likewise.
26898 * tree-ssa-loop-unswitch.c : Likewise.
26899 * tree-ssa-loop.c : Likewise.
26900 * tree-ssa-math-opts.c : Likewise.
26901 * tree-ssa-operands.c : Likewise.
26902 * tree-ssa-phiopt.c : Likewise.
26903 * tree-ssa-phiprop.c : Likewise.
26904 * tree-ssa-pre.c : Likewise.
26905 * tree-ssa-propagate.c : Likewise.
26906 * tree-ssa-reassoc.c : Likewise.
26907 * tree-ssa-sccvn.c : Likewise.
26908 * tree-ssa-scopedtables.c : Likewise.
26909 * tree-ssa-sink.c : Likewise.
26910 * tree-ssa-strlen.c : Likewise.
26911 * tree-ssa-structalias.c : Likewise.
26912 * tree-ssa-tail-merge.c : Likewise.
26913 * tree-ssa-ter.c : Likewise.
26914 * tree-ssa-threadedge.c : Likewise.
26915 * tree-ssa-threadupdate.c : Likewise.
26916 * tree-ssa-uncprop.c : Likewise.
26917 * tree-ssa-uninit.c : Likewise.
26918 * tree-ssa.c : Likewise.
26919 * tree-ssanames.c : Likewise.
26920 * tree-stdarg.c : Likewise.
26921 * tree-streamer-in.c : Likewise.
26922 * tree-streamer-out.c : Likewise.
26923 * tree-streamer.c : Likewise.
26924 * tree-streamer.h : Likewise.
26925 * tree-switch-conversion.c : Likewise.
26926 * tree-tailcall.c : Likewise.
26927 * tree-vect-data-refs.c : Likewise.
26928 * tree-vect-generic.c : Likewise.
26929 * tree-vect-loop-manip.c : Likewise.
26930 * tree-vect-loop.c : Likewise.
26931 * tree-vect-patterns.c : Likewise.
26932 * tree-vect-slp.c : Likewise.
26933 * tree-vect-stmts.c : Likewise.
26934 * tree-vectorizer.c : Likewise.
26935 * tree-vectorizer.h : Likewise.
26936 * tree-vrp.c : Likewise.
26937 * tree.c : Likewise.
26938 * tsan.c : Likewise.
26939 * ubsan.c : Likewise.
26940 * valtrack.c : Likewise.
26941 * valtrack.h : Likewise.
26942 * value-prof.c : Likewise.
26943 * var-tracking.c : Likewise.
26944 * varasm.c : Likewise.
26945 * varpool.c : Likewise.
26947 * vmsdbgout.c : Likewise.
26948 * vtable-verify.c : Likewise.
26949 * vtable-verify.h : Likewise.
26950 * web.c : Likewise.
26951 * wide-int.cc : Likewise.
26952 * xcoffout.c : Likewise.
26953 * config/aarch64/aarch64-builtins.c : Likewise.
26954 * config/aarch64/aarch64.c : Likewise.
26955 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
26956 * config/alpha/alpha.c : Likewise.
26957 * config/arc/arc.c : Likewise.
26958 * config/arm/aarch-common.c : Likewise.
26959 * config/arm/arm-builtins.c : Likewise.
26960 * config/arm/arm-c.c : Likewise.
26961 * config/arm/arm.c : Likewise.
26962 * config/avr/avr-c.c : Likewise.
26963 * config/avr/avr-log.c : Likewise.
26964 * config/avr/avr.c : Likewise.
26965 * config/bfin/bfin.c : Likewise.
26966 * config/c6x/c6x.c : Likewise.
26967 * config/cr16/cr16.c : Likewise.
26968 * config/cris/cris.c : Likewise.
26969 * config/darwin-c.c : Likewise.
26970 * config/darwin.c : Likewise.
26971 * config/default-c.c : Likewise.
26972 * config/epiphany/epiphany.c : Likewise.
26973 * config/epiphany/mode-switch-use.c : Likewise.
26974 * config/epiphany/resolve-sw-modes.c : Likewise.
26975 * config/fr30/fr30.c : Likewise.
26976 * config/frv/frv.c : Likewise.
26977 * config/ft32/ft32.c : Likewise.
26978 * config/glibc-c.c : Likewise.
26979 * config/h8300/h8300.c : Likewise.
26980 * config/i386/i386-c.c : Likewise.
26981 * config/i386/i386.c : Likewise.
26982 * config/i386/msformat-c.c : Likewise.
26983 * config/i386/winnt-cxx.c : Likewise.
26984 * config/i386/winnt-stubs.c : Likewise.
26985 * config/i386/winnt.c : Likewise.
26986 * config/ia64/ia64-c.c : Likewise.
26987 * config/ia64/ia64.c : Likewise.
26988 * config/iq2000/iq2000.c : Likewise.
26989 * config/lm32/lm32.c : Likewise.
26990 * config/m32c/m32c-pragma.c : Likewise.
26991 * config/m32c/m32c.c : Likewise.
26992 * config/m32r/m32r.c : Likewise.
26993 * config/m68k/m68k.c : Likewise.
26994 * config/mcore/mcore.c : Likewise.
26995 * config/mep/mep-pragma.c : Likewise.
26996 * config/mep/mep.c : Likewise.
26997 * config/microblaze/microblaze-c.c : Likewise.
26998 * config/microblaze/microblaze.c : Likewise.
26999 * config/mips/mips.c : Likewise.
27000 * config/mmix/mmix.c : Likewise.
27001 * config/mn10300/mn10300.c : Likewise.
27002 * config/moxie/moxie.c : Likewise.
27003 * config/msp430/msp430-c.c : Likewise.
27004 * config/msp430/msp430.c : Likewise.
27005 * config/nds32/nds32-cost.c : Likewise.
27006 * config/nds32/nds32-fp-as-gp.c : Likewise.
27007 * config/nds32/nds32-intrinsic.c : Likewise.
27008 * config/nds32/nds32-isr.c : Likewise.
27009 * config/nds32/nds32-md-auxiliary.c : Likewise.
27010 * config/nds32/nds32-memory-manipulation.c : Likewise.
27011 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
27012 * config/nds32/nds32-predicates.c : Likewise.
27013 * config/nds32/nds32.c : Likewise.
27014 * config/nios2/nios2.c : Likewise.
27015 * config/nvptx/nvptx.c : Likewise.
27016 * config/pa/pa.c : Likewise.
27017 * config/pdp11/pdp11.c : Likewise.
27018 * config/rl78/rl78-c.c : Likewise.
27019 * config/rl78/rl78.c : Likewise.
27020 * config/rs6000/rs6000-c.c : Likewise.
27021 * config/rs6000/rs6000.c : Likewise.
27022 * config/rx/rx.c : Likewise.
27023 * config/s390/s390-c.c : Likewise.
27024 * config/s390/s390.c : Likewise.
27025 * config/sh/sh-c.c : Likewise.
27026 * config/sh/sh-mem.cc : Likewise.
27027 * config/sh/sh.c : Likewise.
27028 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
27029 * config/sh/sh_treg_combine.cc : Likewise.
27030 * config/sol2-c.c : Likewise.
27031 * config/sol2-cxx.c : Likewise.
27032 * config/sol2-stubs.c : Likewise.
27033 * config/sol2.c : Likewise.
27034 * config/sparc/sparc-c.c : Likewise.
27035 * config/sparc/sparc.c : Likewise.
27036 * config/spu/spu-c.c : Likewise.
27037 * config/spu/spu.c : Likewise.
27038 * config/stormy16/stormy16.c : Likewise.
27039 * config/tilegx/mul-tables.c : Likewise.
27040 * config/tilegx/tilegx-c.c : Likewise.
27041 * config/tilegx/tilegx.c : Likewise.
27042 * config/tilepro/mul-tables.c : Likewise.
27043 * config/tilepro/tilepro-c.c : Likewise.
27044 * config/tilepro/tilepro.c : Likewise.
27045 * config/v850/v850-c.c : Likewise.
27046 * config/v850/v850.c : Likewise.
27047 * config/vax/vax.c : Likewise.
27048 * config/visium/visium.c : Likewise.
27049 * config/vms/vms-c.c : Likewise.
27050 * config/vms/vms.c : Likewise.
27051 * config/vxworks.c : Likewise.
27052 * config/winnt-c.c : Likewise.
27053 * config/xtensa/xtensa.c : Likewise.
27055 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
27058 * ipa-utils.h (warn_types_mismatch): Update prototype.
27059 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
27061 (type_mismatch_p): New function.
27062 (warn_types_mismatch): Reorg to work better on non-C++ types.
27063 (odr_types_equivalent_p): Add loc1/loc2 parameters.
27064 (add_type_duplicate): Update.
27066 2015-06-08 Tom de Vries <tom@codesourcery.com>
27068 PR rtl-optimization/66444
27069 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
27072 2015-06-08 Richard Biener <rguenther@suse.de>
27074 PR tree-optimization/66422
27075 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
27076 block after inserted gcc_unreachable.
27078 2015-06-08 Nick Clifton <nickc@redhat.com>
27080 * config/rx/rx.c (rx_function_value): Do not promote vector types.
27081 (rx_promote_function_mode): Likewise.
27082 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
27084 2015-06-08 Jakub Jelinek <jakub@redhat.com>
27086 * genattrtab.c (insn_alternatives): Change type from int *
27088 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
27089 (get_attr_value): Change type of num_alt to uint64_t.
27090 (compute_alternative_mask): Change return type from
27091 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
27092 (make_alternative_compare, mk_attr_alt): Change argument type
27093 from int to uint64_t.
27094 (simplify_test_exp): Change type of i from int to uint64_t.
27095 Shift ((uint64_t) 1) instead of 1 up.
27096 (main): Adjust oballocvec first argument from int to uint64_t.
27097 Shift ((uint64_t) 1) instead of 1 up.
27099 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
27102 * gdbhooks.py: Import sys.
27103 (intptr): New function. Replace int(...) by intptr(...).
27105 2015-06-08 Richard Biener <rguenther@suse.de>
27107 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
27108 adjustment for gaps at the end of a SLP load group properly.
27109 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
27110 all permutations we can generate.
27111 (vect_transform_slp_perm_load): Use the correct group-size.
27113 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
27115 * genmatch.c (expr::gen_transform): For conditions, guess the type
27116 from the second operand.
27118 2015-06-08 Tom de Vries <tom@codesourcery.com>
27120 PR tree-optimization/66442
27121 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
27122 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
27123 if the loop latch is not a singleton. Use
27124 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
27126 2015-06-08 Marek Polacek <polacek@redhat.com>
27129 * toplev.c (check_global_declaration): Don't warn about artificial
27132 2015-06-08 Tom de Vries <tom@codesourcery.com>
27134 PR tree-optimization/66436
27135 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
27137 * gimplify.c: Add tree-dump.h include.
27138 (gimplify_function_tree): Dump function to gimple dump file.
27139 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
27142 2015-06-08 Tom de Vries <tom@codesourcery.com>
27144 PR tree-optimization/66435
27145 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
27148 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
27150 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
27151 of ptr_type_node to not be ptr_to_node.
27152 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
27153 TREE_TYPE of pointers.
27154 * gimple-expr.c (useless_type_conversion): Reorder the check for
27155 function pointers and TYPE_CANONICAL.
27157 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
27160 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
27161 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
27162 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
27164 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
27165 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
27166 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
27167 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
27168 and non iso if unix2003.
27170 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
27172 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
27174 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
27176 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
27177 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
27178 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
27179 except.c, final.c, function.c, gcse-common.c, genemit.c,
27180 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
27181 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
27182 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
27183 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
27186 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
27188 * combine.c (combine_split_insns): Remove cast.
27189 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
27190 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
27191 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
27192 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
27193 * genemit.c (gen_split): Change return type of generated functions to
27195 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
27196 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
27197 gen_peephole2_* functions.
27198 (print_subroutine, main): Likewise.
27199 * recog.c (peephole2_optimize): Remove cast.
27200 (peep2_next_insn): Promote return type to rtx_insn.
27201 * recog.h (peep2_next_insn): Fix prototype.
27202 * rtl.h (try_split, split_insns): Likewise.
27204 2015-06-06 DJ Delorie <dj@redhat.com>
27206 * config/msp430/msp430.c (msp430_asm_integer): Support addition
27207 and subtraction too.
27209 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
27212 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
27213 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
27214 instead of Snd. Disparage Sid/z alternative with '^'.
27216 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
27218 * dwarf2out.c: Remove deferred_locations*.
27219 (dwarf2_debug_hooks): Add early_finish hook.
27220 Remove global_decl hook.
27221 Add early_global_decl and late_global_decl hook.
27222 New global early_dwarf.
27223 New structure set_early_dwarf.
27224 (output_die): Indicate whether a DIE was generated early
27225 when generating assembly with -dA.
27226 (struct limbo_die_struct): Document created_for field.
27227 Remove file_table_last_lookup.
27228 (remove_AT): Return TRUE if successful.
27229 (remove_child_TAG): Clear die_parent.
27230 (reparent_child): New function abstracted from...
27231 (splice_child_die): ...here.
27232 (new_die): ICE if a DIE ends up in limbo too late.
27234 (defer_location): Remove.
27235 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
27236 (fill_variable_array_bounds): New.
27237 (decl_start_label): Call fill_variable_array_bounds.
27238 (gen_formal_parameter_die): Rewrite to reuse previously generated
27240 (gen_subprogram_die): Same.
27241 (gen_variable_die): Same.
27242 (gen_const_die): Same.
27243 (gen_label_die): Same.
27244 (gen_lexical_block_die): Same.
27245 (decl_will_get_specification_p): New.
27246 (local_function_static): New.
27247 (gen_struct_or_union_type_die): Fill in variable-length fields.
27248 (gen_typedef_die): Fill in variable-length typedefs.
27249 (gen_tagged_type_die): Gracefully return on error_mark_node.
27250 Handle re-entrancy.
27251 (gen_type_die_with_usage): Handle variable-length types.
27252 Remove duplicate code for ARRAY_TYPE case.
27253 (process_scope_var): Only process imported modules during early
27255 (dwarf2out_early_global_decl): New.
27256 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
27257 (dwarf2out_type_decl): Set early_dwarf while calling
27259 (dwarf2out_decl): Verify that we did not recreate a previously
27261 Do not return on DECL_EXTERNALs in VAR_DECLs.
27262 Abstract some code to local_function_static.
27263 (lookup_filename): Remove use of file_table_last_lookup.
27264 Gracefully exit on missing file_name.
27265 (dwarf2out_finish): Verify limbo list.
27266 Remove deferred_locations_list use.
27267 Move deferred_asm_name and limbo flushing to...
27268 (dwarf2out_early_finish): ...here. New.
27269 (dwarf2out_c_finalize): Remove set of deferred_location_list,
27270 deferred_asm_name, and file_table_last_lookup.
27271 * cgraph.h (referred_to_p): Add default argument.
27272 * cgraphunit.c (referred_to_p): Add and handle include_self
27274 (analyze_functions): Add first_time argument.
27275 Call check_global_declaration for all symbols.
27276 Call late_global_decl for nodes for moribund nodes.
27277 (finalize_compilation_unit): Add new argument to
27279 Call early_global_decl for functions.
27280 Call early_finish debug hook.
27281 * dbxout.c (dbxout_early_global_decl): New.
27282 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
27283 (dbx_debug_hooks): Add new hooks.
27284 (xcoff_debug_hooks): Same.
27285 * debug.c (do_nothing_debug_hooks): Add early_finish field.
27286 Add early and late debug hooks.
27287 Remove global_decl hook.
27288 * debug.h (struct gcc_debug_hooks): Add early_finish,
27289 early_global_decl, and late_global_decl fields.
27290 Remove global_decl field.
27291 Document gcc_debug_hooks.
27292 * gengtype.c (output_typename): Remove.
27293 * godump.c (go_early_global_decl): New.
27294 (go_late_global_decl): New.
27295 (go_global_decl): Remove.
27296 (dump_go_spec_init): Remove global_decl. Add
27297 {early,late}_global_decl.
27298 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
27299 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
27300 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
27301 (write_global_declarations): Remove.
27302 (global_decl_processing): New.
27303 * langhooks.h (struct lang_hooks_for_decls): Remove
27304 final_write_globals field.
27305 Add post_compilation_parsing_cleanups field.
27306 * passes.c (rest_of_decl_compilation): Call early_global_decl.
27307 * sdbout.c: Add early and late_global_decl hooks. Remove
27308 sdbout_global_decl hook.
27309 Add early_finish field for sdb_debug_hooks.
27310 (sdbout_global_decl): Remove.
27311 (sdbout_early_global_decl): New.
27312 (sdbout_late_global_decl): New.
27313 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
27314 * toplev.c (check_global_declaration): Rename from
27315 check_global_declaration_1.
27316 Adapt to use symtab infrastructure.
27317 (check_global_declarations): Remove.
27318 (emit_debug_global_declarations): Remove.
27319 (compile_file): Remove call to final_write_globals langhook.
27320 Run the actual compilation process.
27321 Perform any post compilation parser cleanups.
27322 Generate late debug info.
27323 * toplev.h (check_global_declaration): New.
27324 (check_global_declaration_1): Remove.
27325 (check_global_declarations): Remove.
27326 (write_global_declarations): Remove.
27327 (emit_debug_global_declarations): Remove.
27328 (global_decl_processing): New.
27329 * tree-core.h (struct tree_block): Add DIE field.
27330 * tree.h (BLOCK_DIE): New.
27331 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
27333 (vmsdbgout_early_global_decl): New.
27334 (vmsdbgout_late_global_decl): New.
27335 Add early_finish debug hook field to vmsdbg_debug_hooks.
27336 Remove vmsdbgout_decl to vmsdbgout_function_decl.
27337 Add early and late_global_decl debug hooks.
27339 2015-06-05 Julian Brown <julian@codesourcery.com>
27340 Sandra Loosemore <sandra@codesourcery.com>
27342 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
27343 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
27344 to print-sysroot-suffix.sh script.
27346 2015-06-05 Tom de Vries <tom@codesourcery.com>
27348 merge from gomp4 branch:
27349 2015-05-28 Tom de Vries <tom@codesourcery.com>
27351 PR tree-optimization/65443
27352 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
27353 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
27354 (try_transform_to_exit_first_loop_alt): New function.
27355 (transform_to_exit_first_loop): Use
27356 try_transform_to_exit_first_loop_alt.
27358 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
27360 * builtins.c (expand_builtin_atomic_compare_exchange): Call
27361 emit_cmp_and_jump_insns with the mode of target.
27363 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27365 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
27367 2015-06-04 DJ Delorie <dj@redhat.com>
27369 * config/msp430/msp430.md (movsi_s): New. Special case for
27370 storing a 20-bit symbol into a 32-bit register.
27371 * config/msp430/msp430.c (msp430_subreg): Add support for it.
27372 * config/msp430/predicates.md (msp430_symbol_operand): New.
27374 2015-06-04 Sriraman Tallam <tmsriram@google.com>
27376 * calls.c (prepare_call_address): Check for noplt
27378 * config/i386/i386.c (ix86_expand_call): Check
27379 for noplt attribute.
27380 (ix86_nopic_noplt_attribute_p): New function.
27381 (ix86_output_call_insn): Output indirect call for non-pic
27383 * doc/extend.texi (noplt): Document new attribute.
27384 * doc/invoke.texi: Document new attribute.
27386 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
27388 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
27389 real.h, and fixed-value.h when included in host source files.
27390 * double-int.h: Remove redundant #includes listed above.
27391 * fixed-value.h: Likewise.
27392 * real.h: Likewise.
27393 * wide-int.h: Likewise.
27394 * inchash.h: Likewise.
27395 * rtl.h: Add some include files When included from a generator file.
27396 * target.h: Remove wide-int.h and insn-modes.h from the include list.
27397 * internal-fn.h: Don't include coretypes.h.
27398 * alias.c: Adjust includes for restructured coretypes.h.
27399 * asan.c: Likewise.
27400 * attribs.c: Likewise.
27401 * auto-inc-dec.c: Likewise.
27402 * auto-profile.c: Likewise.
27403 * bb-reorder.c: Likewise.
27404 * bt-load.c: Likewise.
27405 * builtins.c: Likewise.
27406 * caller-save.c: Likewise.
27407 * calls.c: Likewise.
27408 * ccmp.c: Likewise.
27410 * cfganal.c: Likewise.
27411 * cfgbuild.c: Likewise.
27412 * cfgcleanup.c: Likewise.
27413 * cfgexpand.c: Likewise.
27414 * cfghooks.c: Likewise.
27415 * cfgloop.c: Likewise.
27416 * cfgloop.h: Likewise.
27417 * cfgloopanal.c: Likewise.
27418 * cfgloopmanip.c: Likewise.
27419 * cfgrtl.c: Likewise.
27420 * cgraph.c: Likewise.
27421 * cgraphbuild.c: Likewise.
27422 * cgraphclones.c: Likewise.
27423 * cgraphunit.c: Likewise.
27424 * cilk-common.c: Likewise.
27425 * combine-stack-adj.c: Likewise.
27426 * combine.c: Likewise.
27427 * compare-elim.c: Likewise.
27428 * convert.c: Likewise.
27429 * coverage.c: Likewise.
27430 * cppbuiltin.c: Likewise.
27431 * cprop.c: Likewise.
27433 * cselib.c: Likewise.
27434 * data-streamer-in.c: Likewise.
27435 * data-streamer-out.c: Likewise.
27436 * data-streamer.c: Likewise.
27437 * dbxout.c: Likewise.
27440 * debug.c: Likewise.
27441 * df-core.c: Likewise.
27442 * df-problems.c: Likewise.
27443 * df-scan.c: Likewise.
27446 * dojump.c: Likewise.
27447 * dominance.c: Likewise.
27448 * domwalk.c: Likewise.
27449 * double-int.c: Likewise.
27451 * dumpfile.c: Likewise.
27452 * dwarf2asm.c: Likewise.
27453 * dwarf2cfi.c: Likewise.
27454 * dwarf2out.c: Likewise.
27455 * dwarf2out.h: Likewise.
27456 * emit-rtl.c: Likewise.
27457 * et-forest.c: Likewise.
27458 * except.c: Likewise.
27459 * explow.c: Likewise.
27460 * expmed.c: Likewise.
27461 * expr.c: Likewise.
27462 * final.c: Likewise.
27463 * fixed-value.c: Likewise.
27464 * fold-const.c: Likewise.
27465 * function.c: Likewise.
27466 * fwprop.c: Likewise.
27467 * gcc-plugin.h: Likewise.
27468 * gcse.c: Likewise.
27469 * generic-match-head.c: Likewise.
27470 * ggc-page.c: Likewise.
27471 * gimple-builder.c: Likewise.
27472 * gimple-expr.c: Likewise.
27473 * gimple-fold.c: Likewise.
27474 * gimple-iterator.c: Likewise.
27475 * gimple-low.c: Likewise.
27476 * gimple-match-head.c: Likewise.
27477 * gimple-pretty-print.c: Likewise.
27478 * gimple-ssa-isolate-paths.c: Likewise.
27479 * gimple-ssa-strength-reduction.c: Likewise.
27480 * gimple-streamer-in.c: Likewise.
27481 * gimple-streamer-out.c: Likewise.
27482 * gimple-streamer.h: Likewise.
27483 * gimple-walk.c: Likewise.
27484 * gimple.c: Likewise.
27485 * gimplify-me.c: Likewise.
27486 * gimplify.c: Likewise.
27487 * godump.c: Likewise.
27488 * graph.c: Likewise.
27489 * graphite-blocking.c: Likewise.
27490 * graphite-dependences.c: Likewise.
27491 * graphite-interchange.c: Likewise.
27492 * graphite-isl-ast-to-gimple.c: Likewise.
27493 * graphite-optimize-isl.c: Likewise.
27494 * graphite-poly.c: Likewise.
27495 * graphite-scop-detection.c: Likewise.
27496 * graphite-sese-to-poly.c: Likewise.
27497 * graphite.c: Likewise.
27498 * haifa-sched.c: Likewise.
27499 * hooks.h: Likewise.
27500 * hw-doloop.c: Likewise.
27501 * ifcvt.c: Likewise.
27502 * incpath.c: Likewise.
27503 * init-regs.c: Likewise.
27504 * internal-fn.c: Likewise.
27505 * ipa-chkp.c: Likewise.
27506 * ipa-comdats.c: Likewise.
27507 * ipa-cp.c: Likewise.
27508 * ipa-devirt.c: Likewise.
27509 * ipa-icf-gimple.c: Likewise.
27510 * ipa-icf.c: Likewise.
27511 * ipa-inline-analysis.c: Likewise.
27512 * ipa-inline-transform.c: Likewise.
27513 * ipa-inline.c: Likewise.
27514 * ipa-polymorphic-call.c: Likewise.
27515 * ipa-profile.c: Likewise.
27516 * ipa-prop.c: Likewise.
27517 * ipa-pure-const.c: Likewise.
27518 * ipa-ref.c: Likewise.
27519 * ipa-reference.c: Likewise.
27520 * ipa-split.c: Likewise.
27521 * ipa-utils.c: Likewise.
27522 * ipa-visibility.c: Likewise.
27524 * ira-build.c: Likewise.
27525 * ira-color.c: Likewise.
27526 * ira-conflicts.c: Likewise.
27527 * ira-costs.c: Likewise.
27528 * ira-emit.c: Likewise.
27529 * ira-lives.c: Likewise.
27531 * jump.c: Likewise.
27532 * langhooks.c: Likewise.
27534 * loop-doloop.c: Likewise.
27535 * loop-init.c: Likewise.
27536 * loop-invariant.c: Likewise.
27537 * loop-iv.c: Likewise.
27538 * loop-unroll.c: Likewise.
27539 * lower-subreg.c: Likewise.
27540 * lra-assigns.c: Likewise.
27541 * lra-coalesce.c: Likewise.
27542 * lra-constraints.c: Likewise.
27543 * lra-eliminations.c: Likewise.
27544 * lra-lives.c: Likewise.
27545 * lra-remat.c: Likewise.
27546 * lra-spills.c: Likewise.
27548 * lto-cgraph.c: Likewise.
27549 * lto-compress.c: Likewise.
27550 * lto-opts.c: Likewise.
27551 * lto-section-in.c: Likewise.
27552 * lto-section-out.c: Likewise.
27553 * lto-streamer-in.c: Likewise.
27554 * lto-streamer-out.c: Likewise.
27555 * lto-streamer.c: Likewise.
27557 * mode-switching.c: Likewise.
27558 * modulo-sched.c: Likewise.
27559 * omega.c: Likewise.
27560 * omp-low.c: Likewise.
27561 * optabs.c: Likewise.
27562 * opts-global.c: Likewise.
27563 * passes.c: Likewise.
27564 * plugin.c: Likewise.
27565 * postreload-gcse.c: Likewise.
27566 * postreload.c: Likewise.
27567 * predict.c: Likewise.
27568 * print-rtl.c: Likewise.
27569 * print-tree.c: Likewise.
27570 * profile.c: Likewise.
27571 * real.c: Likewise.
27572 * realmpfr.c: Likewise.
27573 * realmpfr.h: Likewise.
27574 * recog.c: Likewise.
27576 * reg-stack.c: Likewise.
27577 * regcprop.c: Likewise.
27578 * reginfo.c: Likewise.
27579 * regrename.c: Likewise.
27580 * regs.h: Likewise.
27581 * regstat.c: Likewise.
27582 * reload.c: Likewise.
27583 * reload1.c: Likewise.
27584 * reorg.c: Likewise.
27585 * resource.c: Likewise.
27586 * rtl-chkp.c: Likewise.
27587 * rtlanal.c: Likewise.
27588 * rtlhooks.c: Likewise.
27589 * sanopt.c: Likewise.
27590 * sched-deps.c: Likewise.
27591 * sched-ebb.c: Likewise.
27592 * sched-rgn.c: Likewise.
27593 * sched-vis.c: Likewise.
27594 * sdbout.c: Likewise.
27595 * sel-sched-dump.c: Likewise.
27596 * sel-sched-ir.c: Likewise.
27597 * sel-sched.c: Likewise.
27598 * sese.c: Likewise.
27599 * shrink-wrap.c: Likewise.
27600 * shrink-wrap.h: Likewise.
27601 * simplify-rtx.c: Likewise.
27602 * stack-ptr-mod.c: Likewise.
27603 * statistics.c: Likewise.
27604 * stmt.c: Likewise.
27605 * stor-layout.c: Likewise.
27606 * store-motion.c: Likewise.
27607 * stringpool.c: Likewise.
27608 * symtab.c: Likewise.
27609 * target-globals.c: Likewise.
27610 * targhooks.c: Likewise.
27611 * toplev.c: Likewise.
27612 * tracer.c: Likewise.
27613 * trans-mem.c: Likewise.
27614 * tree-affine.c: Likewise.
27615 * tree-affine.h: Likewise.
27616 * tree-browser.c: Likewise.
27617 * tree-call-cdce.c: Likewise.
27618 * tree-cfg.c: Likewise.
27619 * tree-cfgcleanup.c: Likewise.
27620 * tree-chkp-opt.c: Likewise.
27621 * tree-chkp.c: Likewise.
27622 * tree-chrec.c: Likewise.
27623 * tree-complex.c: Likewise.
27624 * tree-data-ref.c: Likewise.
27625 * tree-dfa.c: Likewise.
27626 * tree-diagnostic.c: Likewise.
27627 * tree-dump.c: Likewise.
27628 * tree-eh.c: Likewise.
27629 * tree-emutls.c: Likewise.
27630 * tree-if-conv.c: Likewise.
27631 * tree-inline.c: Likewise.
27632 * tree-into-ssa.c: Likewise.
27633 * tree-iterator.c: Likewise.
27634 * tree-loop-distribution.c: Likewise.
27635 * tree-nested.c: Likewise.
27636 * tree-nrv.c: Likewise.
27637 * tree-object-size.c: Likewise.
27638 * tree-outof-ssa.c: Likewise.
27639 * tree-parloops.c: Likewise.
27640 * tree-phinodes.c: Likewise.
27641 * tree-predcom.c: Likewise.
27642 * tree-pretty-print.c: Likewise.
27643 * tree-pretty-print.h: Likewise.
27644 * tree-profile.c: Likewise.
27645 * tree-scalar-evolution.c: Likewise.
27646 * tree-sra.c: Likewise.
27647 * tree-ssa-address.c: Likewise.
27648 * tree-ssa-alias.c: Likewise.
27649 * tree-ssa-ccp.c: Likewise.
27650 * tree-ssa-coalesce.c: Likewise.
27651 * tree-ssa-copy.c: Likewise.
27652 * tree-ssa-copyrename.c: Likewise.
27653 * tree-ssa-dce.c: Likewise.
27654 * tree-ssa-dom.c: Likewise.
27655 * tree-ssa-dse.c: Likewise.
27656 * tree-ssa-forwprop.c: Likewise.
27657 * tree-ssa-ifcombine.c: Likewise.
27658 * tree-ssa-live.c: Likewise.
27659 * tree-ssa-loop-ch.c: Likewise.
27660 * tree-ssa-loop-im.c: Likewise.
27661 * tree-ssa-loop-ivcanon.c: Likewise.
27662 * tree-ssa-loop-ivopts.c: Likewise.
27663 * tree-ssa-loop-manip.c: Likewise.
27664 * tree-ssa-loop-niter.c: Likewise.
27665 * tree-ssa-loop-prefetch.c: Likewise.
27666 * tree-ssa-loop-unswitch.c: Likewise.
27667 * tree-ssa-loop.c: Likewise.
27668 * tree-ssa-loop.h: Likewise.
27669 * tree-ssa-math-opts.c: Likewise.
27670 * tree-ssa-operands.c: Likewise.
27671 * tree-ssa-phiopt.c: Likewise.
27672 * tree-ssa-phiprop.c: Likewise.
27673 * tree-ssa-pre.c: Likewise.
27674 * tree-ssa-propagate.c: Likewise.
27675 * tree-ssa-reassoc.c: Likewise.
27676 * tree-ssa-sccvn.c: Likewise.
27677 * tree-ssa-scopedtables.c: Likewise.
27678 * tree-ssa-sink.c: Likewise.
27679 * tree-ssa-strlen.c: Likewise.
27680 * tree-ssa-structalias.c: Likewise.
27681 * tree-ssa-tail-merge.c: Likewise.
27682 * tree-ssa-ter.c: Likewise.
27683 * tree-ssa-threadedge.c: Likewise.
27684 * tree-ssa-threadupdate.c: Likewise.
27685 * tree-ssa-uncprop.c: Likewise.
27686 * tree-ssa-uninit.c: Likewise.
27687 * tree-ssa.c: Likewise.
27688 * tree-ssanames.c: Likewise.
27689 * tree-stdarg.c: Likewise.
27690 * tree-streamer-in.c: Likewise.
27691 * tree-streamer-out.c: Likewise.
27692 * tree-streamer.c: Likewise.
27693 * tree-switch-conversion.c: Likewise.
27694 * tree-tailcall.c: Likewise.
27695 * tree-vect-data-refs.c: Likewise.
27696 * tree-vect-generic.c: Likewise.
27697 * tree-vect-loop-manip.c: Likewise.
27698 * tree-vect-loop.c: Likewise.
27699 * tree-vect-patterns.c: Likewise.
27700 * tree-vect-slp.c: Likewise.
27701 * tree-vect-stmts.c: Likewise.
27702 * tree-vectorizer.c: Likewise.
27703 * tree-vrp.c: Likewise.
27704 * tree.c: Likewise.
27705 * tsan.c: Likewise.
27706 * ubsan.c: Likewise.
27707 * valtrack.c: Likewise.
27708 * value-prof.c: Likewise.
27709 * var-tracking.c: Likewise.
27710 * varasm.c: Likewise.
27711 * varpool.c: Likewise.
27712 * vmsdbgout.c: Likewise.
27713 * vtable-verify.c: Likewise.
27715 * wide-int-print.cc: Likewise.
27716 * wide-int-print.h: Likewise.
27717 * wide-int.cc: Likewise.
27718 * xcoffout.c: Likewise.
27719 * config/aarch64/aarch64-builtins.c: Likewise.
27720 * config/aarch64/aarch64.c: Likewise.
27721 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27722 * config/alpha/alpha.c: Likewise.
27723 * config/arc/arc.c: Likewise.
27724 * config/arm/aarch-common.c: Likewise.
27725 * config/arm/arm-builtins.c: Likewise.
27726 * config/arm/arm-c.c: Likewise.
27727 * config/arm/arm.c: Likewise.
27728 * config/avr/avr-c.c: Likewise.
27729 * config/avr/avr-log.c: Likewise.
27730 * config/avr/avr.c: Likewise.
27731 * config/bfin/bfin.c: Likewise.
27732 * config/c6x/c6x.c: Likewise.
27733 * config/cr16/cr16.c: Likewise.
27734 * config/cris/cris.c: Likewise.
27735 * config/darwin-c.c: Likewise.
27736 * config/darwin.c: Likewise.
27737 * config/default-c.c: Likewise.
27738 * config/epiphany/epiphany.c: Likewise.
27739 * config/epiphany/mode-switch-use.c: Likewise.
27740 * config/epiphany/resolve-sw-modes.c: Likewise.
27741 * config/fr30/fr30.c: Likewise.
27742 * config/frv/frv.c: Likewise.
27743 * config/ft32/ft32.c: Likewise.
27744 * config/glibc-c.c: Likewise.
27745 * config/h8300/h8300.c: Likewise.
27746 * config/i386/i386-c.c: Likewise.
27747 * config/i386/i386.c: Likewise.
27748 * config/i386/msformat-c.c: Likewise.
27749 * config/i386/winnt-cxx.c: Likewise.
27750 * config/i386/winnt-stubs.c: Likewise.
27751 * config/i386/winnt.c: Likewise.
27752 * config/ia64/ia64-c.c: Likewise.
27753 * config/ia64/ia64.c: Likewise.
27754 * config/iq2000/iq2000.c: Likewise.
27755 * config/lm32/lm32.c: Likewise.
27756 * config/m32c/m32c-pragma.c: Likewise.
27757 * config/m32c/m32c.c: Likewise.
27758 * config/m32r/m32r.c: Likewise.
27759 * config/m68k/m68k.c: Likewise.
27760 * config/mcore/mcore.c: Likewise.
27761 * config/mep/mep-pragma.c: Likewise.
27762 * config/mep/mep.c: Likewise.
27763 * config/microblaze/microblaze-c.c: Likewise.
27764 * config/microblaze/microblaze.c: Likewise.
27765 * config/mips/mips.c: Likewise.
27766 * config/mmix/mmix.c: Likewise.
27767 * config/mn10300/mn10300.c: Likewise.
27768 * config/moxie/moxie.c: Likewise.
27769 * config/msp430/msp430-c.c: Likewise.
27770 * config/msp430/msp430.c: Likewise.
27771 * config/nds32/nds32-cost.c: Likewise.
27772 * config/nds32/nds32-fp-as-gp.c: Likewise.
27773 * config/nds32/nds32-intrinsic.c: Likewise.
27774 * config/nds32/nds32-isr.c: Likewise.
27775 * config/nds32/nds32-md-auxiliary.c: Likewise.
27776 * config/nds32/nds32-memory-manipulation.c: Likewise.
27777 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27778 * config/nds32/nds32-predicates.c: Likewise.
27779 * config/nds32/nds32.c: Likewise.
27780 * config/nios2/nios2.c: Likewise.
27781 * config/nvptx/nvptx.c: Likewise.
27782 * config/pa/pa.c: Likewise.
27783 * config/pdp11/pdp11.c: Likewise.
27784 * config/rl78/rl78-c.c: Likewise.
27785 * config/rl78/rl78.c: Likewise.
27786 * config/rs6000/rs6000-c.c: Likewise.
27787 * config/rs6000/rs6000.c: Likewise.
27788 * config/rx/rx.c: Likewise.
27789 * config/s390/s390-c.c: Likewise.
27790 * config/s390/s390.c: Likewise.
27791 * config/sh/sh-c.c: Likewise.
27792 * config/sh/sh-mem.cc: Likewise.
27793 * config/sh/sh.c: Likewise.
27794 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27795 * config/sh/sh_treg_combine.cc: Likewise.
27796 * config/sol2-c.c: Likewise.
27797 * config/sol2-cxx.c: Likewise.
27798 * config/sol2-stubs.c: Likewise.
27799 * config/sol2.c: Likewise.
27800 * config/sparc/sparc-c.c: Likewise.
27801 * config/sparc/sparc.c: Likewise.
27802 * config/spu/spu-c.c: Likewise.
27803 * config/spu/spu.c: Likewise.
27804 * config/stormy16/stormy16.c: Likewise.
27805 * config/tilegx/mul-tables.c: Likewise.
27806 * config/tilegx/tilegx-c.c: Likewise.
27807 * config/tilegx/tilegx.c: Likewise.
27808 * config/tilepro/mul-tables.c: Likewise.
27809 * config/tilepro/tilepro-c.c: Likewise.
27810 * config/tilepro/tilepro.c: Likewise.
27811 * config/v850/v850-c.c: Likewise.
27812 * config/v850/v850.c: Likewise.
27813 * config/vax/vax.c: Likewise.
27814 * config/visium/visium.c: Likewise.
27815 * config/vms/vms-c.c: Likewise.
27816 * config/vms/vms.c: Likewise.
27817 * config/vxworks.c: Likewise.
27818 * config/winnt-c.c: Likewise.
27819 * config/xtensa/xtensa.c: Likewise.
27820 * common/config/bfin/bfin-common.c: Likewise.
27822 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
27824 * tree.h (tree_code_for_canonical_type_merging): New function.
27825 * tree.c (gimple_canonical_types_compatible_p): Use
27826 tree_code_for_canonical_type_merging..
27828 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27832 * doc/tm.texi: Regenerate.
27833 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
27834 * target.def (TARGET_RELAXED_ORDERING): Likewise.
27835 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
27836 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
27837 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
27838 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
27839 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
27840 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
27841 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
27843 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27845 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
27846 register fma steering pass.
27847 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
27848 AARCH64_TUNE_FMA_STEERING.
27850 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
27852 * tree.c (verify_type_variant): Verify that type and variant is
27854 (gimple_canonical_types_compatible_p): Look for main variants.
27856 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27858 * config.gcc (powerpc*-*-*): Add support for a new configure
27859 option --with-advance-toolchain=<xxx> which overrides using the
27860 default header files, libraries and dynamic linker.
27862 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
27863 specs to support the configure --with-advance-toolchain=<xxx>
27865 (INCLUDE_EXTRA_SPEC): Likewise.
27866 (LINK_OS_EXTRA_SPEC32): Likewise.
27867 (LINK_OK_EXTRA_SPEC64): Likewise.
27868 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
27869 (DYNAMIC_LINKER_PREFIX): Likewise.
27870 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
27872 (GLIBC_DYNAMIC_LINKER32): Likewise.
27873 (GLIBC_DYNAMIC_LINKER64): Likewise.
27874 (LINK_OS_LINUX_SPEC32): Likewise.
27875 (LINK_OS_LINUX_SPEC64): Likewise.
27877 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
27878 configuration option.
27880 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
27883 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
27884 to determine current function ABI.
27885 (ix86_function_value_regno_p): Ditto.
27887 2015-06-03 Martin Liska <mliska@suse.cz>
27889 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
27890 * bitmap.h (struct bitmap_usage): Likewise.
27891 * ggc-common.c (struct ggc_usage): Likewise.
27892 * mem-stats.h (struct mem_location): Likewise.
27893 (struct mem_usage): Likewise.
27894 * vec.c (struct vec_usage): Likewise.
27896 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
27898 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
27901 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
27903 * doc/plugins.texi (enum plugin_event): New event.
27904 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
27905 and PLUGIN_FINISH_FUNCTION.
27906 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
27907 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
27909 2015-06-03 Richard Biener <rguenther@suse.de>
27911 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27912 compute GROUP_GAP for the first element.
27913 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
27916 2015-06-03 Nick Clifton <nickc@redhat.com>
27918 * config/rl78/rl78-real.md: Add peepholes to avoid a register
27919 copy when calling a function.
27920 * config/rl78/rl78.c (need_to_save): Do not push the frame
27921 pointer in an interrupt handler prologue if it is never used.
27923 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27925 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
27927 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
27929 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
27930 reference when cloning alias node.
27932 2015-06-03 Martin Liska <mliska@suse.cz>
27934 * alloc-pool.h (struct pool_usage): Correct space padding.
27935 * ggc-page.c (ggc_print_statistics): Align columns in a report.
27936 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
27937 * tree.c (dump_tree_statistics): Align columns in a report.
27939 2015-06-03 Martin Liska <mliska@suse.cz>
27941 * alloc-pool.c (allocate_pool_descriptor): Remove.
27942 (struct pool_output_info): Likewise.
27943 (print_alloc_pool_statistics): Likewise.
27944 (dump_alloc_pool_statistics): Likewise.
27945 * alloc-pool.h (struct pool_usage): New struct.
27946 (pool_allocator::initialize): Change usage of memory statistics
27947 to a new interface.
27948 (pool_allocator::release): Likewise.
27949 (pool_allocator::allocate): Likewise.
27950 (pool_allocator::remove): Likewise.
27951 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
27952 for a pool allocator.
27953 * mem-stats.h (struct mem_location): Add new ctor.
27954 (struct mem_usage): Add counter for number of
27956 (mem_alloc_description::register_descriptor): New overload of
27957 * mem-stats.h (mem_location::to_string): New function.
27958 * bitmap.h (struct bitmap_usage): Use this new function.
27959 * ggc-common.c (struct ggc_usage): Likewise.
27962 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
27964 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
27965 of GCC_INSN_FLAGS_H block.
27967 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
27969 * explow.c (plus_constant): Update check after force_const_mem call
27970 to see if the value returned is not a NULL_RTX.
27972 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
27974 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
27975 remove instumentation thunks calling reachable functions.
27976 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
27977 * lto/lto-partition.c (privatize_symbol_name_1): New.
27978 (privatize_symbol_name): Privatize both decl and orig_decl
27979 names for instrumented functions.
27980 * cgraph.c (cgraph_node::verify_node): Add transparent
27981 alias chain check for instrumented node.
27983 2015-06-03 Marek Polacek <polacek@redhat.com>
27987 * tree.c (attribute_value_equal): Handle attribute format.
27988 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
27990 2015-06-03 Richard Biener <rguenther@suse.de>
27992 PR tree-optimization/63916
27993 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
27994 Forward-propagate non-invariant addresses by splicing their
27995 reference ops if the result isn't going to be used by PRE.
27996 (vn_reference_lookup_3): Remove pointless assert.
27998 2015-06-03 Richard Biener <rguenther@suse.de>
28000 PR tree-optimization/66375
28001 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
28002 add to the evolution before following SSA edges.
28004 2015-06-03 Bin Cheng <bin.cheng@arm.com>
28006 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
28007 (dump_use, dump_cand, find_induction_variables): Pass new argument
28009 (record_use): Preserve the ssa name information in IV.
28011 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
28013 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
28015 (add_mode_tests): Don't add mode tests if the predicate only
28016 accepts scalar constant integers. Otherwise, allow the mode
28017 of "op" to be VOIDmode if the predicate does accept such integers.
28019 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
28022 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
28023 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
28024 (aarch64_secondary_reload): Likewise
28025 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
28027 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
28030 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
28031 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28034 * cprop.c (try_replace_reg): Check cost of constants before propagating.
28036 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
28038 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
28039 provide access to the IBM extended double floating point mode if
28040 long double is IEEE 128-bit floating point.
28041 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
28042 point if long double is the IBM extended double type.
28044 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
28045 enable adding IEEE 128-bit floating point support.
28046 (-mfloat128-software): Likewise.
28047 (-mfloat128-sw): Likewise.
28049 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
28050 128-bit floating point types to occupy any register if
28051 -mlong-double-64. Do not allow use of IFmode/KFmode unless
28052 -mfloat128-software is enabled.
28053 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
28055 (rs6000_option_override_internal): Add -mfloat128-* support.
28056 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
28058 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
28059 and float128 type nodes.
28060 (ieee128_float_type_node): Likewise.
28061 (ibm128_float_type_node): Likewise.
28063 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28066 * config/aarch64/geniterators.sh: Rewrite in awk.
28068 2015-06-02 Martin Liska <mliska@suse.cz>
28070 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
28071 values to avoid -Wmaybe-uninitialized errors.
28073 2015-06-02 Richard Biener <rguenther@suse.de>
28076 * dwarf2out.c (lookup_context_die): New function.
28077 (resolve_addr): Avoid forcing a full DIE for the
28078 target of a DW_TAG_GNU_call_site during late compilation.
28079 Instead create a stub DIE without a type if we have a
28080 context DIE present.
28082 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
28084 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
28086 2015-06-02 Bin Cheng <bin.cheng@arm.com>
28088 PR tree-optimization/48052
28089 * cfgloop.h (struct control_iv): New.
28090 (struct loop): New field control_ivs.
28091 * tree-ssa-loop-niter.c : Include "stor-layout.h".
28092 (number_of_iterations_lt): Set no_overflow information.
28093 (number_of_iterations_exit): Init control iv in niter struct.
28094 (record_control_iv): New.
28095 (estimate_numbers_of_iterations_loop): Call record_control_iv.
28096 (loop_exits_before_overflow): New. Interface factored out of
28097 scev_probably_wraps_p.
28098 (scev_probably_wraps_p): Factor loop niter related code into
28099 loop_exits_before_overflow.
28100 (free_numbers_of_iterations_estimates_loop): Free control ivs.
28101 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
28103 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
28105 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
28106 the target doesn't belong to the current function.
28108 2015-06-02 Marek Polacek <polacek@redhat.com>
28110 PR middle-end/66345
28111 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
28112 get_maxval_strlen does not produce an INTEGER_CST.
28114 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
28116 * config/arc/constraints.md: Use lower-case names in match_code.
28117 * config/mmix/constraints.md: Likewise.
28119 2015-06-02 Richard Biener <rguenther@suse.de>
28121 PR tree-optimization/65961
28122 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
28123 check and clarify dump message.
28124 (vect_build_slp_tree): If all children are built up from scalars
28125 build up the parent from scalars instead.
28126 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
28128 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
28131 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
28132 instead of print ... .
28134 2015-06-02 Alan Modra <amodra@gmail.com>
28136 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
28139 2015-06-02 Bin Cheng <bin.cheng@arm.com>
28141 PR tree-optimization/52563
28142 PR tree-optimization/62173
28143 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
28144 (alloc_iv, set_iv): New parameter.
28145 (determine_biv_step): Delete.
28146 (find_bivs): Inline original determine_biv_step. Pass new
28147 argument to set_iv.
28148 (idx_find_step): Use no_overflow information for conversion.
28149 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
28150 resolve_mixers handle folded_casts.
28151 (instantiate_scev_name): Change bool parameter to bool pointer.
28152 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
28153 (instantiate_array_ref, instantiate_scev_not): Ditto.
28154 (instantiate_scev_3, instantiate_scev_2): Ditto.
28155 (instantiate_scev_1, instantiate_scev_r): Ditto.
28156 (instantiate_scev_convert, ): Change parameter. Pass argument
28157 to chrec_convert_aggressive.
28158 (instantiate_scev): Change argument.
28159 (resolve_mixers): New parameter and set it.
28160 (scev_const_prop): New argument.
28161 * tree-scalar-evolution.h (resolve_mixers): New parameter.
28162 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
28164 (chrec_convert): New parameter. Move definition below.
28165 (chrec_convert_aggressive): New parameter and set it. Call
28166 convert_affine_scev.
28167 * tree-chrec.h (chrec_convert): New parameter.
28168 (chrec_convert_aggressive): Ditto.
28170 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
28172 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
28173 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
28174 the LHS of a no-return call if its type has variable size.
28175 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
28176 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
28178 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
28180 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
28181 * config.in: Regenerate.
28183 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
28185 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
28186 consecutive accesses within outer-loop with force_vectorize
28187 for references with zero step in inner-loop.
28189 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
28191 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
28192 rather than from gcc/build directory.
28194 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
28197 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
28198 for __sync memory models, emit initial loads and final barriers as
28201 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
28204 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
28205 (aarch64_split_atomic_op): Check for __sync memory models, emit
28206 appropriate initial loads and final barriers.
28208 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
28210 * Makefile.in: Fix gcov dependencies that should
28211 not point to a build folder.
28213 2015-06-01 Richard Biener <rguenther@suse.de>
28216 2015-05-29 Richard Biener <rguenther@suse.de>
28218 PR tree-optimization/66314
28219 * tree-ssa-threadupdate.c (create_block_for_threading): Add
28220 parameter that says which loop the new block belongs to.
28221 (ssa_create_duplicates): Blocks duplicated for the threaded
28222 path belong to the loop of the thread destination.
28224 2015-06-01 Martin Liska <mliska@suse.cz>
28226 * sched-deps.c: Include pool-alloc.h before
28227 cselib.h header file is included.
28229 2015-06-01 Richard Biener <rguenther@suse.de>
28231 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
28234 2015-06-01 Martin Liska <mliska@suse.cz>
28236 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
28237 a function local variable.
28239 2015-06-01 Martin Liska <mliska@suse.cz>
28241 * alloc-pool.c (create_alloc_pool): Remove.
28242 (empty_alloc_pool): Likewise.
28243 (free_alloc_pool): Likewise.
28244 (free_alloc_pool_if_empty): Likewise.
28245 (pool_alloc): Likewise.
28246 (pool_free): Likewise.
28247 * alloc-pool.h: Remove old declarations.
28249 2015-06-01 Martin Liska <mliska@suse.cz>
28251 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
28252 (ira_create_object): Likewise.
28253 (ira_create_allocno): Likewise.
28254 (ira_create_live_range): Likewise.
28255 (copy_live_range): Likewise.
28256 (ira_finish_live_range): Likewise.
28257 (ira_free_allocno_costs): Likewise.
28258 (finish_allocno): Likewise.
28259 (finish_allocnos): Likewise.
28260 (initiate_prefs): Likewise.
28261 (ira_create_pref): Likewise.
28262 (finish_pref): Likewise.
28263 (finish_prefs): Likewise.
28264 (initiate_copies): Likewise.
28265 (ira_create_copy): Likewise.
28266 (finish_copy): Likewise.
28267 (finish_copies): Likewise.
28268 (finish_prefs): Likewise.
28270 2015-06-01 Martin Liska <mliska@suse.cz>
28272 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
28273 (allocate_and_init_ipcp_value): Likewise.
28274 (ipcp_lattice::add_value): Likewise.
28275 (merge_agg_lats_step): Likewise.
28276 (ipcp_driver): Likewise.
28277 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
28278 (ipa_free_all_structures_after_iinln): Likewise.
28279 * ipa-prop.h: Likewise.
28281 2015-06-01 Martin Liska <mliska@suse.cz>
28283 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
28285 (set_hint_predicate): Likewise.
28286 (inline_summary_alloc): Likewise.
28287 (reset_inline_edge_summary): Likewise.
28288 (reset_inline_summary): Likewise.
28289 (set_cond_stmt_execution_predicate): Likewise.
28290 (set_switch_stmt_execution_predicate): Likewise.
28291 (compute_bb_predicates): Likewise.
28292 (estimate_function_body_sizes): Likewise.
28293 (inline_free_summary): Likewise.
28295 2015-06-01 Martin Liska <mliska@suse.cz>
28297 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
28298 (ipa_edge_duplication_hook): Likewise.
28299 (ipa_free_all_structures_after_ipa_cp): Likewise.
28300 (ipa_free_all_structures_after_iinln): Likewise.
28302 2015-06-01 Martin Liska <mliska@suse.cz>
28304 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
28305 (ipa_profile_generate_summary): Likewise.
28306 (ipa_profile_read_summary): Likewise.
28307 (ipa_profile): Likewise.
28309 2015-06-01 Martin Liska <mliska@suse.cz>
28311 * tree-ssa-structalias.c (new_var_info): Use new type-based
28313 (new_constraint): Likewise.
28314 (init_alias_vars): Likewise.
28315 (delete_points_to_sets): Likewise.
28317 2015-06-01 Martin Liska <mliska@suse.cz>
28319 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
28320 (free_strinfo): Likewise.
28321 (pass_strlen::execute): Likewise.
28323 2015-06-01 Martin Liska <mliska@suse.cz>
28325 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
28327 (vn_reference_insert_pieces): Likewise.
28328 (vn_phi_insert): Likewise.
28329 (visit_reference_op_call): Likewise.
28330 (copy_phi): Likewise.
28331 (copy_reference): Likewise.
28332 (process_scc): Likewise.
28333 (allocate_vn_table): Likewise.
28334 (free_vn_table): Likewise.
28336 2015-06-01 Martin Liska <mliska@suse.cz>
28338 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
28340 (add_repeat_to_ops_vec): Likewise.
28341 (get_ops): Likewise.
28342 (maybe_optimize_range_tests): Likewise.
28343 (init_reassoc): Likewise.
28344 (fini_reassoc): Likewise.
28346 2015-06-01 Martin Liska <mliska@suse.cz>
28348 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
28350 (bitmap_set_new): Likewise.
28351 (get_or_alloc_expr_for_constant): Likewise.
28352 (get_or_alloc_expr_for): Likewise.
28353 (phi_translate_1): Likewise.
28354 (compute_avail): Likewise.
28355 (init_pre): Likewise.
28356 (fini_pre): Likewise.
28358 2015-06-01 Martin Liska <mliska@suse.cz>
28360 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
28361 (delete_dep_node): Likewise.
28362 (create_deps_list): Likewise.
28363 (free_deps_list): Likewise.
28364 (sched_deps_init): Likewise.
28365 (sched_deps_finish): Likewise.
28367 2015-06-01 Martin Liska <mliska@suse.cz>
28369 * regcprop.c (free_debug_insn_changes): Use new type-based
28371 (replace_oldest_value_reg): Likewise.
28372 (pass_cprop_hardreg::execute): Likewise.
28374 2015-06-01 Martin Liska <mliska@suse.cz>
28376 * ira-build.c (initiate_cost_vectors): Use new type-based
28378 (ira_allocate_cost_vector): Likewise.
28379 (ira_free_cost_vector): Likewise.
28380 (finish_cost_vectors): Likewise.
28382 2015-06-01 Martin Liska <mliska@suse.cz>
28384 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
28386 (free_sched_pools): Likewise.
28387 * sel-sched-ir.h (_list_alloc): Likewise.
28388 (_list_remove): Likewise.
28390 2015-06-01 Martin Liska <mliska@suse.cz>
28392 * stmt.c (add_case_node): Use new type-based pool allocator.
28393 (expand_case): Likewise.
28394 (expand_sjlj_dispatch_table): Likewise.
28396 2015-06-01 Martin Liska <mliska@suse.cz>
28398 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
28399 (free_bb): Likewise.
28400 (pass_cse_reciprocals::execute): Likewise.
28402 2015-06-01 Martin Liska <mliska@suse.cz>
28404 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
28405 (sra_deinitialize) Likewise.
28406 (create_access_1) Likewise.
28407 (build_accesses_from_assign) Likewise.
28408 (create_artificial_child_access) Likewise.
28410 2015-06-01 Martin Liska <mliska@suse.cz>
28412 * dse.c (get_group_info):Use new type-based pool allocator.
28413 (dse_step0) Likewise.
28414 (free_store_info) Likewise.
28415 (delete_dead_store_insn) Likewise.
28416 (free_read_records) Likewise.
28417 (record_store) Likewise.
28418 (replace_read) Likewise.
28419 (check_mem_read_rtx) Likewise.
28420 (scan_insn) Likewise.
28421 (dse_step1) Likewise.
28422 (dse_step7) Likewise.
28424 2015-06-01 Martin Liska <mliska@suse.cz>
28426 * df-scan.c (struct df_scan_problem_data):Use new type-based
28428 (df_scan_free_internal) Likewise.
28429 (df_scan_alloc) Likewise.
28430 (df_grow_reg_info) Likewise.
28431 (df_free_ref) Likewise.
28432 (df_insn_create_insn_record) Likewise.
28433 (df_mw_hardreg_chain_delete) Likewise.
28434 (df_insn_info_delete) Likewise.
28435 (df_free_collection_rec) Likewise.
28436 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
28437 (df_sort_and_compress_mws) Likewise.
28438 (df_ref_create_structure) Likewise.
28439 (df_ref_record) Likewise.
28441 2015-06-01 Martin Liska <mliska@suse.cz>
28443 * df-problems.c (df_chain_create):Use new type-based pool allocator.
28444 (df_chain_unlink_1) Likewise.
28445 (df_chain_unlink) Likewise.
28446 (df_chain_remove_problem) Likewise.
28447 (df_chain_alloc) Likewise.
28448 (df_chain_free) Likewise.
28449 * df.h (struct dataflow) Likewise.
28451 2015-06-01 Martin Liska <mliska@suse.cz>
28453 * cselib.c (new_elt_list):Use new type-based pool allocator.
28454 (new_elt_loc_list) Likewise.
28455 (unchain_one_elt_list) Likewise.
28456 (unchain_one_elt_loc_list) Likewise.
28457 (unchain_one_value) Likewise.
28458 (new_cselib_val) Likewise.
28459 (cselib_init) Likewise.
28460 (cselib_finish) Likewise.
28462 2015-06-01 Martin Liska <mliska@suse.cz>
28464 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
28465 (sh_reorg) Likewise.
28467 2015-06-01 Martin Liska <mliska@suse.cz>
28469 * cfg.c (initialize_original_copy_tables):Use new type-based
28471 (free_original_copy_tables) Likewise.
28472 (copy_original_table_clear) Likewise.
28473 (copy_original_table_set) Likewise.
28475 2015-06-01 Martin Liska <mliska@suse.cz>
28477 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
28479 (asan_mem_ref_new) Likewise.
28480 (free_mem_ref_resources) Likewise.
28482 2015-06-01 Martin Liska <mliska@suse.cz>
28484 * var-tracking.c (variable_htab_free):Use new type-based
28486 (attrs_list_clear) Likewise.
28487 (attrs_list_insert) Likewise.
28488 (attrs_list_copy) Likewise.
28489 (shared_hash_unshare) Likewise.
28490 (shared_hash_destroy) Likewise.
28491 (unshare_variable) Likewise.
28492 (var_reg_delete_and_set) Likewise.
28493 (var_reg_delete) Likewise.
28494 (var_regno_delete) Likewise.
28495 (drop_overlapping_mem_locs) Likewise.
28496 (variable_union) Likewise.
28497 (insert_into_intersection) Likewise.
28498 (canonicalize_values_star) Likewise.
28499 (variable_merge_over_cur) Likewise.
28500 (dataflow_set_merge) Likewise.
28501 (remove_duplicate_values) Likewise.
28502 (variable_post_merge_new_vals) Likewise.
28503 (dataflow_set_preserve_mem_locs) Likewise.
28504 (dataflow_set_remove_mem_locs) Likewise.
28505 (variable_from_dropped) Likewise.
28506 (variable_was_changed) Likewise.
28507 (set_slot_part) Likewise.
28508 (clobber_slot_part) Likewise.
28509 (delete_slot_part) Likewise.
28510 (loc_exp_insert_dep) Likewise.
28511 (notify_dependents_of_changed_value) Likewise.
28512 (emit_notes_for_differences_1) Likewise.
28513 (vt_emit_notes) Likewise.
28514 (vt_initialize) Likewise.
28515 (vt_finalize) Likewise.
28517 2015-06-01 Martin Liska <mliska@suse.cz>
28519 * ira-color.c (init_update_cost_records):Use new type-based
28521 (get_update_cost_record) Likewise.
28522 (free_update_cost_record_list) Likewise.
28523 (finish_update_cost_records) Likewise.
28524 (initiate_cost_update) Likewise.
28526 2015-06-01 Martin Liska <mliska@suse.cz>
28528 * lra.c (init_insn_regs): Use new type-based pool allocator.
28529 (new_insn_reg) Likewise.
28530 (free_insn_reg) Likewise.
28531 (free_insn_regs) Likewise.
28532 (finish_insn_regs) Likewise.
28533 (init_insn_recog_data) Likewise.
28534 (init_reg_info) Likewise.
28535 (finish_reg_info) Likewise.
28536 (lra_free_copies) Likewise.
28537 (lra_create_copy) Likewise.
28538 (invalidate_insn_data_regno_info) Likewise.
28540 2015-06-01 Martin Liska <mliska@suse.cz>
28542 * lra-lives.c (free_live_range): Use new type-based pool allocator.
28543 (free_live_range_list) Likewise.
28544 (create_live_range) Likewise.
28545 (copy_live_range) Likewise.
28546 (lra_merge_live_ranges) Likewise.
28547 (remove_some_program_points_and_update_live_ranges) Likewise.
28548 (lra_live_ranges_init) Likewise.
28549 (lra_live_ranges_finish) Likewise.
28551 2015-06-01 Martin Liska <mliska@suse.cz>
28553 * et-forest.c (et_new_occ): Use new type-based pool allocator.
28554 (et_new_tree): Likewise.
28555 (et_free_tree): Likewise.
28556 (et_free_tree_force): Likewise.
28557 (et_free_pools): Likewise.
28558 (et_split): Likewise.
28560 2015-06-01 Martin Liska <mliska@suse.cz>
28562 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
28564 * alloc-pool.h (pool_allocator::pool_allocator): New function.
28565 (pool_allocator::release): Likewise.
28566 (inline pool_allocator::release_if_empty): Likewise.
28567 (inline pool_allocator::~pool_allocator): Likewise.
28568 (pool_allocator::allocate): Likewise.
28569 (pool_allocator::remove): Likewise.
28571 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28573 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
28576 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28578 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
28580 * config/arm/arm.c (arm_print_tune_info): Likewise.
28581 (arm_macro_fusion_p): Likewise.
28582 (arm_macro_fusion_pair_p): Likewise.
28584 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28586 * config/aarch64/aarch64-protos.h (tune_params): Rename
28587 fuseable_ops to fusible_ops.
28588 * config/aarch64/aarch64.c (generic_tunings): Rename
28589 fuseable_ops to fusible_ops.
28590 (cortexa53_tunings): Likewise.
28591 (cortexa57_tunings): Likewise.
28592 (thunderx_tunings): Likewise.
28593 (xgene1_tunings): Likewise.
28594 (aarch64_macro_fusion_p): Likewise.
28595 (aarch64_macro_fusion_pair_p): Likewise.
28597 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
28599 * config/s390/driver-native.c: New file.
28600 * config/s390/x-native: New file.
28601 * config.host: Add new files for s390.
28602 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
28604 * config.gcc: Likewise.
28605 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
28606 * config/s390/s390-opts.h (enum processor_type): Ditto.
28607 * config/s390/s390.c (s390_option_override): Catch unhandled
28610 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
28613 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
28614 redirection for instrumented calls.
28615 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
28616 (append_compiler_options): Append -fcheck-pointer-bounds.
28617 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
28618 (chkp_redirect_edge): New.
28619 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
28620 (chkp_redirect_edge): New.
28622 2015-06-01 Richard Biener <rguenther@suse.de>
28624 PR tree-optimization/66280
28625 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
28628 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28630 * config/aarch64/aarch64.md
28631 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
28634 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
28636 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
28637 Remove obsolete kludge.
28639 2015-06-01 Richard Biener <rguenther@suse.de>
28641 * tree-ssa-reassoc.c (get_rank): Simplify.
28643 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
28645 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
28646 * configure: Regenerated.
28648 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
28650 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
28651 issue (add space between string literal and macro).
28652 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
28654 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
28656 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
28657 implict or explicit -fPIE or -fpie.
28659 2015-05-30 Mike Frysinger <vapier@gentoo.org>
28661 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
28663 2015-05-28 DJ Delorie <dj@redhat.com>
28665 * expmed.c (extract_bit_field_1): Avoid clobbering a
28666 yet-to-be-used base/index register.
28668 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
28670 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
28671 (alias_stats): Add num_universal.
28672 (alias_set_subset_of): Special case pointers; be ready for NULL
28674 (alias_sets_conflict_p): Special case pointers; be ready for NULL
28676 (init_alias_set_entry): Break out from ...
28677 (record_alias_subset): ... here; propagate new fields;
28678 allocate children only when really needed.
28679 (get_alias_set): Do less generous pointer globbing.
28680 (dump_alias_stats_in_alias_c): Update statistics.
28682 2015-05-30 Alan Modra <amodra@gmail.com>
28684 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
28685 correct block for use of r12.
28686 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
28688 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
28691 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
28694 2015-05-29 Jakub Jelinek <jakub@redhat.com>
28696 PR tree-optimization/66142
28697 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
28698 virtual phis that feed themselves.
28700 2015-05-29 Richard Biener <rguenther@suse.de>
28702 PR tree-optimization/66314
28703 * tree-ssa-threadupdate.c (create_block_for_threading): Add
28704 parameter that says which loop the new block belongs to.
28705 (ssa_create_duplicates): Blocks duplicated for the threaded
28706 path belong to the loop of the thread destination.
28708 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28710 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
28711 to cleanup-saved-temps.
28712 * doc/sourcebuild.texi (Clean up generated test files): Expand
28714 (dg-keep-saved-temps): Document new proc.
28715 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
28716 cleanup-saved-temps): Remove.
28718 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
28720 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
28721 gcc_AC_CHECK_DECLS.
28722 * configure: Regenerate.
28724 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28726 * config/nios2/linux.h (CPP_SPEC): Define.
28728 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28730 * config/microblaze/linux.h (CPP_SPEC): Define.
28732 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28734 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
28735 -pthread is specified.
28737 2015-05-28 Richard Biener <rguenther@suse.de>
28739 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
28740 (vect_fixup_scalar_cycles_with_patterns): Likewise.
28741 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
28742 after pattern recog.
28743 (vect_create_epilog_for_reduction): Properly handle reductions
28745 (vectorizable_reduction): Likewise.
28746 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
28748 (vect_get_constant_vectors): Create the correct number of
28749 initial values for reductions.
28750 (vect_schedule_slp_instance): Handle reduction chains that are
28751 type changing properly.
28752 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
28754 2015-05-28 Richard Biener <rguenther@suse.de>
28756 PR tree-optimization/66142
28757 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
28758 values better in memcpy destination handling. Handle non-aliasing
28761 2015-05-28 Lawrence Velázquez <vq@larryv.me>
28764 * config/darwin-c.c (version_components): New global enum.
28765 (parse_version, version_as_legacy_macro)
28766 (version_as_modern_macro, macosx_version_as_macro): New functions.
28767 (version_as_macro): Remove.
28768 (darwin_cpp_builtins): Use new function.
28770 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
28772 * builtins.c (expand_builtin_acc_on_device): Mark parameters
28773 with ATTRIBUTE_UNUSED.
28775 2015-05-28 Julian Brown <julian@codesourcery.com>
28779 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
28780 sequence for !ACCEL_COMPILER.
28782 2015-05-28 Nick Clifton <nickc@redhat.com>
28784 * config/rx/rx.c (push_regs): New function. Extracts code from...
28785 (rx_expand_prologue): ... here. Use push_regs to push even small
28786 spans of registers.
28787 (pop_regs): New function.
28788 (rx_expand_epilogue): Use pop_regs to pop even small spans of
28791 2015-05-28 Richard Biener <rguenther@suse.de>
28793 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
28795 (SLP_INSTANCE_BODY_COST_VEC): Remove.
28796 (vect_update_slp_costs_according_to_vf): Likewise.
28797 (vect_slp_analyze_operations): Update prototype.
28798 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
28799 vect_update_slp_costs_according_to_vf, adjust.
28800 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
28801 (vect_analyze_slp_cost_1): Likewise.
28802 (vect_analyze_slp_cost): Likewise. Properly deal with
28803 widening reduction ops. Commit body costs.
28804 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
28805 cost for loops from here.
28806 (vect_slp_analyze_operations): But do it from here when
28807 the vectorization factor is known and stmts are analyzed.
28808 (vect_bb_vectorization_profitable_p): Simplify.
28809 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
28810 (vect_update_slp_costs_according_to_vf): Remove.
28812 2015-05-27 Magnus Granberg <zorry@gentoo.org>
28813 H.J. Lu <hongjiu.lu@intel.com>
28815 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
28816 (BUILD_CFLAGS): Likewise.
28817 (BUILD_CXXFLAGS): Likewise.
28818 (LINKER): Add @NO_PIE_FLAG@.
28819 (BUILD_LDFLAGS): Likewise.
28820 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
28821 --enable-default-pie.
28822 * common.opt (fPIE): Initialize to -1.
28824 (no-pie): New option.
28825 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
28826 * configure.ac: Add --enable-default-pie.
28827 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
28828 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
28829 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
28830 * gcc.c (NO_PIE_SPEC): New.
28831 (PIE_SPEC): Likewise.
28832 (NO_FPIE1_SPEC): Likewise.
28833 (FPIE1_SPEC): Likewise.
28834 (NO_FPIE2_SPEC): Likewise.
28835 (FPIE2_SPEC): Likewise.
28836 (NO_FPIE2_SPEC): Likewise.
28837 (FPIE_SPEC): Likewise.
28838 (NO_FPIE_SPEC): Likewise.
28839 (NO_FPIC1_SPEC): Likewise.
28840 (FPIC1_SPEC): Likewise.
28841 (NO_FPIC2_SPEC): Likewise.
28842 (FPIC2_SPEC): Likewise.
28843 (NO_FPIC2_SPEC): Likewise.
28844 (FPIC_SPEC): Likewise.
28845 (NO_FPIC_SPEC): Likewise.
28846 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
28847 (FPIE1_OR_FPIC1_SPEC): Likewise.
28848 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
28849 (FPIE2_OR_FPIC2_SPEC): Likewise.
28850 (NO_FPIE_AND_FPIC_SPEC): Likewise.
28851 (FPIE_OR_FPIC_SPEC): Likewise.
28852 (LD_PIE_SPEC): Likewise.
28853 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
28854 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
28855 * config/darwin.h (PIE_SPEC): Renamed to ...
28856 (DARWIN_PIE_SPEC): This.
28857 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
28858 * config/darwin9.h (PIE_SPEC): Renamed to ...
28859 (DARWIN_PIE_SPEC): This.
28860 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
28861 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
28862 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
28863 FPIE2_OR_FPIC2_SPEC.
28864 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
28865 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
28866 * config/sol2.h (ASM_PIC_SPEC): Likewise.
28867 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28868 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28869 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28870 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
28871 * config/m32r/m32r.h (ASM_SPEC): Likewise.
28872 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
28873 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28874 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
28875 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
28876 * config/sparc/linux.h (ASM_SPEC): Likewise.
28877 * config/sparc/linux64.h (ASM_SPEC): Likewise.
28878 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
28879 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
28880 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28881 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
28882 * config/sparc/sparc.h (ASM_SPEC): Likewise.
28883 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
28884 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
28885 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
28886 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
28887 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
28888 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
28889 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
28890 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
28891 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
28892 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
28893 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
28894 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
28895 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28896 * config/vax/linux.h (ASM_SPEC): Likewise.
28897 * doc/install.texi: Document --enable-default-pie.
28898 * doc/invoke.texi: Document -no-pie.
28899 * config.in: Regenerated.
28900 * configure: Likewise.
28902 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
28904 PR rtl-optimization/66168
28905 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
28906 can_move_invariant_reg.
28908 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
28911 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
28912 REG_EQUAL note when doing insert.
28914 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
28915 instead of "%d" for 'o' operand.
28917 2015-05-27 Nathan Sidwell <nathan@acm.org>
28920 * tree.c (build_pointer_type_for_mode): Canonical type does not
28921 inherit can_alias_all.
28922 (build_reference_type_for_mode): Likewise.
28924 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
28926 * expr.h (array_at_struct_end_p): Move to...
28927 (array_ref_element_size): Likewise.
28928 (component_ref_field_offset): Likewise.
28929 * tree.h (array_ref_element_size): ...here.
28930 (array_at_struct_end_p): Likewise.
28931 (component_ref_field_offset): Likewise.
28932 * expr.c (array_ref_element_size): Move to...
28933 (array_ref_low_bound): Likewise.
28934 (array_at_struct_end_p): Likewise.
28935 (array_ref_up_bound): Likewise.
28936 (component_ref_field_offset): Likewise.
28937 * tree.c (array_ref_element_size): ...here.
28938 (array_ref_low_bound): Likewise.
28939 (array_ref_up_bound): Likewise.
28940 (array_at_struct_end_p): Likewise.
28941 (component_ref_field_offset): Likewise.
28943 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
28944 Szabolcs Nagy <szabolcs.nagy@arm.com>
28946 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
28948 2015-05-27 Jason Merrill <jason@redhat.com>
28951 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
28952 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
28953 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
28955 2015-05-22 Aditya Kumar <hiraditya@msn.com>
28957 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
28960 * statistics.c (statistics_fini_pass): Print pass name.
28962 2015-05-27 Richard Biener <rguenther@suse.de>
28964 PR tree-optimization/66272
28966 2014-08-15 Richard Biener <rguenther@suse.de>
28968 PR tree-optimization/62031
28969 * tree-data-ref.c (dr_analyze_indices): Do not set
28970 DR_UNCONSTRAINED_BASE.
28971 (dr_may_alias_p): All indirect accesses have to go the
28972 formerly DR_UNCONSTRAINED_BASE path.
28973 * tree-data-ref.h (struct indices): Remove
28974 unconstrained_base member.
28975 (DR_UNCONSTRAINED_BASE): Remove.
28977 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
28979 * dwarf2out.c: Remove block_map.
28980 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
28981 (gen_lexical_block_die): Same.
28982 (dwarf2out_function_decl): Remove block_map use.
28983 (dwarf2out_c_finalize): Same.
28984 * tree-core.h (struct tree_block): Add die field.
28985 * tree.h (BLOCK_DIE): New.
28987 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28990 * expr.c (memory_load_overlap): New function.
28991 (emit_push_insn): When pushing partial args to the stack would
28992 clobber the register part load the overlapping part into a pseudo
28993 and put it into the hard reg after pushing. Change return type
28994 to bool. Add bool argument.
28995 * expr.h (emit_push_insn): Change return type to bool.
28997 * calls.c (expand_call): Cancel sibcall optimization when encountering
28998 partial argument on targets with ARGS_GROW_DOWNWARD and
28999 !STACK_GROWS_DOWNWARD.
29000 (emit_library_call_value_1): Update callsite of emit_push_insn.
29001 (store_one_arg): Likewise.
29003 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
29005 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
29007 2015-05-27 Martin Liska <mliska@suse.cz>
29009 * Makefile.in: Add additional dependencies related to memory report
29011 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
29012 * bitmap.c (struct bitmap_descriptor_d): Remove.
29013 (struct loc): Likewise.
29014 (struct bitmap_desc_hasher): Likewise.
29015 (bitmap_desc_hasher::hash): Likewise.
29016 (bitmap_desc_hasher::equal): Likewise.
29017 (get_bitmap_descriptor): Likewise.
29018 (bitmap_register): User new memory descriptor API.
29019 (register_overhead): Likewise.
29020 (bitmap_find_bit): Register nsearches and search_iter statistics.
29021 (struct bitmap_output_info): Remove.
29022 (print_statistics): Likewise.
29023 (dump_bitmap_statistics): Use new memory descriptor.
29024 * bitmap.h (struct bitmap_usage): New class.
29025 * genmatch.c: Extend header file inclusion.
29026 * genpreds.c: Likewise.
29027 * ggc-common.c (struct ggc_usage): New class.
29028 (struct ggc_loc_desc_hasher): Remove.
29029 (ggc_loc_desc_hasher::hash): Likewise.
29030 (ggc_loc_desc_hasher::equal): Likewise.
29031 (struct ggc_ptr_hash_entry): Likewise.
29032 (struct ptr_hash_hasher): Likewise.
29033 (ptr_hash_hasher::hash): Likewise.
29034 (ptr_hash_hasher::equal): Likewise.
29035 (make_loc_descriptor): Likewise.
29036 (ggc_prune_ptr): Likewise.
29037 (dump_ggc_loc_statistics): Use new memory descriptor.
29038 (ggc_record_overhead): Likewise.
29039 (ggc_free_overhead): Likewise.
29040 (final_cmp_statistic): Remove.
29041 (cmp_statistic): Likewise.
29042 (ggc_add_statistics): Liekwise.
29043 (ggc_prune_overhead_list): Likewise.
29044 * hash-map-traits.h: New file.
29045 * hash-map.h (struct default_hashmap_traits): Move the traits to a
29046 separate header file.
29047 * hash-set.h: Pass memory statistics info to ctor.
29048 * hash-table.c (void dump_hash_table_loc_statistics): New function.
29049 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
29050 (hash_table::~hash_table): Register memory release operation.
29051 (hash_table::alloc_entries): Handle memory allocation operation.
29052 (hash_table::expand): Likewise.
29053 * inchash.c (iterative_hash_hashval_t): Move implementation to header
29055 (iterative_hash_host_wide_int): Likewise.
29056 * inchash.h (class hash): Likewise.
29057 * mem-stats-traits.h: New file.
29058 * mem-stats.h: New file.
29059 (mem_location): Add new class.
29060 (mem_usage): Likewise.
29061 (mem_alloc_description): Likewise.
29062 * sese.c: Add new header file inclusision.
29063 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
29065 * tree-sra.c: Add new header file inclusision.
29066 * vec.c (struct vec_descriptor): Remove.
29067 (hash_descriptor): Likewise.
29068 (struct vec_usage): Likewise.
29069 (struct ptr_hash_entry): Likewise.
29070 (hash_ptr): Likewise.
29071 (eq_ptr): Likewise.
29072 (vec_prefix::register_overhead): Use new memory descriptor API.
29073 (vec_prefix::release_overhead): Likewise.
29074 (add_statistics): Remove.
29075 (dump_vec_loc_statistics): Use new memory descriptor API.
29076 * vec.h (struct vec_prefix): Likewise.
29077 (va_heap::reserve): Likewise.
29078 (va_heap::release): Likewise.
29079 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
29081 2015-05-27 Richard Biener <rguenther@suse.de>
29083 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
29084 earlier and remove ??? comment.
29085 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
29086 and got called from loop analysis bail out. Always pass the SLP
29087 node to the vectorizable_* functions.
29088 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
29089 the premature SLP check here.
29090 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
29091 detected SLP stmts.
29092 (vect_detect_hybrid_slp_1): Likewise.
29094 2015-05-26 Jeff Law <law@redhat.com>
29096 * combine.c (find_split_point): Verify that the shift count is a
29097 constant when choosing (plus (ashift ...)) as a split point.
29099 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
29100 No functional changes.
29102 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
29104 * ipa-polymorphic-call.c
29105 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
29106 case when call target is already known.
29108 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
29111 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
29112 take into account the case that operands[1] and operands[2]
29113 are the same register.
29115 2015-05-26 Michael Matz <matz@suse.de>
29117 PR middle-end/66251
29119 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
29121 (vect_create_vectorized_demotion_stmts): Always set
29122 STMT_VINFO_VEC_STMT, also with SLP.
29123 (vectorizable_store): Handle strided group stores.
29125 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29128 * config/aarch64/aarch64.md
29129 (*adds_shift_imm_<mode>): New pattern.
29130 (*subs_shift_imm_<mode>): Likewise.
29131 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
29132 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
29133 (*add_uxt<mode>_shift2): Likewise.
29134 (*add_uxtsi_shift2_uxtw): Likewise.
29135 (*sub_uxt<mode>_shift2): Likewise.
29136 (*sub_uxtsi_shift2_uxtw): Likewise.
29138 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
29140 * config/rs6000/constraints.md (Y, U): Use match_test.
29142 2015-05-26 Christian Bruel <christian.bruel@st.com>
29145 * config/arm/arm.c (arm_option_check_internal)
29146 (arm_option_params_internal): Check opts->target_flags to set macros.
29147 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29148 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
29149 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29150 (builtin_define): Replaced with def_or_undef_macro.
29151 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29152 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
29153 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29154 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
29155 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
29156 (TARGET_ARM_FEATURE_LDREX_P)
29157 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
29158 * config/arm/arm-c.c (def_or_undef_macro): New function.
29159 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
29161 2015-05-26 Christian Bruel <christian.bruel@st.com>
29163 * c-common.h (builtin_define_with_int_value)
29164 (builtin_define_type_sizeof): Declare.
29165 * c-cppbuiltin.c (builtin_define_with_int_value)
29166 (builtin_define_type_sizeof): Externalize.
29167 (builtin_define_std): Cleanup declaration.
29168 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
29169 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
29170 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
29171 (builtin_define, builtin_assert): New macros.
29173 2015-05-26 Richard Biener <rguenther@suse.de>
29175 PR tree-optimization/66142
29176 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
29177 MEM_REFs for the same base address.
29179 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29182 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
29184 2015-05-26 Jason Merrill <jason@redhat.com>
29186 * configure.ac: Set CXXFLAGS for ISL test.
29187 * configure: Regenerate.
29189 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
29190 strstr and basename.
29191 * configure: Regenerate.
29193 2015-05-26 Richard Biener <rguenther@suse.de>
29195 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
29196 X % C -> X & (C - 1) for C being a power-of two to ...
29197 * match.pd: ... patterns.
29199 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
29201 * match.pd (swapped_tcc_comparison): New operator list.
29202 (-A CMP -B): New simplification.
29203 * fold-const.c (fold_comparison): Remove corresponding code.
29205 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
29207 * caller-save.c (init_caller_save): Base temporary register numbers
29208 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
29209 * cfgloopanal.c (init_set_costs): Likewise.
29210 * dojump.c (prefer_and_bit_test): Likewise.
29211 * expr.c (init_expr_target): Likewise.
29212 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29213 * lower-subreg.c (init_lower_subreg): Likewise.
29214 * postreload.c (reload_cse_regs_1): Likewise.
29216 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
29218 * gensupport.h (compute_test_codes): Declare.
29219 * gensupport.c (compute_predicate_codes): Rename to...
29220 (compute_test_codes): ...this. Generalize error message.
29221 (process_define_predicate): Update accordingly.
29222 * genpreds.c (compute_maybe_allows): Delete.
29223 (add_constraint): Use compute_test_codes to determine whether
29224 something can accept a SUBREG, REG or MEM.
29226 2015-05-26 Torvald Riegel <triegel@redhat.com>
29228 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
29229 'memory model' to align with C++11; fix description of memory orders;
29232 2015-05-26 Richard Biener <rguenther@suse.de>
29234 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
29235 (vect_analyze_loop_operations): ... here. Remove slp parameter,
29236 detect whether we apply SLP. Remove call to
29237 vect_update_slp_costs_according_to_vf.
29238 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
29239 vect_update_slp_costs_according_to_vf from here. Dispatch
29240 to vect_slp_analyze_operations to analyze SLP stmts.
29241 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
29242 unused bb_vec_info parameter, adjust assert.
29243 (vect_slp_analyze_operations): Pass in the slp instance tree
29244 instead of bb_vec_info.
29245 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
29246 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
29248 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
29250 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
29251 Q_REGS. Expand comment.
29252 (REG_CLASS_NAMES): Ditto.
29253 (REG_CLASS_CONTENTS): Ditto.
29255 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
29258 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
29259 when LEGACY_INT_REGNO_P is processed.
29261 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
29263 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
29265 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
29267 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
29268 register if not marked dead/unused, before return.
29270 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
29273 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
29274 is set; check for assembler name at LTO time.
29275 (type_in_anonymous_namespace): Remove hacks, check that all
29276 anonymous types are called "<anon>"
29277 (odr_type_p): Simplify; add check for "<anon>"
29278 (odr_subtypes_equivalent): Add odr_type_p check.
29279 * tree.c (need_assembler_name_p): Even anonymous namespace needs
29282 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
29284 * ipa-utils.h (method_class_type): Remove.
29285 * cgraphunit.c (walk_polymorphic_call_targets): Use
29286 TYPE_METHOD_BASETYPE.
29287 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
29288 on main variants only.
29289 (method_class_type): Remove.
29290 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
29291 (build_type_inheritance_graph): Likewise.
29292 * ipa-icf.c (sem_function::equals_wpa): Likewise.
29293 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
29294 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
29296 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
29298 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
29299 is_typedef_decl, typedef_variant_p): Constify.
29300 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
29301 is_typedef_decl, typedef_variant_p): Constify.
29303 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29305 * defaults.h (gen_tablejump): New function.
29306 (HAVE_tablejump): Add default value.
29308 * stmt.c: Likewise.
29310 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29312 * defaults.h (gen_store_multiple): New function.
29313 (HAVE_store_multiple): Add default value.
29314 * expr.c (move_block_from_reg): Adjust.
29316 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29318 * defaults.h (gen_load_multiple): New function.
29319 (HAVE_load_multiple): Add default value.
29320 * expr.c (move_block_to_reg): Adjust.
29322 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29324 * defaults.h (gen_mem_signal_fence): New function.
29325 (HAVE_mem_signal_fence): Add default value.
29326 * optabs.c: Adjust.
29328 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29330 * defaults.h (gen_memory_barrier): New function.
29331 (HAVE_memory_barrier): Add default value.
29332 * optabs.c: Adjust.
29334 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29336 * defaults.h (gen_mem_thread_fence): New function.
29337 (HAVE_mem_thread_fence): Add default definition.
29338 * optabs.c: Adjust.
29340 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29342 * combine.c (find_split_point): Check the value of HAVE_lo_sum
29343 instead of if it is defined.
29344 (combine_simplify_rtx): Likewise.
29345 * lra-constraints.c (process_address_1): Likewise.
29346 * config/darwin.c: Adjust.
29347 * genconfig.c (main): Always define HAVE_lo_sum.
29349 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29351 * genmatch.c (parser::parse_operation): Reject expanding
29352 operator-list inside 'for'.
29354 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29356 * genmatch.c (parser::parse_for): Reject iterator if used as
29359 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29361 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
29362 after end of id-list.
29364 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
29366 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
29367 we do not try to compute canonical type for type that does not need
29369 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
29371 * tree.h (type_with_alias_set_p): New.
29373 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
29375 * tree.c (gimple_canonical_types_compatible_p): Do not compare
29376 function attributes.
29377 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
29379 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
29381 * Makefile.in (check_gcc_parallelize): Delete.
29382 (lang_checks_parallelized): Update comment.
29384 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
29386 PR rtl-optimization/66237
29387 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
29388 location of an "as_a" cast.
29390 2015-05-22 Jeff Law <law@redhat.com>
29392 * config/pa/pa.md (non-canonical shift-add insns): Remove.
29393 (peepholes with non-canonical RTL sources): Remove.
29394 (peepholes for indexed stores of FP regs in integer modes): Match and
29395 generate canonical RTL.
29397 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
29399 PR tree-optimization/63387
29400 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
29401 ((x ord x) & (y ord y) -> (x ord y),
29402 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
29403 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
29404 vectors like scalars.
29406 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
29408 * convert.c (convert_to_integer, convert_to_vector): Include the
29409 types in the error message.
29411 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
29413 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
29416 2015-05-22 Jeff Law <law@redhat.com>
29418 * config/pa/pa.md (integer_indexed_store splitters): Use
29419 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
29420 insns -- adjusting the constant 2nd operand accordingly.
29422 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
29423 (plus (ashift X log2) Y) if it is a split point.
29425 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
29426 out of hppa_legitimize_address to handle both forms of a multiply
29428 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
29429 Always generate the ASHIFT variant as the result is not directly
29430 used in a MEM. Update comments and refactor slightly to improve
29433 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29436 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
29437 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
29438 (aarch64_composite_type_p): Return false if given type and mode are
29439 for a short vector.
29441 2015-05-22 Richard Biener <rguenther@suse.de>
29443 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
29445 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
29446 patterns when determining whether SLP is pure.
29447 (vect_is_slp_reduction): Remove check for pattern stmts.
29448 (vect_is_simple_reduction_1): Remove dead code.
29449 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
29450 (vect_get_and_check_slp_defs): Pass in the stmt number.
29451 Allow the first def in a reduction to be not a pattern stmt when
29452 the rest of the stmts def are patterns.
29453 (vect_build_slp_tree_1): Allow tcc_expression codes like
29454 SAD_EXPR and DOT_PROD_EXPR.
29455 (vect_build_slp_tree): Adjust.
29456 (vect_analyze_slp): Refactor and move BB vect error message ...
29457 (vect_slp_analyze_bb_1): ... here.
29459 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
29461 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
29462 for CSWTCH temporary.
29464 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29466 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
29467 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
29470 2015-05-22 Richard Biener <rguenther@suse.de>
29472 PR tree-optimization/66251
29473 * tree-vect-stmts.c (vectorizable_conversion): Properly
29474 set STMT_VINFO_VEC_STMT even for the SLP case.
29476 2015-05-22 Marek Polacek <polacek@redhat.com>
29478 * doc/extend.texi: Use @pxref instead of @xref.
29480 2015-05-22 hiraditya <hiraditya@msn.com>
29482 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
29485 2015-05-22 Richard Biener <rguenther@suse.de>
29487 PR tree-optimization/65701
29488 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29489 Move peeling cost models into one place. Peel for alignment
29490 for single loads only if an aligned load is cheaper than
29493 2015-05-22 Marek Polacek <polacek@redhat.com>
29496 * doc/extend.texi (Enumerator Attributes): New section.
29497 Document syntax of enumerator attributes.
29499 2015-05-22 Richard Biener <rguenther@suse.de>
29501 * tree-vect-loop.c (get_reduction_op): New function.
29502 (vect_model_reduction_cost): Use it, add reduc_index parameter.
29503 Make ready for BB reductions.
29504 (vect_create_epilog_for_reduction): Use get_reduction_op.
29505 (vectorizable_reduction): Init reduc_index to a valid value.
29506 Adjust vect_model_reduction_cost call.
29507 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
29508 operand for reduction defaults. Add SAD_EXPR support.
29509 Assert we have a neutral op for SLP reductions.
29510 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
29511 walking pattern stmt ops only recurse to SSA names.
29513 2015-05-22 Richard Biener <rguenther@suse.de>
29515 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
29516 assert with guard, remove check on detected reduction.
29517 (vect_recog_sad_pattern): Likewise.
29518 (vect_recog_widen_sum_pattern): Likewise.
29520 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29522 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
29523 __always_inline__ attribute.
29524 (vaesdq_u8): Likewise.
29525 (vaesmcq_u8): Likewise.
29526 (vaesimcq_u8): Likewise.
29527 (vsha1cq_u32): Likewise.
29528 (vsha1mq_u32): Likewise.
29529 (vsha1pq_u32): Likewise.
29530 (vsha1h_u32): Likewise.
29531 (vsha1su0q_u32): Likewise.
29532 (vsha1su1q_u32): Likewise.
29533 (vsha256hq_u32): Likewise.
29534 (vsha256h2q_u32): Likewise.
29535 (vsha256su0q_u32): Likewise.
29536 (vsha256su1q_u32): Likewise.
29537 (vmull_p64): Likewise.
29538 (vmull_high_p64): Likewise.
29540 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29542 * final.c (final_scan_insn): Don't check HAVE_peephole with the
29544 * output.h: Likewise.
29545 * genconfig.c (main): Alwways define HAVE_peephole.
29546 * genpeep.c: Don't emit checks of HAVE_peephole.
29548 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29550 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
29551 check HAVE_conditional_move with the preprocessor.
29553 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29555 * genconfig.c (main): Always define HAVE_conditional_move.
29556 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
29557 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
29560 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29562 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
29563 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
29564 and FRAME_POINTER_REGNUM with the preprocessor.
29566 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29568 * defaults.h: Add default for STACK_PUSH_CODE.
29569 * expr.c: Don't redefine STACK_PUSH_CODE.
29570 * recog.c: Likewise.
29572 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29574 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
29575 sched-deps.c: Use if instead of preprocessor checks with
29576 STACK_GROWS_DOWNWARD.
29578 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29580 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
29582 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
29583 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
29584 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
29585 * doc/tm.texi: Regenerate.
29587 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
29590 * config/i386/constraints.md (Bg): New constraint for GOT memory
29592 * config/i386/i386.md (*call_got_x32): New pattern.
29593 (*call_value_got_x32): Likewise.
29594 * config/i386/predicates.md (GOT_memory_operand): New predicate.
29596 2015-05-21 Jakub Jelinek <jakub@redhat.com>
29598 PR tree-optimization/66233
29599 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
29602 2015-05-21 Jeff Law <law@redhat.com>
29604 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
29605 than MULT for shadd sequences.
29607 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
29609 * alias.c (alias_stats): New static var.
29610 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
29611 (dump_alias_stats_in_alias_c): New function.
29612 * alias.h (dump_alias_stats_in_alias_c): Declare.
29613 * tree-ssa-alias.c (dump_alias_stats): Call it.
29615 2015-05-08 Michael Matz <matz@suse.de>
29617 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
29619 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
29620 (STMT_VINFO_STRIDED_P): ... this.
29621 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
29622 (vect_verify_datarefs_alignment): Likewise.
29623 (vect_enhance_data_refs_alignment): Likewise.
29624 (vect_analyze_data_ref_access): Likewise.
29625 (vect_analyze_data_refs): Accept strided stores.
29626 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
29627 (vect_model_load_cost): Adjust for macro rename.
29628 (vectorizable_mask_load_store): Likewise.
29629 (vectorizable_load): Likewise.
29630 (vectorizable_store): Open code strided stores.
29632 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29634 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
29635 Document sqrt_insn.
29637 2015-05-21 Richard Biener <rguenther@suse.de>
29640 * match.pd: Guard pattern optimzing (int)(float)int
29641 conversions to apply only on GIMPLE.
29643 2015-05-21 Jeff Law <law@redhat.com>
29645 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
29646 multiply-accumulate/shift-add insn generation.
29648 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
29651 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
29652 operands[1] are the same.
29654 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
29656 PR middle-end/66221
29657 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
29658 build_distinct_type_copy to copy bounds.
29660 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
29662 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
29663 Change to unsigned int.
29665 2015-05-20 Jeff Law <law@redhat.com>
29667 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
29668 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
29669 (pa_shadd_constant_p): Allow constants for shadd insns rather
29670 than valid scaling constants for memory addresses.
29671 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
29672 * config/pa/predicates.md (mem_shadd_operand): New predicate.
29673 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
29674 (shift-add insns using ASHIFT): New patterns.
29676 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
29678 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
29680 (fix_up_fall_thru_edges): Likewise.
29681 (fix_crossing_conditional_branches): Likewise. Promote jump targets
29682 from to rtx_insn to rtx_code_label where feasible.
29683 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
29684 gen_move_insn (returned type changed to rtx_insn).
29685 * builtins.c (expand_errno_check): Fix arguments of
29686 do_compare_rtx_and_jump (now expects rtx_code_label).
29687 (expand_builtin_acc_on_device): Likewise.
29688 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
29689 invert_jump (now exprects rtx_jump_insn).
29690 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
29691 (construct_init_block): Use rtx_code_label.
29692 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
29693 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
29694 calling redirect_jump.
29695 (patch_jump_insn): Likewise.
29696 (redirect_branch_edge): Likewise.
29697 (force_nonfallthru_and_redirect): Likewise.
29698 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
29700 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
29701 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
29702 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
29703 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
29704 to store the value retured by gen_label_rtx.
29705 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
29707 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
29708 (split_branches): Fix calls of redirect_jump.
29709 * dojump.c (jumpifnot): Promote argument type from rtx to
29711 (jumpifnot_1): Likewise.
29712 (jumpif): Likewise.
29713 (jumpif_1): Likewise.
29714 (do_jump_1): Likewise.
29715 (do_jump): Likewise. Use rtx_code_label when feasible.
29716 (do_jump_by_parts_greater_rtx): Likewise.
29717 (do_jump_by_parts_zero_rtx): Likewise.
29718 (do_jump_by_parts_equality_rtx): Likewise.
29719 (do_compare_rtx_and_jump): Likewise.
29720 * dojump.h: Update function prototypes.
29721 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
29723 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
29725 (emit_label_before): Likewise.
29726 (emit_jump_insn_after_noloc): Likewise.
29727 (emit_jump_insn_after_setloc): Likewise.
29728 (emit_jump_insn_after): Likewise
29729 (emit_jump_insn_before_setloc): Likewise.
29730 (emit_jump_insn_before): Likewise.
29731 (emit_label_before): Promote return type to rtx_code_label.
29732 (emit_label): Likewise.
29733 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
29734 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
29736 (emit_stack_restore): Likewise.
29737 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
29738 (do_cmp_and_jump): Likewise.
29739 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
29740 from rtx to rtx_code_label.
29741 (gen_move_insn_uncast): New function.
29742 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
29743 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
29744 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
29745 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
29746 invert_jump_1 and redirect_jump_1.
29747 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
29748 do_compare_rtx_and_jump.
29749 (expand_addsub_overflow): Likewise.
29750 (expand_neg_overflow): Likewise.
29751 (expand_mul_overflow): Likewise.
29752 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
29753 return value of gen_move_insn.
29754 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
29755 * loop-doloop.c (add_test): Use rtx_code_label.
29756 (doloop_modify): Likewise.
29757 (doloop_optimize): Likewise.
29758 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
29759 * lra-constraints.c (emit_spill_move): Remove cast of value returned
29761 (inherit_reload_reg): Add cast when calling dump_insn_slim.
29762 (split_reg): Likewise.
29763 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
29765 * optabs.c (expand_binop_directly): Remove casts of values returned by
29767 (expand_unop_direct): Likewise.
29768 (expand_abs): Likewise.
29769 (maybe_emit_unop_insn): Likewise.
29770 (maybe_gen_insn): Promote return type to rtx_insn.
29771 * optabs.h: Update prototype of maybe_gen_insn.
29772 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
29774 * recog.c (struct peep2_insn_data): Promote type of insn field to
29776 (peep2_reinit_state): Use NULL instead of NULL_RTX.
29777 (peep2_attempt): Remove casts of insn in peep2_insn_data.
29778 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
29779 * recog.h (struct insn_gen_fn): Promote return types of function
29780 pointers and operator ().from rtx to rtx_insn.
29781 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
29782 (fill_eager_delay_slots): Likewise.
29783 (relax_delay_slots): Likewise.
29784 (make_return_insns): Likewise.
29785 (dbr_schedule): Likewise.
29786 (optimize_skips): Likewise.
29787 (reorg_redirect_jump): Likewise.
29788 (fill_slots_from_thread): Likewise.
29789 * reorg.h: Update prototypes.
29790 * resource.c (find_dead_or_set_registers): Use dyn_cast to
29791 rtx_jump_insn instead of check. Use it's jump_target method.
29792 * rtl.h (rtx_jump_insn::jump_label): Define new method.
29793 (rtx_jump_insn::jump_target): Define new method.
29794 (rtx_jump_insn::set_jump_target): Define new method.
29795 * rtlanal.c (tablejump_p): Promote type of one local variable.
29796 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
29797 (sched_analyze_insn): Likewise.
29798 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
29799 (print_insn): Likewise.
29800 * stmt.c (label_rtx): Promote return type to rtx_insn.
29801 (force_label_rtx): Likewise.
29802 (jump_target_rtx): Define new function.
29803 (expand_label): Use it, get rid of one cast.
29804 (expand_naked_return): Promote rtx to rtx_code_label.
29805 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
29806 (expand_case): Use rtx_code_label instread of rtx where feasible.
29807 (expand_sjlj_dispatch_table): Likewise.
29808 (emit_case_nodes): Likewise.
29809 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
29810 * store-motion.c (insert_store): Make use of new return type of
29811 gen_move_insn and remove a cast.
29812 (replace_store_insn): Likewise.
29814 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
29816 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
29817 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
29819 2015-05-20 Jeff Law <law@redhat.com>
29821 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
29822 dispose of the jump thread path when the jump threading
29823 opportunity is cancelled.
29825 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
29827 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
29828 when printing the caret character.
29830 2015-05-20 Marek Polacek <polacek@redhat.com>
29832 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
29834 2015-05-20 Marek Polacek <polacek@redhat.com>
29836 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
29837 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
29838 * gimple-fold.c (canonicalize_bool): Likewise.
29839 (same_bool_result_p): Likewise.
29840 * tree-if-conv.c (parse_predicate): Likewise.
29842 2015-05-20 Marek Polacek <polacek@redhat.com>
29844 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
29845 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
29847 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29849 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
29850 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
29853 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
29855 * config/mips/mips.h (micromips_globals): Declare.
29857 2015-05-20 David Malcolm <dmalcolm@redhat.com>
29859 * timevar.def (TV_INITIALIZE_RTL): New.
29860 * toplev.c (initialize_rtl): Use an auto_timevar to account this
29861 function's time to TV_INITIALIZE_RTL.
29863 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
29865 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
29866 gimple_build_nop calls.
29867 (chkp_find_bounds_for_elem): Likewise.
29868 (chkp_get_zero_bounds): Likewise.
29869 (chkp_get_none_bounds): Likewise.
29870 (chkp_get_bounds_by_definition): Likewise.
29871 (chkp_generate_extern_var_bounds): Likewise.
29872 (chkp_get_bounds_for_decl_addr): Likewise.
29873 (chkp_get_bounds_for_string_cst): Likewise.
29875 2015-05-20 Bin Cheng <bin.cheng@arm.com>
29877 PR tree-optimization/65447
29878 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
29879 (dump_use, dump_uses): Support to dump sub use.
29880 (record_use): New parameters to support sub use. Remove call to
29882 (record_sub_use, record_group_use): New functions.
29883 (compute_max_addr_offset, split_all_small_groups): New functions.
29884 (group_address_uses, rewrite_use_address): New functions.
29885 (strip_offset): New declaration.
29886 (find_interesting_uses_address): Call record_group_use.
29887 (add_candidate): New assertion.
29888 (infinite_cost_p): Move definition forward.
29889 (add_costs): Check INFTY cost and return immediately.
29890 (get_computation_cost_at): Clear setup cost and dependent bitmap
29892 (determine_use_iv_cost_address): Compute cost for sub uses.
29893 (rewrite_use_address_1): Rename from old rewrite_use_address.
29894 (free_loop_data): Free sub uses.
29895 (tree_ssa_iv_optimize_loop): Call group_address_uses.
29897 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
29898 Jim Wilson <jim.wilson@linaro.org>
29900 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
29901 new fields loadv and storev.
29902 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
29903 Initialize loadv and storev.
29904 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
29905 (cortexa53_extra_costs): Likewise.
29906 (cortexa57_extra_costs): Likewise.
29907 (xgene1_extra_costs): Likewise.
29908 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
29911 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
29913 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
29915 (cortexa8_extra_costs): Likewise.
29916 (cortexa5_extra_costs): Likewise.
29917 (cortexa7_extra_costs): Likewise.
29918 (cortexa12_extra_costs): Likewise.
29919 (cortexa15_extra_costs): Likewise.
29920 (v7m_extra_costs): Likewise.
29922 2015-05-20 Jeff Law <law@redhat.com>
29924 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
29925 instead of open-coded version. Also delete the jump thread created
29926 within this function.
29928 2015-05-20 Alan Modra <amodra@gmail.com>
29930 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
29931 stack adjusting insn. Formatting.
29932 (rs6000_emit_prologue): Track stack adjusting insn, and use of
29933 r12. If possible, emit first -fsplit-stack arg pointer insn
29934 before stack adjust. Don't use r12 to save cr if split-stack.
29936 2015-05-20 Alan Modra <amodra@gmail.com>
29938 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
29940 (rs6000_supports_split_stack): New function.
29941 * config/rs6000/rs6000.c (machine_function): Add
29942 split_stack_arg_pointer.
29943 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
29944 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
29945 rather than virtual_incoming_args_rtx.
29946 (rs6000_va_start): Likewise.
29947 (split_stack_arg_pointer_used_p): New function.
29948 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
29949 (morestack_ref): New var.
29950 (gen_add3_const, rs6000_expand_split_stack_prologue,
29951 rs6000_internal_arg_pointer, rs6000_live_on_entry,
29952 rs6000_split_stack_space_check): New functions.
29953 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
29954 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
29955 (UNSPECV_SPLIT_STACK_RETURN): Define.
29956 (split_stack_prologue, load_split_stack_limit,
29957 load_split_stack_limit_di, load_split_stack_limit_si,
29958 split_stack_return, split_stack_space_check): New expands and insns.
29959 * config/rs6000/rs6000-protos.h
29960 (rs6000_expand_split_stack_prologue): Declare.
29961 (rs6000_split_stack_space_check): Declare.
29963 2015-05-20 Alan Modra <amodra@gmail.com>
29965 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
29966 (direct_return): Test vrsave_size rather than vrsave_mask.
29967 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
29968 (rs6000_emit_epilogue): Likewise.
29970 2015-05-20 Alan Modra <amodra@gmail.com>
29972 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
29973 when not saving registers.
29974 (debug_stack_info): Adjust to omit printing unused offsets,
29976 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
29979 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29982 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
29983 value_type to const char *.
29985 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
29987 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
29988 to build a biarch toolchain again.
29990 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
29992 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
29993 or implicit declarations.
29994 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
29996 (get_odr_type): Check type has linkage before adding bases.
29997 (register_odr_type): Check that type has linkage before adding it.
29998 (type_known_to_have_no_deriavations_p): Rename to ..
29999 (type_known_to_have_no_derivations_p): This one.
30000 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
30001 (type_known_to_have_no_derivations_p): This one.
30002 * ipa-polymorphic-call.c
30003 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
30006 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
30008 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
30009 (layout_type): Use RECORD_OR_UNION_TYPE_P.
30011 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30013 * config/s390/s390.c (s390_vector_bool_type_p): New function.
30014 (s390_invalid_binary_op): New function.
30015 (TARGET_INVALID_BINARY_OP): Define macro.
30017 2015-05-19 David Sherwood <david.sherwood@arm.com>
30019 * loop-invariant.c (create_new_invariant): Don't calculate address cost
30020 if mode is not a scalar integer.
30021 (get_inv_cost): Increase computational cost for unused invariants.
30023 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30025 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
30026 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
30027 * config/s390/s390-builtin-types.def: New file.
30028 * config/s390/s390-builtins.def: New file.
30029 * config/s390/s390-builtins.h: New file.
30030 * config/s390/s390-c.c: New file.
30031 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
30032 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
30033 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
30034 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
30036 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
30038 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
30039 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
30040 variable definitions.
30041 (s390_const_operand_ok): New function.
30042 (s390_expand_builtin): Rewrite.
30043 (s390_init_builtins): New function.
30044 (s390_handle_vectorbool_attribute): New function.
30045 (s390_attribute_table): Add s390_vector_bool attribute.
30046 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
30047 (s390_branch_condition_mask): Generate masks for new modes.
30048 (s390_expand_vec_compare_cc): New function.
30049 (s390_mangle_type): Add mangling for vector bool types.
30050 (enum s390_builtin): Remove.
30051 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
30053 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
30054 s390_cpu_cpp_builtins.
30055 (REGISTER_TARGET_PRAGMAS): New macro.
30056 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
30057 (insn_cmp mode attribute): Add new CC modes.
30058 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
30059 (lcbb): New pattern definition.
30060 * config/s390/s390intrin.h: Include vecintrin.h.
30061 * config/s390/t-s390: New file.
30062 * config/s390/vecintrin.h: New file.
30063 * config/s390/vector.md: Include vx-builtins.md.
30064 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
30067 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30069 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
30071 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
30072 (s390_select_ccmode): Likewise.
30073 (s390_canonicalize_comparison): Swap operands if necessary.
30074 (s390_expand_vec_compare_scalar): Expand DFmode compare using
30075 single element vector instructions.
30076 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
30077 (s390_branch_condition_mask): Generate CC masks for the new modes.
30078 * config/s390/s390.md (v0, vf, vd): New mode attributes.
30079 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
30080 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
30081 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
30082 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
30083 (*extend<DSF:mode><BFP:mode>2): New insn definition.
30084 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
30085 (extend<DSF:mode><BFP:mode>2): Turn into expander.
30086 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
30087 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
30088 (sqrt<mode>2): Add vector instruction.
30090 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30092 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
30094 * config/s390/predicates.md (const0_operand, constm1_operand)
30095 (constable_operand): Accept vector operands.
30096 * config/s390/s390-modes.def: Add supported vector modes.
30097 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
30098 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
30099 (s390_bytemask_vector_p, s390_expand_vec_strlen)
30100 (s390_expand_vec_compare, s390_expand_vcond)
30101 (s390_expand_vec_init): Add prototypes.
30102 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
30103 (s390_vector_mode_supported_p): New function.
30104 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
30105 (s390_contiguous_bitmask_vector_p): New function.
30106 (s390_bytemask_vector_p): New function.
30107 (s390_split_ok_p): Vector regs don't work either.
30108 (regclass_map): Add VEC_REGS.
30109 (s390_legitimate_constant_p): Handle vector constants.
30110 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
30111 (legitimate_reload_vector_constant_p): New function.
30112 (s390_preferred_reload_class): Handle CONST_VECTOR.
30113 (s390_reload_symref_address): Likewise.
30114 (s390_secondary_reload): Vector memory instructions only support
30115 short displacements. Rename reload*_nonoffmem* to reload*_la*.
30116 (s390_emit_ccraw_jump): New function.
30117 (s390_expand_vec_strlen): New function.
30118 (s390_expand_vec_compare): New function.
30119 (s390_expand_vcond): New function.
30120 (s390_expand_vec_init): New function.
30121 (s390_dwarf_frame_reg_mode): New function.
30122 (print_operand): Handle addresses with 'O' and 'R' constraints.
30123 (NR_C_MODES, constant_modes): Add vector modes.
30124 (s390_output_pool_entry): Handle vector constants.
30125 (s390_hard_regno_mode_ok): Handle vector registers.
30126 (s390_class_max_nregs): Likewise.
30127 (s390_cannot_change_mode_class): New function.
30128 (s390_invalid_arg_for_unprototyped_fn): New function.
30129 (s390_function_arg_vector): New function.
30130 (s390_function_arg_float): Remove size variable.
30131 (s390_pass_by_reference): Handle vector arguments.
30132 (s390_function_arg_advance): Likewise.
30133 (s390_function_arg): Likewise.
30134 (s390_return_in_memory): Vector values are returned in a VR if
30136 (s390_function_and_libcall_value): Handle vector arguments.
30137 (s390_gimplify_va_arg): Likewise.
30138 (s390_call_saved_register_used): Consider the arguments named.
30139 (s390_conditional_register_usage): Disable v16-v31 for non-vec
30141 (s390_preferred_simd_mode): New function.
30142 (s390_support_vector_misalignment): New function.
30143 (s390_vector_alignment): New function.
30144 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
30145 (TARGET_VECTOR_MODE_SUPPORTED_P)
30146 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
30147 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
30148 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
30149 (TARGET_VECTOR_ALIGNMENT): Define target macro.
30150 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
30151 (FIRST_PSEUDO_REGISTER): Increase value.
30152 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
30153 (VECTOR_REG_P): Define macros.
30154 (FIXED_REGISTERS, CALL_USED_REGISTERS)
30155 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
30156 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
30157 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
30158 Add vector registers.
30159 (CANNOT_CHANGE_MODE_CLASS): Call C function.
30160 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
30161 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
30163 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
30164 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
30165 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
30166 (VR*_REGNUM): New constants.
30167 (ALL): New mode iterator.
30168 (INTALL): Remove mode iterator.
30170 (movti): Implement TImode moves for VRs.
30171 Disable TImode splitter for VR targets.
30172 Implement splitting TImode GPR<->VR moves.
30173 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
30174 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
30175 reload<mode>_la_in, reload<mode>_la_out.
30176 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
30177 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
30178 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
30179 (mov<mode> SF SD): Prefer lder, lde for loading.
30180 Add lrl and strl instructions.
30181 Add vector instructions.
30182 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
30183 Call s390_expand_vec_strlen on z13.
30184 (*cc_to_int): Change predicate to nonimmediate_operand.
30185 (addti3): Rename to *addti3. New expander.
30186 (subti3): Rename to *subti3. New expander.
30187 * config/s390/vector.md: New file.
30189 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30191 * common/config/s390/s390-common.c (processor_flags_table): Add
30193 * config.gcc: Add z13.
30194 * config/s390/s390-opts.h (enum processor_type): Add
30195 PROCESSOR_2964_Z13.
30196 * config/s390/s390.c (s390_adjust_priority): Check for
30197 PROCESSOR_2964_Z13.
30198 (s390_reorg): Likewise.
30199 (s390_sched_reorder): Likewise.
30200 (s390_sched_variable_issue): Likewise.
30201 (s390_loop_unroll_adjust): Likewise.
30202 (s390_option_override): Likewise. Default to -mvx when available.
30203 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
30204 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
30205 (TARGET_VX_ABI): Define macros.
30207 (TARGET_DEFAULT): Add MASK_OPT_VX.
30208 * config/s390/s390.md ("cpu" attribute): Add z13.
30209 ("cpu_facility" attribute): Add vec.
30210 * config/s390/s390.opt (processor_type): Add z13.
30211 (mvx): New options.
30212 * doc/invoke.texi: Add z13 option for -march.
30214 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30216 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
30217 mode check to make sure that only scalar integer values are
30220 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
30222 * tree.c (verify_type_variant): Fix #undef.
30223 (gimple_canonical_types_compatible_p): Move here from lto.c
30224 (verify_type): Verify TYPE_CANONICAL compatibility.
30225 * tree.h (gimple_canonical_types_compatible_p): Declare.
30227 2015-05-19 Jakub Jelinek <jakub@redhat.com>
30229 PR middle-end/66199
30230 * tree.h (OMP_TEAMS_COMBINED): Define.
30231 * gimplify.c (enum gimplify_omp_var_data): Add
30232 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
30233 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
30234 (omp_notice_variable): Accept both ORT_TEAMS
30235 and ORT_COMBINED_TEAMS. Don't recurse if
30236 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
30237 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
30239 (omp_no_lastprivate): New function.
30240 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
30241 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
30242 notice_outer and set appropriate bits, otherwise make
30243 sure default(none) combined constructs won't complain.
30244 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
30245 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
30246 omp_no_lastprivate either remove the clause or turn it
30247 into OMP_CLAUSE_PRIVATE.
30248 (gimplify_omp_for): Fix up handling of implicit
30249 lastprivate or linear iterators.
30250 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
30251 ORT_COMBINED_TEAMS.
30252 * omp-low.c (lower_omp_for_lastprivate): For combined
30253 for simd use fd.loop.n2 from the for rather than simd.
30255 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30257 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
30258 instead of gen_rtx_raw_REG.
30259 (cris_expand_epilogue): Likewise.
30260 * config/microblaze/microblaze.c (microblaze_classify_address):
30262 * config/sparc/sparc.md: Likewise.
30264 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
30266 * config/alpha/alpha.c (alpha_legitimize_reload_address)
30267 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
30268 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
30269 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
30270 Use CASE_CONST_SCALAR_INT.
30271 (print_operand) <case 'M'>: Use mode_width_operand to check the
30272 value of the constant.
30273 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
30274 * config/alpha/predicates.md (input_operand): Use general_operand
30275 instead of match_code as operand check.
30276 (symbolic_operand): Use match_code with subexpression digits.
30277 * config/alpha/constraints.md (Q): Ditto.
30279 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30281 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
30283 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30285 * config/s390/s390.c (s390_secondary_reload): Fix check for
30286 load/store relative.
30288 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30290 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
30291 alternative_mask to uint64_t.
30293 2015-05-19 Jakub Jelinek <jakub@redhat.com>
30295 PR tree-optimization/66187
30296 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
30297 Pass TYPE_SIGN to tree_int_cst_min_precision. If
30298 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
30300 2015-05-19 David Malcolm <dmalcolm@redhat.com>
30302 * diagnostic.c (diagnostic_report_current_module): Strengthen
30303 local "new_map" from const line_map * to
30304 const line_map_ordinary *.
30305 * genmatch.c (error_cb): Likewise for local "map".
30306 (output_line_directive): Likewise for local "map".
30307 * input.c (expand_location_1): Likewise for local "map".
30308 Pass NULL rather than &map to
30309 linemap_unwind_to_first_non_reserved_loc, since the value is never
30310 read from there, and the value written back not read from here.
30311 (is_location_from_builtin_token): Strengthen local "map" from
30312 const line_map * to const line_map_ordinary *.
30313 (dump_location_info): Strengthen locals "map" from
30314 line_map *, one to const line_map_ordinary *, the other
30315 to const line_map_macro *.
30316 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
30317 const line_map * to const line_map_macro *.
30318 (maybe_unwind_expanded_macro_loc): Add a call to
30319 linemap_check_macro when writing to the "map" field of the
30321 Introduce local const line_map_ordinary * "ord_map", using it in
30322 place of "map" in the part of the function where we know we have
30323 an ordinary map. Strengthen local "m" from const line_map * to
30324 const line_map_ordinary *.
30326 2015-05-19 Nick Clifton <nickc@redhat.com>
30329 * config/msp430/msp430.md (zero_extendhisi2): Add support for
30330 separate source and destination registers.
30332 2015-05-19 Richard Biener <rguenther@suse.de>
30334 PR tree-optimization/66165
30335 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
30336 for no load permutation.
30338 PR tree-optimization/66185
30339 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
30340 when building the SLP node from scalars.
30342 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
30343 Tristan Gingold <gingold@adacore.com>
30345 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
30346 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
30347 (expand_stack_restore): Call record_new_stack_level.
30348 (expand_stack_save): Do not call do_pending_stack_adjust.
30349 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
30350 * calls.c (expand_call): Call record_new_stack_level for alloca.
30351 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
30352 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
30353 (update_sjlj_context): New global function.
30354 * except.h (update_sjlj_context): Declare.
30355 * explow.c (record_new_stack_level): New global function.
30356 (allocate_dynamic_stack_space): Call record_new_stack_level.
30357 * explow.h (record_new_stack_level): Declare.
30358 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
30359 * cfgrtl.c (duplicate_insn_chain): Likewise.
30361 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30363 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
30364 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
30365 STACK_GROWS_DOWNWARD as normal if.
30366 (expand_call): Likewise.
30368 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
30371 * config/sh/sh.md (*round_int_even): New insn_and_split and
30372 accompanying new unnamed split.
30374 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30376 * bitmap.c (bitmap_set_range): Handle count==1 specially.
30377 (bitmap_clear_range): Likewise.
30378 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
30379 bitmap_set_range unconditionally.
30380 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30381 * df-scan.c (df_mark_reg): Likewise.
30382 * haifa-sched.c (setup_ref_regs): Likewise.
30383 * sched-rgn.c (update_live_1): Likewise.
30385 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30387 * regs.h (END_HARD_REGNO): Delete.
30388 (END_REGNO): Move to...
30390 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
30391 * caller-save.c (mark_set_regs): Likewise.
30392 * combine.c (move_deaths, distribute_notes): Likewise.
30393 * cse.c (invalidate, invalidate_for_call): Likewise.
30394 * df-scan.c (df_ref_record): Likewise.
30395 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
30396 (record_last_reg_set_info): Likewise.
30397 * reg-stack.c (convert_regs_exit): Likewise.
30398 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
30399 * resource.c (update_live_status): Likewise.
30400 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
30402 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30404 * rtl.h (reg_info): Add an nregs field.
30405 (REG_NREGS): Use it.
30406 (SET_REGNO_RAW): Delete.
30407 (set_regno_raw): New function.
30408 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
30409 (END_REGNO): Redefine in terms of REG_NREGS.
30410 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
30412 * emit-rtl.c (set_mode_and_regno): Likewise.
30413 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
30414 instead of SET_REGNO_RAW.
30416 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30418 * rtl.h (PUT_MODE_RAW): New macro.
30419 (PUT_REG_NOTE_KIND): Use it.
30420 (set_mode_and_regno): Declare.
30421 (gen_raw_REG): Change regno to "unsigned int".
30422 (gen_rtx_REG): Change "unsigned" to "unsigned int".
30423 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
30424 use set_mode_and_regno to change the mode of registers.
30425 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
30426 * emit-rtl.c (set_mode_and_regno): New function.
30427 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
30428 * caller-save.c (reg_save_code): Use set_mode_and_regno.
30429 * expr.c (init_expr_target): Likewise.
30430 * ira.c (setup_prohibited_mode_move_regs): Likewise.
30431 * postreload.c (reload_cse_simplify_operands): Likewise.
30433 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30435 * caller-save.c (init_caller_save): Use word_mode and
30436 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
30437 * expr.c (init_expr_target): Likewise.
30438 * ira.c (setup_prohibited_mode_move_regs): Likewise.
30439 * postreload.c (reload_cse_regs_1): Likewise.
30441 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30443 * rtl.def (REG): Change format to "r".
30444 * rtl.h (rtunion): Remove rt_reg.
30445 (reg_info): New structure.
30446 (rtx_def): Add reg field to main union.
30447 (X0REGATTR): Delete.
30448 (REG_CHECK): New macro.
30449 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
30450 * rtl.c (rtx_format): Document "r".
30451 (rtx_code_size): Handle REG specially.
30452 * gengenrtl.c (special_format): Return true for formats
30454 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
30455 Deal with REG_ATTRS after the field loop.
30456 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
30457 * expmed.c (init_expmed): Call gen_raw_REG instead of
30459 * expr.c (init_expr_target): Likewise.
30460 * regcprop.c (maybe_mode_change): Likewise.
30461 * varasm.c (make_decl_rtl): Likewise.
30462 * final.c (leaf_renumber_regs_insn): Return early after
30464 * genemit.c (gen_exp): Handle 'r' fields.
30465 * genpeep.c (match_rtx): Likewise.
30466 * gensupport.c (subst_pattern_match): Likewise.
30467 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
30468 (alter_constraints, subst_dup): Likewise.
30469 * read-rtl.c (read_rtx_code): Likewise.
30470 * print-rtl.c (print_rtx): Likewise.
30471 * genrecog.c (find_operand, find_matching_operand): Likewise.
30472 (validate_pattern, match_pattern_2): Likewise.
30473 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
30474 (rtx_test::regno_field): New function.
30475 (operator ==, safe_to_hoist_p, transition_parameter_type)
30476 (parameter_type_string, print_parameter_value)
30477 (print_nonbool_test, print_test): Handle new enum values.
30478 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
30479 * lra-constraints.c (operands_match_p): Likewise.
30481 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30483 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
30484 Change type of new_regno to unsigned int.
30485 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
30486 new_regno to unsigned int.
30487 (df_ref_change_reg_with_loc): Remove old_regno parameter.
30488 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
30489 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
30490 (SET_REGNO_RAW): Add space after ",".
30492 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30494 * rtl.h (REG_NREGS): New macro
30495 * alias.c (record_set): Use it.
30496 * cfgcleanup.c (mark_effect): Likewise.
30497 * combine.c (likely_spilled_retval_1): Likewise.
30498 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
30499 (move_deaths, distribute_notes): Likewise.
30500 * cselib.c (cselib_record_set): Likewise.
30501 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30502 * df-scan.c (df_mark_reg): Likewise.
30503 * dse.c (look_for_hardregs): Likewise.
30504 * dwarf2out.c (reg_loc_descriptor): Likewise.
30505 (multiple_reg_loc_descriptor): Likewise.
30506 * expr.c (write_complex_part, read_complex_part): Likewise.
30507 (emit_move_complex): Likewise.
30508 * haifa-sched.c (setup_ref_regs): Likewise.
30509 * ira-lives.c (mark_hard_reg_live): Likewise.
30510 * lra.c (lra_set_insn_recog_data): Likewise.
30511 * mode-switching.c (create_pre_exit): Likewise.
30512 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
30513 (reload_combine_recognize_pattern): Likewise.
30514 (reload_combine_note_use, move2add_record_mode): Likewise.
30515 (reload_cse_move2add): Likewise.
30516 * reg-stack.c (subst_stack_regs_pat): Likewise.
30517 * regcprop.c (kill_value, copy_value): Likewise.
30518 (copyprop_hardreg_forward_1): Likewise.
30519 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
30520 (build_def_use): Likewise.
30521 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
30522 (deps_analyze_insn): Likewise.
30523 * sched-rgn.c (check_live_1, update_live_1): Likewise.
30524 * sel-sched.c (count_occurrences_equiv): Likewise.
30525 * valtrack.c (dead_debug_insert_temp): Likewise.
30527 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30529 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
30530 * dse.c (note_add_store): Likewise.
30531 * ira-lives.c (mark_hard_reg_dead): Likewise.
30532 * loop-invariant.c (mark_reg_store): Likewise.
30533 (mark_reg_death): Likewise.
30534 * postreload.c (reload_combine): Likewise.
30535 (reload_combine_note_store): Likewise.
30536 (reload_combine_note_use): Likewise.
30537 * recog.c (peep2_reg_dead_p): Likewise.
30539 2015-05-19 Alan Modra <amodra@gmail.com>
30541 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
30542 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
30543 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
30545 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
30546 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
30547 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
30548 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
30550 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
30552 * config/mips/mips.md (JOIN_MODE): New mode iterator.
30553 (join2_load_Store<JOIN_MODE:mode>): New pattern.
30554 (join2_loadhi): Likewise.
30555 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
30556 load-load and store-stores.
30557 * config/mips/mips.opt (mload-store-pairs): New option.
30558 (TARGET_LOAD_STORE_PAIRS): New macro.
30559 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
30560 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
30561 * config/mips/mips.c (mips_load_store_bonding_p): New function.
30563 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
30565 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
30567 * dojump.c (do_compare_rtx_and_jump): Likewise.
30568 * expmed.c (emit_store_flag_1): Likewise.
30569 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
30570 * final.c (sprint_ul): Use std::reverse for reversing a string.
30571 * fold-const.c (extract_muldiv_1): Use std::swap.
30572 * genmodes.c (emit_mode_int_n): Likewise.
30573 * ifcvt.c (dead_or_predicable): Likewise.
30574 * ira-build.c (ira_merge_live_ranges): Likewise.
30575 (swap_allocno_copy_ends_if_necessary): Likewise.
30576 * ira.c (ira_setup_alts): Likewise.
30577 * loop-iv.c (iv_analyze_expr): Likewise.
30578 (implies_p): Likewise.
30579 (canon_condition): Likewise.
30580 * lra-constraints.c (swap_operands): Likewise.
30581 * lra-lives.c (lra_merge_live_ranges): Likewise.
30582 * omega.c (swap): Remove.
30584 (omega_unprotect_1): Use std::swap.
30585 (omega_solve_geq): Likewise.
30586 * optabs.c (expand_binop_directly): Likewise.
30587 (expand_binop): Likewise.
30588 (emit_conditional_move): Likewise.
30589 (emit_conditional_add): Likewise.
30590 * postreload.c (reload_cse_simplify_operands): Likewise.
30591 * reg-stack.c (emit_swap_insn): Likewise.
30592 (swap_to_top): Likewise.
30593 (compare_for_stack_reg): Likewise.
30594 (subst_asm_stack_regs): Likewise.
30595 * reload.c (find_reloads): Likewise.
30596 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
30597 * sel-sched.c (invoke_reorder_hooks): Likewise.
30598 (create_block_for_bookkeeping): Likewise.
30599 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
30600 (lambda_matrix_right_hermite): Use std::swap.
30601 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
30602 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
30603 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
30604 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
30605 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
30606 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
30607 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
30608 * tree-vrp.c (compare_ranges): Likewise.
30609 * var-tracking.c (add_with_sets): Likewise.
30610 (vt_find_locations): Likewise.
30612 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
30614 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
30616 (FBSD_ENDFILE_SPEC): Likewise.
30617 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
30618 config/freebsd-spec.h.
30619 (ENDFILE_SPEC): Likewise.
30621 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
30622 Richard Henderson <rth@redhat.com>
30625 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
30626 Check for a memory location that is not a reference (using an AND)
30627 to an unaligned location here.
30628 * config/alpha/predicates.md (normal_memory_operand): Remove.
30630 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
30632 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
30633 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
30635 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
30637 * config/mips/mips.c (micromips_globals): New variable.
30638 (mips_set_compression_mode): Save and reinitialize target-dependent
30639 state for microMIPS.
30641 2015-05-18 Martin Liska <mliska@suse.cz>
30643 * dbgcnt.def: Add new counter.
30644 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
30646 2015-05-18 Martin Liska <mliska@suse.cz>
30648 * dbgcnt.def: Sort counters.
30649 * opts.c (common_handle_option): Do not compile if
30650 -fdbg-cnt-list is enabled.
30652 2015-05-18 Tom de Vries <tom@codesourcery.com>
30654 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
30655 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
30656 address operator to va_list operand.
30657 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
30659 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
30661 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
30662 * config/s390/s390.c (s390_gimplify_va_arg): Same.
30663 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
30665 2015-05-18 Tom de Vries <tom@codesourcery.com>
30667 * tree-ssa-tail-merge.c: Fix whitespace.
30669 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
30671 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
30672 cortex-a17, and cortex-a17.cortex-a7.
30674 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
30677 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
30679 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
30682 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
30683 QImode inner modes for TARGET_AVX512BW. Force mask operand
30684 to a register for AVX512F modes.
30686 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30688 * toplev.c (emit_debug_global_declarations): Do not output debug info
30689 when doing slim LTO objects.
30691 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30693 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
30694 odr_types_equivalent_p): Declare.
30695 (odr_type_p): Use gcc_checking_assert.
30696 (type_in_anonymous_namespace_p) Declare.
30697 (type_with_linkage_p): Declare.
30698 * common.opt (Wlto-type-mismatch): New warning.
30699 * ipa-devirt.c (compound_type_base): New function.
30700 (odr_or_derived_type_p): New function.
30701 (odr_types_equivalent_p): New function.
30702 (add_type_duplicate): Simplify.
30703 (type_with_linkage_p): Add hack to prevent false positives on C types
30704 (type_in_anonymous_namespace_p): Likewise.
30705 * tree.c (need_assembler_name_p): Use type_with_linkage.
30706 * tree.h (type_in_anonymous_namespace_p): Remove.
30707 * doc/invoke.texi (-Wlto-type-mismatch): Document
30709 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30711 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
30712 (verify_type): Verify STRING_FLAG.
30714 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
30717 * tree-pretty-print.c (percent_K_format): Replace locus pointer
30718 with accessor function.
30719 * tree-diagnostic.c (diagnostic_report_current_function): Use
30720 diagnostic_location function.
30721 (maybe_unwind_expanded_macro_loc): Likewise.
30722 (virt_loc_aware_diagnostic_finalizer): Likewise.
30723 (default_tree_printer): Replace locus pointer with accessor function.
30724 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
30725 (diagnostic_set_info_translated): Initialize second location.
30726 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
30727 (diagnostic_show_locus): Handle two locations. Call
30728 diagnostic_print_caret_line.
30729 (diagnostic_print_caret_line): New.
30730 (default_diagnostic_starter): Use diagnostic_location function.
30731 (diagnostic_report_diagnostic): Use diagnostic_location function.
30732 (verbatim): Do not set text.locus.
30733 * diagnostic.h (struct diagnostic_info): Remove location field.
30734 (struct diagnostic_context): Make caret_chars an array of two.
30735 (diagnostic_location): New inline.
30736 (diagnostic_expand_location): Handle two locations.
30737 (diagnostic_same_line): New inline.
30738 (diagnostic_print_caret_line): Declare.
30739 (CARET_LINE_MARGIN): New constant.
30740 * pretty-print.c (pp_printf): Do not set text.locus.
30741 (pp_verbatim): Do not set text.locus.
30742 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
30743 (struct text_info): Replace locus pointer with locations
30744 array. Add accessor functions.
30746 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
30747 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30750 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
30751 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
30752 large constants in register instead of splitting them.
30754 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
30757 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
30758 replacements in memory addresses.
30759 (get_unaligned_address): Ditto.
30761 2015-05-16 James Bowman <james.bowman@ftdichip.com>
30763 * config/ft32/*: New files for FT32 port.
30764 * doc/install.texi: Add FT32 information.
30765 * doc/invoke.texi: Add FT32 information.
30766 * doc/md.texi: Add FT32 information.
30767 * doc/contrib.texi: Self added.
30769 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
30771 PR tree-optimization/64454
30772 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
30773 (-1 - A -> ~A): Remove unnecessary condition.
30775 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
30777 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
30778 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
30779 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
30781 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
30783 * ipa-chkp.h (chkp_wrap_function): New.
30784 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
30785 (chkp_wrap_function_name): New.
30786 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
30787 to get wrapper name.
30788 * lto-cgraph.c: Include ipa-chkp.h.
30789 (input_cgraph_1): Avoid alias chain for wrappers.
30791 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
30793 PR middle-end/66134
30794 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
30795 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
30797 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30799 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
30800 (AARCH64_FL_SLOWMUL): Delete.
30801 (AARCH64_FL_CRC): Redefine to 1<<3.
30802 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
30804 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30806 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
30809 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
30811 * config/alpha/alpha.md (extendqidi2): Use general_operand
30812 instead of some_operand for operand[1] predicate.
30813 (extendhidi2): Ditto.
30814 (cbranchdi4): Use general_operand instead of some_operand
30815 for operand[1] and operands[2] predicates.
30816 (cstoredi4): Ditto.
30817 * config/alpha/predicates.md (some_operand): Remove unused predicate.
30818 (some_ni_operand): Ditto.
30820 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
30822 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
30823 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
30824 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
30825 low part of the constant using alpha_emit_set_const_1.
30826 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
30828 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
30830 * varasm.c (output_constant_pool_1): Pass down alignment from
30831 constant pool entry's descriptor to output_constant_pool_2.
30832 (output_object_block): Add comment prior to call to
30833 output_constant_pool_1.
30835 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
30837 PR rtl-optimization/65862
30838 * target.def (ira_change_pseudo_allocno_class): New hook.
30839 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
30841 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
30842 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
30844 * ira-costs.c (find_costs_and_classes): Call the hook and change
30845 classes when it is necessary.
30846 * doc/tm.texi: Update.
30848 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
30850 * config/i386/i386.md (sibcall_memory): Check that register with
30851 callee address is not also used as one of the arguments, instead
30852 of checking that it is not live after the sibcall.
30853 (sibcall_pop_memory): Ditto.
30854 (sibcall_value_memory): Ditto.
30855 (sibcall_value_pop_memory): Ditto.
30857 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
30859 * generic-match-head.c (types_match): Handle non-types.
30860 * gimple-match-head.c (types_match): Likewise.
30861 * match.pd: Remove unnecessary TREE_TYPE for types_match.
30863 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
30865 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
30866 (csneg3<mode>_insn): Enable expansion of pattern.
30868 2015-05-14 Nick Clifton <nickc@redhat.com>
30870 * config/rl78/rl78.c (rl78_select_section): Select the correct
30871 default section based upon the category of the decl.
30873 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
30875 PR rtl-optimization/30967
30876 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
30877 destination mode for the cost of scc patterns.
30879 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
30881 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
30882 using SWIM248 mode iterator.
30883 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
30884 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
30885 for operand[2] constraint.
30886 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
30888 2015-05-13 Jakub Jelinek <jakub@redhat.com>
30890 PR middle-end/66133
30891 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
30892 make sure it is never noreturn, even when the task body does not
30894 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
30895 right before GIMPLE_OMP_RETURN.
30896 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
30897 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
30898 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
30900 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30902 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
30903 * tree-ssa-math-opts.c: Include params.h
30904 (pow_synth_sqrt_info): New struct.
30905 (representable_as_half_series_p): New function.
30906 (get_fn_chain): Likewise.
30907 (print_nested_fn): Likewise.
30908 (dump_fractional_sqrt_sequence): Likewise.
30909 (dump_integer_part): Likewise.
30910 (expand_pow_as_sqrts): Likewise.
30911 (gimple_expand_builtin_pow): Use above to attempt to expand
30912 pow as series of square roots. Removed now unused variables.
30914 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
30916 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
30917 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
30918 Remove *p0 and *p1 arguments. Rewrite function.
30919 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
30920 (alpha_split_const_mov): Update calls to alpha_extract_integer and
30921 alpha_emit_set_long_const.
30922 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
30923 (alpha_output_mi_thunk_osf): Ditto.
30924 * config/alpha/alpha.md (movti): Do not check operands[1]
30927 2015-05-13 Richard Biener <rguenther@suse.de>
30929 PR tree-optimization/66129
30930 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
30932 (vect_schedule_slp_instance): Fix typo.
30934 2015-05-13 David Malcolm <dmalcolm@redhat.com>
30936 * common.opt (fdump-internal-locations): New option.
30937 * input.c: Include diagnostic-core.h.
30938 (get_end_location): New function.
30939 (write_digit): New function.
30940 (write_digit_row): New function.
30941 (dump_location_range): New function.
30942 (dump_labelled_location_range): New function.
30943 (dump_location_info): New function.
30944 * input.h (dump_location_info): New prototype.
30945 * toplev.c (compile_file): Handle flag_dump_locations.
30947 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
30949 * gimple-expr.h (is_gimple_constant): Reorder.
30950 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
30952 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
30954 * combine.c (simplify_set): When generating a CC set, if the
30955 source already is in the correct mode, do not wrap it in a
30956 compare. Simplify the rest of that code.
30958 2015-05-13 Richard Biener <rguenther@suse.de>
30960 PR tree-optimization/66123
30961 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
30964 2015-05-13 Richard Biener <rguenther@suse.de>
30966 PR middle-end/66110
30967 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
30969 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
30971 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30973 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
30974 * aclocal.m4: Regenerated with automake-1.11.6.
30976 2015-05-13 Tom de Vries <tom@codesourcery.com>
30978 PR tree-optimization/66010
30979 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
30980 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
30981 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
30982 and rval based on do_deref.
30984 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
30987 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
30988 link time constants into adress expressions and therefore set
30991 2015-05-13 Jakub Jelinek <jakub@redhat.com>
30994 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
30995 Use SWI248 iterator instead of SWI.
30996 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
30997 Use eq_attr "alternative" "0" instead of match_test in
30998 length_immediate attribute computation.
30999 (*mulvhi4, *mulvhi4_1): New define_insns.
31002 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
31003 SIGNED to get precision of non-negative value.
31005 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
31008 * function.c (diddle_return_value_1): Process bounds first.
31009 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
31012 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
31014 PR rtl-optimization/64616
31015 * loop-invariant.c (can_move_invariant_reg): New.
31016 (move_invariant_reg): Call above new function to decide whether
31017 instruction can just be moved, skipping creation of temporary
31020 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
31022 PR target/pr66047.c
31023 * i386.c (ix86_function_sseregparm): Only return -1 if local function
31024 with implied regparm is called from -mno-sse function.
31025 (init_cumulative_args): Output error if ix86_function_sseregparm
31026 return -1 and SSE register would be needed.
31027 (function_arg_advance_32): Likewise.
31028 (function_arg_32): Likewise.
31029 * i386.h (ix86_args): Add decl field.
31031 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
31034 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
31035 inlines across optimization boundary.
31037 2015-05-12 Jason Merrill <jason@redhat.com>
31039 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
31040 string literal and macro name.
31042 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
31044 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
31045 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
31046 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
31048 2015-05-12 David Malcolm <dmalcolm@redhat.com>
31050 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
31051 (-Wmisleading-indentation): New option.
31052 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
31054 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
31056 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
31057 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
31058 (alpha_extract_integer): Ditto.
31059 (alpha_legitimate_constant_p): Ditto.
31060 (alpha_split_tmode_pair): Ditto.
31061 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
31062 (alpha_expand_mov): Ditto.
31063 (print_operand): Remove handling of 'H' modifier.
31064 <case 'm'>: Remove CONST_DOUBLE handling.
31065 (summarize_insn): Handle CONST_WIDE_INT.
31066 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
31068 (movti): Handle CONST_WIDE_INT.
31069 * config/alpha/constraints.md ('H'): Remove constraint definition.
31070 ('G'): Do not match MODE_FLOAT class.
31071 * config/alpha/predicates.md (const0_operand): Also match
31073 (non_add_const_operand): Ditto.
31074 (non_zero_const_operand): Ditto.
31075 (some_operand): Ditto.
31076 (input_operand): Ditto. Handle CONST_WIDE_INT.
31077 (and_operand): Do not match const_double.
31078 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
31080 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
31083 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
31084 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
31085 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
31086 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
31087 is_mm_seq_cst, is_mm_sync): New accessor functions.
31088 * builtins.c (expand_builtin_sync_operation,
31089 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
31090 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
31091 (get_memmodel, expand_builtin_atomic_compare_exchange,
31092 expand_builtin_atomic_load, expand_builtin_atomic_store,
31093 expand_builtin_atomic_clear): Use new accessor routines.
31094 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
31095 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
31096 (maybe_emit_sync_lock_test_and_set): Use new accessors and
31097 MEMMODEL_SYNC_ACQUIRE.
31098 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
31099 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
31100 expand_atomic_store): Use new accessors.
31101 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
31102 * tsan.c (instrument_builtin_call): Update check for memory model beyond
31103 final enum to use MEMMODEL_LAST.
31104 * c-family/c-common.c: Use new accessor for memmodel_base.
31105 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
31107 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
31108 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
31109 mem_thread_fence, *dmb): Likewise.
31110 * config/alpha/alpha.c (alpha_split_compare_and_swap,
31111 alpha_split_compare_and_swap_12): Likewise.
31112 * config/arm/arm.c (arm_expand_compare_and_swap,
31113 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
31114 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
31115 atomic_loaddi): Likewise.
31116 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
31118 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
31119 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
31121 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
31122 atomic_store<mode>, atomic_compare_and_swap<mode>,
31123 atomic_exchange<mode>): Use new accessors.
31124 * config/mips/mips.c (mips_process_sync_loop): Likewise.
31125 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
31126 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
31127 rs6000_post_atomic_barrier): Add new cases.
31128 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
31129 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
31130 (atomic_load<mode>): Add new cases and use new accessors.
31131 (store_quadpti): Add new cases.
31132 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
31134 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
31135 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
31138 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
31140 * ipa-devirt.c (type_with_linkage_p): New function.
31141 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
31143 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
31144 (can_be_name_hashed_p): Simplify.
31145 (hash_odr_name): Check that type has linkage before checking if it is
31147 (types_same_for_odr): Likewise.
31148 (odr_name_hasher::equal): Likewise.
31149 (odr_subtypes_equivalent_p): Likewise.
31150 (warn_types_mismatch): Likewise.
31151 (get_odr_type): Likewise.
31152 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
31153 * ipa-utils.h (odr_type_p): Move offline.
31154 * tree.c (need_assembler_name_p): Fix handling of types
31156 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
31158 2015-05-12 David Malcolm <dmalcolm@redhat.com>
31160 * timevar.c (timevar_enable): Delete in favor of...
31161 (g_timer): New global.
31162 (struct timevar_def): Move to timevar.h inside class timer.
31163 (struct timevar_stack_def): Likewise.
31164 (timevars): Delete global in favor of field "m_timevars" within
31165 class timer in timevar.h
31166 (stack): Likewise, in favor of field "m_stack".
31167 (unused_stack_instances): Likewise, in favor of field
31168 "m_unused_stack_instances".
31169 (start_time): Likewise, in favor of field "m_start_time".
31170 (get_time): Eliminate check for timevar_enable.
31171 (timer::timer): New function, built from part of timevar_init.
31172 (timevar_init): Rewrite idempotency test from using
31173 "timevar_enable" bool to using dynamic allocation of "g_timer".
31174 Move rest of implementation into timer's constructor.
31175 (timevar_push_1): Rename to...
31176 (timer::push): ...this, adding "m_" prefixes to variables that
31177 are now fields of timer.
31178 (timevar_pop_1): Likewise, rename to...
31179 (timer::pop): ...this, and add "m_" prefixes.
31180 (timevar_start): Replace test for "timevar_enable" with one for
31181 "g_timer", and move bulk of implementation to...
31182 (timer::start): ...here, adding "m_" prefixes.
31183 (timevar_stop): Likewise, from here...
31184 (timer::stop): ...to here.
31185 (timevar_cond_start): Likewise, from here...
31186 (timer::cond_start): ...to here.
31187 (timevar_cond_stop): Likewise, from here...
31188 (timer::cond_stop): ...to here.
31189 (validate_phases): Rename to...
31190 (timer::validate_phases): ...this, and add "m_" prefixes. Make
31191 locals "total" and "tv" const.
31192 (timevar_print): Rename to...
31193 (timer::print): ...this, and add "m_" prefixes. Make locals
31194 "total" and "tv" const. Eliminate test for timevar_enable.
31195 * timevar.h (timevar_enable): Eliminate.
31196 (g_timer): New declaration.
31197 (timevar_push_1): Eliminate.
31198 (timevar_pop_1): Eliminate.
31199 (timevar_print): Eliminate.
31200 (class timer): New class.
31201 (timevar_push): Rewrite to use g_timer.
31202 (timevar_pop): Likewise.
31203 * toplev.c (toplev::~toplev): Likewise.
31205 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
31207 * arm-protos.h (arm_sched_autopref): Delete.
31208 (tune_params): Re-organize, use enums for flag values.
31209 (FUSE_OPS): New macro.
31210 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
31211 (ARM_PREFETCH_BENEFICIAL): Likewise.
31212 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
31213 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
31214 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
31215 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
31216 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
31217 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
31218 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
31219 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
31221 (arm_option_override, thumb2_reorg, arm_print_tune_info)
31222 (aarch_macro_fusion_pair_p): Update uses of current_tune.
31223 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
31225 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
31227 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
31230 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
31231 Sandra Loosemore <sandra@codesourcery.com>
31233 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
31235 (REG_CLASS_NAMES): Add "IJMP_REGS".
31236 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
31237 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
31238 use new "c" register constraint.
31239 * config/nios2/constraint.md (c): New register constraint
31240 corresponding to IJMP_REGS.
31242 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31244 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
31245 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
31246 define_splits): Delete, revamp, transmogrify into ...
31247 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
31248 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
31249 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
31252 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31254 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
31255 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
31257 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31259 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
31260 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
31261 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
31262 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
31263 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
31264 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
31265 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
31266 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
31267 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
31268 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
31269 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
31270 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
31271 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
31272 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
31273 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
31274 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
31275 and 30 corresponding splitters): Delete.
31277 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31279 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
31282 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31284 * combine.c (recog_for_combine_1): New function, factored out
31285 from recog_for_combine.
31286 (change_zero_ext): New function.
31287 (recog_for_combine): If recog fails, try again with the pattern
31288 modified by change_zero_ext; if that still fails, restore the
31291 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31293 * combine.c (get_undo_marker): New function.
31294 (undo_to_marker): New function, largely factored out from ...
31295 (undo_all): ... this. Adjust.
31297 2015-05-12 Richard Biener <rguenther@suse.de>
31299 PR tree-optimization/66101
31300 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
31301 fixup if we turn a loop exit edge to a fallthru edge.
31303 2015-05-12 Richard Biener <rguenther@suse.de>
31305 PR tree-optimization/37021
31306 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
31307 (SLP_TREE_TWO_OPERATORS): New define.
31308 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
31309 SLP_TREE_TWO_OPERATORS.
31310 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
31312 (vect_build_slp_tree): Adjust.
31313 (vect_analyze_slp_cost_1): Likewise.
31314 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
31315 emitting two vector stmts and mixing the results.
31317 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
31319 * call.c (print_z_candidates): Remove dead code.
31321 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31323 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
31324 and zEC12_simple_fp.
31325 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
31328 2015-05-12 Tom de Vries <tom@codesourcery.com>
31330 PR tree-optimization/66010
31331 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
31333 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
31334 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
31335 va_lists are passed, and remove corresponding handling.
31336 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
31337 do_deref argument to ifn_va_arg.
31338 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
31341 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31344 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
31345 REG before taking its REGNO.
31347 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
31349 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
31350 rsp->sign_bit_copies and rsp->nonzero_bits into ...
31351 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
31352 present to get more accurate information about the number of sign bit
31353 copies and non zero bits.
31355 2015-05-12 Richard Biener <rguenther@suse.de>
31357 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
31358 do not allow unrolling.
31360 2015-05-11 Richard Henderson <rth@redhat.com>
31362 * config/i386/i386-modes.def (CCP): New.
31363 * config/i386/i386.c (put_condition_code): Handle it.
31364 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
31366 2015-05-11 Richard Henderson <rth@redhat.com>
31368 * target.def (md_asm_clobbers): Replace with...
31369 (md_asm_adjust): this.
31370 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
31371 (TARGET_MD_ASM_ADJUST): New.
31372 * tm.texi: Rebuild.
31373 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
31374 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
31375 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
31377 * cfgexpand.c (check_operand_nalternatives): Accept vector of
31378 constraints instead of lists of outputs and inputs.
31379 (expand_asm_stmt): Save and restore input_location around the
31380 body of the function. Move asm data into vectors instead of
31381 building tree lists. Generate cleanup sequences as needed,
31382 rather than waiting til the end. Use new md_asm_adjust hook.
31384 * config/vxworks.c: Include vec.h before target.h.
31385 * gimple.c: Likewise.
31386 * incpath.c: Likewise.
31387 * mode-switching.c: Likewise.
31389 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
31390 (cris_md_asm_adjust): this.
31391 (TARGET_MD_ASM_CLOBBERS): Remove.
31392 (TARGET_MD_ASM_ADJUST): New.
31393 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
31394 (ix86_md_asm_adjust): this.
31395 (TARGET_MD_ASM_CLOBBERS): Remove.
31396 (TARGET_MD_ASM_ADJUST): New.
31397 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
31398 (mn10300_md_asm_adjust): this.
31399 (TARGET_MD_ASM_CLOBBERS): Remove.
31400 (TARGET_MD_ASM_ADJUST): New.
31401 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
31402 (rs6000_md_asm_adjust): this.
31403 (TARGET_MD_ASM_CLOBBERS): Remove.
31404 (TARGET_MD_ASM_ADJUST): New.
31405 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
31406 (visium_md_asm_adjust): this.
31407 (TARGET_MD_ASM_CLOBBERS): Remove.
31408 (TARGET_MD_ASM_ADJUST): New.
31410 2015-05-11 Richard Henderson <rth@redhat.com>
31412 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
31413 if noutputs is zero.
31414 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
31416 * cfgexpand.c (expand_asm_operands): Merge into...
31417 (expand_asm_stmt): ... here.
31419 * cfgexpand.c (expand_asm_operands): Don't call
31420 resolve_asm_operand_names.
31421 * stmt.c (resolve_asm_operand_names): Clarify block comment.
31423 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
31425 * dwarf2out.c (gen_member_die): Sanity check that we access
31426 TYPE_MAIN_VARIANT for TYPE_METHODS.
31427 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
31428 checking TYPE_METHODS.
31429 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
31431 (build_distinct_type_copy): Clear TYPE_METHODS.
31432 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
31433 (verify_type): Allow TYPE_METHODS to be error_mark_node.
31434 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
31436 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
31438 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
31439 (emit_pattern_before_setloc): Likewise.
31441 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
31443 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
31444 for define_peephole2s.
31445 (get_peephole2_pattern): New function.
31446 (main): Use it. Call validate_pattern.
31448 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
31450 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
31451 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
31452 (Last callee saved reg is different for AVR_TINY architecture)
31454 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
31456 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
31457 when looking for memory references.
31459 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
31462 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
31463 via function pointers.
31465 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
31467 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
31468 indirect call by forcing address into a pseudo with -fno-plt.
31469 * common.opt (flag_plt): New option.
31470 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
31471 ([-fno-plt]): Document.
31473 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
31476 * config/rs6000/option-defaults.h: Add space between string literal
31479 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
31481 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
31482 accross ARM targets.
31484 2015-05-11 Christian Bruel <christian.bruel@st.com>
31486 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
31487 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
31489 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
31491 PR rtl-optimization/66076
31492 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
31493 Don't grow the heap array if it is already big enough from a
31494 previous iteration.
31496 2015-05-11 Christian Bruel <christian.bruel@st.com>
31498 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
31499 (is_called_in_ARM_mode): Remove.
31500 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
31501 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
31502 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
31503 arm_declare_function_name.
31505 2015-05-11 Christian Bruel <christian.bruel@st.com>
31507 * config/arm/arm.c (arm_option_override): Reoganized and split into :
31508 (arm_option_params_internal); New function.
31509 (arm_option_check_internal): New function.
31510 (arm_option_override_internal): New function.
31511 (thumb_code, thumb1_code): Remove.
31512 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
31513 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
31514 (thumb_code, thumb1_code): Remove.
31515 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
31517 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
31519 * config/alpha/alpha.c (alpha_emit_set_const_1)
31520 (alpha_emit_set_long_const, alpha_extract_integer)
31521 (alpha_legitimate_constant_p, alpha_split_const_mov)
31522 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
31523 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31524 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
31526 * config/alpha/predicates.md (mode_mask_operand): Do not match
31528 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31529 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
31530 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
31531 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31532 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
31534 2015-05-11 Jakub Jelinek <jakub@redhat.com>
31537 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
31538 default_binds_local_p_2.
31539 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
31540 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
31542 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31544 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
31546 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31548 Patch by Richard Biener
31549 * coverage.c (coverage_obj_init): Delay building of type variant
31550 until the type is finished.
31552 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31554 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
31555 mismatch between C and C++ type; compoare correctly ARG_TYPES
31556 for non-prototypes and output correctly parameter index for METHOD_TYPE.
31557 (odr_types_equivalent_p): Fix wording of warning about attributes;
31558 it is OK to match prototype and non-prototype.
31560 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31562 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
31563 TYPE_ARG_TYPES list.
31564 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
31565 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
31567 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31569 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
31570 * tree.h (is_lang_specific): Constify.
31572 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
31574 PR tree-optimization/64454
31575 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
31578 2015-05-08 Jason Merrill <jason@redhat.com>
31580 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
31581 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
31582 config/darwin.h, config/darwin9.h, config/elfos.h,
31583 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
31584 config/microblaze/microblaze.h, config/mips/mips.h,
31585 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
31586 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
31587 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
31588 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
31589 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
31590 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
31591 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
31592 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
31593 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
31594 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
31595 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
31596 between string literal and macro name.
31598 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31600 * jump.c: Change argument types to rtx_insn *.
31603 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31605 * lra-constraints.c: Change argument type to rtx_insn *.
31607 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31609 * df-problems.c: Change argument type to rtx_insn *.
31611 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31613 * combine.c: Change argument type to rtx_insn *.
31615 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31618 * rtlanal.c: Change argument type to rtx_insn *.
31620 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31622 * sched-deps.c: Change argument types to rtx_insn *.
31623 * sched-int.h: Adjust.
31625 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31627 * dwarf2cfi.c: Change argument type to rtx_insn *.
31629 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31631 * ira.c (decrease_live_ranges_number): Changetype of local
31632 variable to rtx_insn *.
31633 * recog.c: Change argument types to rtx_insn *.
31636 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31638 * reorg.c: Change argument types to rtx_insn *.
31640 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31642 * ira-color.c: Change argument types to rtx_insn *.
31643 * lra-eliminations.c: Likewise.
31646 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31648 * gcse.c: Change argument types to rtx_insn *.
31650 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31652 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
31654 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31656 * emit-rtl.c (emit_debug_insn_before): Change argument type to
31660 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31662 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
31665 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31667 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
31670 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31672 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
31675 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31677 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
31680 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31682 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
31686 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31688 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
31692 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31694 * except.c (can_nonlocal_goto): Change type of argument to
31698 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31700 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
31703 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31705 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
31706 * cfgrtl.c (can_delete_label_p): Adjust.
31709 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31711 * reorg.c (stop_search_p): Change argument to rtx_insn *.
31713 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31715 * except.c (make_reg_eh_region_note): Change argument to
31717 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
31718 * except.h: Adjust.
31720 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31722 * mode-switching.c (commit_mode_sets): Change type of local
31723 variable from rtx to rtx_insn *.
31725 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
31727 * doc/install.texi (--enable-languages): Add missing jit and lto info.
31728 Add ^ to grep command.
31729 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
31730 arg to last gimple_simplify declaration. Add missing gimple_build
31731 declaration for built-in function case with four tree args.
31733 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
31734 Szabolcs Nagy <szabolcs.nagy@arm.com>
31736 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
31737 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
31738 (GNU_USER_DYNAMIC_LINKERN32): Update.
31740 2015-05-08 Richard Biener <rguenther@suse.de>
31742 PR tree-optimization/66036
31743 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31744 Handle strided group loads.
31745 (vect_verify_datarefs_alignment): Likewise.
31746 (vect_enhance_data_refs_alignment): Likewise.
31747 (vect_analyze_group_access): Likewise.
31748 (vect_analyze_data_ref_access): Likewise.
31749 (vect_analyze_data_ref_accesses): Likewise.
31750 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
31751 (vectorizable_load): Likewise.
31753 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
31755 * config/rs6000/rs6000.md: Require operand inequality in one
31758 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
31759 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
31761 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
31763 * config/rx/rx.md (movdi, movdf): Likewise.
31764 Likewise for define_peephole2s.
31766 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31768 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
31769 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
31770 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
31771 vtst_u64): Rewrite using gcc vector extensions.
31773 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31775 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
31776 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
31778 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31780 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
31782 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
31784 * config/glibc-stdint.h (OPTION_MUSL): Define.
31785 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
31786 Change the definition based on OPTION_MUSL for 64 bit targets.
31787 * config/linux.h (OPTION_MUSL): Redefine.
31788 * config/alpha/linux.h (OPTION_MUSL): Redefine.
31789 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
31790 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
31792 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
31793 Szabolcs Nagy <szabolcs.nagy@arm.com>
31795 * config.gcc (LIBC_MUSL): New tm_defines macro.
31796 * config/linux.h (OPTION_MUSL): Define.
31797 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
31798 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
31799 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31800 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31801 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31802 * config/linux.opt (mmusl): New option.
31803 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
31804 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31805 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31806 * configure: Regenerate.
31808 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
31809 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31812 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
31813 * config/i386/knetbsd-gnu64.h: New file.
31815 2015-05-08 Marek Polacek <polacek@redhat.com>
31818 * doc/invoke.texi: Document -Woverride-init-side-effects.
31820 2015-05-07 Marek Polacek <polacek@redhat.com>
31823 * doc/invoke.texi: Document -Wshift-negative-value.
31825 2015-05-06 Aditya Kumar <hiraditya@msn.com>
31827 * gcov-tool.c (do_merge): Refactore to remove int ret.
31828 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
31829 !type == FUNC to type != FUNC.
31830 * reload.h (struct target_reload): Changee to type of
31831 x_spill_indirect_levels from bool to unsigned char.
31833 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
31835 * rtl.h (always_void_p): New function.
31836 * gengenrtl.c (always_void_p): Likewise.
31837 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
31838 with code foo are always VOIDmode.
31839 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
31840 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
31841 compare-elim.c, config/aarch64/aarch64.c,
31842 config/aarch64/aarch64.md, config/alpha/alpha.c,
31843 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
31844 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
31845 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
31846 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31847 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
31848 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
31849 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
31850 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
31851 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
31852 config/ia64/vect.md, config/iq2000/iq2000.c,
31853 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
31854 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
31855 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
31856 config/mep/mep.c, config/microblaze/microblaze.c,
31857 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
31858 config/mn10300/mn10300.c, config/msp430/msp430.c,
31859 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
31860 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
31861 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
31862 config/rs6000/altivec.md, config/rs6000/rs6000.c,
31863 config/rs6000/rs6000.md, config/rs6000/vector.md,
31864 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
31865 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
31866 config/sh/sh.md, config/sh/sh_treg_combine.cc,
31867 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
31868 config/spu/spu.md, config/stormy16/stormy16.c,
31869 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
31870 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
31871 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
31872 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
31873 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
31874 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
31875 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
31876 var-tracking.c: Update calls accordingly.
31878 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
31881 PR middle-end/54303
31882 * varasm.c (function_mergeable_rodata_prefix): New function.
31883 (mergeable_string_section): Use it.
31884 (mergeable_constant_section): Use it.
31886 2015-05-07 Jeff Law <law@redhat.com>
31889 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31890 simplifier to narrow arithmetic.
31891 * generic-match-head.c: (types_match, single_use): New functions.
31892 * gimple-match-head.c: (types_match, single_use): New functions.
31894 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31896 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
31899 2015-05-07 Richard Biener <rguenther@suse.de>
31901 PR tree-optimization/66002
31902 * passes.def: Schedule another pass_merge_phi after ifcombine, right
31905 2015-05-07 Marek Polacek <polacek@redhat.com>
31906 Martin Uecker <uecker@eecs.berkeley.edu>
31908 * doc/invoke.texi: Document -fsanitize=bounds-strict.
31909 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
31910 into SANITIZE_NONDEFAULT.
31911 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
31913 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
31916 * config/alpha/alpha.c (alpha_override_options_after_change): New.
31917 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
31918 (alpha_override_options): Move align_loops, align_jumps and
31919 align_functions handling into alpha_override_options_after_change.
31921 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
31922 Chris Jones <chrisj@nvidia.com>
31923 Joshua Conner <jconner@nvidia.com>
31925 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
31926 linking of crtfastmath.o.
31927 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
31929 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
31931 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
31932 (cstore<mode>4_unsigned_imm): New expander.
31933 (cstore<mode>4): Remove empty constraint strings. Use the new
31936 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
31939 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
31942 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
31944 * config/aarch64/geniterators.sh: Use standard BRE in sed.
31946 2015-05-06 Alan Modra <amodra@gmail.com>
31949 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
31950 (UNSPEC_NOP): Define.
31951 (reload_vsx_from_gpr<mode>): Add missing DONE.
31952 (reload_gpr_from_vsx<mode>): Likewise.
31953 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
31954 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
31956 2015-05-06 Christian Bruel <christian.bruel@st.com>
31959 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
31960 align_jumps, align_functions into aarch64_override_options_after_change.
31962 2015-05-06 Richard Biener <rguenther@suse.de>
31964 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
31965 vect_transform_slp_perm_load to check if we support a permutation
31966 for basic-block vectorization.
31968 2015-05-06 Nick Clifton <nickc@redhat.com>
31970 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
31971 used, even if it is not being used as a frame pointer.
31973 2015-05-05 Jason Merrill <jason@redhat.com>
31975 * dwarf2out.c (gen_member_die): Don't emit anything for an
31976 anonymous class constructor.
31978 2015-05-05 David Malcolm <dmalcolm@redhat.com>
31980 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
31981 that it reflects the block structure.
31982 (afdo_propagate_edge): Likewise.
31983 (afdo_calculate_branch_prob): Likewise.
31984 (afdo_annotate_cfg): Likewise.
31985 * cfgcleanup.c (equal_different_set_p): Likewise.
31986 (try_crossjump_to_edge): Likewise.
31987 * cgraph.c (cgraph_node::verify_node): Likewise.
31988 * cgraphunit.c (expand_all_functions): Likewise.
31989 * config/i386/i386.c (ix86_expand_copysign): Likewise.
31990 (exact_dependency_1): Likewise.
31991 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
31992 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
31993 * gensupport.c (process_define_subst): Likewise.
31994 * lto-wrapper.c (merge_and_complain): Likewise.
31995 * tree-if-conv.c (if_convertible_bb_p): Likewise.
31996 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
31997 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
31998 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
31999 * tree-vect-loop.c (vectorizable_reduction): Likewise.
32000 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
32001 * tree-vect-stmts.c (vectorizable_shift): Likewise.
32002 * tree-vrp.c (vrp_finalize): Likewise.
32003 * tree.c (variably_modified_type_p): Likewise.
32005 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
32007 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
32008 on darwin12 and later.
32009 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
32010 file to pass -rdynamic on darwin12 and later.
32011 * config/darwin.opt (rdynamic): Add.
32013 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
32015 * doc/extend.texi (C Extensions): Update menu for moved Variable
32016 Attributes and Type Attributes sections.
32018 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
32021 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
32022 if rep_8byte stringop strategy was specified for 32-bit target.
32024 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
32027 * config/i386/i386.md (vector convert to float spltiter): Check for
32028 xmm16+, when splitting scalar float conversion.
32029 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
32031 2015-05-05 Nick Clifton <nickc@redhat.com>
32033 * config/msp430/msp430-opts.h (enum msp430_regions): New.
32034 * config/msp430/msp430.c (msp430_override_options): Complain if
32035 -mcode-region or -mdata-region is used on a non MSP430X.
32036 (msp430_section_attr): New function. Checks lower, upper and
32038 (msp430_attribute_table): Add lower, upper and either.
32039 (gen_prefix): New function. Generates a prefix for a section
32041 (msp430_select_section): New function - handles the choice of
32042 section for an object. Takes into account memory region
32043 attributes and options.
32044 (msp430_function_section): Use gen_prefix.
32045 (TARGET_SECTION_TYPE_FLAGS): Define.
32046 (msp430_section_type_flags): New function.
32047 (TARGET_ASM_UNIQUE_SECTION): Define.
32048 (msp430_unique_section): New function.
32049 (msp430_output_aligned_decl_common): New function.
32050 (msp430_do_not_relax_short_jumps): New function.
32051 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
32053 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
32054 * config/msp430/msp430-protos.h
32055 (msp430_do_not_relax_short_jumps): New prototype.
32056 (msp430_output_aligned_decl_common): New prototype.
32057 * config/msp430/msp430.md (length): New attribute.
32058 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
32059 then use a long code sequence for short jumps.
32060 * config/msp430/msp430.opt (mcode-region): New.
32061 (mdata-region): New.
32062 * doc/invoke.texi: Document new options.
32063 * doc/extend.texi: Document new attributes.
32065 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
32067 * config/aarch64-protos.h (struct cpu_branch_cost): New.
32068 (tune_params): Add field branch_costs.
32069 (aarch64_branch_cost): Declare.
32070 * config/aarch64.c (generic_branch_cost): New.
32071 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
32072 (cortexa53_tunings): Likewise.
32073 (cortexa57_tunings): Likewise.
32074 (thunderx_tunings): Likewise.
32075 (xgene1_tunings): Likewise.
32076 (aarch64_branch_cost): Define.
32077 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
32079 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
32081 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
32082 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
32083 * config/i386/i386.md: Ditto.
32084 * config/i386/winnt.c: Ditto.
32086 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
32088 * doc/extend.texi (__atomic Builtins): Move implementation details
32089 to the end of the description, rewrite opening paragraphs, state
32090 difference with __sync builtins, state C11/C++11 assumptions,
32091 weaken itemized descriptions, add explanation of memory model
32092 behaviour, expand description of compare-exchange, simplify text.
32094 2015-05-05 Renlin Li <renlin.li@arm.com>
32096 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
32098 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
32100 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
32101 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32102 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
32103 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32104 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
32105 * configure: Regenerate.
32106 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
32107 * doc/install.texi (aarch64*-*-*): Document new
32108 --enable-fix-cortex-a53-843419 option.
32109 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
32110 and -mno-fix-cortex-a53-843419 options.
32112 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
32115 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
32117 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
32119 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
32120 fix overactive TYPE_MIN_VALUE check and add FIXME for type
32121 compatibility problems.
32123 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
32125 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
32127 (cbranchsi4_reg): New.
32128 * config/microblaze/microblaze.c
32129 (microblaze_expand_conditional_branch_reg): New.
32130 * config/microblaze/microblaze-protos.h
32131 (microblaze_expand_conditional_branch_reg): New prototype.
32133 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
32135 * config/microblaze/microblaze.md (peephole2): New.
32137 2015-05-04 Jeff Law <law@redhat.com>
32140 2015-05-04 Jeff Law <law@redhat.com>
32142 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32143 simplifier to narrow arithmetic.
32144 * generic-match-head.c: (types_match, single_use): New functions.
32145 * gimple-match-head.c: (types_match, single_use): New functions.
32147 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
32150 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
32151 (split_branches): Likewise.
32153 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
32155 * common.opt (fdelete-null-pointer-checks): Init to -1.
32156 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
32157 override flag_delete_null_pointer_checks default.
32158 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
32159 behavior re address zero. Better document target-specific behavior.
32160 (-fisolate-errneous-paths-dereference): Mention relationship to
32161 -fdelete-null-pointer-checks.
32163 2015-05-04 Jakub Jelinek <jakub@redhat.com>
32165 PR tree-optimization/65984
32166 * ubsan.c: Include tree-cfg.h.
32167 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
32168 stmt_could_throw_p test, rename can_throw variable to ends_bb.
32170 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
32172 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
32173 to CONST_DOUBLE_P predicate.
32174 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
32175 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
32176 allow only operands that satisfy standard_sse_constant_p predicate.
32177 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
32178 to CONST_DOUBLE_P predicate.
32180 2015-05-04 Jeff Law <law@redhat.com>
32182 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32183 simplifier to narrow arithmetic.
32184 * generic-match-head.c: (types_match, single_use): New functions.
32185 * gimple-match-head.c: (types_match, single_use): New functions.
32187 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
32189 * config/arm/arm.c: Restore bootstrap.
32191 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
32193 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
32194 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
32195 as CONST_WIDE_INT, not CONST_DOUBLE.
32196 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
32197 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
32198 (ix86_find_base_term): Do not check for CONST_DOUBLE.
32199 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
32200 (ix86_build_signbit_mask): Rewrite using wide ints.
32201 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
32202 (ix86_rtx_costs): Handle CONST_WIDE_INT.
32203 (find_constant): Ditto.
32204 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
32205 using gen_int_mode.
32206 * config/i386/predicates.md (x86_64_immediate_operand)
32207 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32208 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
32209 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32210 (const0_operand): Also match const_wide_int.
32211 (constm1_operand): Ditto.
32212 (const1_operand): Ditto.
32214 2015-05-04 Richard Biener <rguenther@suse.de>
32216 PR tree-optimization/65965
32217 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
32218 store groups at gaps.
32220 2015-05-04 Richard Biener <rguenther@suse.de>
32222 PR tree-optimization/65935
32223 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
32224 then make sure to apply that swapping to the IL.
32226 2015-05-04 Jakub Jelinek <jakub@redhat.com>
32228 * Makefile.in (PATCHLEVEL_c): New variable.
32229 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
32230 expand the same way as if DEVPHASE_c was non-empty.
32232 2015-05-04 Kai Tietz <ktietz@redhat.com>
32235 * lto-wrapper.c (run_gcc): Open filename
32238 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
32240 * doc/extend.texi (Variable Attributes, Type Attributes): Move
32241 sections up in file, to immediately after the Function Attributes
32244 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
32246 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
32248 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32250 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
32251 (insert_partition_copy_on_edge): Adjust.
32252 (insert_rtx_to_part_on_edge): Likewise.
32253 (insert_part_to_rtx_on_edge): Likewise.
32255 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32257 * function.c (set_return_jump_label): Change type of argument to
32259 * function.h (set_return_jump_label): Adjust.
32261 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32263 * reload.h (struct reg_equivs_t): Change type of init to
32265 * ira.c (fix_reg_equiv_init): Adjust.
32266 * reload1.c (eliminate_regs_1): Likewise.
32267 (init_eliminable_invariants): Likewise.
32269 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32271 * cselib.c (fp_setter_insn): Take a rtx_insn *.
32272 * cselib.h (fp_setter_insn): Adjust.
32274 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32276 * recog.c (struct validate_replace_src_data): Change type of
32277 insn field to rtx_insn *.
32278 (validate_replace_src_group): Change type of argument to rtx_insn *.
32279 * recog.h (validate_replace_src_group): Adjust.
32281 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32283 * haifa-sched.c: Change the type of some variables to rtx_insn *.
32284 * sched-deps.c: Likewise.
32285 * sched-int.h: Likewise.
32286 * sched-rgn.c: Likewise.
32287 * sel-sched.c: Likewise.
32289 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32292 * config/i386/i386.c: Change the type of some arguments to
32294 * config/arm/arm.c: Likewise.
32296 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32298 * lra-constraints.c: Change type of some arguments to rtx_insn *.
32300 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32302 * regcprop.c (kill_autoinc_value): Change type of argument to
32305 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32307 * genrecog.c (print_subroutine): Adjust.
32308 * recog.c (get_bool_attr_mask_uncached): Likewise.
32309 * recog.h (struct recog_data_d): Change the type of insn to
32312 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32314 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
32316 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32318 * df-problems.c (df_set_note): Change type of argument to
32321 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32323 * builtins.c (expand_builtin_trap): Change type of local
32324 variable to rtx_insn *.
32325 (add_sched_insns_for_speculation): Likewise.
32326 (ix86_emit_save_regs): Likewise.
32327 (get_scratch_register_on_entry): Likewise.
32328 (ix86_emit_restore_reg_using_pop): Likewise.
32329 (ix86_emit_leave): Likewise.
32330 (ix86_emit_restore_regs_using_mov): Likewise.
32331 (ix86_expand_epilogue): Likewise.
32333 (rl78_alloc_physical_registers_umul): Likewise.
32334 * cselib.c (discard_useless_locs): Likewise.
32335 (cselib_invalidate_regno): Likewise.
32336 (cselib_invalidate_mem): Likewise.
32337 * function.c (expand_function_start): Likewise.
32338 (emit_use_return_register_into_block): Likewise.
32339 * gcse.c: Likewise.
32340 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
32341 * ifcvt.c (noce_get_alt_condition): Likewise.
32342 * loop-doloop.c (doloop_condition_get): Likewise.
32343 * lra-constraints.c (inherit_in_ebb): Likewise.
32344 * modulo-sched.c (sms_schedule_by_order): Likewise.
32345 * recog.c (next_insn_tests_no_inequality): Likewise.
32346 * reorg.c (emit_delay_sequence): Likewise.
32347 (update_reg_dead_notes): Likewise.
32348 (fix_reg_dead_note): Likewise.
32349 (fill_slots_from_thread): Likewise.
32350 (delete_computation): Likewise.
32352 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
32354 * doc/extend.texi (Variable Attributes): Add menu and proper
32355 @nodes to subsections. Move Microsoft Windows attributes to
32356 their own subsection.
32357 (Type Attributes): Reorganize introduction to remove duplicate
32358 list of attributes. Add menu and proper @nodes to subsections.
32359 Alphabetize the main table of common attributes.
32361 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
32363 * match.pd: New simplification patterns.
32364 (x + (x & 1)) -> ((x + 1) & ~1)
32365 (x & ~(x & y)) -> ((x & ~y))
32366 (x | ~(x | y)) -> ((x | ~y))
32368 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32370 * target.def (attribute_table): Mention that struct attribute_spec
32371 is defined in tree-core.h rather than tree.h
32372 * doc/tm.texi: Regenerate.
32374 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
32376 * genrecog.c (test): Rename to rtx_test. Update rest of file
32379 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
32381 PR translation/65959
32382 * params.h (DEFPARAM): Rename msgid to nocmsgid.
32384 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
32386 * config/aarch64/aarch64-protos.h (tune_params):
32387 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
32388 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
32389 Return value depending on target.
32390 (generic_tunings): Initialize new target settings.
32391 (cortexa53_tunings): Likewise.
32392 (cortexa57_tunings): Likewise.
32393 (thunderx_tunings): Likewise.
32394 (xgene1_tunings): Likewise.
32396 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
32398 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
32399 Make Cortex-A53 shift costs more accurate.
32401 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32403 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
32406 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
32408 * config/aarch64/aarch64.c (aarch64_rtx_costs):
32409 Calculate cost of op0 and op1 in PLUS and MINUS cases.
32411 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32413 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
32414 Add cost of op0 in the compare-with-fpzero case.
32416 2015-04-30 David Malcolm <dmalcolm@redhat.com>
32418 * builtins.c (fold_builtin_1): Remove spurious second
32420 * cgraph.h (symtab_node::get_availability): Likewise.
32421 * opts.c (common_handle_option): Remove spurious second semicolon.
32422 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
32423 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
32425 2015-04-30 Caroline Tice <cmtice@google.com>
32427 PR gcov-profile/65929
32428 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
32429 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
32430 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
32431 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
32432 * doc/tm.texi: Regenerate.
32433 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
32434 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
32435 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
32436 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
32438 2015-04-30 Marek Polacek <polacek@redhat.com>
32440 * varasm.c (handle_cache_entry): Fix logic.
32442 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32444 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
32445 (*extrsi5_insn_uxtw_alt): Likewise.
32446 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
32447 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
32450 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32452 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
32455 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32457 * config/aarch64/aarch64.md
32458 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
32459 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
32460 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
32461 appropriately. Handle alternative EON form.
32463 2015-04-30 Renlin Li <renlin.li@arm.com>
32465 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
32466 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
32468 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
32471 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
32472 -fstrict-aliasing boundaries.
32474 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32476 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
32477 and [SU]MNEGL patterns.
32479 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32481 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
32482 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
32483 combined arithmetic-shift ops. Properly handle all shift and extend
32484 operations that can occur in combination with PLUS/MINUS.
32485 Rename maybe_fma to compound_p.
32486 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
32487 arithmetic and shift operations.
32489 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32491 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
32492 rather than arith_shift cost when costing ADD/MINUS of an
32495 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
32498 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
32501 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
32503 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
32504 are for the same position.
32506 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
32508 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
32510 (vectorize_loops): Use it.
32512 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32514 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
32515 for aggregate types.
32516 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
32517 type to be non_ODR.
32518 * tree.c (need_assembler_name_p): Compute mangled name for
32519 non-fundamental types and integer types.
32521 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
32523 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
32525 * expr.c (expand_expr_real_2): Likewise.
32527 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32529 * tree.c (build_common_builtin_nodes): Do not build
32530 __builtin_alloca_with_align as equivalent of library alloca.
32532 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32534 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
32535 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
32537 * tree.c: Include print-tree.h and ipa-utils.h
32538 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
32539 (free_lang_data_in_cgraph): Call verify_type.
32540 (verify_type_variant): New function.
32541 (verify_type): New function.
32542 * tree.h (verify_type): Declare.
32544 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
32546 * config/mips/mips-cpus.def: (mips4): Change default processor
32547 from PROCESSOR_R8000 to PROCESSOR_R10000.
32549 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
32551 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
32552 la/jalr instead of jal.
32554 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
32557 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
32558 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
32559 (setcc+movzbl peephole2): Check also clobbered reg.
32560 (setcc+andl peephole2): Ditto.
32562 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32565 * config/nvptx/mkoffload.c (target_ilp32): New variable.
32566 (main): Set it depending on "-foffload-abi=[...]".
32567 (compile_native, main): Use it to pass "-m32" or "-m64" to the
32570 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32573 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
32574 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
32575 Flip lane index back at assembly time for bigendian.
32577 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32579 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
32580 * gimplify.c (gimplify_omp_workshare): Use it.
32582 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32584 * Makefile.in (build/genrecog.o): Depend on inchash.h.
32585 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
32587 * genrecog.c: Rewrite most of the code except for the third page.
32589 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32591 * inchash.h, inchash.c: Include bconfig.h for build objects.
32592 * Makefile.in (build/inchash.o): New rule.
32594 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
32597 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
32598 number in type attribute expression.
32600 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32602 * loop-iv.c (canon_condition): Generalize to all types of integer
32605 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
32607 * gimple-walk.c: Prune duplicate or unneeded includes.
32608 (walk_gimple_asm): Only call parse_input_constraint or
32609 parse_output_constraint if their findings are used.
32610 Honour parse_input_constraint and parse_output_constraint
32613 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32615 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
32617 2015-04-29 Tom de Vries <tom@codesourcery.com>
32619 PR tree-optimization/65893
32620 * passes.def (pass_all_optimizations): Move pass_stdarg to after
32623 2015-04-29 Richard Biener <rguenther@suse.de>
32625 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32626 compute GROUP_SIZE for basic-block SLP.
32627 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
32628 take into account gaps.
32629 (vect_get_mask_element): Properly reject references to previous
32631 (vect_transform_slp_perm_load): Likewise.
32633 2015-04-29 Christian Bruel <christian.bruel@st.com>
32636 * config/i386/i386.c (ix86_default_align): New function.
32637 (ix86_override_options_after_change): Call ix86_default_align.
32638 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
32639 (ix86_override_options_after_change): New function.
32641 2015-04-28 Jeff Law <law@redhat.com>
32643 * tree-ssa-dom.c (record_equality); Fix comment typos.
32645 2015-04-28 Tom de Vries <tom@codesourcery.com>
32647 PR tree-optimization/65887
32648 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
32650 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
32652 * doc/extend.texi (Declaring Attributes of Functions): Split into
32653 subsections by target. Alphabetize the table of common attributes.
32654 Rewrite some of the introductory text to reflect the new structure.
32655 Update some cross-references to point to the new subsections.
32656 (Attribute Syntax): Put paragraph about "__" naming here. Remove
32657 duplicate copies in the discussion of function, label, and type
32660 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
32663 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
32665 2015-04-28 Jason Merrill <jason@redhat.com>
32668 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
32669 (finalize_type_size): Respect TYPE_USER_ALIGN.
32670 (layout_type) [ARRAY_TYPE]: Likewise.
32672 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
32674 * config/arm/arm.md (*arm_movt): Fix type attribute.
32675 (*cmpsi_shiftsi): Likewise.
32676 (*cmpsi_shiftsi_swp): Likewise.
32677 (*movsicc_insn): Likewise.
32678 (*cond_move): Likewise.
32679 (*if_plus_move): Likewise.
32680 (*if_move_plus): Likewise.
32681 (*if_arith_move): Likewise.
32682 (*if_move_arith): Likewise.
32683 (*if_shift_move): Likewise.
32684 (*if_move_shift): Likewise.
32685 (*arm_movtas_ze): Likewise.
32686 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
32687 redundancy and type attribute.
32688 (*thumb2_movsi_insn): Fix type attribute.
32689 (*thumb2_addsi_short): Likewise.
32690 (thumb2_addsi3_compare0): Likewise.
32691 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
32692 attributes accordingly.
32694 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
32697 * function.c (pad_to_arg_alignment): Add parentheses.
32699 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
32701 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
32702 libgcc/config/frv/elf-lib.h.
32704 2015-04-28 Tom de Vries <tom@codesourcery.com>
32706 * tree-call-cdce.c: Fix example in header comment.
32708 2015-04-28 Richard Biener <rguenther@suse.de>
32710 PR tree-optimization/62283
32711 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
32712 fails fatally and we are vectorizing a basic-block simply
32713 cause the child to be constructed piecewise.
32714 (vect_analyze_slp_cost_1): Adjust.
32715 (vect_detect_hybrid_slp_stmts): Likewise.
32716 (vect_bb_slp_scalar_cost): Likewise.
32717 (vect_get_constant_vectors): For piecewise constructed
32718 constants place them after the last def.
32719 (vect_get_slp_defs): Adjust.
32720 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
32721 externals for basic-block vectorization.
32723 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
32726 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
32728 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
32729 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
32730 (AARCH64_TUNE_FMA_STEERING): Likewise.
32731 * config/aarch64/aarch64-cores.def: Set
32732 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
32733 FMUL/FMADD instructions.
32734 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
32735 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
32736 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
32737 * config/aarch64/cortex-a57-fma-steering.h: New file.
32738 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
32740 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
32742 * gensupport.c (std_preds): Add missing codes to address_operand entry.
32744 2015-04-28 Richard Biener <rguenther@suse.de>
32746 PR tree-optimization/65851
32747 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
32748 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
32749 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
32750 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
32751 (ccp_visit_phi_node): Adjust.
32752 (evaluate_stmt): For simplifications to SSA names return its
32753 lattice value if that isn't VARYING. Return immediately when
32754 simplified to a constant.
32755 (visit_assignment): Adjust.
32756 (ccp_visit_stmt): Likewise.
32758 2015-04-28 Tom de Vries <tom@codesourcery.com>
32760 PR tree-optimization/65818
32761 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
32764 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32766 * calls.c (save_fixed_argument_area): Don't check
32767 ARGS_GROW_DOWNWARD with the preprocessor.
32768 (restore_fixed_argument_area): Likewise.
32769 (mem_overlaps_already_clobbered_arg_p): Likewise.
32770 (check_sibcall_argument_overlap): Likewise.
32771 (expand_call): Likewise.
32772 (emit_library_call_value_1): Likewise.
32773 (store_one_arg): Likewise.
32774 * function.c (assign_parms): Likewise.
32775 (locate_and_pad_parm): Likewise.
32776 (pad_to_arg_alignment): Likewise.
32777 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32779 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32781 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
32782 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
32783 * calls.c (save_fixed_argument_area): Don't chekc if
32784 ARGS_GROW_DOWNWARD is defined.
32785 (restore_fixed_argument_area): Likewise.
32786 (mem_overlaps_already_clobbered_arg_p): Likewise.
32787 (check_sibcall_argument_overlap): Likewise.
32788 (expand_call): Likewise.
32789 (emit_library_call_value_1): Likewise.
32790 (store_one_arg): Likewise.
32791 * function.c (assign_parms): Likewise.
32792 (locate_and_pad_parm): Likewise.
32793 (pad_to_arg_alignment): Likewise.
32794 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32796 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32798 * defaults.h (gen_epilogue): New function.
32799 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
32801 * cfgrtl.c (cfg_layout_finalize): Likewise.
32802 * df-scan.c: Likewise.
32803 * function.c (thread_prologue_and_epilogue_insns): Likewise.
32804 (reposition_prologue_and_epilogue_notes): Likewise.
32805 * reorg.c (find_end_label): Likewise.
32806 * toplev.c: Likewise.
32808 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32810 * bb-reorder.c (HAVE_return): Don't check if its undefined.
32811 * defaults.h (gen_simple_return): New function.
32812 (gen_simple_return): Likewise.
32813 (HAVE_return): Add default definition to false.
32814 (HAVE_simple_return): Likewise.
32815 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
32816 HAVE_return and HAVE_simple_return are defined.
32817 * function.c (gen_return_pattern): Likewise.
32818 (convert_jumps_to_returns): Likewise.
32819 (thread_prologue_and_epilogue_insns): Likewise.
32820 * reorg.c (find_end_label): Likewise.
32821 (dbr_schedule): Likewise.
32822 * shrink-wrap.c: Likewise.
32823 * shrink-wrap.h: Likewise.
32825 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32827 * defaults.h (EPILOGUE_USES): Add default definition of false.
32828 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
32829 * resource.c (init_resource_info): Likewise.
32831 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32833 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
32835 * dwarf2out.c (field_byte_offset): REmove check if
32836 PCC_BITFIELD_TYPE_MATTERS is defined.
32837 * stor-layout.c (layout_decl): Likewise.
32838 (update_alignment_for_field): Likewise.
32839 (place_field): Likewise.
32841 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32843 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
32845 * regrename.c (check_new_reg_p): Remove check if
32846 HARD_REGNO_RENAME_OK is defined.
32847 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
32849 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32851 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
32852 * cse.c (fold_rtx): Likewise.
32853 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
32854 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
32855 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
32856 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
32857 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
32858 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
32859 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
32860 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
32861 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
32862 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
32864 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
32865 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
32866 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
32867 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
32868 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
32869 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
32870 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
32871 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
32872 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
32873 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
32874 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
32875 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
32876 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
32877 * doc/tm.texi: Regenerate.
32878 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
32879 either true or false.
32881 2015-04-27 Jeff Law <law@redhat.com>
32883 PR tree-optimization/65217
32884 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
32885 of them has a single use, make sure it is the LHS of the implied
32888 2015-04-28 Alan Modra <amodra@gmail.com>
32891 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
32892 (offsettable_ok_by_alignment): Use minimum of decl and toc
32893 pointer alignment. Replace dead code with assertion.
32894 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
32895 case if size exceeds toc pointer alignment.
32896 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
32897 (rs6000_emit_move): Likewise.
32898 * configure.ac: Add linker toc pointer alignment check.
32899 * configure: Regenerate.
32900 * config.in: Regenerate.
32902 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
32904 * config.gcc: Add h8300-*-linux.
32905 * config/h8300/linux.h: New.
32906 * config/h8300/t-linux: New.
32907 * config/h8300/h8300.c (h8300_option_override): Normal mode
32908 is not supported for h8300-*-linux.
32909 (h8300_file_start): Target priority change.
32910 (get_shift_alg): Likewise.
32911 (h8300_shift_need_scratch_p): Likewise.
32912 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
32913 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
32915 2015-04-27 Caroline Tice <cmtice@google.com>
32917 * final.c (final_scan_insn): Output cold_function_name as function
32919 * varasm.c (cold_function_name): Make global.
32920 (assemble_start_function): Re-set cold_function_name.
32921 (assemble_end_function): Output cold partition size.
32922 * varasm.h (cold_function_name): Declare global.
32924 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
32926 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
32927 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
32929 (*movxi_internal_avx512f): Ditto.
32930 (define_split): Check for xmm16+, when splitting scalar float_extend.
32931 (*extendsfdf2_mixed): Use "v" constraint.
32932 (define_split): Check for xmm16+, when splitting scalar float_truncate.
32933 (*truncdfsf_fast_sse): Use "v" constraint.
32934 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
32935 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
32936 (define_peephole2): Check for xmm16+, when converting scalar
32938 (define_peephole2): Check for xmm16+, when converting scalar
32940 (*fop_<mode>_comm_mixed): Use "v" constraint.
32941 (*fop_<mode>_comm_sse): Ditto.
32942 (*fop_<mode>_1_mixed): Ditto.
32943 (*sqrt<mode>2_sse): Ditto.
32944 (*ieee_s<ieee_maxmin><mode>3): Ditto.
32946 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32948 * combine.c (simplify_if_then_else): Use std::swap instead
32949 of manually swapping.
32950 (known_cond): Likewise.
32951 (simplify_comparison): Likewise.
32953 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
32956 * config/rs6000/htm.md: Remove all define_expands.
32957 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
32958 UNSPECV_HTM_TABORTWCI): Remove.
32959 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
32960 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
32961 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
32962 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
32963 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
32964 tabortwci_internal): Remove define_insns.
32965 (tabort<wd>c, tabort<wd>ci): New define_insns.
32966 (tabort): Use gpc_reg_operand.
32967 (tcheck): Remove operand.
32968 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
32969 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
32971 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
32972 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
32973 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
32974 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
32975 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
32976 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
32977 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
32978 (tcheck): Remove builtin argument.
32979 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
32981 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
32982 tabortdc and tabortdci builtins when not in 64-bit mode.
32983 Modify code to handle the loss of the HTM define_expands.
32984 Emit code to copy the CR register to TARGET.
32985 (htm_init_builtins): Modify code to handle the loss of the HTM
32987 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
32988 (RS6000_BTC_64BIT): Likewise.
32989 (RS6000_BTC_CR): New macro.
32990 * doc/extend.texi: Update documentation for htm builtins.
32992 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32994 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
32995 of manually swapping.
32996 (simplify_associative_operation): Likewise.
32997 (simplify_binary_operation): Likewise.
32998 (simplify_plus_minus): Likewise.
32999 (simplify_relational_operation): Likewise.
33000 (simplify_ternary_operation): Likewise.
33002 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
33004 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
33005 (xs_hi_nonmemory_operand): Remove error.
33006 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
33007 general_operand rather than xs_hi_general_operand.
33009 2015-04-27 Richard Biener <rguenther@suse.de>
33011 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
33012 (record_equivalences_from_stmt): Valueize rhs.
33013 (record_equality): Canonicalize x and y order via
33014 tree_swap_operands_p. Do not swap operands for same loop depth.
33016 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
33020 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
33021 Add hint how to use own spec file.
33023 2015-04-27 Jakub Jelinek <jakub@redhat.com>
33025 PR tree-optimization/65875
33026 * tree-vrp.c (update_value_range): If in is_new case setting
33027 old_vr to VR_VARYING, also set new_vr to it. Remove
33028 old_vr->type == VR_VARYING test.
33029 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
33030 SSA_PROP_INTERESTING if update_value_range returned true,
33031 but new range is VR_VARYING.
33033 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
33035 * combine.c (sign_extend_short_imm): New.
33036 (set_nonzero_bits_and_sign_copies): Use above new function for sign
33037 extension of src short immediate.
33038 (reg_nonzero_bits_for_combine): Likewise for tem.
33040 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
33042 * stor-layout.c (self_referential_component_ref_p): New predicate.
33043 (copy_self_referential_tree_r): Use it.
33044 (self_referential_size): Punt for simple operations directly involving
33045 self-referential component references.
33046 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
33048 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
33050 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
33052 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
33054 * vec.h (vec): Make splice arguments const. Update definitions
33057 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
33059 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
33062 2015-04-26 Tom de Vries <tom@codesourcery.com>
33064 PR tree-optimization/65826
33065 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
33067 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
33069 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
33070 (*madd3<mode>): Ditto.
33071 (*msub4<mode>): Ditto.
33072 (*msub3<mode>): Ditto.
33073 (*nmadd4<mode>): Ditto.
33074 (*nmadd3<mode>): Ditto.
33075 (*nmadd4<mode>_fastmath): Ditto.
33076 (*nmadd3<mode>_fastmath): Ditto.
33077 (*nmsub4<mode>): Ditto.
33078 (*nmsub3<mode>): Ditto.
33079 (*nmsub4<mode>_fastmath): Ditto.
33080 (*nmsub3<mode>_fastmath): Ditto.
33082 2015-04-24 Jason Merrill <jason@redhat.com>
33085 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
33086 down when building TYPE_CANONICAL.
33087 (build_pointer_type_for_mode): Likewise.
33089 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
33091 * genrecog.c (validate_pattern): Check matching constraint refers
33092 to a lower numbered operand.
33094 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
33097 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
33098 save to independent variables use the Save attribute. This will
33099 allow these options to be modified with the #pragma/attribute
33101 (-mallow-movmisalign): Likewise.
33102 (-mallow-df-permute): Likewise.
33103 (-msched-groups): Likewise.
33104 (-malways-hint): Likewise.
33105 (-malign-branch-targets): Likewise.
33106 (-mvectorize-builtins): Likewise.
33107 (-msave-toc-indirect): Likewise.
33109 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
33110 can be set via the #pragma/attribute target support.
33111 (rs6000_opt_vars): Likewise.
33112 (rs6000_inner_target_options): If VSX was set, also set
33113 -mno-avoid-indexed-addresses.
33115 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33117 * config/arm/iterators.md (shiftable_ops): Rename to...
33118 (SHIFTABLE_OPS): ... This. Update use in comments.
33119 (ior_xor): Rename to...
33120 (IOR_XOR): ... This.
33121 (vqh_ops): Rename to...
33122 (VQH_OPS): ... This.
33123 (vqhs_ops): Rename to...
33124 (VQHS_OPS): ... This.
33125 (rshifts): Rename to...
33126 (RSHIFTS): ... This.
33127 (returns): Rename to...
33128 (RETURNS): ... This.
33129 * config/arm/arm.md: Update uses of the above.
33130 * config/arm/neon.md: Likewise.
33132 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33134 * config.host (case ${host}): Add aarch64*-*-linux case.
33135 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
33136 fields to all the cores.
33137 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
33138 Add MCPU_MTUNE_NATIVE_SPECS.
33139 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
33140 field to all extensions.
33141 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
33142 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
33143 Adjust definition of AARCH64_OPT_EXTENSION.
33144 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
33145 (MCPU_MTUNE_NATIVE_SPECS): Define.
33146 * config/aarch64/driver-aarch64.c: New file.
33147 * config/aarch64/x-arch64: New file.
33148 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
33151 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
33152 Wei Mi <wmi@google.com>
33154 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
33155 * config/i386/i386.c (extract_base_offset_in_addr): New function.
33156 (ix86_operands_ok_for_move_multiple): Ditto.
33157 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
33158 (movlpd/movhpd to movupd peephole2): Ditto.
33160 2015-04-24 Marek Polacek <polacek@redhat.com>
33163 * input.h (from_macro_expansion_at): Define.
33166 * doc/invoke.texi: Update description of -Wlogical-op.
33168 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
33170 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
33171 ternary operator in fprintf and harmonize spacing.
33173 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
33175 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
33176 Mark operand1 commutative.
33178 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
33180 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
33181 input operands in memory.
33182 (*vec_concatv2si_sse4_1): Ditto.
33183 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
33184 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
33186 (vec_extract_hi_v32hi): Ditto.
33187 (vec_extract_hi_v64hi): Ditto.
33188 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
33190 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
33191 Steven Bosscher <steven@gcc.gnu.org>
33193 PR rtl-optimization/34503
33194 * cprop.c (cprop_reg_p): New.
33195 (hash_scan_set): Use above function to check if register can be
33197 (find_avail_set): Return up to two sets, one whose source is a
33198 register and one whose source is a constant. Sets are returned in an
33199 array passed as parameter rather than as a return value.
33200 (cprop_insn): Use a do while loop rather than a goto. Try each of the
33201 sets returned by find_avail_set, starting with the one whose source is
33202 a constant. Use cprop_reg_p to check if register can be propagated.
33203 (do_local_cprop): Use cprop_reg_p to check if register can be
33205 (implicit_set_cond_p): Likewise.
33207 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33209 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
33210 (sem_function::equals): IGNORED_NODES parameter is now unused;
33211 update call of equals_private.
33212 (sem_function::equals_private): Do not call equals_wpa; skip
33213 gimple body matching if there is no body.
33214 (sem_function::init): Add logic to hash tthunk info.
33215 (sem_function::parse): Also parse thunks.
33216 * ipa-icf.h (equals_private): Update declaration.
33218 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33220 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
33221 asterisk from name so this can be generated directly.
33222 (*altivec_stvx_<mode>_internal): Likewise.
33223 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
33224 that this is never called during or after reload/lra.
33225 (rs6000_frame_related): Remove split_reg
33226 argument and logic that references it.
33227 (emit_frame_save): Remove last parameter from call to
33228 rs6000_frame_related.
33229 (rs6000_emit_prologue): Remove last parameter from eight calls to
33230 rs6000_frame_related. Force generation of stvx instruction for
33231 Altivec register saves. Remove split_reg handling, which is no
33233 (rs6000_emit_epilogue): Force generation of lvx instruction for
33234 Altivec register restores.
33236 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33238 * config/rs6000/rs6000.opt (mcrypto): Change option description to
33239 match category changes in ISA 2.07B.
33241 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33243 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
33245 (cmp_op, cmp_type): New code attributes.
33246 (NEON_VCMP, NEON_VACMP): New int iterators.
33247 (cmp_op_unsp): New int attribute.
33248 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
33249 (neon_vceq<mode>): Delete.
33250 (neon_vc<cmp_op><mode>_insn): New pattern.
33251 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
33252 (neon_vcgeu<mode>): Delete.
33253 (neon_vcle<mode>): Likewise.
33254 (neon_vclt<mode>: Likewise.
33255 (neon_vcage<mode>): Likewise.
33256 (neon_vcagt<mode>): Likewise.
33257 (neon_vca<cmp_op><mode>): New define_expand.
33258 (neon_vca<cmp_op><mode>_insn): New pattern.
33259 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
33261 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33263 * tree.h (attribute_value_equal): Declare.
33264 * tree.c (attribute_value_equal): Export.
33266 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33268 * ipa-icf.c (sem_item::compare_attributes): New function.
33269 (sem_item::compare_referenced_symbol_properties): Compare variable
33271 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
33272 (sem_function::param_used_p): New function.
33273 (sem_function::equals_wpa): Fix attribute comparsion; match
33274 parameter type codes; do not compare paremter flags when
33275 they are not used; compare edge flags; compare indirect calls.
33276 (sem_item::update_hash_by_addr_refs): Hash reference type.
33277 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
33278 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
33279 reference use type.
33280 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
33281 * ipa-icf.h (compare_attributes, param_used_p): Declare.
33283 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33285 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
33287 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
33288 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
33289 (sem_item::compare_referenced_symbol_properties): New.
33290 (sem_item::hash_referenced_symbol_properties): New.
33291 (sem_item::compare_cgraph_references): Rename to ...
33292 (sem_item::compare_symbol_references): ... this one; use
33293 compare_referenced_symbol_properties.
33294 (sem_function::equals_wpa): Do not compare
33295 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
33296 DECL_IS_OPERATOR_NEW; compare pointer sizes.
33297 (sem_item::update_hash_by_addr_refs): Call
33298 hash_referenced_symbol_properties.
33299 (sem_item::update_hash_by_local_refs): Cleanup.
33300 (sem_function::merge): Do not mix up symbol properties.
33301 (sem_variable::equals_wpa): Use compare_symbol_references.
33302 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
33303 (sem_item::hash_referenced_symbol_properties): New.
33304 (sem_item::compare_symbol_references): New.
33305 (sem_item::compare_cgraph_references): Remove.
33307 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
33310 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
33311 Emit size of local.
33313 2015-04-23 Nick Clifton <nickc@redhat.com>
33315 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
33316 ATTRIBUTE_UNUSED to x parameter.
33317 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
33319 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33321 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
33322 TARGET_CRYPTO to TARGET_P8_VECTOR>
33323 (crypto_vpermxor_<mode>): Likewise.
33324 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
33325 (BU_CRYPTO_3A): Likewise.
33326 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
33327 (BU_CRYPTO_OVERLOAD_3A): New #define.
33328 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
33329 (VPMSUMH): Likewise.
33330 (VPMSUMW): Likewise.
33331 (VPMSUMD): Likewise.
33332 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
33333 (VPERMXOR_V4SI): Likewise.
33334 (VPERMXOR_V8HI): Likewise.
33335 (VPERMXOR_V16QI): Likewise.
33336 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
33337 BU_CRYPTO_OVERLOAD_2A.
33338 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
33339 BU_CRYPTO_OVERLOAD_3A.
33340 * config/rs6000/rs6000.opt (mcrypto): Change description of
33343 2015-04-23 Richard Biener <rguenther@suse.de>
33345 * passes.def: Remove copy propagation passes run directly after CCP.
33346 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
33348 (ccp_visit_phi_node): Rework to handle first executable edge
33351 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
33353 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33354 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33355 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33356 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
33357 (thumb_legimitimize_reload_address): Remove.
33358 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
33360 (thumb_legimitimize_reload_address): Remove.
33362 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33364 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
33366 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33368 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
33370 (store_multiple): Likewise.
33372 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33374 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
33375 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
33376 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
33377 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
33378 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
33379 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
33380 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
33381 Specify issue_rate value.
33382 (arm_issue_rate): Look up issue rate from tuning structs. Remove
33383 large switch statement.
33384 (arm_marvell_pj4_tune): New struct.
33385 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
33388 2015-04-23 Richard Biener <rguenther@suse.de>
33390 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
33391 (vect_find_last_store_in_slp_instance): Rename to ...
33392 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
33393 (vect_analyze_slp_cost_1): Use vector_load for constant defs
33394 and vec_construct for external defs when estimating prologue cost.
33395 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
33396 Compute costs here only when vectorizing loops.
33397 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
33398 have been determined.
33399 (vect_schedule_slp_instance): Simplify vectorized code placement
33400 and prepare for in-BB external defs.
33401 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
33402 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
33403 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
33405 (vect_model_load_cost): Likewise.
33406 (vectorizable_store): Instead add it here.
33407 (vectorizable_load): Likewise.
33408 (vect_is_simple_use): Dump def type textually.
33410 2015-04-23 Richard Biener <rguenther@suse.de>
33412 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
33413 * cfgloop.c (verify_loop_structure): Verify the root loop node.
33414 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
33415 instead of get_eh_region_from_lp_number.
33416 * loop-init.c (fix_loop_structure): If we removed a loop, reset
33419 2015-04-23 Anton Blanchard <anton@samba.org>
33421 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
33422 need for -mprofile-kernel to save LR to stack.
33424 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33426 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
33428 (insn_is_swappable_p): Return 1 for a convert from double to
33429 single precision when all of its uses are splats of BE element
33432 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
33434 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
33436 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33439 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
33440 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
33441 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
33443 (rs6000_builtin_mask_for_load): Return 0 for targets with
33444 efficient unaligned VSX accesses so that the vectorizer will use
33445 direct unaligned loads.
33446 (rs6000_builtin_support_vector_misalignment): Always return true
33447 for targets with efficient unaligned VSX accesses.
33448 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
33449 stores on targets with efficient unaligned VSX accesses is almost
33450 always the same as the cost of an aligned load or store, so model
33452 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
33453 unaligned vectors if we have efficient unaligned VSX accesses.
33454 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
33455 undocumented option.
33457 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33460 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
33462 * config.gcc (LIBC_MUSL): New tm_defines macro.
33463 * config/linux.h (OPTION_MUSL): Define.
33464 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33465 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33466 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33468 * config/linux.opt (mmusl): New option.
33469 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33470 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33472 * configure: Regenerate.
33474 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
33476 * config.gcc (LIBC_MUSL): New tm_defines macro.
33477 * config/linux.h (OPTION_MUSL): Define.
33478 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33479 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33480 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33482 * config/linux.opt (mmusl): New option.
33483 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33484 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33486 * configure: Regenerate.
33488 2015-04-22 Yury Gribov <y.gribov@samsung.com>
33490 * doc/invoke.texi (-fsanitize-sections): Update description.
33491 * asan.c (set_sanitized_sections): Parse incoming arg.
33492 (section_sanitized_p): Support wildcards.
33494 2015-04-22 Tom de Vries <tom@codesourcery.com>
33496 PR tree-optimization/65823
33497 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
33498 equality between ap_copy and ap.
33500 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33503 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
33505 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33508 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
33510 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33513 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
33514 remove already contained t-files.
33516 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33518 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
33519 Remove unneeded forward declarations.
33520 (suitable_for_tail_call_opt_p): Commentary typo fix.
33522 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33524 * varasm.c (emit_bss): Remove redundant guard.
33526 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33528 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
33530 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33532 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
33534 2015-04-22 Hale Wang <hale.wang@arm.com>
33535 Terry Guo <terry.guo@arm.com>
33537 PR rtl-optimization/64818
33538 * combine.c (can_combine_p): Don't combine user-specified
33539 register if it is in an asm input.
33541 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
33544 * passes.def (early_optimizations): Add pass_dse.
33546 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33548 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
33549 * reorg.c (redundant_insn): Remove ifdef
33550 INSN_REFERENCES_ARE_DELAYED.
33551 * resource.c (mark_referenced_resources): Likewise.
33553 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33555 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
33556 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
33557 * resource.c (mark_set_resources): Likewise.
33559 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33561 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
33562 * cfgcleanup.c (flow_find_cross_jump): Likewise.
33563 (flow_find_head_matching_sequence): Likewise.
33564 (try_head_merge_bb): Likewise.
33565 * combine.c (can_combine_p): Likewise.
33566 (try_combine): Likewise.
33567 (distribute_notes): Likewise.
33568 * df-problems.c (can_move_insns_across): Likewise.
33569 * final.c (final): Likewise.
33570 * gcse.c (insert_insn_end_basic_block): Likewise.
33571 * ira.c (find_moveable_pseudos): Likewise.
33572 * reorg.c (try_merge_delay_insns): Likewise.
33573 (fill_simple_delay_slots): Likewise.
33574 (fill_slots_from_thread): Likewise.
33575 * sched-deps.c (sched_analyze_2): Likewise.
33577 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33579 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
33580 PIC_OFFSET_TABLE_REGNUM.
33582 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33584 * alias.c (init_alias_target): Remove ifdef
33585 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
33586 * df-scan.c (df_insn_refs_collect): Likewise.
33587 (df_get_regular_block_artificial_uses): Likewise.
33588 (df_get_eh_block_artificial_uses): Likewise.
33589 (df_get_entry_block_def_set): Likewise.
33590 (df_get_exit_block_use_set): Likewise.
33591 * emit-rtl.c (gen_rtx_REG): Likewise.
33592 * ira.c (ira_setup_eliminable_regset): Likewise.
33593 * reginfo.c (init_reg_sets_1): Likewise.
33594 * regrename.c (rename_chains): Likewise.
33595 * reload1.c (reload): Likewise.
33596 (eliminate_regs_in_insn): Likewise.
33597 * resource.c (mark_referenced_resources): Likewise.
33598 (init_resource_info): Likewise.
33600 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33602 * defaults.h (MASK_RETURN_ADDR): New definition.
33603 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33606 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33608 * defaults.h (RETURN_ADDR_OFFSET): New definition.
33609 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33610 RETURN_ADDR_OFFSET.
33611 (expand_builtin_frob_return_addr): Likewise.
33613 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33615 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
33616 (try_redirect_by_replacing_jump): Likewise.
33617 (rtl_tidy_fallthru_edge): Likewise.
33618 * combine.c (insn_a_feeds_b): Likewise.
33619 (find_split_point): Likewise.
33620 (simplify_set): Likewise.
33621 * cprop.c (cprop_jump): Likewise.
33622 * cse.c (cse_extended_basic_block): Likewise.
33623 * df-problems.c (can_move_insns_across): Likewise.
33624 * function.c (emit_use_return_register_into_block): Likewise.
33625 * haifa-sched.c (sched_init): Likewise.
33626 * ira.c (find_moveable_pseudos): Likewise.
33627 * loop-invariant.c (find_invariant_insn): Likewise.
33628 * lra-constraints.c (curr_insn_transform): Likewise.
33629 * postreload.c (reload_combine_recognize_const_pattern):
33631 * reload.c (find_reloads): Likewise.
33632 * reorg.c (delete_scheduled_jump): Likewise.
33633 (steal_delay_list_from_target): Likewise.
33634 (steal_delay_list_from_fallthrough): Likewise.
33635 (redundant_insn): Likewise.
33636 (fill_simple_delay_slots): Likewise.
33637 (fill_slots_from_thread): Likewise.
33638 (delete_computation): Likewise.
33639 * sched-rgn.c (add_branch_dependences): Likewise.
33641 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33643 * genconfig.c (main): Always define HAVE_cc0.
33644 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
33646 * cfgcleanup.c (flow_find_cross_jump): Likewise.
33647 (flow_find_head_matching_sequence): Likewise.
33648 (try_head_merge_bb): Likewise.
33649 * cfgrtl.c (rtl_merge_blocks): Likewise.
33650 (try_redirect_by_replacing_jump): Likewise.
33651 (rtl_tidy_fallthru_edge): Likewise.
33652 * combine.c (do_SUBST_MODE): Likewise.
33653 (insn_a_feeds_b): Likewise.
33654 (combine_instructions): Likewise.
33655 (can_combine_p): Likewise.
33656 (try_combine): Likewise.
33657 (find_split_point): Likewise.
33659 (simplify_set): Likewise.
33660 (distribute_notes): Likewise.
33661 * cprop.c (cprop_jump): Likewise.
33662 * cse.c (cse_extended_basic_block): Likewise.
33663 * df-problems.c (can_move_insns_across): Likewise.
33664 * final.c (final): Likewise.
33665 (final_scan_insn): Likewise.
33666 * function.c (emit_use_return_register_into_block): Likewise.
33667 * gcse.c (insert_insn_end_basic_block): Likewise.
33668 * haifa-sched.c (sched_init): Likewise.
33669 * ira.c (find_moveable_pseudos): Likewise.
33670 * loop-invariant.c (find_invariant_insn): Likewise.
33671 * lra-constraints.c (curr_insn_transform): Likewise.
33672 * optabs.c (prepare_cmp_insn): Likewise.
33673 * postreload.c (reload_combine_recognize_const_pattern):
33675 * reload.c (find_reloads): Likewise.
33676 (find_reloads_address_1): Likewise.
33677 * reorg.c (delete_scheduled_jump): Likewise.
33678 (steal_delay_list_from_target): Likewise.
33679 (steal_delay_list_from_fallthrough): Likewise.
33680 (try_merge_delay_insns): Likewise.
33681 (redundant_insn): Likewise.
33682 (fill_simple_delay_slots): Likewise.
33683 (fill_slots_from_thread): Likewise.
33684 (delete_computation): Likewise.
33685 (relax_delay_slots): Likewise.
33686 * sched-deps.c (sched_analyze_2): Likewise.
33687 * sched-rgn.c (add_branch_dependences): Likewise.
33689 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33691 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
33692 that is trivially ded on non cc0 targets.
33693 (simplify_set): Likewise.
33694 (mark_used_regs_combine): Likewise.
33695 * cse.c (new_basic_block): Likewise.
33696 (fold_rtx): Likewise.
33697 (cse_insn): Likewise.
33698 (cse_extended_basic_block): Likewise.
33699 (set_live_p): Likewise.
33700 * rtlanal.c (canonicalize_condition): Likewise.
33701 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
33703 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33705 * conditions.h: Define macros even if HAVE_cc0 is undefined.
33706 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
33707 * final.c: Likewise.
33708 * jump.c: Likewise.
33709 * recog.c: Likewise.
33710 * recog.h: Declare functions even when HAVE_cc0 is undefined.
33711 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
33713 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33715 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
33716 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
33717 * builtins.c (expand_builtin): Remove check if
33718 EH_RETURN_DATA_REGNO is defined.
33719 * df-scan.c (df_bb_refs_collect): Likewise.
33720 (df_get_exit_block_use_set): Likewise.
33721 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
33722 * ira-lives.c (process_bb_node_lives): Likewise.
33723 * lra-lives.c (process_bb_lives): Likewise.
33725 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
33727 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
33728 FIRST_PSEUDO_REG): New.
33729 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
33730 (ARG_POINTER_REGNUM): Define to ARGP_REG.
33731 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
33732 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
33733 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
33734 (FIRST_INT_REG): New.
33735 (LAST_INT_REG): New.
33736 (FIRST_*_REG): Define using *_REG.
33737 (LAST_*_REG): Ditto.
33738 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
33739 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
33740 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
33742 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33744 * expmed.c: (synth_mult): Only assume overlapping
33745 shift with previous steps in alg_sub_t_m2 case.
33747 2015-04-21 Richard Biener <rguenther@suse.de>
33749 PR tree-optimization/65650
33750 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
33751 transitions involving copies.
33752 (set_lattice_value): Adjust for copy lattice state.
33753 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
33754 if that doesn't dominate the merge point.
33755 (bit_value_unop): Adjust what we treat as varying mask.
33756 (bit_value_binop): Likewise.
33757 (bit_value_assume_aligned): Likewise.
33758 (evaluate_stmt): When we simplified to a SSA name record a copy
33759 instead of dropping to varying.
33760 (visit_assignment): Simplify.
33762 * gimple-match.h (gimple_simplify): Add another callback.
33763 * gimple-fold.c (fold_stmt_1): Adjust caller.
33764 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
33765 for the 2nd callback.
33766 * gimple-match-head.c (gimple_simplify): Add a callback that is
33767 used to valueize the stmt operands and use it that way.
33769 2015-04-21 Richard Biener <rguenther@suse.de>
33771 PR tree-optimization/65788
33772 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
33774 2015-04-21 Richard Biener <rguenther@suse.de>
33776 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
33777 vec_construct cost by vec_stmt_cost.
33779 2015-04-21 Richard Biener <rguenther@suse.de>
33781 * cfghooks.h (create_basic_block): Replace with two overloads
33782 for RTL and GIMPLE.
33783 (split_block): Likewise.
33784 * cfghooks.c (split_block): Rename to ...
33785 (split_block_1): ... this.
33786 (split_block): Add two type-safe overloads for RTL and GIMPLE.
33787 (split_block_after_labels): Call split_block_1.
33788 (create_basic_block): Rename to ...
33789 (create_basic_block_1): ... this.
33790 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
33791 (create_empty_bb): Call create_basic_block_1.
33792 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
33793 split_block_after_labels.
33794 * omp-low.c (expand_parallel_call): Likewise.
33795 (expand_omp_target): Likewise.
33796 (simd_clone_adjust): Likewise.
33797 * tree-chkp.c (chkp_get_entry_block): Likewise.
33798 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
33799 create_basic_block overload.
33800 (cgraph_node::expand_thunk): Likewise.
33801 * tree-cfg.c (make_blocks): Likewise.
33802 (handle_abnormal_edges): Likewise.
33803 * tree-inline.c (copy_bb): Likewise.
33805 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33807 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
33809 (*xor_one_cmplsidi3_ze): Likewise.
33811 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
33813 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
33814 use df_remove_problem rather than manually removing problems, leaving
33815 holes in df->problems_in_order[].
33817 2015-04-21 Tom de Vries <tom@codesourcery.com>
33819 PR tree-optimization/65802
33820 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
33822 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33824 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
33826 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
33827 at '.'. Assert that there's enough space for everything.
33829 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
33831 PR tree-optimization/64950
33833 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
33836 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
33839 2015-04-20 Shiva Chen <shiva0217@gmail.com>
33841 PR rtl-optimization/64916
33842 * cfgcleanup.c (values_equal_p): New function.
33843 (can_replace_by): Use it.
33845 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
33848 * doc/invoke.texi ([-Wnarrowing]): Update.
33850 2015-04-20 Jeff Law <law@redhat.com>
33852 PR tree-optimization/65658
33853 * tree-ssa-threadupdate.c (redirection_block_p): Remove
33854 redundant test for GIMPLE_ASSIGN in last change.
33856 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
33858 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
33859 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
33860 (legitimize_tls_address): Ditto.
33861 (ix86_expand_move): Ditto.
33862 (ix86_expand_binary_operator): Remove reload_in_progress checks.
33863 (ix86_expand_unary_operator): Ditto.
33864 * config/i386/predicates.md (index_register_operand): Ditto.
33866 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
33868 * reorg.c (try_merge_delay_insns): Improve correctness checking
33869 for targets with multiple delay slots.
33871 2015-04-20 Jeff Law <law@redhat.com>
33873 PR tree-optimization/65658
33874 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
33877 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
33879 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
33880 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
33883 2015-04-20 Jakub Jelinek <jakub@redhat.com>
33886 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
33888 2015-04-20 Richard Biener <rguenther@suse.de>
33890 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
33891 * gimple-fold.c (gimple_build_valueize): New function.
33892 (gimple_build): Always use gimple_build_valueize as valueize hook.
33894 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
33897 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
33898 and overwrite variable parts if <= 1/2 the elements are variable.
33900 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
33902 PR rtl-optimization/65805
33903 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
33904 Don't use difference of offset and previous offset if
33905 update_sp_offset is non-zero.
33906 (eliminate_regs_in_insn): Ditto.
33907 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
33908 lra_eliminate_regs_1 call.
33909 * lra-constraints.c (get_equiv_with_elimination): Ditto.
33911 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
33913 * hash-table.h: Remove version of hash_table that stored value_type *.
33914 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
33915 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
33916 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
33917 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
33918 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
33919 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
33920 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
33921 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
33922 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
33923 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
33924 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
33925 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
33926 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
33927 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
33928 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
33929 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
33931 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33932 Jakub Jelinek <jakub@redhat.com>
33935 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
33936 subsequent SH_NONE operand does not overwrite an existing *special
33938 (adjust_extract): Handle case where a vec_extract operation is
33939 wrapped in a PARALLEL.
33941 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
33944 * config/i386/i386.c (ix86_binds_local_p): Define only if
33945 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
33947 2015-04-17 Jeff Law <law@redhat.com>
33949 PR tree-optimization/47679
33950 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
33951 * tree-ssa-scopedtables.c: New file.
33952 * tree-ssa-scopedtables.h: New file.
33953 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
33954 (const_and_copies): Change name/type.
33955 (record_const_or_copy): Move into tree-ssa-scopedtables.c
33956 (record_const_or_copy_1): Similarly.
33957 (restore_vars_to_original_value): Similarly.
33958 (pass_dominator::execute): Create and destroy const_and_copies table.
33959 (thread_across_edge): Update passing of const_and_copies.
33960 (record_temporary_equivalence): Use method calls rather than
33961 manipulating const_and_copies directly.
33962 (record_equality, cprop_into_successor_phis): Similarly.
33963 (dom_opt_dom_walker::before_dom_children): Similarly.
33964 (dom_opt_dom_walker::after_dom_children): Similarly.
33965 (eliminate_redundant_computations): Similarly.
33966 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
33967 (record_temporary_equivalence): Likewise.
33968 (invalidate_equivalences): Likewise.
33969 (record_temporary_equivalences_from_phis): Update due to type
33970 change of const_and_copies. Use method calls rather than
33971 manipulating the stack directly.
33972 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
33973 (thread_through_normal_block, thread_across_edge): Likewise.
33974 (thread_across_edge): Likewise.
33975 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
33976 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
33978 (identify_jump_threads): Update due to type change of equiv_stack.
33979 (finalize_jump_threads): Delete the equiv_stack when complete.
33981 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
33983 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33984 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
33985 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
33987 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
33990 * config.gcc: Exit with a comment when we do not have a major version
33991 number for the FreeBSD target.
33993 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33996 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
33997 maybe_allows_mem bitfields.
33998 (maybe_allows_none_start, maybe_allows_none_end,
33999 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
34000 maybe_allows_mem_end): New variables.
34001 (compute_maybe_allows): New function.
34002 (add_constraint): Use it to initialize maybe_allows_reg and
34003 maybe_allows_mem fields.
34004 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
34005 is_address constraints such that those that allow neither mem nor
34006 reg come first, then those that only allow reg but not mem, then
34007 those that only allow mem but not reg, then the rest.
34008 (write_allows_reg_mem_function): New function.
34009 (write_tm_preds_h): Call it.
34010 * stmt.c (parse_output_constraint, parse_input_constraint): Use
34011 the generated insn_extra_constraint_allows_reg_mem function
34012 instead of always setting *allows_reg = true; *allows_mem = true;
34013 for unknown extra constraints.
34015 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
34018 * output.h (default_binds_local_p_3): New.
34019 * varasm.c (default_binds_local_p_3): Make it public. Take an
34020 argument to indicate if common symbol may be local. If common
34021 symbol may be local, treat non-external variable as defined
34023 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
34024 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
34025 * config/i386/i386.c (ix86_binds_local_p): New.
34026 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
34027 ix86_binds_local_p.
34029 2015-04-17 Jakub Jelinek <jakub@redhat.com>
34032 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
34033 trying mem_loc_descriptor on XEXP (rtl, 0).
34035 2015-04-17 Martin Liska <mliska@suse.cz>
34037 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
34038 Release symbol_compare_collection.
34039 * ipa-reference.c: Add TODO that a vector should be released.
34041 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
34044 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
34045 to new AVR-LibC file layout (bug #44574).
34046 (*avrlibc_devicelib): Same.
34047 * config/avr/avr-mcus.def: Adjust comments.
34048 * config/avr/avr.opt (nodevicelib): Adjust help.
34050 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
34052 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
34054 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
34057 * gimplify.c (gimplify_init_constructor): Always emit a
34058 side-effecting constructor.
34060 2015-04-17 Tom de Vries <tom@codesourcery.com>
34062 PR tree-optimization/64950
34063 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
34064 in cfun->curr_properties.
34065 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
34066 if we generate an IFN_VA_ARG.
34067 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
34068 function if PROP_gimple_lva is not set in src function.
34070 2015-04-17 Tom de Vries <tom@codesourcery.com>
34071 Michael Matz <matz@suse.de>
34073 PR tree-optimization/64950
34074 * gimple-iterator.c (update_modified_stmts): Remove static.
34075 * gimple-iterator.h (update_modified_stmts): Declare.
34076 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
34077 (gimplify_va_arg_internal): New function.
34078 (gimplify_va_arg_expr): Use IFN_VA_ARG.
34079 * gimplify.h (gimplify_va_arg_internal): Declare.
34080 * internal-fn.c (expand_VA_ARG): New unreachable function.
34081 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
34082 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
34083 (expand_ifn_va_arg): New function.
34084 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
34085 (pass_stdarg::execute): Call expand_ifn_va_arg.
34086 (pass_data_lower_vaarg): New pass_data.
34087 (pass_lower_vaarg): New gimple_opt_pass.
34088 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
34089 (make_pass_lower_vaarg): New function.
34090 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
34091 properties_required field.
34092 * passes.def (all_passes): Add pass_lower_vaarg.
34093 * tree-pass.h (PROP_gimple_lva): Add define.
34094 (make_pass_lower_vaarg): Declare.
34096 2015-04-17 Tom de Vries <tom@codesourcery.com>
34098 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
34099 * calls.c (call_expr_flags): Same.
34101 2015-04-17 Tom de Vries <tom@codesourcery.com>
34103 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
34104 (pass_stdarg::execute): ... here.
34106 2015-04-17 Tom de Vries <tom@codesourcery.com>
34107 Michael Matz <matz@suse.de>
34109 * tree-cfg.c (make_blocks_1): Factor out of ...
34110 (make_blocks): ... here.
34111 (make_edges_bb): Factor out of ...
34112 (make_edges): ... here.
34113 (gimple_find_sub_bbs): New function.
34114 * tree-cfg.h (gimple_find_sub_bbs): Declare.
34116 2015-04-17 Tom de Vries <tom@codesourcery.com>
34118 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
34120 2015-04-17 Yury Gribov <y.gribov@samsung.com>
34122 * asan.c (set_sanitized_sections): New function.
34123 (section_sanitized_p): Ditto.
34124 (asan_protect_global): Optionally sanitize user-defined
34126 * asan.h (set_sanitized_sections): Declare new function.
34127 * common.opt (fsanitize-sections): New option.
34128 * doc/invoke.texi (-fsanitize-sections): Document new option.
34129 * opts-global.c (handle_common_deferred_options): Handle new
34132 2015-04-17 Jakub Jelinek <jakub@redhat.com>
34135 * dwarf2out.c (loc_list_from_tree): Return NULL
34136 for DEBUG_EXPR_DECL.
34138 2015-04-17 Christian Bruel <christian.bruel@st.com>
34140 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
34143 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
34145 * ira-color.c (setup_left_conflict_sizes_p): Do not process
34146 node itself when computing left conflict subnode size.
34148 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
34150 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
34151 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
34152 *fop_<mode>_1_sse using enabled attribute. Use
34153 register_mixssei387nonimm_operand operand 1 predicate. Change
34154 alternative 3 constraints from "x" to "v".
34156 2015-04-16 Richard Biener <rguenther@suse.de>
34158 PR tree-optimization/65774
34159 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
34160 bit-value tracking on.
34162 2015-04-16 Richard Biener <rguenther@suse.de>
34164 PR tree-optimization/64277
34165 * tree-vrp.c (check_array_ref): Fix anti-range handling,
34166 simplify upper bound handling.
34167 (search_for_addr_array): Simplify.
34168 (check_array_bounds): Handle ADDR_EXPRs here.
34169 (check_all_array_refs): Simplify.
34171 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
34173 * config/i386/i386.c (print_reg): Rewrite function.
34175 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34177 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
34178 Invert the condition.
34180 2015-04-16 Renlin Li <renlin.li@arm.com>
34182 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
34183 simplifications for UNSIGNED_FLOAT.
34185 2015-04-16 Nick Clifton <nickc@redhat.com>
34187 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
34189 (enum rl78_cpu_type): New.
34190 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
34191 (umulhi3_shift_virt): Remove m constraint from operand 1.
34192 (umulqihi3_virt): Likewise.
34193 * config/rl78/rl78.c (rl78_option_override): Add code to process
34194 -mcpu and -mmul options.
34195 (rl78_alloc_physical_registers): Add code to handle divhi and
34196 divsi valloc attributes.
34197 (set_origin): Likewise.
34198 * config/rl78/rl78.h (RL78_MUL_G14): Define.
34199 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
34200 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
34202 (ASM_SPEC): Pass -mcpu on to assembler.
34203 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
34204 (mulqi3_rl78): Likewise.
34205 (mulhi3_g13): Likewise.
34206 (mulhi3): Generate the G13 or G14 versions of the insn directly.
34207 (mulsi3): Likewise.
34208 (mulhi3_g14): Add clobbers of AX and BC.
34209 (mulsi3_g14): Likewise.
34210 (mulsi3_g13): Likewise.
34211 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
34212 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
34213 * config/rl78/rl78.opt (mmul): Initialise value to
34215 (mcpu): New option.
34216 (m13, m14, mrl78): New option aliases.
34217 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
34218 (MULTILIB_DIRNAMES): Add g13 and g14.
34219 * doc/invoke.texi: Document -mcpu and -mmul options.
34221 2015-04-16 Richard Biener <rguenther@suse.de>
34223 * tree-ssa-ccp.c (likely_value): See if we have operands that
34224 are marked as never simulate again and return CONSTANT in this
34226 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
34227 not have any operands that will be simulated again as
34228 not being simulated again.
34230 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
34232 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
34233 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
34234 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
34236 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
34238 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
34239 *float<SWI48:mode><MODEF:mode>2_sse.
34240 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
34242 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
34245 2015-04-15 Tom de Vries <tom@codesourcery.com>
34248 * function.c (push_dummy_function): New function.
34249 (init_dummy_function_start): Use push_dummy_function.
34250 (pop_dummy_function): New function. Factored out of ...
34251 (expand_dummy_function_end): ... here.
34252 * function.h (push_dummy_function, pop_dummy_function): Declare.
34253 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
34254 pop_dummy_function.
34255 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
34257 2015-04-15 Jeff Law <law@redhat.com>
34259 PR tree-optimization/47679
34260 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
34261 need for forward declaration in upcoming changes.
34262 (record_conditions, record_edge_info): Likewise.
34264 PR rtl-optimization/42522
34265 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
34266 SIGN_EXTRACT as a whole object rather than simplifying
34269 2015-04-15 Jakub Jelinek <jakub@redhat.com>
34272 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
34273 and GIMPLE_PREDICT use break instead of return true. For
34274 GIMPLE_EH_DISPATCH, compare dispatch region.
34276 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
34278 * doc/extend.texi (__sync Builtins): Simplify some text. Update
34279 details about the implementation. Make clear preference for
34280 __atomic builtins. Reduce possibility of future change.
34282 2015-04-15 Nick Clifton <nickc@redhat.com>
34284 * config/rx/rx.opt (mallow-string-insns): New option.
34285 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
34286 builtin if string instructions are denied.
34287 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
34288 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
34290 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
34291 * config/rx/rx.md (movstr): Enable pattern only if string
34292 instructions are allowed.
34293 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
34294 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
34295 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
34296 (MULTILIB_DIRNAMES): Add no-strings.
34297 * doc/invoke.texi: Document -mno-allow-string-insns.
34299 2015-04-15 Alan Modra <amodra@gmail.com>
34303 PR middle-end/36043
34304 * calls.c (load_register_parameters): Don't load past end of
34305 mem unless suitably aligned.
34307 2015-04-15 Nick Clifton <nickc@redhat.com>
34309 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
34310 decrement instruction as being frame related.
34311 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
34313 If zero extending a function address enclose the operation in
34315 (rl78_preferred_reload_class): New function.
34316 (TARGET_PREFERRED_RELOAD_CLASS): Define.
34317 * config/rl78/rl78.md: Remove useless constraints in expanders.
34318 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
34319 (mulhi3_rl78): Likewise.
34320 (mulhi3_g13): Likewise.
34321 (mulsi3_rl78): Likewise.
34322 (es_addr): Move to before the multiply patterns.
34324 2015-04-15 Alan Modra <amodra@gmail.com>
34326 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
34327 and sequence_stack. Add seq.
34328 (seq_stack): Delete.
34329 * function.c (prepare_function_start): Don't access x_last_insn.
34330 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
34331 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
34332 * emit_rtl.c (start_sequence, push_topmost_sequence,
34333 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
34334 sequence accessors.
34335 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
34336 remove_insn): Likewise. Simplify.
34337 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
34338 and pop_topmost_sequence.
34339 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
34341 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
34343 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
34346 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
34349 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
34351 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
34352 (LEGACY_INT_REGNO_P): Ditto.
34353 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
34354 (ANY_MASK_REG_P): Remove.
34355 (BND_REG_P): Rename from ANY_BND_REG_P.
34356 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
34357 legacy integer registers. Do not handle MMX_REG_P in a special way.
34358 Merge 64byte and 32byte SSE handling.
34360 2015-04-14 Nick Clifton <nickc@redhat.com>
34362 * expr.c (expand_assignment): Force an address offset computation
34363 into a register before changing its mode.
34364 (expand_expr_real_1): Likewise.
34366 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
34368 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
34369 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
34370 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
34371 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
34372 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
34373 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
34374 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
34375 and __aarch64_vget_lane_any.
34377 2015-04-14 Jakub Jelinek <jakub@redhat.com>
34379 PR rtl-optimization/65761
34380 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
34381 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
34383 2015-04-14 Richard Biener <rguenther@suse.de>
34385 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
34386 (graphite_can_represent_scev): Use POINTER_TYPE_P.
34388 2015-04-14 Richard Biener <rguenther@suse.de>
34390 PR tree-optimization/65758
34391 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
34393 (ccp_lattice_meet): Likewise.
34394 (bit_value_unop): Likewise.
34395 (bit_value_binop): Likewise.
34396 (bit_value_assume_aligned): Likewise.
34398 2015-04-14 Christian Bruel <christian.bruel@st.com>
34400 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
34403 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
34405 PR tree-optimization/63387
34406 * match.pd ((x unord x) | (y unord y) -> (x unord y),
34407 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
34409 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
34411 * config/i386/predicates.md (any_QIreg_operand): Rename from
34412 q_regs_operand. Do not process subregs.
34413 (QIreg_operand): Use QI_REGNO_P predicate.
34414 (ext_QIreg_operand): Ditto.
34415 (ext_register_operand): Ditto.
34416 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
34417 (AND splitters): Ditto.
34418 (AND with -65536 splitter): Add SWI48 mode for operand 0.
34419 (AND with -256 splitter): Use any_QIreg_operand predicate and
34420 SWI248 mode for operand 0.
34421 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
34422 mode for operand 0.
34423 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
34425 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
34427 * doc/plugins.texi: Rewrite first introductory paragraph.
34429 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34431 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
34432 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
34434 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34436 * ipa-profie.c (ipa_profile): Check number of parameters
34437 and possible polymorphic call targets before
34440 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
34442 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
34443 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
34445 2015-04-13 Richard Biener <rguenther@suse.de>
34447 PR tree-optimization/65204
34448 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
34449 takens for bit-CCP.
34451 2015-04-13 Richard Biener <rguenther@suse.de>
34454 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
34455 and cond_not_taken_branch_cost to 4 and 2.
34456 (bdver2_cost): Likewise.
34457 (bdver3_cost): Likewise.
34458 (bdver4_cost): Likewise.
34460 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34462 * hash-table.h (hash_table constructor): Add mem stats.
34463 (alloc_entries): Likewise.
34465 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34467 * ipa-cp.c (ipcp_driver): Relase prev_edge.
34468 * passes.c (execute_one_pass): Only add transform if pass has one.
34470 2015-04-12 Joseph Myers <joseph@codesourcery.com>
34472 * config/i386/i386.c (ix86_option_override_internal): Don't set
34473 -fprefetch-loop-arrays if optimizing for size.
34475 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34476 Gerald Pfeifer <gerald@pfeifer.com>
34478 * doc/contrib.texi (Contributors): Add Martin Jambor and
34481 2015-04-12 Jakub Jelinek <jakub@redhat.com>
34483 * BASE-VER: Set to 6.0.0.
34485 PR tree-optimization/65747
34486 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
34487 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
34489 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
34491 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
34492 sentence. Improve grammar.
34494 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
34496 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
34498 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
34501 * ipa-inline-transform.c (speculation_removed): Remove static var.
34502 (check_speculations): New function.
34503 (clone_inlined_nodes): Do not check spculations.
34504 (inline_call): Call check_speculations.
34505 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
34506 consider non-invariants.
34508 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
34509 Martin Liska <mliska@suse.cz>
34512 * ipa-icf.c (sem_item::compare_cgraph_references): function and
34513 variable can not match.
34514 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
34515 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
34517 2015-04-11 Jakub Jelinek <jakub@redhat.com>
34519 PR tree-optimization/65735
34520 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
34521 Remove visited_phis argument, add visited_bbs, avoid recursing into the
34522 same bb rather than just into the same phi node.
34523 (thread_through_normal_block): Adjust caller.
34525 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
34527 * doc/contrib.texi (Contributors): Add Ira Rosen.
34529 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
34531 * gcov.c (find_source): Fix miswording in error message.
34532 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
34533 (ix86_expand_sse_comi_round): Fix typo in error message.
34535 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
34537 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
34539 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
34541 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
34543 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34546 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
34547 Print bad_spills_num and insn_pseudos_num.
34549 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34552 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
34553 when creating +1 values for SImode.
34555 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34558 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
34561 2015-04-10 Jakub Jelinek <jakub@redhat.com>
34562 Iain Sandoe <iain@codesourcery.com>
34565 * configure: Regenerate.
34567 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34570 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
34572 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
34574 * doc/contrib.texi (Contributors): Add John Marino.
34576 2015-04-09 Jakub Jelinek <jakub@redhat.com>
34578 PR tree-optimization/65709
34579 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
34580 TREE_TYPE (TREE_TYPE (t)).
34582 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
34585 * lra-int.h (lra_bad_spill_regno_start): New.
34586 * lra.c (lra_bad_spill_regno_start): New.
34587 (lra): Set up lra_bad_spill_regno_start. Set up
34588 lra_constraint_new_regno_start unconditionally.
34589 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
34592 2015-04-09 Marek Polacek <polacek@redhat.com>
34593 Jakub Jelinek <jakub@redhat.com>
34595 PR middle-end/65554
34596 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
34597 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
34600 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
34602 PR rtl-optimization/65693
34603 * combine.c (is_parallel_of_n_reg_sets): Move outside of
34606 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
34609 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
34610 device specs file if "device-specs%s" didn't resolve to a path.
34612 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34615 * config/i386/i386.c (fixup_modeless_constant): New.
34616 (ix86_expand_args_builtin): Fixup modeless constant operand.
34617 (ix86_expand_round_builtin): Ditto.
34618 (ix86_expand_special_args_builtin): Ditto.
34619 (ix86_expand_builtin): Ditto.
34621 2015-04-09 Jakub Jelinek <jakub@redhat.com>
34624 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
34625 any pow2 integer in between 2 and 0x80000000U inclusive.
34627 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
34629 PR rtl-optimization/65693
34630 * combine.c (is_parallel_of_n_reg_sets): Change first argument
34631 from an rtx_insn * to an rtx.
34632 (try_combine): Adjust both callers. Use it once more.
34634 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34636 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
34637 (chkp_make_static_const_bounds): Search existing
34638 symbol by assembler name. Use make_decl_one_only.
34639 (chkp_get_zero_bounds_var): Remove node search which
34640 is now performed in chkp_make_static_const_bounds.
34641 (chkp_get_none_bounds_var): Likewise.
34643 2015-04-08 Michael Witten <mfwitten@gmail.com>
34645 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
34648 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34650 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
34652 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
34654 * doc/extend.texi (__sync Builtins): Fix grammar.
34656 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34658 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
34660 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34662 * varasm.c (emit_local): Move definition of align.
34664 2015-04-08 Julian Brown <julian@codesourcery.com>
34666 * config/nvptx/mkoffload.c (process): Support variable mapping.
34668 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
34670 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
34672 (alpha_write_one_linkage): Correct typo.
34674 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34676 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
34678 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
34680 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
34682 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34684 * tree-chkp.h (chkp_insert_retbnd_call): New.
34685 * tree-chkp.c (chkp_insert_retbnd_call): New.
34686 * ipa-split.c (insert_bndret_call_after): Remove.
34687 (split_function): Use chkp_insert_retbnd_call.
34688 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
34689 bounds for instrumented functions.
34691 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
34694 * calls.c (initialize_argument_information): When producing tail
34695 call also turn SSA_NAMES passed by references to original PARM_DECLs
34697 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
34700 * lra-remat.c (do_remat): Process input and non-input insn
34701 registers separately.
34703 2015-04-07 Jakub Jelinek <jakub@redhat.com>
34706 * valtrack.c (debug_lowpart_subreg): New function.
34707 (dead_debug_insert_temp): Use it.
34709 PR middle-end/65680
34710 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
34711 into signed HOST_WIDE_INT the same as negative bit_offset.
34713 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
34715 * ipa-comdats.c (ipa_comdats): Visit all thunks
34716 to set proper comdat group.
34718 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34721 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
34722 on constants for NEON VSTRUCT modes.
34724 2015-04-07 Jakub Jelinek <jakub@redhat.com>
34725 Iain Sandoe <iain@codesourcery.com>
34728 * configure: Regenerate.
34730 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34733 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
34734 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
34735 that LFD is used to load double constants instead of LFS. Add
34736 defaults for all costs structures. Add comments for missing
34737 initialization fields.
34738 (size32_cost): Likewise.
34739 (size64_cost): Likewise.
34740 (rs64a_cost): Likewise.
34741 (mpccore_cost): Likewise.
34742 (ppc403_cost): Likewise.
34743 (ppc405_cost): Likewise.
34744 (ppc440_cost): Likewise.
34745 (ppc476_cost): Likewise.
34746 (ppc601_cost): Likewise.
34747 (ppc603_cost): Likewise.
34748 (ppc604_cost): Likewise.
34749 (ppc604e_cost): Likewise.
34750 (ppc620_cost): Likewise.
34751 (ppc630_cost): Likewise.
34752 (ppccell_cost): Likewise.
34753 (ppc750_cost): Likewise.
34754 (ppc7450_cost): Likewise.
34755 (ppc8540_cost): Likewise.
34756 (ppce300c2c3_cost): Likewise.
34757 (ppce500mc_cost): Likewise.
34758 (ppce500mc64_cost): Likewise.
34759 (ppce5500_cost): Likewise.
34760 (ppce6500_cost): Likewise.
34761 (titan_cost): Likewise.
34762 (power4_cost): Likewise.
34763 (power6_cost): Likewise.
34764 (power7_cost): Likewise.
34765 (power8_cost): Likewise.
34766 (ppca2_cost): Likewise.
34767 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
34769 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
34770 instead of XXLOR to copy SFmode to clear out dirty bits created
34771 when SFmode denormals are generated.
34772 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
34773 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
34775 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
34777 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
34778 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
34779 * config/aarch64/aarch64-tune.md: Regenerate.
34781 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
34783 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
34784 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
34785 * config/arm/arm-cores.def (exynos-m1): New core.
34786 * config/arm/arm-tune.md: Regenerate.
34787 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
34788 * config/arm/bpabi.h: Likewise.
34790 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
34792 * ipa-cp (set_single_call_flag): Remove too
34793 restrictive assert.
34795 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
34797 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
34798 GOMP_offload_unregister from the destructor.
34800 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
34802 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
34803 flags for instrumentation thunk.
34804 (chkp_produce_thunks): Likewise.
34806 2015-04-05 Martin Liska <mliska@suse.cz>
34809 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
34810 has computed data structure.
34811 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34813 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
34815 * invoke.texi (inline-unit-growth): Increase growth to 20%
34816 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
34818 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
34821 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
34823 (lra_rematerialization_iter): New.
34824 * lra.c (lra): Initialize lra_rematerialization_iter.
34825 Stop updating lra_constraint_new_regno_start after switching of
34826 inheritance and rematerialization.
34827 * lra-remat.c (lra_rematerialization_iter): New.
34828 (lra_remat): Add printing pass iteration. Do rematerialization
34829 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
34831 2015-04-04 Richard Biener <rguenther@suse.de>
34833 PR tree-optimization/64909
34834 PR tree-optimization/65660
34835 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
34836 to take a cost vector for scalar iteration cost.
34837 (vect_get_single_scalar_iteration_cost): Likewise.
34838 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
34839 Compute the scalar iteration cost into a cost vector.
34840 (vect_get_known_peeling_cost): Use the scalar cost vector to
34841 account for the cost of the peeled iterations.
34842 (vect_estimate_min_profitable_iters): Likewise.
34843 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
34846 2015-04-04 Alan Modra <amodra@gmail.com>
34850 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
34851 0.0 constant unless TARGET_VSX.
34852 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
34855 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34858 * ipa-inline-transform.c (inline_call): Skip sanity check to work
34861 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34864 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
34865 speculative indirect edges to avoid ordering issue.
34867 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34870 * ipa-inline.c (edge_badness): Add combined size to the denominator.
34872 2015-04-03 Jakub Jelinek <jakub@redhat.com>
34874 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
34875 TYPE_ARTIFICIAL on the .omp_data* types.
34877 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34879 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
34880 instrumentation thunks.
34882 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34884 * config/i386/i386.c (ix86_expand_call): Avoid nested
34885 PARALLEL in returned call value.
34887 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34889 * lto-cgraph.c (input_cgraph_1): Always link instrumented
34890 assembler name with original one.
34892 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34894 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
34896 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34898 Revert parts of r216820.
34899 * config/i386/i386.md (movqi_internal): Correct type calculation
34900 for alternatives 3 and 5.
34902 2015-04-02 Jakub Jelinek <jakub@redhat.com>
34904 PR preprocessor/61977
34905 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
34906 predefine __vector/__bool/__pixel macros nor context sensitive
34907 macros for CLK_ASM.
34908 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
34910 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
34912 * config/pa/pa.c (pa_output_move_double): Directly handle register
34913 indexed memory operand. Simplify handling of scaled register indexed
34916 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34919 * config/i386/linux-common.h (MPX_SPEC): New.
34920 (CHKP_SPEC): Add MPX_SPEC.
34921 * doc/invoke.texi (-fcheck-pointer-boudns): Document
34922 possible issues with '-z bndplt' support in linker.
34924 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34926 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
34927 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
34928 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
34929 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
34930 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
34932 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
34934 * config/i386/sync.md (UNSPEC_MOVA): Remove.
34935 (atomic_load<mode>): Change operand 0 predicate to
34936 nonimmediate_operand and fix up the destination when needed.
34938 (atomic_loaddi_fpu): Use UNSPEC_LDA.
34939 (atomic_store<mode>): Change operand 1 predicate to
34940 nonimmendate_operand and move the source to register when needed.
34942 (atomic_store<mode>_1): Use UNSPEC_STA.
34943 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
34944 Fix moves from memory operand. Use UNSPEC_STA.
34946 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
34948 * expmed.c (strict_volatile_bitfield_p): Check that the access will
34949 not cross a MODESIZE boundary.
34950 (store_bit_field, extract_bit_field): Added assertions in the
34951 strict volatile bitfields code path.
34953 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
34956 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
34957 Increase args array size by one to avoid buffer overflow.
34959 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
34961 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
34963 * ipa-inline.c (edge_badness): Add wrapper penalty.
34964 (sum_callers): Move up.
34965 (inline_small_functions): Set single_caller.
34966 * ipa-inline.h (inline_summary): Add single_caller.
34967 * ipa-split.c (split_function): Set split_part.
34968 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
34969 * cgraph.h (cgraph_node): Add split_part.
34971 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
34974 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
34975 Do not split operands 0 and operands 2 to halfmode.
34976 (atomic_compare_and_swap<mode>): Update for
34977 atomic_compare_and_swap<dwi>_doubleword changes.
34979 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
34981 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
34982 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
34983 no caching is done.
34985 2015-03-31 Martin Liska <mliska@suse.cz>
34988 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
34989 has already filled up function summary.
34990 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34992 2015-03-31 Richard Biener <rguenther@suse.de>
34994 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
34997 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
34999 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
35001 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
35002 (s390_asm_output_function_label): Adapt to new signature of
35003 s390_function_num_hotpatch_hw
35004 Optimise the code generating assembler output.
35005 Add comments to assembler file.
35007 2015-03-31 Richard Biener <rguenther@suse.de>
35009 PR middle-end/65626
35010 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
35011 of the noreturn call so it is last and cleanup_control_flow_bb
35012 can do the CFG part.
35014 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
35017 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
35018 same_comdat_group for external symbols.
35019 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
35020 infinite same_comdat_group traversal loop.
35022 2015-03-31 Jakub Jelinek <jakub@redhat.com>
35025 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
35026 automatically to $headers.
35028 2015-03-30 Jakub Jelinek <jakub@redhat.com>
35031 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
35032 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
35034 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
35036 * ipa-prop.c (param_type_may_change_p): Likewise.
35037 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
35038 (remove_unused_scope_block_p): Add in_ctor_dtor_block
35039 argument. Before inlining, preserve
35040 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
35041 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
35043 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
35045 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
35048 * ipa-inline.c (edge_badness): Base denominator on callee's
35051 2015-03-27 Martin Jambor <mjambor@suse.cz>
35054 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
35055 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
35056 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
35057 node_calling_single_call.
35058 * ipa-cp.c (count_callers): New function.
35059 (set_single_call_flag): Likewise.
35060 (initialize_node_lattices): Count callers and set single_flag_call if
35062 (incorporate_penalties): New function.
35063 (good_cloning_opportunity_p): Use it, dump new flags.
35064 (propagate_constants_topo): Set node_within_scc flag if appropriate.
35065 * doc/invoke.texi (ipa-cp-recursion-penalty,
35066 ipa-cp-single-call-pentalty): Document.
35068 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
35071 * symtab.c (symtab_node::get_partitioning_class): Register vars
35073 * varpool.c (symbol_table::output_variables) Do not assemble unefined
35074 decls for non-symbols.
35076 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
35079 * output.h (default_binds_local_p_2): New.
35080 * varasm.c (default_binds_local_p_2): Renamed to ...
35081 (default_binds_local_p_3): This. Don't return true on protected
35082 data symbol if protected data may be external.
35083 (default_binds_local_p): Use default_binds_local_p_3.
35084 (default_binds_local_p_1): Likewise.
35085 (default_binds_local_p_2): New.
35086 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
35087 default_binds_local_p_2 if TARGET_MACHO is undefined.
35089 2015-03-27 Jakub Jelinek <jakub@redhat.com>
35092 * config/i386/i386.c (legitimize_pic_address): If base
35093 is SYMBOL_REF or LABEL_REF using %rip addressing, force
35094 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
35096 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
35099 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
35102 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
35105 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
35106 of optimized out indirect call.
35107 (redirect_to_unreachable): Always build symbol table node for
35108 BUILT_IN_UNREACHABLE
35110 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
35113 * ira-costs.c (record_reg_classes): Process all constraint string
35116 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
35118 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
35122 * config/c6x/constraints.md (S3): New constraint.
35123 * config/c6x/c6x.md (real_jump): Use it.
35125 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35127 PR middle-end/65595
35128 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
35129 do redirection if the call is not optimized out.
35131 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
35134 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
35135 (fchkp-check-incomplete-type): Add LTO.
35136 (fchkp-zero-input-bounds-for-main): Likewise.
35137 (fchkp-first-field-has-own-bounds): Likewise.
35138 (fchkp-narrow-bounds): Likewise.
35139 (fchkp-narrow-to-innermost-array): Likewise.
35140 (fchkp-use-static-bounds): Likewise.
35141 (fchkp-use-static-const-bounds): Likewise.
35142 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35144 2015-03-27 Marek Polacek <polacek@redhat.com>
35146 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
35148 2015-03-27 Marek Polacek <polacek@redhat.com>
35151 * ubsan.c (ubsan_create_edge): New function.
35152 (instrument_bool_enum_load): Call it.
35153 (instrument_nonnull_arg): Likewise.
35154 (instrument_nonnull_return): Likewise.
35155 (instrument_object_size): Likewise.
35157 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35159 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
35162 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35165 * lto-streamer.h (class lto_location_cache): New.
35166 (struct data_in): Add location_cache.
35167 (lto_input_location): Update prototype.
35168 (stream_input_location_now): New.
35169 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
35170 pointer to location.
35171 (stream_input_location): Update.
35172 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
35173 (warn_odr): Apply location cache before warning.
35174 (lto_input_location): Update prototype.
35175 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
35176 Use stream_input_location_now.
35177 * lto-streamer-in.c (lto_location_cache::current_cache): New static
35179 (lto_location_cache::cmp_loc): New function.
35180 (lto_location_cache::apply_location_cache): New function.
35181 (lto_location_cache::accept_location_cache): New function.
35182 (lto_location_cache::revert_location_cache): New function.
35183 (lto_location_cache::input_location): New function.
35184 (lto_input_location): Do location caching.
35185 (stream_input_location_now): New function.
35186 (input_eh_region, input_struct_function_base): Use
35187 stream_input_location_now.
35188 (lto_data_in_create): use new.
35189 (lto_data_in_delete): Use delete.
35190 * tree-streamer-in.c (unpack_ts_block_value_fields,
35191 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
35192 lto_input_ts_exp_tree_pointers): Update for cached location api.
35194 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35197 * passes.def: Add pass_nothrow.
35198 * ipa-pure-const.c: (pass_data_nothrow): New.
35199 (pass_nothrow): New.
35200 (pass_nothrow::execute): New.
35201 (make_pass_nothrow): New.
35202 * tree-pass.h (make_pass_nothrow): Declare.
35204 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35206 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
35207 edge to change by speculation resolution or redirection.
35208 (edge_set_predicate): Likewise.
35209 (inline_summary_t::duplicate): Likewise.
35210 (remap_edge_summaries): Likewise.
35212 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35214 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
35216 (can_inline_edge_p): Relax option matching for always inline functions.
35218 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
35221 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
35222 Check operand 4 and operand 0 for equality.
35223 (avx512f_vextract<shuffletype>32x4_1_maskm):
35224 Check operand 6 and operand 0 for equality.
35225 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
35227 (vec_extract_hi_<mode>_maskm): Ditto.
35229 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35231 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
35232 dead calls back to live.
35233 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
35235 (cgraph_node::verify_node): ... here; verify only callee edges,
35237 * cif-code.def (CILK_SPAWN): New code.
35239 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35241 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
35242 (edge_set_predicate): Use it to mark unreachable edges.
35243 (inline_summary_t::duplicate): Remove unnecesary code.
35244 (remap_edge_summaries): Likewise.
35245 (dump_inline_summary): Report contains_cilk_spawn.
35246 (compute_inline_parameters): Compute contains_cilk_spawn.
35247 (inline_read_section, inline_write_summary): Stream
35248 contains_cilk_spawn.
35249 * ipa-inline.c (can_inline_edge_p): Do not touch
35250 DECL_STRUCT_FUNCTION that may not be available;
35251 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
35252 remove check for callee_fun->can_throw_non_call_exceptions and
35253 replace it by optimization attribute check; check for flag_exceptions.
35254 * ipa-inline-transform.c (inline_call): Maintain
35255 DECL_FUNCTION_PERSONALITY
35256 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
35258 2015-03-26 Jakub Jelinek <jakub@redhat.com>
35260 PR tree-optimization/65551
35261 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
35262 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
35264 2015-03-26 Richard Biener <rguenther@suse.de>
35266 PR middle-end/65555
35267 * tree-cfg.c (verify_gimple_call): Do not require a call to
35268 have no LHS if it wasn't recognized as control altering yet.
35270 2015-03-26 Jakub Jelinek <jakub@redhat.com>
35272 PR tree-optimization/64715
35273 * passes.def: Add another instance of pass_object_sizes before ccp1.
35274 * tree-object-size.c (pass_object_sizes::execute): In
35275 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
35276 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
35277 __bos result and the computed constant. Remove redundant
35278 checks, obsoleted by gimple_call_builtin_p test.
35280 * var-tracking.c (variable_tracking_main_1): Don't track
35281 variables for targetm.no_register_allocation targets.
35283 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
35285 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
35286 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
35288 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
35291 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
35292 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
35293 0.0 is correctly setup.
35294 (extenddftf2_internal): Likewise.
35296 2015-03-25 Sebastian Pop <s.pop@samsung.com>
35298 PR tree-optimization/65177
35299 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
35301 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
35302 edges not adjacent on the path to the original code.
35304 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
35307 * doc/install.texi (Building a native compiler): Document new
35308 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
35309 configuration assumes that the host supports the linker plugin.
35311 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
35314 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
35315 chain for generated call.
35317 2015-03-25 Richard Biener <rguenther@suse.de>
35319 * passes.c (pass_manager::execute_early_local_passes): Guard
35320 execution of pass_chkp_instrumentation_passes with
35321 flag_check_pointer_bounds.
35322 (pass_chkp_instrumentation_passes::gate): Likewise.
35324 2015-03-25 Martin Liska <mliska@suse.cz>
35326 PR tree-optimization/65538
35327 * symbol-summary.h (function_summary::~function_summary):
35328 Relese memory for allocated summaries.
35329 (function_summary::release): New function.
35331 2015-03-25 Jakub Jelinek <jakub@redhat.com>
35334 * lto-streamer-out.c (DFS::worklist): New struct.
35335 (DFS::worklist_vec): New data member.
35336 (DFS::next_dfs_num): Remove.
35337 (DFS::DFS): Rewritten using worklist instead of recursion,
35338 using most of code from DFS::DFS_write_tree.
35339 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
35340 pass it to DFS_write_tree calls.
35341 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
35342 quick initial checks push it into worklist_vec and return.
35344 2015-03-25 Richard Biener <rguenther@suse.de>
35346 PR middle-end/65519
35347 * genmatch.c (expr::gen_transform): Re-write to avoid
35348 using gimple_build.
35350 2015-03-25 Bin Cheng <bin.cheng@arm.com>
35352 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
35354 2015-03-25 Bin Cheng <bin.cheng@arm.com>
35356 * config/arm/arm.opt (print_tune_info): New option.
35357 * config/arm/arm.c (arm_print_tune_info): New function.
35358 (arm_file_start): Call arm_print_tune_info.
35359 * config/arm/arm-protos.h (struct tune_params): Add comment.
35360 * doc/invoke.texi (@item -mprint-tune-info): New item.
35361 (-mtune): mention it in ARM Option Summary.
35363 2015-03-25 DJ Delorie <dj@redhat.com>
35365 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
35368 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
35369 Martin Liska <mliska@suse.cz>
35371 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
35372 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
35373 (sem_item::add_type): New function.
35374 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
35375 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
35376 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
35377 (sem_function::equals_wpa): Fix typo.
35378 * ipa-icf.h (sem_item::add_type): New function.
35379 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
35382 2015-03-24 Jakub Jelinek <jakub@redhat.com>
35384 PR tree-optimization/65533
35385 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
35386 with swapped operands, call vect_free_slp_tree on
35387 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
35390 2015-03-24 Richard Biener <rguenther@suse.de>
35392 PR middle-end/65517
35393 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
35394 for fixup if necessary.
35396 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
35398 * doc/extend.texi (Function Attributes): Add @cindex entries
35399 for all attributes and regularize their format. Delete text
35400 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
35401 information about "eightbit_data", "tiny_data", and "model"
35402 variable attributes to the Variable Attributes section. Fix
35403 some obvious typos and copy-editing issues.
35404 (Variable Attributes, Type Attributes): Likewise add/fix
35405 @cindex entries for all attributes.
35407 2015-03-23 Jakub Jelinek <jakub@redhat.com>
35410 * tree-chkp.c (chkp_build_returned_bound): Ignore
35411 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
35413 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
35416 * config/sh/predicates.md (simple_mem_operand,
35417 displacement_mem_operand): Add test for reg.
35418 (short_displacement_mem_operand): Test for displacement_mem_operand
35419 before invoking sh_disp_addr_displacement.
35420 * config/sh/constraints.md (Sdd, Sra): Simplify.
35421 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
35422 Remove redundant displacement_mem_operand tests.
35424 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
35427 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
35428 the same -mmcu=MCU more than once.
35430 2015-03-23 Jakub Jelinek <jakub@redhat.com>
35433 * ipa-devirt.c: Remove duplicate demangle.h include.
35436 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
35438 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
35439 REG_POINTER on *destptr after adjusting it for prologue size.
35442 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
35443 ultimate_alias_target ()->order ints instead of
35444 ultimate_alias_target () pointers.
35446 2015-03-23 Richard Biener <rguenther@suse.de>
35448 PR tree-optimization/65518
35449 * tree-vect-stmts.c (vectorizable_load): Reject single-element
35450 interleaving cases we generate absymal code for.
35452 2015-03-23 Richard Biener <rguenther@suse.de>
35454 PR tree-optimization/65494
35455 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
35457 (vect_analyze_slp_instance): But do that here, always and once.
35459 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35461 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
35462 adding T or multiplying by T+1 and subracting T.
35464 2015-03-22 Jeff Law <law@redhat.com>
35466 PR rtl-optimization/64317
35467 * Makefile.in (OBJS): Add gcse-common.c
35468 * gcse.c: Include gcse-common.h
35469 (struct modify_pair_s): Move structure definition to gcse-common.h
35470 (compute_transp): Move function to gcse-common.c.
35471 (canon_list_insert): Similarly.
35472 (record_last_mem_set_info): Break out some code and put it into
35473 gcse-common.c. Call into the new common code.
35474 (compute_local_properties): Pass additional arguments to compute_transp.
35475 * postreload-gcse.c: Include gcse-common.h and df.h
35476 (modify_mem_list_set, blocks_with_calls): New variables.
35477 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
35478 (get_bb_avail_insn): Pass in the expression index too.
35479 (alloc_mem): Allocate memory for the new bitmaps and lists.
35480 (free_mem): Free memory for the new bitmaps and lists.
35481 (insert_expr_in_table): Record a bitmap index for each entry we
35483 (record_last_mem_set_info): Call into common code in gcse-common.c.
35484 (get_bb_avail_insn): If no available insn was found in the requested
35485 BB. If BB has a single predecessor, see if the expression is
35486 transparent in BB and available in that single predecessor.
35487 (compute_expr_transp): New wrapper for compute_transp.
35488 (eliminate_partially_redundant_load): Pass expression's bitmap_index
35489 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
35490 (gcse_after_reload_main): If there are elements in the hash table,
35491 then compute transparency for all the elements in the hash table.
35492 * gcse-common.h: New file.
35493 * gcse-common.c: New file.
35495 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
35497 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
35499 (System Headers): Likewise.
35501 (Traditional macros): Likewise.
35502 (Invocation): Likewise.
35503 (Option Index): Likewise.
35504 * doc/cppopts.texi (-M): Likewise.
35505 (-finput-charset): Likewise.
35506 (--help): Likewise.
35507 * doc.invoke.texi (AVR Options): Likewise.
35508 (V850 Options): Likewise.
35510 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
35513 * ipa-devirt.c: Include demangle.h
35514 (odr_type_d): Add field rtti_broken.
35515 (odr_subtypes_equivalent_p): Do not require name to match.
35516 (compare_virtual_tables): Fix typo; if type already has ODR violation,
35517 bypass the tests; be ready for function referneces in vtables that are
35518 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
35519 (warn_odr): Give up for nameless types.
35520 (warn_types_mismatch): Report mismatch in mangled names;
35521 report mismatch in anonymous namespaces; look into component types to
35522 give useful error; report when mismatch is dragged in from other ODR
35524 (odr_types_equivalent_p): Match types for being polymorphic; avoid
35525 duplicated diagnostics.
35526 (add_type_duplicate): Reorder checks so more informative ones come
35527 first; fix typo; do not output "the extra base is defined here" when
35529 (BINFO_N_BASE_BINFOS): Relax sanity check.
35531 2015-03-22 Martin Liska <mliska@suse.cz>
35532 Jakub Jelinek <jakub@redhat.com>
35534 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
35535 masks that can potentially include a builtin.
35536 (ix86_add_new_builtins): Introduce fast filter for isa values
35537 that cannot trigger builtin inclusion.
35539 2015-03-22 Martin Liska <mliska@suse.cz>
35541 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
35542 (sem_item::update_hash_by_local_refs): Likewise.
35543 (sem_variable::get_hash): Empty line is fixed.
35544 (sem_item_optimizer::execute): Include adding of hash references.
35545 (sem_item_optimizer::update_hash_by_addr_refs): New function.
35546 (sem_item_optimizer::build_hash_based_classes): Use local hash.
35547 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
35548 (sem_item::update_hash_by_local_refs): Likewise.
35550 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35553 * ipa-comdats.c (enqueue_references): Walk through thunks.
35554 (ipa_comdats): Likewise.
35555 (set_comdat_group_1): New function.
35557 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35560 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
35563 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
35564 Gerald Pfeifer <gerald@pfeifer.com>
35566 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
35568 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
35569 Sandra Loosemore <sandra@codesourcery.com>
35571 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
35572 function parameter declaration.
35573 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
35574 Update arguments to nios2_adjust_call_address().
35575 (sibcall_internal): Rename from *sibcall.
35576 (sibcall_value_internal): Rename from *sibcall_value.
35577 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
35578 (nios2_large_got_address): Add target temp reg parameter.
35579 (nios2_got_address): Adjust call to nios2_large_got_address, add
35580 force_reg around it.
35581 (nios2_load_pic_address): Add target temp reg parameter, replace call
35582 to nios2_got_address with corresponding code.
35583 (nios2_legitimize_constant_address): Update call to
35584 nios2_load_pic_address.
35585 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
35586 to use temp reg for PIC loading purposes.
35587 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
35588 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
35589 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
35591 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35593 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
35594 usage of "the @option{...}".
35595 (-Wopenmp-simd): Likewise.
35596 (-fsanitize-recover): Likewise.
35597 (-fsanitize-undefined-trap-on-error): Likewise.
35599 (tracer-dynamic-coverage-feedback): Likewise.
35600 (reorder-block-duplicate-feedback): Likewise.
35601 (loop-unroll-jam-size): Likewise.
35604 (-mabs=legacy): Likewise.
35605 (-mupper-regs-df): Likewise.
35606 (-mupper-regs-sf): Likewise.
35607 (-mpointers-to-nested-functions): Likewise.
35609 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35611 * doc/extend.texi (Cilk Plus Builtins): Add markup.
35613 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35615 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
35616 additional index entries and cross-references.
35617 (-fchkp-check-incomplete-type): Likewise.
35618 (-fchkp-first-field-has-own-bounds): Likewise.
35619 (-fchkp-narrow-to-innermost-array): Likewise.
35620 (-fchkp-use-fast-string-functions): Likewise.
35621 (-fchkp-use-nochk-string-functions): Likewise.
35622 (-fchkp-use-static-const-bounds): Likewise.
35623 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35624 (-fchkp-instrument-marked-only): Likewise.
35625 (-fchkp-use-wrappers): Likewise.
35626 (-static-libmpx): Likewise.
35627 (-static-libmpxwrappers): Likewise.
35628 * doc/extend.texi (bnd_legacy): Likewise.
35629 (bnd_instrument): Likewise.
35630 (bnd_variable_size): Likewise.
35631 (Pointer Bounds Checker builtins): Likewise.
35633 2015-03-21 Tom de Vries <tom@codesourcery.com>
35635 PR tree-optimization/65458
35636 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
35637 * cgraph.h (cgraph_node): Add parallelized_function field.
35638 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
35639 (input_overwrite_node): Read parallelized_function field.
35640 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
35641 parallelized_function on cgraph_node for child_fn.
35642 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
35643 Remove include of gt-tree-parloops.h.
35644 (parallelized_functions): Remove static variable.
35645 (parallelized_function_p): Rewrite using parallelized_function field of
35647 (create_loop_fn): Remove adding to parallelized_functions.
35648 * Makefile.in (GTFILES): Remove tree-parloops.c
35650 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
35652 PR rtl-optimization/64366
35653 * lra.c (lra_update_insn_regno_info): Consider regs in
35654 CALL_INSN_FUNCTION_USAGE memory.
35656 2015-03-20 Richard Biener <rguenther@suse.de>
35658 PR middle-end/64715
35659 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
35660 for type comparison and gcc_checking_assert.
35661 (chrec_fold_plus_poly_poly): Likewise.
35662 (chrec_fold_multiply_poly_poly): Likewise.
35663 (chrec_convert_1): Likewise.
35664 * gimplify.c (gimplify_expr): Remove premature folding of
35665 &X + CST to &MEM[&X, CST].
35667 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35669 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
35671 (ipa_inline): Recompute inline_failed codes.
35672 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35673 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
35676 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
35678 PR rtl-optimization/60851
35679 * recog.c (constrain_operands): Accept a pseudo register before reload
35680 for LRA enabled targets.
35682 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
35685 * config/rs6000/predicates.md (easy_fp_constant): Remove special
35686 -ffast-math handling that kept non-0 constants live in the RTL
35687 until reload. Remove logic testing the number of instructions it
35688 took to create a constant in a GPR that was never used, due to a
35689 test for soft-float earlier.
35690 (memory_fp_constant): Delete, no longer used.
35692 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
35693 alternatives for loading non-0 constants into GPRs for hard
35694 floating point that is no longer needed due to changes in
35695 easy_fp_constant. Add support for loading 0.0 into GPRs.
35696 (mov<mode>_hardfloat32): Likewise.
35697 (mov<mode>_hardfloat64): Likewise.
35698 (mov<mode>_64bit_dm): Likewise.
35699 (movtd_64bit_nodm): Likewise.
35700 (pre-reload move FP constant define_split): Delete define_split,
35701 since it is no longer used.
35702 (extenddftf2_internal): Remove GHF constraints that are not valid
35705 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
35707 PR rtl-optimization/63491
35708 * lra-constraints.c (check_and_process_move): Use src instead of
35709 sreg. Remove some dead code.
35711 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
35714 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
35715 (sem_variable::merge): Likewise.
35717 2015-03-19 Martin Liska <mliska@suse.cz>
35720 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
35721 all fields of cgraph_thunk_info.
35723 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
35725 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
35726 clone instrumented thunks.
35728 2015-03-19 Richard Biener <rguenther@suse.de>
35731 2015-03-10 Richard Biener <rguenther@suse.de>
35733 PR middle-end/63155
35734 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35735 * tree-ssa-coalesce.c: Include timevar.h.
35736 (attempt_coalesce): Handle graph being NULL.
35737 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35738 Split out abnormal coalescing to ...
35739 (perform_abnormal_coalescing): ... this function.
35740 (coalesce_ssa_name): Perform abnormal coalescing without computing
35742 (verify_ssa_coalescing_worker): New function.
35743 (verify_ssa_coalescing): Likewise.
35745 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
35746 Jakub Jelinek <jakub@redhat.com>
35749 * tsan.c (instrument_gimple): Clear tail call flag on
35752 2015-03-19 Jakub Jelinek <jakub@redhat.com>
35755 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
35756 call in the return bb.
35757 (find_split_points): Add RETURN_BB argument, don't call
35759 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
35760 if true append TSAN_FUNC_EXIT internal call after the call to
35761 the split off function.
35762 (execute_split_functions): Call find_return_bb here.
35763 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
35764 Adjust find_split_points and split_function calls.
35766 2015-03-18 DJ Delorie <dj@redhat.com>
35768 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
35769 (iorqi3_virt): Likewise.
35771 2015-03-18 Tom de Vries <tom@codesourcery.com>
35773 * tree-parloops.c (parallelize_loops): Make static.
35774 * tree-parloops.h (parallelize_loops): Remove extern declaration.
35776 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
35778 PR middle-end/64491
35780 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
35782 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
35783 condition would be removed due to undefined behaviour.
35785 2015-03-18 Martin Liska <mliska@suse.cz>
35788 * cgraph.c (cgraph_node::get_create): Remove unnecessary
35789 xstrdup_for_dump wrapper.
35790 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
35792 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
35793 with xstrdup_for_dump.
35794 (sem_variable::equals): Likewise.
35795 (sem_item_optimizer::read_section): Use symtab_node::name instead of
35797 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
35798 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
35799 symtab_node::asm_name with xstrdup_for_dump.
35800 (congruence_class::dump): Use symtab_node::name instead of
35802 * ipa-icf.h (symtab_node::name): Remove.
35803 (symtab_node::asm_name): Likewise.
35805 2015-03-18 Jakub Jelinek <jakub@redhat.com>
35807 PR tree-optimization/65450
35808 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
35810 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
35811 it instead of duplicate_ssa_name_ptr_info.
35814 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
35816 2015-03-18 Richard Biener <rguenther@suse.de>
35818 * tree-data-ref.h (struct access_matrix): Remove.
35819 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
35820 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
35821 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
35822 (am_vector_index_for_loop): Likewise.
35823 (struct data_reference): Remove access_matrix member.
35824 (DR_ACCESS_MATRIX): Remove.
35825 (lambda_vector_new): Add comment.
35826 (lambda_matrix_new): Use XOBNEWVEC.
35828 2015-03-18 Richard Biener <rguenther@suse.de>
35830 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
35831 (pass_ch::execute): Cleanup the CFG only if we did sth.
35832 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
35834 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35836 * expmed.c (synth_mult): Use std::swap instead of manually
35837 swapping algorithms.
35839 2015-03-18 Jakub Jelinek <jakub@redhat.com>
35842 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
35844 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
35847 * config/avr/avr.opt (-nodevicelib): New option.
35848 * doc/invoke.texi (AVR Options): Document it.
35849 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
35850 libgcc.a, libc.a, libm.a.
35851 * config/avr/specs.h: Same.
35852 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
35853 which don't (directly) depend on the device. Print more help.
35854 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
35855 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
35856 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
35858 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
35859 for specs file name.
35860 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
35861 * config/avr/avr-mcus.def: Adjust initializers and comments.
35863 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
35865 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
35866 DECL_ONE_ONLY to check if decl is one only.
35867 * ipa-split.c (consider_split): Limit splitt of one only functions.
35869 2015-03-16 Jakub Jelinek <jakub@redhat.com>
35871 PR tree-optimization/65427
35872 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
35874 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
35876 2015-03-16 Marek Polacek <polacek@redhat.com>
35878 * cgraph.h (add_new_static_var): Remove declaration.
35879 * varpool.c (add_new_static_var): Remove function.
35881 2015-03-16 Jakub Jelinek <jakub@redhat.com>
35883 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
35884 instead of vec<tree> * with vec_alloc and release for args.
35887 PR middle-end/65431
35888 * omp-low.c (delete_omp_context): Only splay_tree_delete
35889 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
35890 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
35892 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
35895 * cfgexpand.c (align_base): New function.
35896 (alloc_stack_frame_space): Call it.
35897 (expand_stack_vars): Align prev_frame to be sure
35898 data->asan_vec elements aligned properly.
35900 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
35902 PR middle-end/65409
35903 * expr.c (store_field): Do not do a direct block copy if the source is
35904 a PARALLEL with BLKmode.
35906 2015-03-16 Tom de Vries <tom@codesourcery.com>
35908 PR middle-end/65414
35910 2015-03-12 Tom de Vries <tom@codesourcery.com>
35912 PR rtl-optimization/64895
35913 * lra-lives.c (check_pseudos_live_through_calls): Use
35914 actual_call_used_reg_set instead of call_used_reg_set, if available.
35916 2015-03-16 Alan Modra <amodra@gmail.com>
35919 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
35920 Modify Z->r bswapdi splitter to use dest in place of scratch.
35921 In r->Z and Z->r bswapdi splitter rename word_high, word_low
35922 to word1, word2 and rearrange logic to suit.
35923 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
35924 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
35925 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
35926 Add one '?' on r->r. Modify Z->r splitter to avoid need for
35929 2015-03-14 Jakub Jelinek <jakub@redhat.com>
35931 PR tree-optimization/65369
35932 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
35933 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
35934 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
35936 PR tree-optimization/65418
35937 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
35938 are casts in the first PLUS_EXPR operand, ensure tbias and
35939 *totallowp are in the inner type.
35941 PR rtl-optimization/65401
35942 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
35943 argument. If true, adjust_address_nv of x with big-endian
35944 correction for the mode widening to GET_MODE (y).
35945 (make_field_assignment): Don't do MEM mode widening here.
35946 Use MEM_P instead of GET_CODE == MEM.
35948 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
35950 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
35951 the external decls.
35953 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35956 * config/arm/arm.c (arm_gen_constant, AND case): Use
35957 ARM_SIGN_EXTEND when constructing AND mask.
35959 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
35961 * graph.c (print_graph_cfg): Make function names visible and append
35962 parenthesis to it. Also make groups of basic blocks belonging to the
35963 same function visible.
35965 2015-03-12 Richard Biener <rguenther@suse.de>
35967 PR middle-end/44563
35968 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
35969 to avoid quadratic behavior with inline expansion splitting blocks.
35970 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
35971 with the successor if the predecessor will be merged with it.
35972 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
35973 entry block with its successor.
35975 2015-03-13 Richard Biener <rguenther@suse.de>
35977 PR middle-end/44563
35978 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
35979 (cleanup_tree_cfg_1): Do not call it.
35980 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
35981 (fixup_noreturn_call): Mark the stmt as control altering.
35982 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
35984 (pass_data_fixup_cfg): Produce a dump file.
35985 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
35986 (need_noreturn_fixup): New global.
35987 (pass_dominator::execute): Fixup queued noreturn calls.
35988 (optimize_stmt): Queue calls that became noreturn for fixup.
35989 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
35990 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
35991 (el_to_fixup): New global.
35992 (eliminate_dom_walker::before_dom_childre): Queue calls that
35993 became noreturn for fixup.
35994 (eliminate): Fixup queued noreturn calls.
35995 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
35996 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
35997 (substitute_and_fold_dom_walker::before_dom_children): Queue
35998 alls that became noreturn for fixup.
35999 (substitute_and_fold): Fixup queued noreturn calls.
36001 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
36003 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
36004 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
36005 are building; for methods check ODR type of class they belong to if
36006 they may lead to a polymorphic call.
36007 (sem_function::compare_polymorphic_p): Be bit smarter about testing
36008 when function may lead to a polymorphic call.
36009 (sem_function::compare_type_list): Remove.
36010 (sem_variable::equals): Update use of compatible_types_p.
36011 (sem_variable::parse_tree_refs): Remove.
36012 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
36014 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
36016 (func_checker::compatible_polymorphic_types_p): Break out from ...
36017 (unc_checker::compatible_types_p): ... here.
36018 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
36020 (unc_checker::compatible_types_p): Update.
36021 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
36024 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36026 PR rtl-optimization/65235
36027 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
36028 When first element of vec_concat is const_int, calculate its size
36029 using second element.
36031 2015-03-12 Richard Biener <rguenther@suse.de>
36033 PR middle-end/65270
36034 * fold-const.c (operand_equal_p): Fix ordering of resetting
36035 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
36037 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
36039 * config/s390/s390.c (s390_reorg): Move code to output nops after label
36041 (s390_asm_output_function_label): Likewise.
36042 * config/s390/s390.c (s390_asm_output_function_label):
36043 Fix function label alignment with -mhtopatch.
36044 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
36045 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
36046 ("nop_2_byte"): New define_insn.
36047 ("nop_4_byte"): Likewise.
36048 ("nop_6_byte"): Likewise.
36049 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
36050 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
36052 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
36055 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
36058 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
36061 * toplev.c (process_options): Restrict Pointer Bounds Checker
36062 usage with Address Sanitizer.
36064 2015-03-12 Richard Biener <rguenther@suse.de>
36066 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
36068 * omp-low.c (expand_omp_taskreg): Split block before removing
36070 (expand_omp_target): Likewise.
36071 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
36072 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
36073 stmt to split_block.
36075 2015-03-12 Tom de Vries <tom@codesourcery.com>
36077 PR rtl-optimization/64895
36078 * lra-lives.c (check_pseudos_live_through_calls): Use
36079 actual_call_used_reg_set instead of call_used_reg_set, if available.
36081 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
36083 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
36084 (cgraph_node::remove): Likewise.
36085 (cgraph_node::get_untransformed_body): Likewise.
36086 * varpool.c (varpool_node::remove): Likewise.
36087 (varpool_node::get_constructor): Add sanity check.
36089 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
36091 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
36093 (-fabi-compat-version): Likewise.
36094 (-ffriend-injection): Likewise.
36095 (-Wdeclaration-after-statement): Likewise.
36096 (-fomit-frame-pointer): Likewise.
36097 (-ftree-coalesce-inlined-vars): Likewise.
36098 (-fvisibility=): Likewise.
36099 * doc/extend.texi (Typeof): Likewise.
36100 (Zero Length): Likewise.
36101 (Escaped Newlines): Likewise.
36102 (Compound Literals): Likewise.
36103 (Function Attributes): Likewise.
36104 (Label Attributes): Likewise.
36105 (Type Attributes): Likewise.
36106 (Function Names): Likewise.
36107 (Other Builtins): Likewise.
36108 (Function Specific Option Pragmas): Likewise.
36109 (C++ Interface): Likewise.
36111 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
36113 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
36115 2015-03-11 Marek Polacek <polacek@redhat.com>
36117 PR tree-optimization/65388
36118 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
36120 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
36123 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
36124 * configure: Regenerate.
36125 * config.in: Regenerate.
36126 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
36127 [-mn-flash]: Document it.
36128 [__AVR_ARCH__]: Document avrtiny.
36130 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
36131 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
36132 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
36134 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
36136 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
36138 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
36141 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
36142 allow reloads of PLUS in floating point/VSX registers.
36144 2015-03-11 Junmo Park <junmoz.park@samsung.com>
36146 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
36147 crypto_sha256_fast.
36148 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
36150 2015-03-11 Richard Biener <rguenther@suse.de>
36152 PR tree-optimization/65310
36153 * tree-sra.c (build_ref_for_offset): Also preserve larger
36156 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
36158 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
36160 2015-03-10 Jakub Jelinek <jakub@redhat.com>
36163 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
36165 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
36167 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
36169 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
36170 (sem_function::equals_wpa): ... here.
36172 2015-03-10 Marek Polacek <polacek@redhat.com>
36173 Jakub Jelinek <jakub@redhat.com>
36176 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
36177 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
36180 2015-03-10 Jakub Jelinek <jakub@redhat.com>
36183 * config/rs6000/t-linux: For powerpc64* target set
36184 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
36186 2015-03-10 Richard Biener <rguenther@suse.de>
36188 PR middle-end/44563
36189 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
36190 for redirect_all_calls.
36192 2015-03-10 Marek Polacek <polacek@redhat.com>
36194 * gdbinit.in (pcfun): Define and document.
36196 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
36198 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
36199 of libgomp-plugin.h.
36200 (find_target_compiler): Support a case when the path to gcc is
36201 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
36202 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
36203 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
36205 (main): Use GCC_INSTALL_NAME as target_driver_name.
36206 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
36208 (mkoffload.o): Remove obsolete include path and defines.
36209 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
36211 2015-03-10 Richard Biener <rguenther@suse.de>
36213 PR middle-end/63155
36214 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
36215 * tree-ssa-coalesce.c: Include timevar.h.
36216 (attempt_coalesce): Handle graph being NULL.
36217 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
36218 Split out abnormal coalescing to ...
36219 (perform_abnormal_coalescing): ... this function.
36220 (coalesce_ssa_name): Perform abnormal coalescing without computing
36222 (verify_ssa_coalescing_worker): New function.
36223 (verify_ssa_coalescing): Likewise.
36225 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
36228 * config.gcc (extra_options) [avr]: Remove.
36229 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
36230 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
36231 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
36233 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
36234 (-mmcu=): Add Var and MissingArgError properties.
36236 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
36237 * config/avr/t-multilib: Regenerate.
36238 * config/avr/specs.h: New file.
36239 * config/avr/driver-avr.c: New file.
36240 * config/avr/genopt.sh: Remove file.
36241 * config/avr/avr-tables.opt: Remove file.
36242 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
36243 * config/avr/avr-c.c: Same.
36244 * avr-arch.h: Same.
36245 (avr_current_device): Remove proto.
36246 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
36247 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
36248 (EXTRA_SPEC_FUNCTIONS): Define.
36249 (avr_devicespecs_file): New specs function proto.
36250 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
36251 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
36252 (avr_current_device): Remove definition and usage.
36253 (avr_set_core_architecture): New static function.
36254 (avr_option_override): Use it.
36255 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
36256 (mcu_name): New static array.
36257 (comparator, avr_archs_str, avr_mcus_str): New static functions.
36258 (avr_inform_devices, avr_inform_core_architectures): New functions.
36259 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
36260 (avrlibc.h) [WITH_AVRLIBC]: Include.
36261 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
36262 (print_mcu): Rewrite from scratch.
36263 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
36264 Forward to avr-specific specs defined in device-specs file.
36265 * config/avr/t-avr (driver-avr.o): New rule.
36266 (avr-devices.o): Depend on avr-arch.h.
36267 (avr-mcus): No more depend on avr-tables.opt.
36268 (avr-tables.opt): Remove rule.
36269 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
36271 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
36273 * c-family/c.opt (fchkp-use-wrappers): New.
36274 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
36275 (chkp_wrap_function): New.
36276 (chkp_build_instrumented_fndecl): Support wrapped
36278 * doc/invoke.texi (-fcheck-pointer-bounds): New.
36279 (-fchkp-check-incomplete-type): New.
36280 (-fchkp-first-field-has-own-bounds): New.
36281 (-fchkp-narrow-bounds): New.
36282 (-fchkp-narrow-to-innermost-array): New.
36283 (-fchkp-optimize): New.
36284 (-fchkp-use-fast-string-functions): New.
36285 (-fchkp-use-nochk-string-functions): New.
36286 (-fchkp-use-static-bounds): New.
36287 (-fchkp-use-static-const-bounds): New.
36288 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
36289 (-fchkp-check-read): New.
36290 (-fchkp-check-write): New.
36291 (-fchkp-store-bounds): New.
36292 (-fchkp-instrument-calls): New.
36293 (-fchkp-instrument-marked-only): New.
36294 (-fchkp-use-wrappers): New.
36295 (-static-libmpx): New.
36296 (-static-libmpxwrappers): New.
36298 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
36300 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
36301 (CHKP_SPEC): Add wrappers library.
36302 * c-family/c.opt (static-libmpxwrappers): New.
36304 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
36306 * config/i386/linux-common.h (LIBMPX_LIBS): New.
36307 (LIBMPX_SPEC): New.
36309 * gcc.c (CHKP_SPEC): New.
36310 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
36311 * c-family/c.opt (static-libmpx): New.
36313 2015-03-10 Richard Biener <rguenther@suse.de>
36315 PR middle-end/44563
36316 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
36318 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
36319 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
36320 (cgraph_add_edge_to_call_site_hash): Likewise.
36321 (cgraph_node::get_edge): Likewise.
36322 (cgraph_edge::set_call_stmt): Likewise.
36323 (cgraph_edge::remove_caller): Likewise.
36325 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
36327 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
36328 (callee_saved_gpr_regs_size): ... this.
36329 (callee_saved_regs_first_regno): Rename to ...
36330 (callee_saved_first_gpr_regno): ... this.
36331 (callee_saved_regs_last_regno) Rename to ...
36332 (callee_saved_last_gpr_regno): ... this.
36333 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
36335 (nds32_initial_elimination_offset): Likewise.
36336 (nds32_expand_prologue): Likewise.
36337 (nds32_expand_epilogue): Likewise.
36338 (nds32_expand_prologue_v3push): Likewise.
36339 (nds32_expand_epilogue_v3pop): Likewise.
36340 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
36341 Adjust renamed variables.
36342 (nds32_output_stack_pop): Likewise.
36344 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
36346 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
36349 2015-03-10 Jakub Jelinek <jakub@redhat.com>
36351 PR rtl-optimization/65321
36352 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
36354 * var-tracking.c (use_narrower_mode): Likewise.
36356 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
36358 PR tree-optimization/65355
36359 * varasm.c (notice_global_symbol): Do not produce RTL.
36360 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
36362 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
36363 check for section anchors.
36365 2015-03-10 Alan Modra <amodra@gmail.com>
36368 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
36369 to be single-arch by default. Set cpu_is_64bit for powerpc64
36370 given --with-cpu=native.
36371 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
36372 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
36374 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
36375 rs6000_isa_flags rather than TARGET_64BIT.
36377 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
36378 Kaz Kojima <kkojima@gcc.gnu.org>
36380 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
36382 2015-03-09 Jakub Jelinek <jakub@redhat.com>
36385 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
36386 on a TREE_BINFO, instead use BINFO_TYPE.
36388 2015-03-09 Richard Biener <rguenther@suse.de>
36390 PR middle-end/65270
36391 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
36392 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
36393 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
36394 of that. When comparing dereferences compare alignment.
36395 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
36397 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
36399 * ipa-inline-analysis.c (check_callers): Check
36400 node->can_remove_if_no_direct_calls_and_refs_p.
36401 (growth_likely_positive): Reorganize to call
36402 can_remove_if_no_direct_calls_p later.
36403 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
36404 will_be_removed_from_program_if_no_direct_calls_p): Add
36405 will_inline parameter.
36406 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
36407 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36408 Handle inliner case correctly.
36410 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
36412 PR tree-optimization/63743
36413 * cfgexpand.c (reorder_operands): Also reorder if only second operand
36414 had its definition forwarded by TER.
36416 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
36419 * ipa-utils.h (types_odr_comparable): Add strict argument.
36420 * ipa-devirt.c: Fix whitespace;
36421 (odr_hasher): Remove.
36422 (odr_name_hasher, odr_vtable_hasher): New hashers.
36423 (can_be_name_hashed_p): New predicate.
36424 (hash_type_name): remove.
36425 (hash_odr_name): New.
36426 (odr_name_hasher::hash): new.
36427 (can_be_vtable_hashed_p): New.
36428 (hash_odr_vtable): New.
36429 (odr_vtable_hasher::hash): New.
36430 (types_same_for_odr): Add strict parameter.
36431 (types_odr_comparable): Likewise.
36432 (odr_name_hasher::equal): New.
36433 (odr_vtable_hasher::equal): New.
36434 (odr_name_hasher::remove): New.
36435 (odr_hash_type): Change to hash_table<odr_name_hasher>.
36436 (odr_vtable_hash_type): New.
36437 (odr_vtable_hash): New.
36438 (odr_subtypes_equivalent_p): Do strict comparsion.
36439 (add_type_duplicate): Merge type names; cleanup; avoid type
36441 (register_odr_type): Initialize vtable hash.
36442 (build_type_inheritance_graph): Likewise
36443 (get_odr_type): Reorg to use two hashes.
36444 (dump_possible_polymorphic_call_targets): Move sanity check after debug
36446 (ipa_devirt): Dump type_inheritance_graph.
36447 (types_same_for_odr): Add strict mode.
36449 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36452 * cgraph.h (symtab_node): Add definition_alignment,
36453 can_increase_alignment_p and increase_alignment.
36454 * symtab.c (symtab_node::can_increase_alignment_p,
36455 increase_alignment_1, symtab_node::increase_alignment,
36456 symtab_node::definition_alignment): New.
36457 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
36458 can_increase_alignment_p.
36459 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
36460 * tree-vect-stmts.c (ensure_base_align): Likewise.
36461 * varasm.c (function_section_1): Use definition_alignment.
36462 (assemble_start_function): Likewise.
36463 (emit_local): likewise.
36464 (build_constant_desc): Likewsie.
36465 (output_constant_def_contents): Likewise.
36466 (place_block_symbol): Likewise.
36467 (output_object_block): Likewise.
36469 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36472 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
36473 when outputting debug.
36475 2015-03-07 Marek Polacek <polacek@redhat.com>
36476 Martin Uecker <uecker@eecs.berkeley.edu>
36479 * doc/invoke.texi: Update description of -fsanitize=bounds.
36481 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
36483 * tree-ssa-phiopt.c (neg_replacement): Remove.
36484 (tree_ssa_phiopt_worker): Remove negate optimization.
36486 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36489 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
36491 2015-03-06 Richard Biener <rguenther@suse.de>
36493 PR middle-end/64928
36494 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
36495 and liveout_obstack members.
36496 (calculate_live_on_exit): Remove.
36497 (calculate_live_ranges): Change declaration.
36498 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
36499 (new_tree_live_info): Adjust.
36500 (calculate_live_ranges): Delete livein when not wanted.
36501 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
36502 Deal with partly deleted live info.
36503 (loe_visit_block): Remove temporary bitmap by using
36504 bitmap_ior_and_compl_into.
36505 (live_worklist): Adjust accordingly.
36506 (calculate_live_on_exit): Make static.
36507 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
36508 we do not need livein.
36510 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
36512 * real.c (real_from_string): Fix typo in assertion.
36514 2015-03-06 Alex Velenko <alex.velenko@arm.com>
36516 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
36519 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36521 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
36523 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
36526 * lra-assigns.c (find_hard_regno_for): Rename to
36527 find_hard_regno_for_1. Add a new parameter.
36528 (find_hard_regno_for): New function using find_hard_regno_for_1.
36530 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
36532 PR rtl-optimization/65067
36533 * expmed.c (store_bit_field, extract_bit_field): Reworked the
36534 strict volatile bitfield handling.
36536 2015-03-05 Martin Liska <mliska@suse.cz>
36539 * ipa-icf.c (sem_variable::equals): Compare variables types.
36541 2015-03-05 Richard Henderson <rth@redhat.com>
36544 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
36545 correctly check weak symbol binding.
36547 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
36549 PR middle-end/65315
36550 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
36553 2015-03-05 Martin Liska <mliska@suse.cz>
36555 * ipa-inline.c (inline_small_functions): Set default value to
36556 prevent warning during bootstrap.
36557 * tree.h: Add pragma guard that ignores false positives during
36560 2015-03-05 Richard Biener <rguenther@suse.de>
36562 PR tree-optimization/65310
36563 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
36564 Properly preserve alignment of the base of the access.
36566 2015-03-05 Richard Biener <rguenther@suse.de>
36569 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
36570 Compare dependence info.
36572 2015-03-05 Richard Biener <rguenther@suse.de>
36574 PR middle-end/65233
36575 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
36577 (walk_ssa_copies): Revert last chage. Instead do not walk
36578 SSA names registered for SSA update.
36580 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36583 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
36584 vtable references for their containing type.
36585 (sem_function::equals_wpa): Compare TYPE_RESTRICT
36586 and type attributes.
36588 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
36590 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
36591 before negating it.
36592 * stor-layout.c (finalize_record_size): Revert latest change.
36594 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
36596 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
36598 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36600 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
36601 for correct comdat handling.
36602 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36604 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
36605 (used_from_object_file_p_worker): Remove.
36606 (cgraph_node::only_called_directly_or_alised): Add
36607 used_from_object_file_p.
36608 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
36609 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
36610 can_remove_if_no_direct_calls_and_refs_p.
36612 2015-03-04 Nick Clifton <nickc@redhat.com>
36614 * config/rl78/rl78.h (enum reg_class): Remove real registers from
36615 General register class.
36616 * config/rl78/rl78-real.md: Replace general register constraints
36617 with real+virtual register constraints.
36619 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
36621 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
36622 from checking for -mhtm option.
36624 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36626 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
36627 (struct ipa_sra_check_caller_data): Add has_thunk field.
36628 (ipa_sra_check_caller): Check for thunk.
36629 (ipa_sra_preliminary_function_checks): Give up on function with
36631 (ipa_early_sra): Use call_for_symbol_and_aliases.
36633 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
36636 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
36637 called for __stack_chk_guard symbol.
36639 2015-03-03 DJ Delorie <dj@redhat.com>
36641 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
36643 (*addhi3_real): Likewise.
36644 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
36645 pattern to match incrementing memory.
36646 * config/rl78/predicates.md (rl78_1_2_operand): New.
36647 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
36648 it's the same and only mem.
36649 (rl78_alloc_physical_registers_op2): If there's effectively only
36650 one MEM, transcode it into HL.
36651 (rl78_far_p): Reject addresses that aren't legitimate.
36653 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
36655 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
36658 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
36660 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
36662 Implement call0 ABI for xtensa
36663 * config/xtensa/constraints.md ("a" constraint): Include stack
36664 pointer in case of call0 ABI.
36665 ("q" constraint): Make empty in case of call0 ABI.
36666 ("D" constraint): Include stack pointer in case of call0 ABI.
36667 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
36668 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
36670 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
36672 (xtensa_regno_to_class): Make it a local variable in the
36673 function xtensa_regno_to_class.
36674 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
36675 macro, function prototype and implementation.
36676 (reg_nonleaf_alloc_order): Make it a local variable in the
36677 function order_regs_for_local_alloc.
36678 (xtensa_conditional_register_usage): New function.
36679 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
36680 (xtensa_valid_move): Allow direct moves to stack pointer
36681 register in call0 ABI.
36682 (xtensa_setup_frame_addresses): Only spill register windows in
36684 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
36685 call0 ABI respectively.
36686 (xtensa_function_arg_1): Only mark a7 register for copying in
36688 (xtensa_call_save_reg): New function.
36689 (compute_frame_size): Add space for callee saved register
36690 storage to the frame size in call0 ABI.
36691 (xtensa_expand_prologue): Generate code to set up stack frame
36692 and save callee-saved registers in call0 ABI.
36693 (xtensa_expand_epilogue): New function.
36694 (xtensa_set_return_address): New function.
36695 (xtensa_return_addr): Calculate return address in call0 ABI.
36696 (xtensa_builtin_saveregs): Only mark a7 register for copying and
36697 emit copying code in windowed ABI.
36698 (order_regs_for_local_alloc): Add preferred register allocation
36699 order for non-leaf function in call0 ABI.
36700 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
36701 (xtensa_asm_trampoline_template): Add trampoline generation for
36703 (xtensa_trampoline_init): Add trampoline initialization for
36705 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
36707 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
36708 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
36709 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
36710 ABI call-used registers.
36711 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
36712 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
36714 (REG_CLASS_CONTENTS): Include all registers into the preferred
36715 reload registers set, adjust the set in the
36716 xtensa_conditional_register_usage.
36717 (xtensa_regno_to_class): Drop variable declaration.
36718 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
36720 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
36722 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
36723 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
36724 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
36725 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
36726 location in call0 ABI.
36727 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
36728 stack adjustment size when handling exception.
36729 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
36730 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
36732 ("return" pattern): Generate ret.n/ret in call0 ABI.
36733 ("epilogue" pattern): Expand epilogue.
36734 ("nonlocal_goto" pattern): Use default in call0 ABI.
36735 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
36736 emit eh_set_a0_* depending on ABI.
36737 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
36738 ("eh_set_a0_call0", "blockage"): New patterns.
36740 2015-03-03 Martin Liska <mliska@suse.cz>
36743 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
36745 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
36748 * config/rs6000/rs6000-tables.opt: Regenerate table.
36750 2015-03-03 Renlin Li <renlin.li@arm.com>
36752 * doc/md.texi (@item ^): Change ? into ^.
36754 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
36756 * doc/tm.texi: Regenerated.
36758 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
36760 * builtins.c (expand_builtin_return_addr): Add
36761 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
36762 surrounding #ifdef.
36763 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
36765 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
36767 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
36769 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
36772 2015-03-03 Martin Jambor <mjambor@suse.cz>
36773 Eric Botcazou <ebotcazou@adacore.com>
36775 * tree-sra.c (ipa_sra_check_caller_data): New type.
36776 (has_caller_p): Removed.
36777 (ipa_sra_check_caller): New function.
36778 (ipa_sra_preliminary_function_checks): Use it.
36780 2015-03-03 Martin Liska <mliska@suse.cz>
36782 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
36783 instead of if branch.
36785 2015-03-03 Martin Liska <mliska@suse.cz>
36788 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
36790 2015-03-23 Jeff Law <law@redhat.com>
36792 PR tree-optimization/65241
36793 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
36794 hash table if INSERT is true.
36796 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36799 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
36801 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36804 * config/avr/avr.c (context.h, tree-pass.h): Include them.
36805 (avr_pass_data_recompute_notes): New static variable.
36806 (avr_pass_recompute_notes): New class.
36807 (avr_register_passes): New static function.
36808 (avr_option_override): Call it.
36810 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36812 Fix various problems with specs file generation.
36815 * config.gcc (extra_gcc_objs) [avr]: Remove.
36816 * config/avr/driver-avr.c: Remove file.
36817 * config/avr/t-avr (driver-avr.o): Remove rule.
36818 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
36819 INCLUDES to build. Depend on TM_H.
36820 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
36821 build warnings. Fix non-matching types and non-existing %-codes.
36823 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
36824 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
36825 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
36826 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
36827 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
36828 (LIBGCC_SPEC): Remove definitions.
36830 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
36832 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
36833 to create a register in testing mode.
36835 2015-03-03 Martin Liska <mliska@suse.cz>
36836 Jan Hubicka <hubicka@ucw.cz>
36839 * cgraph.c (cgraph_node::has_thunk_p): New function.
36840 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
36841 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
36842 (sem_function::merge): Assert is changed.
36844 2015-03-03 Martin Liska <mliska@suse.cz>
36845 Martin Jambor <mjambor@suse.cz>
36848 * ipa-icf.c (sem_item_optimizer::execute): Change function
36849 return value to boolean.
36850 (sem_item_optimizer::merge_classes): Likewise.
36851 (ipa_icf_driver): Return TODO_remove_functions in case there's
36852 a merge operation processed.
36853 * ipa-icf.h: Change function return value to boolean.
36855 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
36858 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
36859 processor type for 64-bit little endian PowerPC.
36861 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
36862 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
36863 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
36864 printing built-in mask so it does not pass NULL pointers.
36866 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
36869 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
36872 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
36873 !ISA_HAS_FP_CONDMOVE.
36875 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
36877 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
36880 2015-03-02 Ulrich Drepper <drepper@gmail.com>
36882 * doc/invoke.texi (Options for Code Generation Conventions):
36883 Fix URL of DSO paper.
36885 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36888 * ipa-inline.c (check_callers): Looks for recursion.
36889 (inline_to_all_callers): Give up on uninlinable or recursive edges.
36890 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
36891 summary of inline clones.
36892 (do_estimate_growth_1): Fix recursion check.
36894 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36897 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
36900 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36901 Aldy Hernandez <aldyh@redhat.com>
36904 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
36905 when checking TYPE_BINFO.
36907 2015-03-02 Richard Biener <rguenther@suse.de>
36910 * ipa-icf-gimple.c: Include builtins.h.
36911 (func_checker::compare_memory_operand): Compare base alignment.
36913 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
36916 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
36917 passed by reference.
36919 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
36922 * tree-chkp.c (chkp_check_lower): Don't check against
36923 zero bounds for already instrumented functions.
36924 (chkp_check_upper): Likewise.
36925 (chkp_fini): Clean pass local data to avoid wrong reusage.
36927 2015-02-28 Martin Liska <mliska@suse.cz>
36928 Jan Hubicka <hubicka@ucw.cz>
36930 * ipa-icf.c (sem_variable::equals): Improve debug output;
36931 get variable constructor.
36932 (sem_variable::parse): Do not filter out too early; give up on
36933 volatile and register vars.
36934 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
36936 * ipa-icf.h (sem_variable::init): Do not set ctor.
36937 (sem_variable::ctor): Remove.
36939 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
36941 PR middle-end/65233
36942 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
36944 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36946 * ipa-icf.c: Include stor-layout.h
36947 (sem_function::compare_cgraph_references): Rename to ...
36948 (sem_item::compare_cgraph_references): ... this one.
36949 (sem_variable::equals_wpa): New function
36950 (sem_variable::equals): Do not check stuff already verified by
36952 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
36953 * ipa-icf.h (sem_item): Add compare_cgraph_references.
36954 (sem_function): Remove compare_cgraph_references.
36955 (sem_variable): Turns equals_wpa into non-inline.
36957 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36959 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
36960 (sem_item::add_expr): New function.
36961 (sem_function::hash_stmt): Handle operands of most statements.
36962 (sem_variable::get_hash): Hash the actual constructor.
36963 * ipa-icf.h (sem_item): Add add_expr.
36964 (sem_function): Update prototype of hash_stmt
36966 2015-02-28 Martin Liska <mliska@suse.cz>
36967 Jan Hubicka <hubicka@ucw.cz>
36970 * ipa-icf-gimple.c (func_checker::compare_function_decl):
36972 (func_checker::compare_variable_decl): Skip symtab vars.
36973 (func_checker::compare_cst_or_decl): Update.
36974 * ipa-icf.c (sem_function::parse): Do not consider aliases.
36975 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
36976 use correct symtab predicates.
36977 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
36978 (sem_variable::parse): Update comment.
36979 (sem_item_optimizer::build_graph): Consider ultimate aliases
36982 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36984 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
36987 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36989 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
36990 (sem_variable::merge) Likewise.
36992 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36994 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
36995 target; also match flag_ipa_devirt.
36997 2015-03-01 Martin Liska <mliska@suse.cz>
36998 Jan Hubicka <hubicka@ucw.cz>
37000 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
37001 Validate variable alignment.
37002 * ipa-icf.c (sem_function::equals_private): Be more precise
37003 about non-common function attributes.
37004 (sem_variable::equals): Likewise.
37006 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37009 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
37010 across COMDAT group boundary.
37012 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37015 * ipa-icf.c (clear_decl_rtl): New function.
37016 (sem_function::merge): Clear RTL before forming alias.
37017 (sem_variable::merge): Clear RTL before forming alias.
37019 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37022 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
37024 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
37026 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
37029 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
37031 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
37032 a typo in the description.
37034 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
37037 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37038 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37039 * lra-constraints.c: Include "params.h".
37040 (EBB_PROBABILITY_CUTOFF): Use
37041 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
37042 (lra_inheritance): Use '<' instead of '<=' for
37043 EBB_PROBABILITY_CUTOFF.
37044 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
37047 2015-02-27 Martin Liska <mliska@suse.cz>
37049 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
37050 vector length condition.
37052 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
37054 * doc/extend.texi (x86 transactional memory intrinsics):
37055 Reorganize discussion of _xbegin. Clarify that the return
37056 value is a bit mask. Expand example and move to end of section.
37058 2015-02-26 Jakub Jelinek <jakub@redhat.com>
37059 Aldy Hernandez <aldyh@redhat.com>
37061 PR rtl-optimization/65220
37062 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
37064 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
37067 * lra-remat.c (update_scratch_ops): New.
37068 (do_remat): Call it.
37069 * lra.c (lra_register_new_scratch_op): New. Take code from ...
37070 (remove_scratches): ... here.
37071 * lra-int.h (lra_register_new_scratch_op): New prototype.
37073 2015-02-27 Marek Polacek <polacek@redhat.com>
37076 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
37077 -Wformat-signedness anymore.
37079 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37081 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
37083 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
37085 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37087 * config/s390/s390.c (enum s390_builtin):
37088 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
37089 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
37090 (s390_init_builtins): Generate new builtin functions.
37091 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
37092 (s390_sfpc, s390_efpc): New pattern definitions.
37094 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37096 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
37097 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
37098 (s390_builtin_decls): New array.
37099 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
37100 (s390_builtin_decl): New function.
37101 (TARGET_BUILTIN_DECL): Define macro.
37103 2015-02-27 Richard Biener <rguenther@suse.de>
37105 PR middle-end/63175
37106 * builtins.c (get_object_alignment_2): Make sure to re-apply
37107 the ANDed mask after recursing to its operand gets us a new
37108 misalignment bit position.
37110 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
37111 Martin Liska <mliska@suse.cz>
37114 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
37115 Use address_matters_p.
37116 (redirect_all_callers, set_addressable): New functions.
37117 (sem_function::merge): Reorganize and fix merging issues.
37118 (sem_variable::merge): Likewise.
37119 (sem_variable::compare_sections): Remove.
37120 * common.opt (fmerge-all-constants, fmerge-constants): Remove
37122 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
37124 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
37126 (address_matters_1): New function.
37127 (symtab_node::address_matters_p): New function.
37128 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
37129 check for merged flag.
37130 * cgraph.h (address_matters_p): Declare.
37131 (symtab_node::address_taken_from_non_vtable_p): Remove.
37132 (symtab_node::address_can_be_compared_p): New method.
37133 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
37134 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
37136 (comdat_can_be_unshared_p_1) Use address_matters_p.
37137 (update_vtable_references): Fix formating.
37138 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
37139 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
37140 * cgraphclones.c: Preserve merged and icf_merged flags.
37142 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
37144 * doc/extend.texi (Function Attributes): Fix spelling and typos.
37145 (Label Attributes): Likewise.
37146 (Cilk Plus Builtins): Likewise.
37147 (ARC SIMD Built-in Functions): Likewise.
37148 (ARM C Language Extensions (ACLE)): Likewise.
37149 (PowerPC Built-in Functions): Likewise.
37150 (PowerPC Hardware Transactional Memory Built-in Functions):
37153 2015-02-26 Jakub Jelinek <jakub@redhat.com>
37155 PR tree-optimization/65216
37156 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
37157 new stmt and new SSA_NAME for lhs whenever the arguments have
37158 changed and weren't just swapped. Fix comment typo.
37160 PR tree-optimization/65215
37161 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
37162 for PDP endian targets.
37163 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
37164 Fix up formatting issues.
37165 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
37166 size is smaller than the original, adjust MEM_REF offset by the
37167 difference of sizes. Use is_gimple_mem_ref_addr instead of
37168 is_gimple_min_invariant test to avoid adding address temporaries.
37170 2015-02-26 Martin Liska <mliska@suse.cz>
37171 Jan Hubicka <hubicka@ucw.cz>
37174 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
37175 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
37176 (sem_item_optimizer::process_cong_reduction): Include division by
37177 sensitive references.
37178 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
37179 * ipa-ref.c (ipa_ref::address_matters_p): New function.
37180 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
37182 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
37185 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
37187 * config/avr/avr.c: Same.
37188 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
37189 Refuse any constant address not in 0..0xbf.
37190 * config/avr/avr.md (*mov<mode>, *movsf): Remove
37191 tiny_valid_direct_memory_access_range from insn conditions.
37192 (mov<mode>): Don't special-case expansion of avrtiny addresses.
37194 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
37197 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
37198 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
37199 * config/sh/predicates.md (const_logical_operand): New predicate.
37200 * config/sh/sh.md: Add new peephole2 patterns.
37202 2015-02-26 Marek Polacek <polacek@redhat.com>
37205 * ipa-inline.c (early_inliner): Recompute inline parameters.
37207 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37210 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
37211 instructions with TImode operands are included in the analysis.
37213 2015-02-26 Sebastian Pop <s.pop@samsung.com>
37215 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
37216 of an EDGE_FSM_THREAD.
37218 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
37220 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
37222 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
37225 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
37227 2015-02-26 Sebastian Pop <s.pop@samsung.com>
37229 PR tree-optimization/65048
37230 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
37231 (thread_through_all_blocks): Call valid_jump_thread_path.
37232 Remove invalid FSM jump-thread paths.
37234 2015-02-26 Jakub Jelinek <jakub@redhat.com>
37236 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
37237 (ipa_write_optimization_summaries): Likewise.
37238 * tree-streamer.h: Include data-streamer.h.
37239 (streamer_mode_table): Declare extern variable.
37240 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
37241 * lto-streamer-out.c (lto_output_init_mode_table,
37242 lto_write_mode_table): New functions.
37243 (produce_asm_for_decls): Call lto_write_mode_table when streaming
37245 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
37246 (lto_create_simple_input_block): Add mode_table argument to the
37247 lto_input_block constructors.
37248 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
37250 * data-streamer-in.c (string_for_index): Likewise.
37251 * ipa-inline-analysis.c (inline_read_section): Likewise.
37252 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
37253 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
37254 * lto-streamer-in.c (lto_read_body_or_constructor,
37255 lto_input_toplevel_asms): Likewise.
37256 (lto_input_mode_table): New function.
37257 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
37258 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
37259 Use bp_pack_machine_mode.
37260 * real.h (struct real_format): Add name field.
37261 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
37262 (class lto_input_block): Add mode_table member.
37263 (lto_input_block::lto_input_block): Add mode_table_ argument,
37264 initialize mode_table.
37265 (struct lto_file_decl_data): Add mode_table field.
37266 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
37267 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
37268 unpack_ts_decl_common_value_fields,
37269 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
37270 * tree-streamer.c (streamer_mode_table): New variable.
37271 * real.c (ieee_single_format, mips_single_format,
37272 motorola_single_format, spu_single_format, ieee_double_format,
37273 mips_double_format, motorola_double_format,
37274 ieee_extended_motorola_format, ieee_extended_intel_96_format,
37275 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
37276 ibm_extended_format, mips_extended_format, ieee_quad_format,
37277 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
37278 decimal_single_format, decimal_double_format, decimal_quad_format,
37279 ieee_half_format, arm_half_format, real_internal_format): Add name
37281 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
37283 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
37286 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
37287 reordering for selective scheduling.
37289 2015-02-26 Terry Guo <terry.guo@arm.com>
37291 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
37292 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
37293 (arm_arch_no_volatile_ce): Declare new global variable.
37294 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
37295 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
37296 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
37297 (TARGET_NO_VOLATILE_CE): New macro.
37298 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
37299 volatile memory access in IT block
37301 2015-02-25 Kai Tietz <ktietz@redhat.com>
37303 PR tree-optimization/61917
37304 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
37305 that reduc_def_stmt is null.
37307 2015-02-25 Martin Liska <mliska@suse.cz>
37309 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
37310 hard register variables.
37312 2015-02-25 Kai Tietz <ktietz@redhat.com>
37315 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
37316 (symtab::noninterposable_alias): Likewise.
37318 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
37321 * config/i386/i386.c (ix86_function_arg_regno_p): Support
37323 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
37325 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
37328 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
37329 as split condition; force split via '#' in output pattern.
37331 2015-02-25 Richard Biener <rguenther@suse.de>
37332 Kai Tietz <ktietz@redhat.com>
37334 PR tree-optimization/61917
37335 * tree-vect-loop.c (vectorizable_reduction): Allow
37336 vect_internal_def without reduction to exit graceful.
37338 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
37341 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
37342 only with NONDEBUG_INSN_P.
37344 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
37346 Use variadic macros with avr-log.c.
37348 * config/avr/avr-protos.h (avr_vdump): New prototype.
37349 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
37350 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
37351 * config/avr/avr-log.c: Adjust comments.
37352 (avr_vdump): New function.
37353 (avr_vadump): Pass caller as 2nd argument instead of format string.
37354 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
37355 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
37357 2015-02-25 Jakub Jelinek <jakub@redhat.com>
37360 * target.def (target_option_stream_in): New target hook.
37361 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
37362 targetm.target_option.post_stream_in if non-NULL.
37363 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
37364 * doc/tm.texi: Updated.
37365 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
37367 (TARGET_OPTION_POST_STREAM_IN): Redefine.
37369 2015-02-24 Jeff Law <law@redhat.com>
37372 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
37373 of operand 0 and operand 2.
37374 (zero_cost_loop_end, loop_end): Similarly.
37376 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
37378 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
37381 2015-02-24 DJ Delorie <dj@redhat.com>
37383 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
37384 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
37385 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
37386 instead of hardcoding SImode.
37388 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
37390 * omp-low.c (create_omp_child_function): Tag entrypoint
37391 functions with a special attribute.
37393 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
37396 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
37398 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
37400 PR rtl-optimization/65123
37401 * lra-remat.c (operand_to_remat): Check hard regs in insn
37404 2015-02-24 Nick Clifton <nickc@redhat.com>
37406 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
37409 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
37412 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
37413 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
37414 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
37415 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
37416 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
37417 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
37418 (BUILT_IN_GOACC_PARALLEL): Specify as
37419 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
37420 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
37421 * builtin-types.def
37422 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37423 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37424 Remove function types.
37425 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
37426 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37427 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37428 New function types.
37430 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
37432 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
37434 2015-02-24 Jakub Jelinek <jakub@redhat.com>
37436 PR tree-optimization/65170
37437 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
37438 if val[1] < 0, clear also val[2] and return 3.
37440 2015-02-24 Alan Modra <amodra@gmail.com>
37443 * config/rs6000/rs6000.c (get_memref_parts): Only return true
37444 when *base is a reg. Handle nested plus addresses. Simplify
37447 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
37449 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
37450 use natural alignment when optimizing for size.
37452 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
37455 * config/sh/sh.md (movsicc_true+3): Remove peephole.
37456 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
37457 * config/sh/sh.c (replace_n_hard_rtx): Remove.
37459 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
37462 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
37463 too big for a wide_int. Implement missing wrapping operation.
37465 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
37468 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
37469 instead of const_int 4294901760.
37471 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
37473 * config/avr/t-avr: Fix typo in comment.
37475 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
37477 * doc/rtl.texi (fma): Clarify documentation.
37479 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
37482 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
37483 over input_location.
37485 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37487 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
37488 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
37489 restrict alignments to absolute_biggest_alignment.
37490 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
37492 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
37493 * doc/tm.texi: Regenerate.
37494 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
37496 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
37499 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
37501 2015-02-20 Richard Biener <rguenther@suse.de>
37503 PR tree-optimization/65136
37504 * tree-ssa-propagate.c: Include cfgloop.h.
37505 (replace_phi_args_in): Avoid replacing loop latch edge PHI
37506 arguments with constants.
37508 2015-02-20 Jakub Jelinek <jakub@redhat.com>
37509 Martin Liska <mliska@suse.cz>
37512 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
37513 don't try to create_thunk if stdarg_p. If
37514 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
37515 redirect_callers if possible.
37516 (sem_item_optimizer::execute): Call unregister_hooks here...
37517 (ipa_icf_driver): ... instead of here.
37519 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37521 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
37522 Mark operand 0 as earlyclobber in 2nd alternative.
37523 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
37524 Write negated shift amount into QI lowpart operand 0 and use it
37526 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
37528 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37530 * cgraph.h (clone_function_name_1): Declare.
37531 * cgraphclones.c (clone_function_name_1): New function.
37532 (clone_function_name): Use it.
37533 * lto-partition.c: Include "stringpool.h".
37534 (must_not_rename, maybe_rewrite_identifier)
37535 (validize_symbol_for_target): New static functions.
37536 (privatize_symbol_name): Use must_not_rename.
37537 (promote_symbol): Call validize_symbol_for_target.
37538 (lto_promote_cross_file_statics): Likewise.
37539 (lto_promote_statics_nonwpa): Likewise.
37541 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
37544 * config/avr/avr.md (pushhi_insn): New insn.
37545 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
37547 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37548 Jakub Jelinek <jakub@redhat.com>
37550 * tree-streamer.c (preload_common_nodes): Don't preload
37551 TI_VA_LIST* for offloading.
37552 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
37555 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
37557 * config/pa/pa.c (pa_emit_move_sequence): Always force
37558 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
37561 * config/pa/pa.c (pa_reloc_rw_mask): New function.
37562 (TARGET_ASM_RELOC_RW_MASK): Define.
37563 (pa_cannot_force_const_mem): Revert previous change.
37565 2015-02-19 Martin Jambor <mjmabor@suse.cz>
37566 Jan Hubicka <hubicka@ucw.cz>
37569 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
37570 across jump functions.
37572 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
37574 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
37576 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
37578 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
37580 2015-02-19 Richard Henderson <rth@redhat.com>
37582 PR middle-end/65074
37583 * varasm.c (default_binds_local_p_2): Don't test node->definition;
37584 test DECL_EXTERNAL independent of symtab_node.
37586 2015-02-19 Jakub Jelinek <jakub@redhat.com>
37589 * varpool.c (varpool_node::get_constructor): Return early
37590 if this->lto_file_data is NULL.
37592 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37594 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
37595 (rank_for_schedule_debug): Update.
37596 (ready_sort): Make static. Move sorting logic to ...
37597 (ready_sort_debug, ready_sort_real): New static functions.
37598 (schedule_block): Sort both debug insns and real insns in preparation
37599 for ready list trimming. Improve debug output.
37600 * sched-int.h (ready_sort): Remove global declaration.
37602 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
37604 * ipa-icf.c (sem_function::equals_private): Adjust.
37605 (sem_function::bb_dict_test): Take a vec<int> * instead of
37607 * ipa-icf.h (bb_dict_test): Likewise.
37609 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37611 PR gcov-profile/64634
37612 * tree-eh.c (frob_into_branch_around): Fix up typos
37613 in function comment.
37614 (lower_catch): Put eh_seq resulting from EH lowering of
37615 the cleanup sequence after the cleanup rather than before it.
37617 2015-02-18 Tom de Vries <tom@codesourcery.com>
37619 * common.opt (fstdarg-opt): New option.
37620 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
37621 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
37622 (@item -fstdarg-opt): New item.
37624 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
37627 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
37628 for common symbols.
37630 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37632 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
37634 (ALL_HOST_OBJS): Add mkoffload.o.
37635 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
37637 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
37639 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
37640 (compare_virtual_tables): Be smarter about skipping typeinfos;
37641 do sane output on virtual table table mismatch.
37642 (warn_odr): Be ready for forward declarations of enums;
37643 output sane info on base mismatch and virtual table mismatch.
37644 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
37645 when only one type is polymorphic.
37646 (get_odr_type): Fix hashtable corruption.
37647 (dump_odr_type): Dump mangled names.
37649 2015-02-18 Richard Biener <rguenther@suse.de>
37651 PR tree-optimization/65063
37652 * tree-predcom.c (determine_unroll_factor): Return 1 if we
37653 have replaced looparound PHIs.
37655 2015-02-18 Martin Liska <mliska@suse.cz>
37657 * lto-streamer.c (lto_streamer_init): Encapsulate
37658 streamer_check_handled_ts_structures with checking macro.
37660 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37663 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
37664 section if !implicit_section.
37665 (cgraph_node::create_version_clone_with_body): Likewise.
37666 * trans-mem.c (ipa_tm_create_version): Likewise.
37668 2015-02-18 Richard Biener <rguenther@suse.de>
37670 PR tree-optimization/62217
37671 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
37674 2015-02-18 Marek Polacek <polacek@redhat.com>
37677 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
37678 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
37679 is in range [-16K, -1]. Don't issue run-time error if
37680 (ptr > ptr + offset).
37682 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
37684 * doc/install.texi (nvptx-*-none): New section.
37685 * doc/invoke.texi (Nvidia PTX Options): Likewise.
37686 * config/nvptx/nvptx.opt: Update.
37688 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
37689 (access_check): New functions, copied from
37690 config/i386/intelmic-mkoffload.c.
37691 (main): For non-installed testing, look in all COMPILER_PATHs for
37694 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
37696 2015-02-18 Andrew Pinski <apinski@cavium.com>
37697 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37699 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
37700 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
37702 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
37704 * ipa-visibility.c (function_and_variable_visibility): Only
37705 check locality if node is not already local.
37706 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37707 call_for_symbol_and_aliases instead of
37708 call_for_symbol_thunks_and_aliases.
37709 (ipa_inline): Likewise.
37710 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37711 first walk aliases.
37712 * ipa.c (symbol_table::remove_unreachable_nodes): Use
37713 call_for_symbol_and_aliases.
37714 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37715 (ipa_propagate_frequency_1): Use it; use opt_for_fn
37716 (ipa_propagate_frequency): Update.
37717 (ipa_profile): Add opt_for_fn gueards.
37719 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
37721 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
37722 * doc/invoke.texi (SH options): Document it.
37723 * config/sh/sh.c (sh_insn_length_adjustment): Check
37724 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
37726 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
37728 * common.opt (fipa-cp-alignment): New.
37729 * ipa-cp.c (ipcp_store_alignment_results): Check
37730 flag_ipa_cp_alignment.
37731 * opts.c (default_options_table): Enable -fipa-cp-alignment for
37733 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
37734 * doc/invoke.texi: Document -fipa-cp-alignment.
37736 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
37739 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
37740 to nil. Adjust comments.
37742 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
37744 * ipa-visibility.c (function_and_variable_visibility): Only
37745 check locality if node is not already local.
37746 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37747 call_for_symbol_and_aliases instead of
37748 call_for_symbol_thunks_and_aliases.
37749 (ipa_inline): Likewise.
37750 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37751 first walk aliases.
37752 * ipa.c (symbol_table::remove_unreachable_nodes): Use
37753 call_for_symbol_and_aliases.
37754 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37755 (ipa_propagate_frequency_1): Use it; use opt_for_fn
37756 (ipa_propagate_frequency): Update.
37757 (ipa_profile): Add opt_for_fn guards.
37759 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
37761 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
37762 skipping of "strange" tokens.
37764 2015-02-17 Jeff Law <law@redhat.com>
37766 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
37769 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
37771 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
37772 as forcing a HARD_DEP between instructions, thereby
37773 disallowing rewriting to break dependencies.
37775 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
37777 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
37778 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
37779 variables in boundary that have no inlitalizer encoded and are
37781 * varasm.c (default_binds_local_p_2): External definitions do not
37782 count as definitions here.
37784 2015-02-16 Jeff Law <law@redhat.com>
37786 PR tree-optimization/64823
37787 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
37789 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37790 threading through blocks with PHIs, but no statements.
37791 (thread_through_normal_block): Distinguish between blocks where
37792 we did not process all the statements and blocks with no statements.
37794 2015-02-16 Jakub Jelinek <jakub@redhat.com>
37795 James Greenhalgh <james.greenhalgh@arm.com>
37798 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
37799 section if not linkonce. Fix up formatting.
37800 (cgraph_node::create_version_clone_with_body): Copy section.
37801 * trans-mem.c (ipa_tm_create_version): Likewise.
37803 2015-02-16 Richard Biener <rguenther@suse.de>
37805 PR tree-optimization/65077
37806 * tree-ssa-structalias.c (get_constraint_for_1): Handle
37807 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
37808 (find_func_aliases): Allow float values to carry pointers again.
37810 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
37812 * doc/install.texi (Specific): Reorder targets list to put
37813 aarch64 in alphabetical order. Add a link to aarch64*-*-*
37816 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
37817 David Edelsohn <dje.gcc@gmail.com>
37820 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
37821 mapping class to external variable or function reference.
37822 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
37825 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
37828 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
37829 ASM_WEAKEN_DECL if defined.
37831 2015-02-16 Richard Biener <rguenther@suse.de>
37834 * varasm.c (default_file_start): For LTO produced units
37835 emit <artificial> as file directive.
37837 2015-02-16 Richard Biener <rguenther@suse.de>
37839 PR tree-optimization/63593
37840 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
37841 stmts and releasing SSA names until...
37842 (execute_pred_commoning): ... after processing all chains.
37844 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
37847 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
37848 external functions.
37850 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
37852 * doc/bugreport.texi: Adjust section titles throughout the file
37853 to use "Title Case".
37854 * doc/extend.texi: Likewise.
37855 * doc/gcov.texi: Likewise.
37856 * doc/implement-c.texi: Likewise.
37857 * doc/implement-cxx.texi: Likewise.
37858 * doc/invoke.texi: Likewise.
37859 * doc/objc.texi: Likewise.
37860 * doc/standards.texi: Likewise.
37861 * doc/trouble.texi: Likewise.
37863 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
37865 * cgraph.h (symtab_node::has_aliases_p): Simplify.
37866 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
37867 * tree.c (lookup_binfo_at_offset): Make static.
37868 (get_binfo_at_offset): Do not shadow offset; add explanatory
37871 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
37873 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
37874 for all floading point loads and stores except those using a register
37876 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
37879 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
37881 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
37882 (do_estimate_growth_1): Record if any uninlinable edge was seen.
37883 (estimate_growth): Handle uninlinable edges correctly.
37884 (check_callers): New.
37885 (growth_likely_positive): Handle aliases correctly.
37887 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
37889 * ipa-chkp.c: Use iterate_direct_aliases.
37890 * symtab.c (resolution_used_from_other_file_p): Move inline.
37891 (symtab_node::create_reference): Fix formating.
37892 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37893 (symtab_node::iterate_reference): Move inline.
37894 (symtab_node::iterate_referring): Move inline.
37895 (symtab_node::iterate_direct_aliases): Move inline.
37896 (symtab_node::used_from_object_file_p_worker): Inline into ...
37897 (symtab_node::used_from_object_file_p): ... this one; move inline.
37898 (symtab_node::call_for_symbol_and_aliases): Move inline;
37899 use iterate_direct_aliases.
37900 (symtab_node::call_for_symbol_and_aliases_1): New method.
37901 (cgraph_node::call_for_symbol_and_aliases): Move inline;
37902 use iterate_direct_aliases.
37903 (cgraph_node::call_for_symbol_and_aliases_1): New method.
37904 (varpool_node::call_for_node_and_aliases): Rename to ...
37905 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
37906 use iterate_direct_aliases.
37907 (varpool_node::call_for_symbol_and_aliases_1): New method.
37908 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
37909 (ipa_discover_readonly_nonaddressable_var): Update.
37910 * ipa-devirt.c: Fix formating.
37911 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
37913 (cgraph_node::call_for_symbol_and_aliases): Move inline.
37914 (cgraph_node::call_for_symbol_and_aliases_1): New function..
37915 * cgraph.h (used_from_object_file_p_worker): Remove.
37916 (resolution_used_from_other_file_p): Move inline.
37917 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37918 (symtab_node::iterate_reference): Move inline.
37919 (symtab_node::iterate_referring): Move inline.
37920 (symtab_node::iterate_direct_aliases): Move inline.
37921 (symtab_node::used_from_object_file_p_worker): Inline into ...
37922 (symtab_node::used_from_object_file_p): Move inline.
37923 * tree-emutls.c (ipa_lower_emutls): Update.
37924 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
37925 (varpool_node::call_for_node_and_aliases): Remove.
37927 2015-02-14 Jakub Jelinek <jakub@redhat.com>
37929 PR tree-optimization/62209
37930 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
37931 op == range->exp, insert seq and gimplified code after labels
37932 instead of after the phi.
37934 2015-02-13 Jeff Law <law@redhat.com>
37937 Revert my change for tree-optimization/64823.
37939 2015-02-13 Jakub Jelinek <jakub@redhat.com>
37941 PR tree-optimization/65053
37942 * tree-ssa-phiopt.c (value_replacement): When moving assign before
37943 cond, either reset VR on lhs or set it to phi result VR.
37945 2015-02-13 Jeff Law <law@redhat.com>
37947 PR tree-optimization/64823
37948 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
37949 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37950 threading through blocks with PHIs, but no statements.
37951 (thread_through_normal_block): Distinguish between blocks where
37952 we did not process all the statements and blocks with no statements.
37954 PR rtl-optimization/47477
37955 * match.pd (convert (plus/minus (convert @0) (convert @1): New
37956 simplifier to narrow arithmetic.
37958 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
37961 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
37962 polymorphic call info when type is not known to be preserved.
37964 2015-02-13 Maritn Jambor <mjambor@suse.cz>
37967 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
37968 (inline_call): Use it.
37970 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
37972 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
37973 GOMP_DEVICE_NVIDIA_PTX.
37975 2015-02-13 Jakub Jelinek <jakub@redhat.com>
37978 * stmt.c (emit_case_nodes): Use void_type_node instead of
37979 NULL_TREE as LABEL_DECL type.
37981 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
37983 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
37985 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
37986 symbolic references to data to be forced to constant memory on the
37989 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
37991 PR tree-optimization/65002
37992 * tree-cfg.c (pass_data_fixup_cfg): Don't update
37994 * tree-sra.c (some_callers_have_no_vuse_p): New.
37995 (ipa_early_sra): Reject functions whose callers
37996 assume function is read only.
37998 2015-02-13 Richard Biener <rguenther@suse.de>
38001 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
38002 for LTO produced CUs.
38004 2015-02-13 Bin Cheng <bin.cheng@arm.com>
38006 PR tree-optimization/64705
38007 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
38008 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
38009 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
38010 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
38011 expand_simple_operations.
38013 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
38014 Richard Henderson <rth@redhat.com>
38017 * cgraphunit.c (cgraph_node::finalize_function): Set definition
38018 before notice_global_symbol.
38019 (varpool_node::finalize_decl): Likewise.
38020 * varasm.c (default_binds_local_p_2): Rename from
38021 default_binds_local_p_1, add weak_dominate argument. Use direct
38022 returns instead of assigning to local variable. Unify varpool and
38023 cgraph paths via symtab_node. Reject undef weak variables before
38024 testing visibility. Reorder tests for simplicity.
38025 (default_binds_local_p): Use default_binds_local_p_2.
38026 (default_binds_local_p_1): Likewise.
38027 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
38029 (default_elf_asm_output_external): Emit visibility when specified.
38031 2015-02-13 Alan Modra <amodra@gmail.com>
38033 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
38034 code setting up r11 for out-of-line fp restore.
38036 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
38038 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
38039 (muser-mode): Likewise.
38041 2015-02-13 Alan Modra <amodra@gmail.com>
38043 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
38044 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
38046 2015-02-12 David Howells <dhowells@redhat.com>
38048 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
38050 * tree-ssa-uninit.c (dump_predicates): Likewise.
38051 * opts.c (print_filtered_help): Likewise.
38053 2015-02-12 Jakub Jelinek <jakub@redhat.com>
38055 * dwarf2out.c (output_die): Use "%s", name instead of name to
38056 avoid -Wformat-security warning.
38058 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
38059 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38060 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
38061 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38063 2015-02-12 Jason Merrill <jason@redhat.com>
38065 * common.opt (-flifetime-dse): New.
38067 2015-02-12 Jakub Jelinek <jakub@redhat.com>
38070 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
38072 PR tree-optimization/65014
38073 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
38074 use original second operand of arg0 or arg1 instead of
38075 that adjusted by STRIP_NOPS.
38077 2015-02-11 Jeff Law <law@redhat.com>
38080 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
38081 that needs to be queued, just queue it for a single cycle.
38083 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
38085 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
38086 bodies of thunks; comment on why.
38087 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
38088 symbols are extern.
38090 2015-02-11 Richard Henderson <rth@redhat.com>
38093 * tree-eh.c (mark_reachable_handlers): Mark source and destination
38094 regions of __builtin_eh_copy_values.
38096 2015-02-11 Jakub Jelinek <jakub@redhat.com>
38098 PR middle-end/65003
38099 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
38100 ultimate alias is MEM with SYMBOL_REF satisfying
38101 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
38102 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
38104 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
38106 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
38107 "diagnostic-core.h".
38108 (main): Initialize progname, and call diagnostic_initialize.
38110 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
38111 instead of __OPENMP_TARGET__.
38113 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
38114 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
38115 hard-coding PTX_ID.
38117 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
38119 * doc/sourcebuild.texi (pie_enabled): Document.
38121 2015-02-11 Martin Liska <mliska@suse.cz>
38124 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
38125 a return value for call to a function that is noreturn.
38127 2015-02-11 Richard Biener <rguenther@suse.de>
38130 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
38133 2015-02-11 Andrew Pinski <apinski@cavium.com>
38136 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
38137 Change the first argument type to size_type_node and add another
38139 (aarch64_simd_expand_builtin): Handle the new argument to
38140 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
38141 print an out when the first two arguments are not
38142 nonzero integer constants.
38143 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
38144 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
38146 2015-02-11 Jakub Jelinek <jakub@redhat.com>
38149 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
38150 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
38151 (ix86_set_current_function): Rewritten.
38152 (ix86_add_new_builtins): Temporarily clear current_target_pragma
38153 when creating builtin fndecls.
38155 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
38158 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
38160 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
38161 have no comdat group.
38162 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
38163 (lto_output_varpool_node): Always output alias info.
38164 (output_refs): Output refs of boundary aliases, too.
38165 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
38166 (output_symtab): Output call eges in thunks in boundary.
38167 (get_alias_symbol): Remove.
38168 (input_node, input_varpool_node): Do not special case weakrefs.
38169 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
38170 alias and thunks targets in the boundary; do not take removed symbols
38171 from their comdat groups.
38172 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
38173 (cgraph_node::global_info): Remove.
38174 (cgraph_node::rtl_info): Look through aliases and thunks.
38175 * cgrpah.h (global_info): Remove.
38176 (non_local_p): Remove.
38178 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
38179 Sandra Loosemore <sandra@codesourcery.com>
38181 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
38182 to inline asm. List dialects in proper order.
38184 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
38185 Sandra Loosemore <sandra@codesourcery.com>
38187 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
38189 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
38191 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
38192 modified) reference to Solaris.
38194 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
38196 * doc/extend.texi (Extended Asm): Fix typos.
38198 2015-02-10 Jakub Jelinek <jakub@redhat.com>
38201 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
38203 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
38206 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
38207 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
38208 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
38209 * config/sh/constraints.md (Ara, Add): New constraints.
38210 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
38212 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
38213 atomic_mem_operand_0. Don't use force_reg on the memory address.
38214 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
38215 Sra constraint. Convert to insn_and_split. Add workaround for
38217 (atomic_compare_and_swap<mode>_hard): Copy to
38218 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
38219 Use atomic_mem_operand_0 predicate.
38220 (atomic_compare_and_swap<mode>_soft_gusa,
38221 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
38222 AraAdd constraints.
38223 (atomic_compare_and_swap<mode>_soft_tcb,
38224 atomic_compare_and_swap<mode>_soft_imask,
38225 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
38226 atomic_mem_operand_0 predicate and SraSdd constraints.
38227 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
38229 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
38230 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
38231 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
38232 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
38233 force_reg on the memory address.
38234 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
38235 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
38236 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
38237 atomic_mem_operand_1 predicate and Sra constraint.
38238 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
38239 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
38240 Use atomic_mem_operand_1 predicate.
38241 (atomic_<fetchop_name><mode>_hard): Copy to
38242 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
38243 Use atomic_mem_operand_1 predicate.
38244 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
38245 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
38246 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
38247 insn_and_split. Use atomic_mem_operand_1 predicate.
38248 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
38249 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
38250 Use atomic_mem_operand_1 predicate.
38251 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
38252 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
38253 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
38254 in generated insn with original mem operand before emitting the insn.
38255 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
38256 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
38257 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
38258 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
38259 Use atomic_mem_operand_1 predicate and AraAdd constraints.
38260 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
38261 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
38262 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
38263 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
38264 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
38265 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
38266 atomic_not_fetch<mode>_soft_tcb,
38267 atomic_<fetchop_name>_fetch<mode>_soft_imask,
38268 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
38269 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
38270 Use atomic_mem_operand_1 predicate and SraSdd constraints.
38272 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
38274 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
38275 and 3 earlyclobber operands.
38277 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
38279 * common.opt (fstack-reuse): Mark as optimization.
38281 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
38284 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
38286 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
38288 PR tree-optimization/64326
38289 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
38291 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
38293 PR gcov-profile/61889
38294 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
38296 2015-02-10 Richard Biener <rguenther@suse.de>
38298 PR tree-optimization/64995
38299 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
38300 value we use is final.
38301 (visit_reference_op_store): Always valueize op.
38302 (visit_use): Properly valueize vuses.
38304 2015-02-10 Richard Biener <rguenther@suse.de>
38306 PR tree-optimization/64909
38307 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
38308 pass a scalar-stmt count estimate to the cost model.
38309 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
38311 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
38313 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
38314 enabled by default together with var-tracking.
38316 2015-02-10 Nick Clifton <nickc@redhat.com>
38318 * config/rl78/rl78.c: Remove DIV attribute code accidentally
38319 included in previous rl78 commit.
38321 2015-02-10 Richard Biener <rguenther@suse.de>
38323 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
38324 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
38325 return the bitpack.
38327 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
38329 PR gcov-profile/61889
38330 * config.in: regenerate.
38331 * configure.in: Likewise.
38332 * configure.ac: Check for ftw.h.
38333 * gcov-tool.c: Check for ftw.h before using nftw.
38335 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
38338 * ipa-visibility.c (update_visibility_by_resolution_info): Only
38339 assert when not in lto mode.
38341 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
38343 * ira-color.c (setup_left_conflict_sizes_p): Simplify
38344 initialization/assignment of conflict_size.
38346 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
38349 * ipa-cp.c (gather_caller_stats): Skip thunks.
38350 (propagate_constants_topo): Skip aliases.
38352 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
38355 * config/sh/sh.c (sh_option_override): Don't change
38356 -freorder-blocks-and-partition to -freorder-blocks even when
38357 unwinding is enabled.
38358 (sh_can_follow_jump): Return false if the followee jump is
38359 a crossing jump when -freorder-blocks-and-partition is specified.
38360 * config/sh/sh.md (*jump_compact_crossing): New insn.
38362 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
38363 Kaz Kojima <kkojima@gcc.gnu.org>
38366 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
38367 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
38368 (sh_can_redirect_branch): Rename to ...
38369 (sh_can_follow_jump): ... this. Constify argument types.
38370 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
38371 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
38372 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
38373 * doc/tm.texi: Regenerate.
38375 2015-02-09 Jakub Jelinek <jakub@redhat.com>
38378 * builtins.c (expand_builtin): Call targetm.expand_builtin
38379 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
38381 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38384 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
38386 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38389 * ipa-icf.c (set_local): New function.
38390 (sem_function::merge): Use it.
38392 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38394 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
38395 (add_type_duplicate): Fix comparison of BINFOs.
38397 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38399 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
38400 on getting VOID pointer.
38402 2015-02-09 Jakub Jelinek <jakub@redhat.com>
38405 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
38408 2015-02-09 Richard Biener <rguenther@suse.de>
38410 * genmatch.c (replace_id): Copy expr_type.
38412 2015-02-09 Richard Biener <rguenther@suse.de>
38414 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
38415 (streamer_write_tree_bitfields): Declare.
38416 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
38417 properly unpack padding.
38418 (unpack_value_fields): Inline ...
38419 (streamer_read_tree_bitfields): ... here.
38420 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
38421 and properly add padding bits.
38422 (streamer_pack_tree_bitfields): Fold into ...
38423 (streamer_write_tree_bitfields): ... this new function,
38424 exposing the bitpack object.
38425 * lto-streamer-out.c (lto_write_tree_1): Call
38426 streamer_write_tree_bitfields.
38428 2015-02-09 Richard Biener <rguenther@suse.de>
38430 PR tree-optimization/54000
38431 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
38432 (struct ivopts_data): Add loop_loc member.
38433 (tree_ssa_iv_optimize_loop): Dump loop location.
38434 (create_new_ivs): Likewise, also dump number of IVs generated.
38436 2015-02-09 Martin Liska <mliska@suse.cz>
38438 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
38439 just if not yet registered.
38440 (ipa_icf_generate_summary): Register callgraph hooks.
38442 2015-02-08 Andrew Pinski <apinski@cavium.com>
38444 * config/aarch64/aarch64.c (gty_dummy): Delete.
38446 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38449 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
38450 (cgraph_node::local_p): Remove thunk related FIXME.
38452 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38455 * i386.c (ix86_function_regparm): Look through aliases to see if callee
38456 is local and optimized.
38457 (ix86_function_sseregparm): Likewise; also use target's SSE math
38458 settings; error out instead of silently generating wrong code
38460 (init_cumulative_args): Look through aliases.
38462 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38465 * ipa-split.c (execute_split_functions): Split if function has aliases.
38467 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38470 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
38471 aliases before trying to expand it.
38472 (cgraph_node::expand_thunk): Fix formating.
38474 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
38476 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
38477 (Using Assembly Language with C): Expand introduction.
38478 (Basic Asm): Copy-edit. Add more information about uses of
38480 (Extended Asm): Copy-edit. Document new escape syntax and
38482 (Global Reg Vars): Copy-edit.
38483 (Local Reg Vars): Likewise.
38485 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
38489 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
38490 (DBX_CONTIN_CHAR): Define.
38492 2015-02-06 Sebastian Pop <s.pop@samsung.com>
38493 Brian Rzycki <b.rzycki@samsung.com>
38495 PR tree-optimization/64878
38496 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
38497 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
38498 Stop recursion at loop phi nodes after having visited a loop phi node.
38500 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38502 * toplev.c (process_options): Change flag_ipa_ra before creating
38503 optimization_{default,current}_node.
38506 * cgraphunit.c (cgraph_node::expand_thunk): If
38507 restype is not is_gimple_reg_type nor the thunk_fndecl
38508 returns aggregate_value_p, set restmp to a temporary variable
38509 instead of resdecl.
38511 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
38513 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
38515 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
38518 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
38519 add a general secondary reload handler for SDmode, unless we have
38520 both read/write support for SDmode.
38522 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38524 PR middle-end/64937
38525 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
38526 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
38527 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
38528 1 before, push it to abstract_vec.
38529 (dwarf2out_abstract_function): Adjust caller. Don't call
38530 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
38531 DECL_ABSTRACT_P flags for all abstract_vec elts.
38533 2015-02-06 Renlin Li <renlin.li@arm.com>
38535 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
38537 * tree-ssa.c (execute_update_addresses_taken): Likewise.
38539 2015-02-06 Jeff Law <law@redhat.com>
38542 * config/h8300/h8300.c (push): New argument "in_prologue".
38543 Pass "in_prologue" along to "F".
38544 (h8300_push_pop): Corresponding changes.
38545 (h8300_expand_prologue): Likewise.
38546 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
38548 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38550 PR rtl-optimization/64957
38552 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
38553 IOR rather than for AND.
38555 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
38558 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
38559 of shift-add and (add + shift) operations. Rename local variable.
38561 2015-02-05 Jeff Law <law@redhat.com>
38564 * config/h8300/constraints.md (U): Correctly dectect
38565 "eightbit_data" memory addresses.
38566 * config/h8300/h8300.c (eightbit_constant_address_p): Also
38567 handle (const (plus (symbol_ref (x)))) where x is declared
38568 as an 8-bit data memory address.
38569 * config/h8300/h8300.md (call, call_value): Correctly detect
38570 "funcvec" functions.
38573 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
38574 24 to 28 bits for the H8/300.
38576 2015-02-06 Alan Modra <amodra@gmail.com>
38579 * config/rs6000/rs6000.c (chain_already_loaded): New function.
38580 (rs6000_call_aix): Use it.
38582 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
38584 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
38587 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
38589 * config/h8300/constraints.md ("U" constraint): Use strict
38590 variant of REG_OK_FOR_BASE_P after reload has started.
38592 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
38594 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
38595 define to zero if !TARGET_NEON.
38596 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
38598 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38599 Trevor Saunders <tsaunders@mozilla.com>
38602 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
38604 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38607 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
38608 when removing varpool nodes.
38610 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38613 * varpool.c (varpool_node::remove): Fix order of variables.
38615 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38618 * ipa-inline.c (inline_small_functions): Fix ordering issue between
38619 speculation resolution and key updates.
38621 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38623 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
38624 about not letting any speculative edges unupdated.
38626 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38629 * gcov-io.c (gcov_var): Export.
38631 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38633 PR middle-end/64922
38634 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
38635 edges that become speculative.
38637 2015-02-04 Jakub Jelinek <jakub@redhat.com>
38639 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
38640 or DW_LANG_Fortran08.
38641 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
38643 (gen_compile_unit_die): Handle "GNU Fortran2003" and
38644 "GNU Fortran2008" language strings.
38645 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
38646 * langhooks.h (lang_GNU_Fortran): New prototype.
38647 * langhooks.c (lang_GNU_Fortran): New function.
38648 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
38651 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
38653 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
38654 (RTX_OK_FOR_OLO10_P): Likewise.
38656 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
38658 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
38660 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38662 PR middle-end/64922
38663 * gimple.c: Include gimple-ssa.h.
38664 (maybe_remove_unused_call_args): New function.
38665 * gimple.h (maybe_remove_unused_call_args): Declare.
38666 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
38667 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
38668 * gimple-fold.c (gimple_fold_call): Likewise.
38670 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
38672 PR rtl-optimization/64905
38673 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
38674 pointer alignment if it isn't needed.
38676 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
38678 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
38679 cortex-a72.cortex-a53.
38680 * config/aarch64/aarch64-tune.md: Regenerate.
38681 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
38683 2015-02-04 Nick Clifton <nickc@redhat.com>
38685 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
38688 2015-02-04 Jakub Jelinek <jakub@redhat.com>
38690 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
38691 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
38692 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
38694 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
38695 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
38696 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
38697 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
38698 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
38699 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
38700 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
38701 * tree-core.h (enum built_in_function): In between
38702 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
38703 for builtins that use DEF_BUILTIN_CHKP macro.
38705 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
38708 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
38709 operands for tcc_comparison exprs. Fix typos.
38712 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
38713 of two XORs that have an intervening AND or IOR.
38716 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
38717 simplification of XOR of AND to not allocate new rtx before
38718 committing to a simplification.
38720 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38722 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
38723 manual swaps in all peepholes.
38725 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38727 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
38728 of manual swapping implementation.
38729 (aarch64_expand_vec_perm_const_1): Likewise.
38731 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
38733 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
38734 (generic_addrcost_table): Remove NAMED_PARAM.
38735 (cortexa57_addrcost_table): Likewise.
38736 (xgene1_addrcost_table): Likewise.
38737 (generic_regmove_table): Likewise.
38738 (cortexa53_regmove_table): Likewise.
38739 (xgene1_regmove_table): Likewise.
38740 (generic_vector_table): Likewise.
38741 (cortexa57_vector_table): Likewise.
38742 (xgene1_vector_table): Likewise.
38743 (generic_tunings): Likewise.
38744 (cortexa53_tunings): Likewise.
38745 (cortexa57_tunings): Likewise.
38746 (xgene1_tunings): Likewise.
38748 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
38750 * config/arm/arm-cores.def: Add cortex-a72 and
38751 cortex-a72.cortex-a53.
38752 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
38753 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
38754 * config/arm/arm-tune.md: Regenerate.
38755 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
38756 "cortex-a72.cortex-a53".
38757 * doc/invoke.texi (ARM Options/-mtune): Likewise.
38759 2015-02-04 Nick Clifton <nickc@redhat.com>
38762 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
38764 (nonimmediate_di_operand): Likewise.
38766 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
38767 prefixes of known F5 using MSP430 MCUs.
38769 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38771 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
38772 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
38773 instead of __builtin_sqrt.
38775 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
38777 * varasm.c (do_assemble_alias): Follow transparent alias
38779 (default_assemble_visibility): Follow transparent alias
38780 chain for decl name.
38782 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
38784 PR middle-end/62103
38785 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
38786 to compute size of referenced value in the constant case.
38788 2015-02-03 Jakub Jelinek <jakub@redhat.com>
38790 PR rtl-optimization/64756
38791 * cse.c (invalidate_dest): New function.
38792 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
38793 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
38794 invalidate and do not record it.
38796 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
38799 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
38800 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
38801 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
38802 atomic_nand<mode>_soft_tcb): New insns.
38803 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
38804 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
38805 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
38806 Split into atomic_not_fetchsi_hard if operands[0] is unused.
38807 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
38808 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38809 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
38810 atomic_not<mode>_hard if operands[0] is unused.
38811 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
38812 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
38813 if operands[0] is unused.
38814 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
38815 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
38816 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
38817 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38819 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
38820 into atomic_not<mode>_soft_tcb if operands[0] is unused.
38821 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
38822 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
38823 if operands[0] is unused.
38824 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
38825 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
38826 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
38827 atomic_nand_fetchsi_hard if operands[0] is unused.
38828 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
38829 atomic_nand<mode>_hard if operands[0] is unused.
38830 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
38831 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
38832 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
38833 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38834 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
38835 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
38836 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
38837 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38838 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
38839 atomic_not<mode>_hard if operands[0] is unused.
38840 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
38841 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38843 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
38844 into atomic_not<mode>_soft_tcb if operands[0] is unused.
38845 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
38846 atomic_nand<mode>_hard if operands[0] is unused.
38847 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
38848 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38850 2015-02-03 David Malcolm <dmalcolm@redhat.com>
38853 * Makefile.in (GCC_OBJS): Add gcc-main.o.
38854 * gcc-main.c: New file, containing "main" taken from gcc.c.
38855 * gcc.c (do_self_spec): Free decoded_options.
38856 (class driver): Move declaration to gcc.h.
38857 (main): Move declaration and implementation to new file
38859 (driver_get_configure_time_options): New function.
38860 * gcc.h (class driver): Move this declaration here, from
38862 (driver_get_configure_time_options): New declaration.
38864 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
38866 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
38867 cross-module inlining.
38868 * cgraph.h (cgraph_node): Add flag merged.
38869 * ipa-icf.c (sem_function::merge): Maintain it.
38871 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
38873 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
38874 instead of OBJECT_P.
38876 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
38879 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
38880 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
38881 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
38882 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
38884 2015-02-03 Jakub Jelinek <jakub@redhat.com>
38887 * combine.c (reg_n_sets_max): New variable.
38888 (can_change_dest_mode, reg_nonzero_bits_for_combine,
38889 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
38890 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
38891 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
38892 (rest_of_handle_combine): Initialize reg_n_sets_max.
38894 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
38896 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
38897 if some always_inline was inlined, apply changes before inlining
38900 2015-02-02 David Malcolm <dmalcolm@redhat.com>
38903 * config/arm/arm.c (arm_option_override): Set
38904 arm_selected_arch/cpu/tune to NULL on entry.
38906 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
38907 Andrew Pinski <pinskia@gcc.gnu.org>
38908 Jakub Jelinek <jakub@gcc.gnu.org>
38911 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
38912 integer typing for small model. Use IN_RANGE.
38914 2015-02-02 Richard Biener <rguenther@suse.de>
38916 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
38917 * tree-vrp.c (vrp_valueize_1): Likewise.
38919 2015-02-02 Alan Modra <amodra@gmail.com>
38921 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
38922 than mem for toc_restore.
38923 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
38924 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
38925 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
38927 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
38930 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
38931 explicit default options.
38933 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
38936 * ipa-utils.c (ipa_merge_profiles): Add release argument.
38937 * ipa-icf.c (sem_function::merge): Do not release body when merging.
38938 * ipa-utils.h (ipa_merge_profiles): Update prototype.
38940 2015-02-01 Jakub Jelinek <jakub@redhat.com>
38943 * cfgexpand.c (deep_ter_debug_map): New variable.
38944 (avoid_deep_ter_for_debug): New function.
38945 (expand_debug_expr): If TERed SSA_NAME is in
38946 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
38947 instead of trying to expand SSA_NAME's def stmt.
38948 (expand_debug_locations): When expanding debug bind
38949 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
38950 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
38952 (pass_expand::execute): Call avoid_deep_ter_for_debug on
38953 all debug bind stmts. Delete deep_ter_debug_map after
38954 expand_debug_location if non-NULL and clear it.
38956 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
38959 * config/sh/sync.md (atomic_fetch_notsi_hard,
38960 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
38961 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
38962 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
38963 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
38964 atomic_not_fetch<mode>_soft_imask): New insns.
38966 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38968 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
38969 (rank_for_schedule_debug): Split from ...
38970 (rank_for_schedule): ... this.
38971 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
38972 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
38974 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
38976 * doc/md.texi (Machine Constraints): Alphabetize table by target.
38977 * doc/extend.texi (x86 Variable Attributes): Move section to
38978 correct alphabetization after renaming.
38979 (x86 Type Attributes): Likewise.
38980 (Target Builtins): Re-alphabetize menu.
38981 (x86 Built-in Functions): Move section to correct alphabetization
38983 (x86 transactional memory intrinsics): Likewise.
38984 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
38985 and x86 Windows Options in table and menu.
38986 (x86 Options): Move section to correct alphabetization after
38988 (x86 Windows Options): Likewise.
38990 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
38992 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
38993 preferred names of the architecture and its 32- and 64-bit
38995 * doc/invoke.texi: Likewise.
38996 * doc/md.texi: Likewise.
38998 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
39001 * config/i386/predicates.md (address_no_seg_operand): Reject
39002 non-CONST_INT_P operands in invalid mode.
39004 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
39006 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
39007 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
39008 * config/i386/predicates.md (address_no_seg_operand): Call
39009 address_operand with VOIDmode.
39010 (vsib_address_operand): Ditto.
39011 (address_mpx_no_base_operand): Ditto.
39012 (address_mpx_no_index_operand): Ditto.
39014 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
39017 * lra-constraints.c (original_subreg_reg_mode): New.
39018 (simplify_operand_subreg): Try to simplify subreg of const. Use
39019 original_subreg_reg_mode for it.
39020 (swap_operands): Update original_subreg_reg_mode.
39021 (curr_insn_transform): Set up original_subreg_reg_mode.
39023 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
39026 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
39028 (process_alt_operands): Use it.
39029 (curr_insn_transform): Check the optional reload pseudo class is
39032 2015-01-30 Joseph Myers <joseph@codesourcery.com>
39034 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
39035 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
39037 * toplev.h (init_asm_output): Update comment on use of
39038 UNKNOWN_LOCATION with fatal_error.
39039 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
39040 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
39041 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
39042 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
39043 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
39044 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
39045 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
39046 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
39047 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
39048 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
39049 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
39050 fatal_error changed to pass input_location as first argument.
39052 2015-01-30 Martin Liska <mliska@suse.cz>
39054 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
39055 in #pragma GCC diagnostic guards.
39057 2015-01-30 Richard Biener <rguenther@suse.de>
39059 PR tree-optimization/64829
39060 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
39061 not add a widening conversion pattern but hand off extra
39062 widenings to callers.
39063 (vect_recog_widen_mult_pattern): Handle extra widening produced
39064 by vect_handle_widen_op_by_const.
39065 (vect_recog_widen_shift_pattern): Likewise.
39066 (vect_pattern_recog_1): Remove excess vertical space in dumping.
39067 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
39068 (vect_init_vector_1): Likewise.
39069 (vect_get_vec_def_for_operand): Likewise.
39070 (vect_finish_stmt_generation): Likewise.
39071 (vectorizable_load): Likewise.
39072 (vect_analyze_stmt): Likewise.
39073 (vect_is_simple_use): Likewise.
39075 2015-01-29 Jeff Law <law@redhat.com>
39077 * combine.c (try_combine): Fix typo in comment.
39079 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
39082 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
39083 (rs6000_stack_info): Add assert.
39084 (rs6000_output_savres_externs): New function, split off from...
39085 (rs6000_output_function_prologue): ... here. Do not call it for
39088 2015-01-29 Jeff Law <law@redhat.com>
39091 * combine.c (try_combine): If I0 is a memory load and I3 a store
39092 to a related address, increase the "goodness" of doing a 4-insn
39093 combination with I0-I3.
39094 (make_field_assignment): Handle SUBREGs in the ior+and case.
39096 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
39098 PR tree-optimization/64746
39099 * tree-if-conv.c (mask_exists): New function.
39100 (predicate_mem_writes): Save created mask with given size for further
39102 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
39103 (ifcvt_repair_bool_pattern): Collect all statements that are root
39104 of bool pattern and use iterative algorithm to remove multiple uses
39105 of predicates, display number of required iterations.
39107 2015-01-29 Richard Biener <rguenther@suse.de>
39109 PR tree-optimization/64853
39110 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
39111 stmt will get simulated again.
39112 * tree-ssa-ccp.c (valueize_op_1): Likewise.
39114 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39116 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
39117 return_in_pc. Remove redundant assignments.
39118 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
39119 (arm_expand_epilogue): Don't compare boolean with true in if condition.
39121 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
39123 * config/i386/i386.c (ix86_mode_after): Make static.
39125 2015-01-29 Richard Biener <rguenther@suse.de>
39127 PR tree-optimization/64844
39128 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
39129 dump cost model analysis.
39130 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
39131 Do not register adjusted load/store costs here.
39133 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
39134 Uros Bizjak <ubizjak@gmail.com>
39136 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
39137 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
39138 using x86_use_pseudo_pic_reg.
39139 * config/i386/i386.c (ix86_conditional_register_usage): Remove
39140 support for fixed PIC register.
39141 (ix86_use_pseudo_pic_reg): Not static any more.
39143 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
39145 PR middle-end/64805
39146 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
39147 to avoid error in cgraph node verification.
39149 2015-01-29 Marek Polacek <polacek@redhat.com>
39151 * doc/standards.texi: Reflect that the default for C is gnu11.
39153 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
39156 * reorg.c (switch_text_sections_between_p): New function.
39157 (relax_delay_slots): Call it when testing if the jump insn
39158 is removable. Use targetm.can_follow_jump when testing if
39159 the conditional branch can follow an unconditional jump.
39161 2015-01-27 Caroline Tice <cmtice@google.com>
39163 Committing VTV Cywin/Ming patch for Patrick Wollgast
39164 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
39165 if -fvtable-verify=preinit/std is used.
39166 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
39167 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
39168 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
39169 if -fvtable-verify=preinit/std is used.
39170 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
39171 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
39172 if -fvtable-verify=preinit/std is used.
39173 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
39174 * config/i386/mingw32.h (LIB_SPEC): Likewise.
39175 * varasm.c (assemble_variable): Add code to properly set the comdat
39176 section and name for the .vtable_map_vars section in case the
39177 target is PE or COFF.
39179 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
39182 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
39183 make sane BB profile.
39184 (cgraph_node::expand_thunk): Make sane BB profile.
39185 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
39186 * cgraph.h (init_lowered_empty_function): Update prototype.
39187 * config/i386/i386.c (make_resolver_func): Update call.
39188 * predict.c (gate): Disable branch prediction pass if
39189 profile is already there.
39191 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
39193 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
39194 * opth-gen.awk: Likewise.
39195 * common.opt: Mark flag_fp_contract_mode as Optimization.
39197 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
39199 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
39200 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
39202 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
39205 * config/sh/predicates.md (atomic_arith_operand,
39206 atomic_logical_operand): Remove.
39207 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
39208 (atomic_arith_operand_0): New predicate.
39209 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
39210 Use atomic_arith_operand_0 for input values.
39211 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
39212 atomic_compare_and_swap<mode>_soft_gusa,
39213 atomic_compare_and_swap<mode>_soft_tcb,
39214 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
39215 arith_reg_operand instead of register_operand.
39216 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
39217 atomic_arith_operand_0 for newval input.
39218 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
39219 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
39220 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
39221 arith_reg_operand instead of register_operand.
39222 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
39223 fetchop_predicate_1, fetchop_constraint_1_llcs,
39224 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
39225 fetchop_constraint_1_imask): New code iterator attributes.
39226 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
39227 register_operand. Use fetchop_predicate_1.
39228 (atomic_fetch_<fetchop_name>si_hard,
39229 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
39230 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
39231 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
39232 and arith_reg_operand instead of register_operand. Use
39233 fetchop_predicate_1, fetchop_constraint_1_gusa.
39234 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
39235 and arith_reg_operand instead of register_operand. Use
39236 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
39238 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
39239 and arith_reg_operand instead of register_operand. Use
39240 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
39242 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
39243 register_operand. Use atomic_logical_operand_1.
39244 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
39245 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
39246 arith_reg_operand instead of register_operand.
39247 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
39248 Use arith_reg_dest and arith_reg_operand instead of register_operand.
39249 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
39250 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
39251 register_operand. Use fetchop_predicate_1.
39252 (atomic_<fetchop_name>_fetchsi_hard,
39253 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
39254 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39255 fetchop_constraint_1_llcs.
39256 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
39257 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39258 fetchop_constraint_1_gusa.
39259 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
39260 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39261 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
39262 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
39263 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39264 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
39265 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
39266 register_operand. Use atomic_logical_operand_1.
39267 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
39268 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
39269 arith_reg_operand instead of register_operand.
39270 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
39271 arith_reg_operand instead of register_operand. Use logical_operand
39272 and K08. Adjust asm sequence to allow R0 usage.
39273 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
39274 arith_reg_operand instead of register_operand. Use logical_operand
39277 2015-01-28 Jakub Jelinek <jakub@redhat.com>
39280 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
39281 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
39282 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
39283 only get_full_len HOST_WIDE_INTs from get_val () array rather than
39284 all bits in *val_wide.
39286 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
39288 * varpool.c (tls_model_names): Fix names.
39289 (varpool_node::dump): Dump tls- prefix for tls models.
39291 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
39292 Bernd Schmidt <bernds@codesourcery.com>
39293 Nathan Sidwell <nathan@codesourcery.com>
39295 * config/nvptx/mkoffload.c: New file.
39296 * config/nvptx/t-nvptx: Add build rules for it.
39297 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
39298 (extra_programs): Add mkoffload.
39299 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
39301 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
39303 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
39305 PR middle-end/64809
39306 * cfgexpand.c (reorder_operands): Skip debug gimples.
39308 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
39310 PR tree-optimization/64277
39311 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
39312 range info when possible to refine estimation.
39314 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
39316 PR tree-optimization/64718
39317 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
39318 be a 16bit unsigned integer when n->range is 16.
39319 (bswap_replace): Convert src to that type if necessary for all bswap
39320 sizes. Fix rotation right notation in nearby comment. Use bswap_type
39321 set in pass_optimize_bswap::execute ().
39323 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
39325 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
39326 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
39327 integer and floating point variants.
39328 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
39330 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
39332 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
39333 for all vector modes.
39335 2015-01-28 Jakub Jelinek <jakub@redhat.com>
39338 * doc/sourcebuild.texi (comdat_group): Document.
39340 2015-01-28 Terry Guo <terry.guo@arm.com>
39342 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
39344 2015-01-27 David Malcolm <dmalcolm@redhat.com>
39346 * toplev.c (print_version): Add param "show_global_state", and
39347 only print GGC and plugin information if it is true.
39348 (init_asm_output): Pass in "true" for the new param when calling
39350 (process_options): Likewise.
39351 (toplev::main): Likewise.
39352 * toplev.h (print_version): Add new param to decl.
39354 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
39358 * tree.c (lookup_binfo_at_offset): New function.
39359 (get_binfo_at_offset): Use it.
39361 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
39364 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
39365 on vtable being vtable.
39367 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
39369 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
39370 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
39371 -mhotpatch= option.
39372 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
39373 -mno-hotpatch options. Change syntax of -mhotpatch= option.
39374 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
39376 (s390_hotpatch_trampoline_halfwords_max): Renamed.
39377 (s390_hotpatch_hw_max): New name.
39378 (s390_hotpatch_trampoline_halfwords): Renamed.
39379 (s390_hotpatch_hw_before_label): New name.
39380 (get_hotpatch_attribute): Removed.
39381 (s390_hotpatch_hw_after_label): New name.
39382 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
39384 (s390_attribute_table): Ditto.
39385 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
39386 (s390_function_num_hotpatch_hw): New name.
39387 Remove special handling of inline functions and hotpatching.
39388 Return number of nops before and after the function label.
39389 (s390_can_inline_p): Removed.
39390 (s390_asm_output_function_label): Emit a configurable number of nops
39391 after the function label.
39392 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
39393 (TARGET_CAN_INLINE_P) Removed.
39394 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
39396 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39397 Jiong Wang <jiong.wang@arm.com>
39399 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
39401 (cb<optab><mode>1): Likewise.
39402 * config/aarch64/iterators.md (bcond): New define_code_attr.
39404 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39406 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
39409 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39411 * config/s390/s390.c (s390_register_move_cost): Increase costs for
39414 2015-01-27 Richard Biener <rguenther@suse.de>
39416 * tree-vrp.c (update_value_range): Intersect the range with
39417 old recorded SSA name range information.
39419 2015-01-27 Nick Clifton <nickc@redhat.com>
39421 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
39422 BC, DE and HL registers directly, not via AX.
39423 When decrementing the stack pointer by a large amount, transfer SP
39424 into AX and perform the subtraction there.
39425 (rl78_expand_epilogue): Perform the inverse of the above
39428 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39430 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
39432 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39433 Yury Gribov <y.gribov@samsung.com>
39436 * ubsan.c (ubsan_source_location): Refactor code.
39437 (ubsan_type_descriptor): Update type size. Refactor code.
39439 2015-01-27 Richard Biener <rguenther@suse.de>
39441 PR tree-optimization/56273
39442 PR tree-optimization/59124
39443 PR tree-optimization/64277
39444 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
39445 from the first VRP pass.
39447 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39450 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
39451 handle the first argument in the same loop as all the other arguments.
39453 PR rtl-optimization/61058
39454 * jump.c (cleanup_barriers): Update basic block boundaries
39455 if BLOCK_FOR_INSN is non-NULL on PREV.
39457 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
39459 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
39460 bounds narrowing, already instrumented calls and calls to
39461 not instrumentable functions.
39463 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39465 PR tree-optimization/64807
39466 * wide-int.cc (wi::divmod_internal): Clear
39467 b_dividend[dividend_blocks_needed].
39469 2015-01-26 DJ Delorie <dj@redhat.com>
39471 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
39472 volatile memory references.
39474 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
39477 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
39479 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
39480 shifts if it already fits into K08.
39482 2015-01-26 Jakub Jelinek <jakub@redhat.com>
39485 * ipa-inline.c (inline_small_functions): Print "unknown" even
39486 if edge->call_stmt is non-NULL, but has builtins or unknown
39489 PR middle-end/64421
39490 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
39491 with asterisk, skip the first character.
39493 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
39496 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
39499 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
39502 * config/i386/i386.md (*movdi_internal): Also check operand 0
39503 to determine TYPE_LEA operand.
39504 (*movsi_internal): Ditto.
39506 2015-01-26 Jakub Jelinek <jakub@redhat.com>
39508 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
39509 OPTION_MASK_QUAD_MEMORY_ATOMIC.
39511 2015-01-26 Renlin Li <renlin.li@arm.com>
39513 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
39515 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
39518 2015-01-26 Richard Biener <rguenther@suse.de>
39520 PR middle-end/64764
39521 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
39522 combining two BIT_AND_EXPR predicates.
39524 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
39527 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
39529 2015-01-26 Terry Guo <terry.guo@arm.com>
39531 * config/arm/arm.c (arm_file_start): Update the assignment of
39532 Tag_ABI_HardFP_use.
39534 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
39536 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
39538 config/arm/arm.md: Include the new Cortex-A57 model.
39539 (generic_sched): Don't use generic_sched when tuning for
39542 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
39543 Uros Bizjak <ubizjak@gmail.com>
39545 * config/i386/i386.c (get_builtin_code_for_version): Add
39546 support for BMI and BMI2 multiversion functions.
39548 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39550 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
39551 (extract_bit_field): Likewise.
39552 (extract_low_bits): Likewise.
39553 (expand_mult): Likewise.
39554 (expand_mult_highpart_adjust): Likewise.
39556 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
39558 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
39559 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
39560 * config/i386/i386.c (processor_model): Add
39561 M_INTEL_COREI7_BROADWELL.
39562 (arch_names_table): Add "broadwell".
39564 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
39573 * config/sh/sh-protos.h
39574 (sh_extending_set_of_reg::can_use_as_unextended_reg,
39575 sh_extending_set_of_reg::use_as_unextended_reg,
39576 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
39577 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
39578 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
39579 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
39580 (sh_treg_insns): New class.
39581 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
39582 (scope_counter): New class.
39583 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
39584 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
39585 sh_extending_set_of_reg::can_use_as_unextended_reg,
39586 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
39587 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
39588 sh_split_treg_set_expr): New functions.
39589 (addsubcosts): Handle treg_set_expr.
39590 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
39591 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
39592 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
39593 (sh_insn_operands_modified_between_p): Make non-static.
39594 * config/sh/predicates.md (zero_extend_movu_operand): Allow
39595 simple_mem_operand in addition to displacement_mem_operand.
39596 (zero_extend_operand): Don't allow zero_extend_movu_operand.
39597 (treg_set_expr, treg_set_expr_not_const01,
39598 arith_reg_or_treg_set_expr): New predicates.
39599 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
39600 arith_or_int_operand instead of logical_operand. Convert to
39601 insn_and_split. Try to optimize constant operand in splitter.
39602 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
39603 (*tstqi_t_zero): Delete.
39604 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
39605 (tstsi_t_and_not): Delete.
39606 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
39607 Convert to insn_and_split.
39608 (unnamed split, tstsi_t_zero_extract_xor,
39609 tstsi_t_zero_extract_subreg_xor_little,
39610 tstsi_t_zero_extract_subreg_xor_big): Delete.
39611 (*tstsi_t_shift_mask): New insn_and_split.
39612 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
39613 to recombine with surrounding insns when splitting.
39614 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
39615 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
39616 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
39617 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
39618 (*cbranch_div0s: Delete.
39619 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
39620 Try to recombine with surrounding insns when splitting. Add operand
39622 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
39623 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
39624 *addc_r_r_msb, *addc_2r_msb): Delete.
39625 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
39627 (*addc_negreg_t): New insn_and_split.
39628 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
39629 Try to recombine with surrounding insns when splitting.
39630 Add operand order variants.
39631 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
39632 insn_and_split patterns.
39633 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
39634 surrounding insns when splitting.
39635 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
39636 (*rotcl): Likewise. Add zero_extract variant.
39637 (*ashrsi2_31): New insn_and_split.
39638 (*negc): Convert to insn_and_split. Use treg_set_expr.
39639 (*zero_extend<mode>si2_disp_mem): Update comment.
39640 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
39642 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
39643 with surrounding insns when splitting.
39644 (any_treg_expr_to_reg): New insn_and_split.
39645 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
39646 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
39647 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
39648 *zero_extract_2): New single bit zero extract patterns.
39649 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
39650 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
39651 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
39652 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
39654 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
39655 register_operand for set source.
39657 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
39659 * i386.opt (prefetch_sse): New targetsave.
39660 * i386.c (ix86_function_specific_save): Save prefetch_sse.
39661 (ix86_function_specific_restore): Restore prefetch_sse and initialize
39662 ix86_cost/ix86_tune_cost.
39664 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39666 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
39667 Support the JIT by using 0 as the language type.
39669 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
39672 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
39673 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
39674 (mark_regno_live, process_bb_lives): Pass new parameter value to
39675 make_hard_regno_born.
39677 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39679 PR rtl-optimization/63637
39680 PR rtl-optimization/60663
39681 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
39682 if elt->cost is MAX_COST for ASM_OPERANDS.
39683 (find_sets_in_insn): Fix up comment typo.
39684 (cse_insn): Don't set src_volatile for all non-volatile
39685 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
39686 or with "memory" clobber. Set elt->cost to MAX_COST
39687 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
39688 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
39690 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
39692 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
39695 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
39697 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
39698 libgcc/config/i386/elf-lib.h.
39700 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39703 * gcc.c (print_configuration): Don't print a blank line at the end
39705 (run_attempt): ... but here unstead.
39707 PR middle-end/64734
39708 * omp-low.c (scan_sharing_clauses): Don't ignore
39709 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
39710 on target data/update constructs.
39712 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
39715 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
39716 (DEBUG_RELOAD): Removed define.
39717 (m32c_limit_reload_class): Enable traces with if DEBUG0.
39718 (m32c_function_arg): Added a type cast.
39719 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
39720 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
39721 * config/m32c/bitops.md (andqi3_16): Likewise.
39722 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
39723 (push_a01_l): Likewise.
39725 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39728 * main.c (main): Construct toplev instances with init_signals=true.
39729 * toplev.c (general_init): Add param "init_signals", and use it to
39730 conditionalize the calls to signal and host_hooks.extra_signals.
39731 (toplev::toplev): Add param "init_signals".
39732 (toplev::main): When invoking general_init, pass m_init_signals
39733 to control whether signal-handlers are installed.
39734 * toplev.h (toplev::toplev): Add param "init_signals".
39735 (toplev::m_init_signals): New field.
39737 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39740 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
39741 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
39742 latter may be affected by the former (e.g. on i686).
39744 2015-01-23 Martin Liska <mliska@suse.cz>
39746 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
39747 false positive during profiledbootstrap.
39749 2015-01-23 Tom de Vries <tom@codesourcery.com>
39752 * lto-opts.c (lto_write_options): Output non-explicit conservative
39754 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
39755 (append_compiler_options): Pass -fopenacc through.
39757 2015-01-23 Tom de Vries <tom@codesourcery.com>
39760 * lto-opts.c (lto_write_options): Output non-explicit conservative
39762 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
39763 (append_compiler_options): Pass -fopenmp through.
39765 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39768 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
39771 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
39772 * diagnostic.def (DK_ICE_NOBT): New kind.
39773 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
39774 like DK_ICE, but never print backtrace.
39775 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
39776 (internal_error_no_backtrace): New function.
39777 * gcc.c (execute): Use internal_error_no_backtrace instead of
39780 2015-01-22 Jeff Law <law@redhat.com>
39783 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
39784 improve code density for small immediate to memory case.
39785 (insv): Better handle bitfield assignments when the field is
39786 being set to all ones.
39787 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
39790 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39791 Jakub Jelinek <jakub@redhat.com>
39793 PR middle-end/64729
39794 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
39795 for !TARGET_LIBC_PROVIDES_SSP version and
39796 -fstack-protector-{all,strong,explicit} otherwise.
39797 * config/freebsd.h (LINK_SSP_SPEC): Handle
39798 -fstack-protector-{strong,explicit}.
39800 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
39801 H.J. Lu <hongjiu.lu@intel.com>
39804 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
39807 2015-01-22 Wei Mi <wmi@google.com>
39809 PR rtl-optimization/64557
39810 * dse.c (record_store): Call get_addr for mem_addr.
39811 (check_mem_read_rtx): Likewise.
39813 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
39815 * fold-const.c (const_binop): Add early return for non-tcc_binary.
39817 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
39819 * toplev.c (init_local_tick): Process the failure when read
39820 fails for random_seed.
39822 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
39823 'pretty_name' to avoid memory overflow.
39825 2015-01-22 Richard Biener <rguenther@suse.de>
39827 PR middle-end/64728
39828 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
39829 abnormal coalescing on undefined SSA names.
39831 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
39835 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
39837 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
39839 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
39841 PR middle-end/63325
39842 * fold-const.c (fold_checksum_tree): Don't include value of
39843 expr->decl_with_vis.symtab_node in the checksum.
39845 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39847 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
39849 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
39852 * gcc.c (insert_comments): New function.
39853 (try_generate_repro): Call it.
39854 (append_text): Removed.
39856 2015-01-22 Richard Biener <rguenther@suse.de>
39858 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
39859 with IL incompatible options. Properly honor user optimize
39862 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
39864 PR rtl-optimization/64682
39865 * combine.c (distribute_notes): When moving a death note for
39866 a register that is set in the new I2, make sure to put it
39867 before that new I2.
39869 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
39871 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
39872 not TARGET_DEFAULT.
39874 2015-01-21 Jakub Jelinek <jakub@redhat.com>
39877 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
39878 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
39879 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
39882 * doc/invoke.texi (-fsanitize=vptr): Document.
39884 PR rtl-optimization/62078
39885 * dse.c: Include cfgcleanup.h.
39886 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
39887 anything call purge_all_dead_edges and cleanup_cfg at the end
39890 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
39892 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
39895 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
39897 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
39900 2015-01-21 David Sherwood <david.sherwood@arm.com>
39901 Tejas Belagod <Tejas.Belagod@arm.com>
39903 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
39904 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
39905 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
39908 2015-01-21 David Sherwood <david.sherwood@arm.com>
39909 Tejas Belagod <Tejas.Belagod@arm.com>
39911 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
39912 (aarch64_reverse_mask): New decls.
39913 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
39914 (insn_count): New mode_attr.
39915 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
39916 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
39917 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
39918 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
39919 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
39920 (aarch64_simd_st4): New patterns.
39921 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
39922 (aarch64_reverse_mask): New functions.
39924 2015-01-21 Alan Hayward <alan.hayward@arm.com>
39926 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
39928 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
39929 addressing modes for BE.
39930 (aarch64_print_operand): Add 'R' specifier.
39931 (aarch64_simd_disambiguate_copy): Delete.
39932 (aarch64_simd_emit_reg_reg_move): New function.
39933 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
39934 in define_splits for structural moves.
39935 (mov<mode>): Use less restrictive predicates.
39936 (*aarch64_mov<mode>): Simplify and only allow for LE.
39937 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
39939 2015-01-21 Alan Hayward <alan.hayward@arm.com>
39941 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
39943 2015-01-21 Richard Henderson <rth@redhat.com>
39946 * ccmp.c (used_in_cond_stmt_p): Remove.
39947 (expand_ccmp_expr): Don't use it.
39949 2015-01-21 Nick Clifton <nickc@redhat.com>
39951 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
39954 2015-01-21 Richard Biener <rguenther@suse.de>
39956 PR middle-end/64313
39957 * tree-core.h (builtin_info, builtin_info_type): Turn from
39958 an object with two arrays into an array of an object with
39959 decl and two flags, implicit_p and declared_p.
39960 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
39961 set_builtin_decl, set_builtin_decl_implicit_p,
39962 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
39963 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
39964 * builtins.c (builtin_info): Adjust.
39965 * gimplify.c (gimplify_addr_expr): References to builtins
39966 that have been declared by the user makes them eligible for
39967 use by the compiler. Call set_builtin_decl_implicit_p on them.
39969 2015-01-20 Jeff Law <law@redhat.com>
39972 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
39973 allow pc-relative addresses in operand predicates or constraints.
39975 2015-01-21 Bin Cheng <bin.cheng@arm.com>
39977 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
39978 neon on aarch32 processors for stringops.
39980 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39983 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
39985 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39988 * ipa-inline.c: Include lto-streamer.h
39989 (report_inline_failed_reason): Output source file differences and
39990 flags on optimization/target node mismatch.
39991 (can_inline_edge_p): Consider caller to be the outer inline function;
39992 be less restrictive about matching opimize and optimize_size attributes.
39993 (inline_account_function_p): Break out from ...
39994 (inline_small_functions): ... here.
39995 * ipa-inline-transform.c (clone_inlined_nodes): Use
39996 inline_account_function_p.
39997 (inline_call): Use optimize attribution; use inline_account_function_p.
39998 (inline_transform): Use opt_for_fn.
39999 * ipa-inline.h (inline_account_function_p): Declare.
40001 2015-01-20 Jakub Jelinek <jakub@redhat.com>
40004 * dwarf2out.c (decl_piece_node): Don't put bitsize into
40005 mode if bitsize <= 0.
40006 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
40007 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
40008 sizes and positions.
40010 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
40012 * config/nios2/nios2.c (nios2_asm_file_end): Implement
40013 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
40015 (TARGET_ASM_FILE_END): Define.
40017 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40019 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
40020 (struct tune_params): Use the enum.
40021 * arm.c (arm_*_tune): Update.
40022 (arm_option_override): Update.
40024 2015-01-20 Richard Biener <rguenther@suse.de>
40027 * ipa-reference.c (add_static_var): Inline ...
40028 (analyze_function): ... here after splitting out from ...
40029 (is_proper_for_analysis): ... this.
40031 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
40034 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
40035 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
40036 replace the conditional with it's true branch.
40037 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
40038 (arm_lra_p): Remove.
40040 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
40042 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
40044 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40046 * config/tilegx/mul-tables.c: Move symtab.h include after
40047 coretypes.h include.
40048 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
40049 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
40050 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
40051 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
40052 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40054 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
40058 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
40060 PR rtl-optimization/64081
40061 * loop-iv.c (def_pred_latch_p): New function.
40062 (latch_dominating_def): Allow specific cases with non-single
40064 (iv_get_reaching_def): Likewise.
40065 (check_complex_exit_p): New function.
40066 (check_simple_exit): Use check_complex_exit_p to allow certain cases
40067 with exits not executing on any iteration.
40069 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40072 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
40073 to set branch cost.
40075 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40078 * i386.c (gate): Check flag_expensive_optimizations and
40080 (ix86_option_override_internal): Drop optimize_size condition
40081 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
40082 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
40083 MASK_PREFER_AVX128.
40084 (ix86_avx256_split_vector_move_misalign,
40085 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
40086 * sse.md (all uses of TARGET_PREFER_AVX128): Add
40087 optimize_insn_for_speed_p check.
40089 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
40091 * config/mips/mips.h (FP_ASM_SPEC): New define.
40092 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
40095 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
40098 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
40099 nullptr for insn when reaching the first insn.
40100 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
40101 (sh_insn_operands_modified_between_p): Add nullptr check.
40102 (sh_find_extending_set_of_reg): Fix log message. Don't accept
40103 sign extending mem load if the insn contains any UNSPEC or
40106 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40108 * params.def (inline-unit-growth): Drop to 15%.
40109 * invoke.texi (inline-unit-growth): Document change.
40111 2015-01-19 Martin Liska <mliska@suse.cz>
40114 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
40115 function for second argument of OBJ_TYPE_REF.
40117 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40120 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
40121 whether function is an alias.
40123 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40125 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
40128 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
40130 PR rtl-optimization/64671
40131 * lra-remat.c (operand_to_remat): Don't consider jump and call
40134 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
40137 * config/rs6000/default64.h: Include rs6000-cpus.def.
40138 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
40139 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
40140 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
40142 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
40144 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
40145 pseudo-op to specify assembler dialect.
40147 2015-01-19 Martin Liska <mliska@suse.cz>
40150 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
40151 Handle safe potentially removed nodes during filtering.
40153 2015-01-19 Martin Liska <mliska@suse.cz>
40155 * doc/extend.texi (no_icf): Add new attribute description.
40156 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
40157 where the pass attempts to merge a function with no_icf attribute.
40159 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40162 * doc/md.texi (ARM Options): Document register constraints.
40164 2015-01-19 Jiong Wang <jiong.wang@arm.com>
40165 Andrew Pinski <apinski@cavium.com>
40168 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
40169 (ashl<mode>3): Don't expand if operands[2] is not constant.
40171 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40174 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
40175 Match xor-and-xor RTL pattern.
40177 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
40179 PR rtl-optimization/64081
40180 * loop-iv.c (def_pred_latch_p): New function.
40181 (latch_dominating_def): Allow specific cases with non-single
40183 (iv_get_reaching_def): Likewise.
40184 (check_complex_exit_p): New function.
40185 (check_simple_exit): Use check_complex_exit_p to allow certain cases
40186 with exits not executing on any iteration.
40188 2015-01-19 Jakub Jelinek <jakub@redhat.com>
40190 * common.opt (fgraphite): Fix a typo.
40192 2015-01-19 Felix Yang <felix.yang@huawei.com>
40194 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
40196 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
40197 uminp, smax_nanp, smin_nanp): New builtins.
40198 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
40199 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
40200 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
40201 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
40202 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
40203 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
40204 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
40205 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
40206 vpminnms_f32): Rewrite using builtin functions.
40208 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
40211 * omp-low.c (offload_symbol_decl): Remove variable.
40212 (get_offload_symbol_decl): Remove function.
40213 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
40214 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
40215 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
40216 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
40217 BUILT_IN_GOACC_UPDATE don't pass it at all.
40219 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
40221 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
40224 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
40226 * ipa-chkp.c (chkp_produce_thunks): Add early param
40227 to split thunks production into two passes. Keep
40228 'always_inline' function bodies after the first pass.
40229 (pass_data_ipa_chkp_early_produce_thunks): New.
40230 (pass_ipa_chkp_early_produce_thunks): New.
40231 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
40232 chkp_produce_thunks signature.
40233 (make_pass_ipa_chkp_early_produce_thunks): New.
40234 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
40235 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
40236 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
40238 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
40240 * cgraph.c (cgraph_node::dump): Dump profile flags.
40242 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
40245 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
40246 reg appear first in the parallel.
40248 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
40250 * ipa-reference.c (set_reference_optimization_summary,
40251 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
40253 (ignore_module_statics): New static var.
40254 (propagate_bits): If ipa-reference is disabled, do not look into local
40256 (analyze_function): Disable analysis when ipa_reference is disabled.
40257 (generate_summary): Do not dump when reference is disabled;
40258 collect vars accessed from functions with ipa-reference disabled.
40259 (get_read_write_all_from_node): When ipa-reference is disabled, use the
40261 (gate): Enable for LTO.
40262 (ignore_edge_p): New function.
40263 (propagate): Skip functions w/o ipa-reference analysis.
40264 * optc-save-gen.awk: Handle optimize_debug correctly.
40265 * opth-gen.awk: Likewise.
40266 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
40267 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
40268 fira-share-save-slots, fira-share-spill-slots,
40269 fmodulo-sched-allow-regmoves, fpartial-inlining,
40270 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
40271 ftracer, ftree-parallelize-loops, fassociative-math,
40272 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
40274 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
40275 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
40277 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
40280 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
40283 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
40285 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
40287 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
40289 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
40290 Remove duplicate option listings.
40292 2015-01-18 Felix Yang <felix.yang@huawei.com>
40294 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
40295 (autofdo_source_profile::get_callsite_total_count,
40296 function_instance::get_function_instance_by_decl,
40297 string_table::get_index, string_table::get_index_by_decl,
40298 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
40299 Fix comment typos. Reformatting and minor code rearrangement.
40301 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
40303 * config/rs6000/rs6000.md (probe_stack): Delete.
40304 (probe_stack_address): New.
40306 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
40308 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
40309 to test for 32-bit ABIs, not !TARGET_POWERPC64.
40311 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
40313 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
40314 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
40315 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
40317 (rs6000_libcall_value): Use the new function.
40319 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
40321 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
40323 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
40325 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
40326 implement a more precise life analysis for it during backward scan.
40328 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
40330 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
40332 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
40334 PR rtl-optimization/52773
40335 * calls.c (emit_library_call_value): When pushing arguments use
40336 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
40337 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
40338 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
40340 2015-01-17 Jeff Law <law@redhat.com>
40342 PR rtl-optimization/32790
40343 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
40344 not ZERO_EXTEND in SET_DESTs.
40346 2015-01-17 Alan Modra <amodra@gmail.com>
40348 * cprop.c (do_local_cprop): Revert last change.
40350 2015-01-16 DJ Delorie <dj@redhat.com>
40351 Nick Clifton <nickc@redhat.com>
40353 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
40354 (addhi3_real): Likewise. Fix [HL+0] syntax.
40355 (subqi3_real): Likewise.
40356 (subhi3_real): Likewise.
40357 (cbranchqi4_real): Likewise. Allow saddr,#imm.
40358 (cbranchhi4_real): Likewise.
40359 (cbranchhi4_real_inverted): Likewise.
40360 (cbranchsi4_real_lt): Likewise.
40361 (cbranchsi4_real_ge): Likewise.
40362 (cbranchsi4_real_ge): Likewise.
40363 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
40364 (sub<mode>3_virt): Likewise.
40365 (cbranchqi4_virt): Likewise.
40366 (cbranchhi4_virt): Likewise.
40367 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
40368 always use '[reg+imm]' even when imm is zero.
40369 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
40370 (rl78_general_operand): New.
40371 (rl78_nonimmediate_operand): New.
40372 (rl78_nonfar_operand): Use them.
40373 (rl78_nonfar_nonimm_operand): Likewise.
40374 (rl78_stack_based_mem): Fix.
40375 * config/rl78/constraints.md (Ibqi): New.
40380 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
40381 (iorqi3): Likewise.
40382 (xorqi3): Likewise.
40383 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
40385 * config/rl78/constrains (Qs8): New constraint.
40386 * config/rl78/rl78.c (rl78_flags_already_set): New function.
40387 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
40388 * config/rl78/rl78-real.md (update_Z): New attribute.
40389 Update patterns to set it.
40390 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
40391 shorter compare and branch sequence can be used.
40392 (cbranchhi4_real): Likewise.
40393 (cbranchhi4_real_inverted): Likewise.
40395 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
40396 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
40398 * config/rl78/rl78.c (rl78_get_name_encoding): New.
40399 (rl78_option_override): Allow -mes0 only if C.
40400 (characterize_address): Support subregs of symbol_refs.
40401 (rl78_addr_space_address_mode): Move. Add __near.
40402 (rl78_far_p): Likewise.
40403 (rl78_addr_space_pointer_mode): Likewise.
40404 (rl78_as_legitimate_address): Likewise.
40405 (rl78_addr_space_subset_p): Likewise.
40406 (rl78_addr_space_convert): Likewise.
40407 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
40408 symbols with -mes0.
40409 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
40411 (rl78_alloc_physical_registers_op1): Change logic to prefer
40412 symbol[BC] addressing.
40413 (frodata_section): New.
40414 (rl78_asm_init_sections): Initialize it.
40415 (rl78_select_section): Put __far readonly symbols in .frodata.
40416 (rl78_make_type_far): New.
40417 (rl78_insert_attributes): Force all readonly symbols to be
40419 (rl78_asm_out_integer): New.
40420 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
40421 * config/rl78/rl78.opt (-mes0): New.
40423 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
40424 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
40425 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
40426 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
40427 (rl78_saddr_p): New.
40428 (rl78_output_aligned_common): New.
40429 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
40430 (rl78_handle_saddr_attribute): New.
40431 (rl78_handle_naked_attribute): New.
40432 (rl78_attribute_table): Add saddr.
40433 (rl78_print_operand_1): Don't print '!' on saddr operands.
40434 (rl78_print_operand_1): Strip encodings.
40436 (rl78_strip_name_encoding): New.
40437 (rl78_attrlist_to_encoding): New.
40438 (rl78_encode_section_info): New.
40439 (rl78_asm_init_sections): New.
40440 (rl78_select_section): New.
40441 (rl78_output_labelref): New.
40442 (rl78_output_aligned_common): New.
40443 (rl78_asm_out_integer): New.
40444 (rl78_asm_ctor_dtor): New.
40445 (rl78_asm_constructor): New.
40446 (rl78_asm_destructor): New.
40448 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
40449 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
40450 (transcode_memory_rtx): Update.
40451 (rl78_expand_epilogue): Use A_REG instead of 0.
40453 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40455 * config/arm/arm-protos.h (struct tune_params): New field
40456 sched_autopref_queue_depth.
40457 * config/arm/arm.c (sched-int.h): Include header.
40458 (arm_first_cycle_multipass_dfa_lookahead_guard,)
40459 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
40460 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
40461 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
40462 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
40463 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
40464 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
40465 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
40466 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
40467 * config/arm/t-arm (arm.o): Update.
40468 * haifa-sched.c (update_insn_after_change): Update.
40469 (rank_for_schedule): Use auto-prefetcher model, if requested.
40470 (autopref_multipass_init): New static function.
40471 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
40472 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
40473 variable for debug dumps.
40474 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
40475 (autopref_multipass_dfa_lookahead_guard): New global function that
40476 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
40477 (init_h_i_d): Update.
40478 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
40479 * sched-int.h (enum autopref_multipass_data_status): New const enum.
40480 (autopref_multipass_data_): Structure for auto-prefetcher data.
40481 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
40482 (struct _haifa_insn_data:autopref_multipass_data): New field.
40483 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
40484 (autopref_multipass_dfa_lookahead_guard): Declare.
40486 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40488 * rtlanal.c (get_base_term): Handle SCRATCH.
40490 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40492 * config/aarch64/aarch64.c
40493 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
40494 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40496 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
40497 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40499 2015-01-17 Alan Modra <amodra@gmail.com>
40501 * cprop.c (do_local_cprop): Disallow replacement of fixed
40504 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40507 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
40510 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
40512 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
40513 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
40515 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40517 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
40518 * config/arm/thumb1.md: ... Here.
40520 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40522 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
40523 TImode for TARGET_32BIT.
40525 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40527 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
40528 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
40530 (rs6000_abi_word_mode): New function.
40532 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40534 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
40535 instead of UNITS_PER_WORD to describe the size of stack slots.
40537 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40539 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
40540 as rs6000_promote_function_mode. Move comment to there.
40541 (rs6000_promote_function_mode): New function.
40543 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40545 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
40546 -mpowerpc64 is active.
40548 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40550 PR middle-end/64353
40551 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
40554 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
40556 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
40557 introduced in revision 219724.
40559 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40560 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40563 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
40564 destination is not a GP reg.
40565 (*movdi_aarch64): Likewise.
40567 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
40570 * config/rs6000/default64.h: Revert ISA change.
40572 2015-01-16 Richard Biener <rguenther@suse.de>
40574 PR middle-end/64614
40575 * tree-ssa-uninit.c: Include tree-cfg.h.
40576 (MAX_SWITCH_CASES): New define.
40577 (convert_control_dep_chain_into_preds): Handle switch statements.
40578 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
40579 (normalize_one_pred_1): Do not split bit-manipulations.
40582 2015-01-16 Richard Biener <rguenther@suse.de>
40584 PR tree-optimization/64568
40585 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
40586 complex load rewriting for TARGET_MEM_REFs.
40588 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
40590 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
40592 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
40595 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
40597 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
40598 (aarch64_lra_p): Remove.
40600 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40603 * ipa-chkp.h (chkp_instrumentable_p): New.
40604 * ipa-chkp.c: Include tree-inline.h.
40605 (chkp_instrumentable_p): New.
40606 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
40607 Fix processing of not instrumentable functions.
40608 (chkp_versioning): Use chkp_instrumentable_p. Warn about
40609 not instrumentable functions.
40610 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
40611 chkp_instrumentable_p.
40612 * tree-inline.h (copy_forbidden): New.
40613 * tree-inline.c (copy_forbidden): Not static anymore.
40615 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40617 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
40620 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
40622 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
40623 type OP_OUT to OP_INOUT.
40625 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
40627 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
40628 (high x) y) to y if x and y have the same base.
40630 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
40632 * config/arm/cortex-a57.md: New.
40633 * config/aarch64/aarch64.md: Include it.
40634 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
40635 * config/aarch64/aarch64-tune.md: Regenerate.
40637 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
40640 * ccmp.c (expand_ccmp_next): New function.
40641 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
40642 and compare insn sequence.
40643 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
40644 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
40645 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
40646 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
40647 (*ccmp_ior): Changed to ccmp_ior<mode>.
40648 (cmp<mode>): New pattern.
40649 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
40651 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
40653 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
40655 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
40656 _mm256_bsrli_epi128): New.
40657 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
40659 2015-01-15 Jiong Wang <jiong.wang@arm.com>
40661 * expmed.c (store_bit_field_using_insv): Improve warning message.
40662 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
40664 2015-01-15 Jiong Wang <jiong.wang@arm.com>
40666 PR rtl-optimization/64011
40667 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
40668 there is partial overflow.
40670 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40672 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
40674 (nds32_expand_epilogue_v3pop): Likewise.
40675 * config/nds32/nds32.md (sibcall): Define this for sibling call
40677 (sibcall_register): Likewise.
40678 (sibcall_immediate): Likewise.
40679 (sibcall_value): Likewise.
40680 (sibcall_value_register): Likewise.
40681 (sibcall_value_immediate): Likewise.
40682 (sibcall_epilogue): Likewise.
40683 (epilogue): Pass false to indicate this is not a sibcall epilogue.
40684 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
40685 (nds32_expand_epilogue_v3pop): Likewise.
40687 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40689 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
40690 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
40691 (return_internal): New.
40692 (return): Define this named pattern.
40693 (simple_return): Define this named pattern.
40694 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
40695 pattern instead of unspec_volatile_func_return.
40696 (nds32_expand_epilogue_v3pop): Likewise.
40697 (nds32_can_use_return_insn): New function.
40699 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40701 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
40702 * config/nds32/nds32.md (pop25return): New.
40703 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
40704 pop25return pattern.
40706 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40708 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
40709 -mforbid-fp-as-gp, and -mex9 options.
40711 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40713 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
40714 remove -mgp-direct option.
40716 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40718 * doc/invoke.texi (--param early-inlining-insns): Update default value.
40719 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
40721 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40723 * ipa-inline.c (inline_small_functions): Work around hints
40726 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
40729 * doc/invoke.texi (Option Summary): Document new Nios II
40731 (Nios II Options): Likewise.
40732 * config/nios2/nios2.opt: Add -mgpopt= option support.
40733 Modify existing -mgpopt and -mno-gpopt options to be aliases.
40734 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
40735 * config/nios2/nios2.c (nios2_option_override): Adjust
40736 -mgpopt defaulting.
40737 (nios2_in_small_data_p): Return true for explicit small data
40738 sections even with -G0.
40739 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
40742 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40745 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
40747 (inline_call): Fix removal of aliases.
40749 2015-01-15 Jakub Jelinek <jakub@redhat.com>
40751 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
40752 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
40753 * opts.c (common_handle_option): Add -fsanitize=vptr.
40754 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
40755 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
40756 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
40757 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
40758 (ubsan_expand_vptr_ifn): New prototype.
40759 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
40760 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
40761 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
40762 expand_LOOP_VECTORIZED): Make argument nameless, remove
40764 (expand_UBSAN_VPTR): New function.
40765 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
40767 (UBSAN_VPTR): New internal function.
40768 * sanopt.c (tree_map_traits): Renamed to ...
40769 (sanopt_tree_map_traits): ... this.
40770 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
40771 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
40772 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
40773 (maybe_optimize_ubsan_vptr_ifn): New function.
40774 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
40775 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
40777 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
40778 internal calls like pure functions for aliasing, even when they
40779 have other side-effects that prevent making them ECF_PURE.
40780 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
40781 (ubsan_expand_vptr_ifn): New function.
40783 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
40785 PR rtl-optimization/64110
40786 * stmt.c (parse_output_constraint): Process '^' and '$'.
40787 (parse_input_constraint): Ditto.
40788 * lra-constraints.c (process_alt_operands): Process the new
40790 * ira-costs.c (record_reg_classes): Process the new constraint
40792 * genoutput.c (indep_constraints): Add '^' and '$'.
40793 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
40794 * doc/md.texi: Add description of the new constraints.
40796 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
40797 Bernd Schmidt <bernds@codesourcery.com>
40798 Cesar Philippidis <cesar@codesourcery.com>
40799 James Norris <jnorris@codesourcery.com>
40800 Tom de Vries <tom@codesourcery.com>
40801 Ilmir Usmanov <i.usmanov@samsung.com>
40802 Dmitry Bocharnikov <dmitry.b@samsung.com>
40803 Evgeny Gavrin <e.gavrin@samsung.com>
40804 Jakub Jelinek <jakub@redhat.com>
40806 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
40807 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
40808 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
40809 New function types.
40810 * builtins.c: Include "gomp-constants.h".
40811 (expand_builtin_acc_on_device): New function.
40812 (expand_builtin, is_inexpensive_builtin): Handle
40813 BUILT_IN_ACC_ON_DEVICE.
40814 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
40816 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
40818 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
40819 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
40820 i386/intelmic-offload.h.
40821 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
40822 to libgomp and its dependencies.
40823 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
40824 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
40825 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
40826 * config/ia64/hpux.h (LIB_SPEC): Likewise.
40827 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
40828 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
40829 * doc/generic.texi: Update for OpenACC changes.
40830 * doc/gimple.texi: Likewise.
40831 * doc/invoke.texi: Likewise.
40832 * doc/sourcebuild.texi: Likewise.
40833 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
40834 GF_OMP_FOR_KIND_OACC_LOOP.
40835 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
40836 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
40837 GF_OMP_TARGET_KIND_OACC_UPDATE,
40838 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40840 * gimple.c: Update comments for OpenACC changes.
40841 * gimple.def: Likewise.
40842 * gimple.h: Likewise.
40843 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
40844 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40845 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
40846 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40847 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
40849 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
40850 * gimplify.c: Include "gomp-constants.h".
40851 Update comments for OpenACC changes.
40852 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
40853 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
40854 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40855 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
40856 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40857 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40858 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
40859 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40860 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
40862 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
40863 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
40864 OMP_CLAUSE_SET_MAP_KIND.
40865 (gimplify_oacc_cache): New function.
40866 (gimplify_omp_for): Handle OACC_LOOP.
40867 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
40869 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
40870 OACC_EXIT_DATA, OACC_UPDATE.
40871 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
40872 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
40873 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
40874 (gimplify_body): Consider flag_openacc next to flag_openmp.
40875 * lto-streamer-out.c: Include "gomp-constants.h".
40876 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
40877 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
40878 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
40879 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
40880 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
40881 (BUILT_IN_ACC_ON_DEVICE): New builtins.
40882 * omp-low.c: Include "gomp-constants.h".
40883 Update comments for OpenACC changes.
40884 (struct omp_context): Add reduction_map, gwv_below, gwv_this
40886 (extract_omp_for_data, use_pointer_for_field, install_var_field)
40887 (new_omp_context, delete_omp_context, scan_sharing_clauses)
40888 (create_omp_child_function, scan_omp_for, scan_omp_target)
40889 (check_omp_nesting_restrictions, lower_reduction_clauses)
40890 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
40891 Update for OpenACC changes.
40892 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
40893 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
40894 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
40895 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40896 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
40897 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
40899 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
40900 Handle GF_OMP_FOR_KIND_OACC_LOOP.
40901 (expand_omp_target, lower_omp_target): Handle
40902 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40903 GF_OMP_TARGET_KIND_OACC_UPDATE,
40904 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
40905 GF_OMP_TARGET_KIND_OACC_DATA.
40906 (pass_expand_omp::execute, execute_lower_omp)
40907 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
40909 (offload_symbol_decl): New variable.
40910 (oacc_get_reduction_array_id, oacc_max_threads)
40911 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
40912 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
40913 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
40914 (oacc_gimple_assign, oacc_initialize_reduction_data)
40915 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
40917 (is_targetreg_ctx): Remove function.
40918 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
40919 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
40920 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40921 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
40922 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
40923 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
40924 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
40925 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
40926 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
40927 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
40928 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
40929 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
40930 * tree-core.h: Update comments for OpenACC changes.
40931 (enum omp_clause_map_kind): Remove.
40932 (struct tree_omp_clause): Change type of map_kind member from enum
40933 omp_clause_map_kind to unsigned char.
40934 * tree-inline.c: Update comments for OpenACC changes.
40935 * tree-nested.c: Likewise. Include "gomp-constants.h".
40936 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
40937 (convert_tramp_reference_stmt, convert_gimple_call): Update for
40938 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
40939 OMP_CLAUSE_SET_MAP_KIND.
40940 * tree-pretty-print.c: Include "gomp-constants.h".
40941 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
40942 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
40943 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
40944 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
40945 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40946 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
40947 instead of OMP_CLAUSE_MAP_*.
40948 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
40949 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
40950 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40951 * tree-streamer-in.c: Include "gomp-constants.h".
40952 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
40953 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
40954 * tree-streamer-out.c: Include "gomp-constants.h".
40955 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
40957 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
40958 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
40959 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
40960 * tree.c (omp_clause_num_ops): Update accordingly.
40961 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
40963 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
40964 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
40965 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
40966 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
40967 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
40968 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
40969 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
40970 (OMP_CLAUSE_SET_MAP_KIND): New macro.
40971 * varpool.c (varpool_node::get_create): Consider flag_openacc next
40973 * config/i386/intelmic-offload.h: New file.
40974 * config/nvptx/offload.h: Likewise.
40976 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40978 * explow.h: Remove duplicate contents.
40979 * dojump.h: Likewise.
40981 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
40983 * arm.c (arm_xgene_tune): Add default initializer for instruction
40986 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40990 * ipa.c (symbol_table::remove_unreachable_nodes):
40991 Do not put abstract origins into boundary.
40993 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
40995 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
40996 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
40998 2015-01-15 Steve Ellcey <sellcey@mips.com>
41000 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
41001 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
41002 builtins.def, and chkp-builtins.def.
41004 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
41006 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
41009 2015-01-15 Richard Biener <rguenther@suse.de>
41011 PR tree-optimization/61743
41012 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
41013 information on PHIs for some simple cases.
41015 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
41017 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
41019 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
41020 * config/arm/arm-cores.def (xgene1): New entry.
41021 * config/arm/arm-tables.opt: Regenerate.
41022 * config/arm/arm-tune.md: Regenerate.
41023 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
41025 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
41027 * tree-if-conv.c: Include hash-map.h.
41028 (aggressive_if_conv): New variable.
41029 (fold_build_cond_expr): Add simplification of non-zero condition.
41030 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
41031 destination block is not always executed.
41032 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
41033 than two predecessors if AGGRESSIVE_IF_CONV is true.
41034 (if_convertible_stmt_p): Fix commentary.
41035 (all_preds_critical_p): New function.
41036 (has_pred_critical_p): New function.
41037 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
41038 BB can have more than two predecessors and all incoming edges can be
41040 (predicate_bbs): Skip predication for loop exit block, use build2_loc
41041 to compute predicate for true edge.
41042 (find_phi_replacement_condition): Delete this function.
41043 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
41044 Allow interchange PHI arguments if EXTENDED is false.
41045 Change check that block containing reduction statement candidate
41046 is predecessor of phi-block since phi may have more than two arguments.
41047 (phi_args_hash_traits): New helper structure.
41048 (struct phi_args_hash_traits): New type.
41049 (phi_args_hash_traits::hash): New function.
41050 (phi_args_hash_traits::equal_keys): New function.
41051 (gen_phi_arg_condition): New function.
41052 (predicate_scalar_phi): Add handling of phi nodes with more than two
41053 arguments, delete COND and TRUE_BB arguments, insert body of
41054 find_phi_replacement_condition to predicate ordinary phi nodes.
41055 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
41056 delete call of find_phi_replacement_condition and invoke
41057 predicate_scalar_phi with two arguments.
41058 (insert_gimplified_predicates): Add assert that non-predicated block
41059 don't have statements to insert.
41060 (ifcvt_split_critical_edges): New function.
41061 (ifcvt_split_def_stmt): Likewise.
41062 (ifcvt_walk_pattern_tree): Likewise.
41063 (stmt_is_root_of_bool_pattern): Likewise.
41064 (ifcvt_repair_bool_pattern): Likewise.
41065 (ifcvt_local_dce): Likewise.
41066 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
41067 is copy of inner or outer loop force_vectorize field, invoke
41068 ifcvt_split_critical_edges, ifcvt_local_dce and
41069 ifcvt_repair_bool_pattern for aggressive if-conversion.
41071 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
41073 * config/aarch64/aarch64.md: Include xgene1.md.
41074 * config/aarch64/xgene1.md: New file.
41076 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
41078 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
41079 xgene1 (APM XGene-1) core definition.
41080 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
41081 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
41082 * doc/invoke.texi: Document -mcpu=xgene1.
41084 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41086 * dojump.h: New header file.
41087 * explow.h: Likewise.
41088 * expr.h: Remove includes.
41089 Move expmed.c prototypes to expmed.h.
41090 Move dojump.c prototypes to dojump.h.
41091 Move alias.c prototypes to alias.h.
41092 Move explow.c prototypes to explow.h.
41093 Move calls.c prototypes to calls.h.
41094 Move emit-rtl.c prototypes to emit-rtl.h.
41095 Move varasm.c prototypes to varasm.h.
41096 Move stmt.c prototypes to stmt.h.
41097 (saved_pending_stack_adjust): Move to dojump.h.
41098 (adjust_address): Move to explow.h.
41099 (adjust_address_nv): Move to emit-rtl.h.
41100 (adjust_bitfield_address): Likewise.
41101 (adjust_bitfield_address_size): Likewise.
41102 (adjust_bitfield_address_nv): Likewise.
41103 (adjust_automodify_address_nv): Likewise.
41104 * explow.c (expr_size): Move to expr.c.
41105 (int_expr_size): Likewise.
41106 (tree_expr_size): Likewise.
41107 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41108 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
41109 * genemit.c (main): Generate includes statistics.h, real.h,
41110 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
41112 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
41113 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
41114 explow.h, emit-rtl.h, stmt.h.
41115 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
41116 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
41117 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
41118 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
41119 emit-rtl.h, varasm.h, stmt.h.
41120 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
41121 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
41122 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
41123 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
41124 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
41125 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
41126 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
41127 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
41128 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
41129 tm.h tree.h varasm.h vec.h wide-int.h.
41130 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41131 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
41132 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
41133 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
41134 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
41135 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
41136 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
41137 * loop-iv.c: Likewise.
41138 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
41139 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
41140 statistics.h stmt.h tree.h varasm.h wide-int.h.
41141 * lra-constraints.c: Likewise.
41142 * lra-eliminations.c: Likewise.
41143 * lra-lives.c: Likewise.
41144 * lra-remat.c: Likewise.
41145 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41146 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
41147 statistics.h stmt.h tree.h varasm.h wide-int.h.
41148 * hw-doloop.c: Likewise.
41149 * ira-color.c: Likewise.
41150 * ira-emit.c: Likewise.
41151 * loop-doloop.c: Likewise.
41152 * loop-invariant.c: Likewise.
41153 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41154 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
41155 statistics.h stmt.h tree.h varasm.h wide-int.h.
41156 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
41157 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
41158 statistics.h stmt.h tree.h varasm.h wide-int.h.
41159 * combine-stack-adj.c: Likewise.
41162 * ifcvt.c: Likewise.
41163 * ira-costs.c: Likewise.
41164 * jump.c: Likewise.
41165 * lra-coalesce.c: Likewise.
41166 * lra-spills.c: Likewise.
41167 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41168 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
41169 stmt.h varasm.h wide-int.h.
41170 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41171 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41173 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
41174 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
41175 statistics.h stmt.h varasm.h wide-int.h.
41176 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
41177 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
41178 varasm.h wide-int.h.
41179 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
41180 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41181 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
41182 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
41183 statistics.h stmt.h.
41184 * config/tilepro/tilepro.c: Likewise.
41185 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
41186 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
41187 * config/pdp11/pdp11.c: Likewise.
41188 * config/xtensa/xtensa.c: Likewise.
41189 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
41190 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41192 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41193 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41194 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
41195 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41196 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41197 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
41198 * rtl-chkp.c: Likewise.
41199 * tree-chkp-opt.c: Likewise.
41200 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
41201 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
41202 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
41203 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41204 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41205 statistics.h stmt.h.
41206 * tree-vect-data-refs.c: Likewise.
41207 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
41208 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41209 rtl.h statistics.h stmt.h varasm.h.
41210 * internal-fn.c: Likewise.
41211 * ipa-icf-gimple.c: Likewise.
41212 * lto-section-out.c: Likewise.
41213 * tree-data-ref.c: Likewise.
41214 * tree-nested.c: Likewise.
41215 * tree-outof-ssa.c: Likewise.
41216 * tree-predcom.c: Likewise.
41217 * tree-pretty-print.c: Likewise.
41218 * tree-scalar-evolution.c: Likewise.
41219 * tree-ssa-strlen.c: Likewise.
41220 * tree-vect-loop.c: Likewise.
41221 * tree-vect-patterns.c: Likewise.
41222 * tree-vect-slp.c: Likewise.
41223 * tree-vect-stmts.c: Likewise.
41224 * tsan.c: Likewise.
41225 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41226 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
41228 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
41229 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41230 statistics.h stmt.h varasm.h.
41231 * loop-unroll.c: Likewise.
41232 * ubsan.c: Likewise.
41233 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
41234 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
41236 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41237 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
41238 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
41239 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41240 statistics.h stmt.h.
41241 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
41242 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41243 statistics.h stmt.h varasm.h.
41244 * gimple-match-head.c: Likewise.
41245 * lto-cgraph.c: Likewise.
41246 * lto-section-in.c: Likewise.
41247 * lto-streamer-in.c: Likewise.
41248 * lto-streamer-out.c: Likewise.
41249 * tree-affine.c: Likewise.
41250 * tree-cfg.c: Likewise.
41251 * tree-cfgcleanup.c: Likewise.
41252 * tree-if-conv.c: Likewise.
41253 * tree-into-ssa.c: Likewise.
41254 * tree-ssa-alias.c: Likewise.
41255 * tree-ssa-copyrename.c: Likewise.
41256 * tree-ssa-dse.c: Likewise.
41257 * tree-ssa-forwprop.c: Likewise.
41258 * tree-ssa-live.c: Likewise.
41259 * tree-ssa-math-opts.c: Likewise.
41260 * tree-ssa-pre.c: Likewise.
41261 * tree-ssa-sccvn.c: Likewise.
41262 * tree-tailcall.c: Likewise.
41263 * tree-vect-generic.c: Likewise.
41264 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41265 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
41266 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41267 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
41268 * varasm.c: Likewise.
41269 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41270 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
41272 * init-regs.c: Likewise.
41274 * omp-low.c: Likewise.
41275 * stack-ptr-mod.c: Likewise.
41276 * tree-ssa-reassoc.c: Likewise.
41277 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41278 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
41280 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41281 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
41282 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41283 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
41284 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41285 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
41286 * tree-ssa-phiopt.c: Likewise.
41287 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41288 fixed-value.h hashtab.h real.h statistics.h stmt.h.
41289 * config/fr30/fr30.c: Likewise.
41290 * config/frv/frv.c: Likewise.
41291 * expr.c: Likewise.
41292 * final.c: Likewise.
41293 * optabs.c: Likewise.
41294 * passes.c: Likewise.
41295 * simplify-rtx.c: Likewise.
41296 * stmt.c: Likewise.
41297 * toplev.c: Likewise.
41298 * var-tracking.c: Likewise.
41299 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41300 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41301 * lower-subreg.c: Likewise.
41302 * postreload-gcse.c: Likewise.
41304 * reginfo.c: Likewise.
41305 * store-motion.c: Likewise.
41306 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41307 fixed-value.h hashtab.h real.h stmt.h varasm.h.
41308 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41309 fixed-value.h hashtab.h statistics.h stmt.h.
41310 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41311 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
41312 * except.c: Likewise.
41313 * explow.c: Likewise.
41314 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41315 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
41317 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41318 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
41319 * tree-ssa-structalias.c: Likewise.
41320 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41321 fixed-value.h insn-config.h real.h statistics.h.
41322 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41323 fixed-value.h insn-config.h real.h statistics.h stmt.h.
41324 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41325 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41326 * cfgbuild.c: Likewise.
41327 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41328 fixed-value.h real.h rtl.h statistics.h stmt.h.
41329 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41330 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41331 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41332 fixed-value.h real.h statistics.h stmt.h.
41333 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41334 fixed-value.h real.h statistics.h stmt.h varasm.h.
41335 * cprop.c: Likewise.
41336 * modulo-sched.c: Likewise.
41337 * postreload.c: Likewise.
41338 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41339 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
41340 statistics.h stmt.h varasm.h.
41341 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
41342 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41343 rtl.h statistics.h stmt.h varasm.h.
41344 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
41345 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
41347 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41348 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
41350 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
41351 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
41353 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
41354 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41355 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41356 function.h real.h statistics.h stmt.h varasm.h.
41357 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41358 insn-config.h real.h statistics.h stmt.h.
41359 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41360 statistics.h stmt.h.
41361 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
41362 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
41363 statistics.h stmt.h varasm.h.
41364 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
41365 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
41366 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41367 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
41368 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
41369 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41370 statistics.h stmt.h varasm.h.
41371 * ipa-polymorphic-call.c: Likewise.
41372 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
41373 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41374 statistics.h stmt.h.
41375 * config/c6x/c6x.c: Likewise.
41376 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
41377 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41378 statistics.h stmt.h varasm.h.
41379 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
41380 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
41382 * ipa-split.c: Likewise.
41383 * tree-eh.c: Likewise.
41384 * tree-ssa-dce.c: Likewise.
41385 * tree-ssa-loop-niter.c: Likewise.
41386 * tree-vrp.c: Likewise.
41387 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
41388 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
41390 * config/nds32/nds32-fp-as-gp.c: Likewise.
41391 * config/nds32/nds32-intrinsic.c: Likewise.
41392 * config/nds32/nds32-isr.c: Likewise.
41393 * config/nds32/nds32-md-auxiliary.c: Likewise.
41394 * config/nds32/nds32-memory-manipulation.c: Likewise.
41395 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
41396 * config/nds32/nds32-predicates.c: Likewise.
41397 * config/nds32/nds32.c: Likewise.
41398 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
41399 fixed-value.h hashtab.h real.h statistics.h.
41400 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
41401 fixed-value.h hashtab.h real.h statistics.h stmt.h.
41402 * config/arm/arm.c: Likewise.
41403 * config/avr/avr.c: Likewise.
41404 * config/bfin/bfin.c: Likewise.
41405 * config/h8300/h8300.c: Likewise.
41406 * config/i386/i386.c: Likewise.
41407 * config/ia64/ia64.c: Likewise.
41408 * config/iq2000/iq2000.c: Likewise.
41409 * config/m32c/m32c.c: Likewise.
41410 * config/m32r/m32r.c: Likewise.
41411 * config/m68k/m68k.c: Likewise.
41412 * config/mcore/mcore.c: Likewise.
41413 * config/mep/mep.c: Likewise.
41414 * config/mips/mips.c: Likewise.
41415 * config/mn10300/mn10300.c: Likewise.
41416 * config/moxie/moxie.c: Likewise.
41417 * config/pa/pa.c: Likewise.
41418 * config/rl78/rl78.c: Likewise.
41419 * config/rx/rx.c: Likewise.
41420 * config/s390/s390.c: Likewise.
41421 * config/sh/sh.c: Likewise.
41422 * config/sparc/sparc.c: Likewise.
41423 * config/spu/spu.c: Likewise.
41424 * config/stormy16/stormy16.c: Likewise.
41425 * config/v850/v850.c: Likewise.
41426 * config/vax/vax.c: Likewise.
41427 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
41428 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41429 * config/msp430/msp430.c: Likewise.
41430 * predict.c: Likewise.
41431 * value-prof.c: Likewise.
41432 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
41433 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
41434 * config/microblaze/microblaze.c: Likewise.
41435 * config/nios2/nios2.c: Likewise.
41436 * config/rs6000/rs6000.c: Likewise.
41437 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41438 insn-config.h real.h rtl.h statistics.h stmt.h.
41439 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41440 insn-config.h real.h statistics.h stmt.h.
41441 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
41442 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41443 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
41444 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41445 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
41446 fixed-value.h real.h statistics.h stmt.h.
41447 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
41448 fixed-value.h statistics.h stmt.h.
41449 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
41452 2015-01-15 Jakub Jelinek <jakub@redhat.com>
41454 * gengtype.c (create_user_defined_type): Workaround
41455 -Wmaybe-uninitialized false positives.
41456 * cse.c (fold_rtx): Likewise.
41457 * loop-invariant.c (gain_for_invariant): Likewise.
41459 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
41461 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
41462 set the memory attributes in all cases but clear MEM_EXPR if need be.
41464 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
41466 PR tree-optimization/64434
41467 * cfgexpand.c (reorder_operands): New function.
41468 (expand_gimple_basic_block): Insert call of reorder_operands if
41471 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
41473 * config/mips/micromips.md (*swp): Remove explicit parallel.
41474 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
41475 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
41476 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
41477 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
41478 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
41479 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
41480 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
41481 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
41482 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
41483 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
41484 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
41485 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
41486 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
41487 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
41488 (mips_wrdsp): Likewise.
41489 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
41491 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
41492 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
41493 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
41494 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
41495 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
41496 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
41497 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
41498 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
41499 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
41501 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41503 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
41504 (mips_print_operand): Support 'y' to print exact log2 in decimal
41506 * config/mips/mips.h (ISA_HAS_LSA): New define.
41507 (ISA_HAS_DLSA): Likewise.
41508 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
41509 * config/mips/predicates.md (const_immlsa_operand): New predicate.
41511 2015-01-15 Martin Liska <mliska@suse.cz>
41514 * optc-save-gen.awk: Add support for array types.
41516 2015-01-15 Richard Biener <rguenther@suse.de>
41518 PR middle-end/64365
41519 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
41520 for MEM_REF access functions with the same base can never partially
41523 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
41525 * common.opt: New option -fstack-protector-explicit.
41526 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
41527 (stack_protect_decl_phase): Handle stack_protect attribute for
41528 explicit stack protection requests.
41529 (expand_used_vars): Similarly.
41530 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
41531 * doc/extend.texi: Add documentation for "stack_protect" attribute.
41532 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
41534 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
41537 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
41539 (sh_extending_set_of_reg): New struct.
41540 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
41541 sh_remove_reg_dead_or_unused_notes): New Declarations.
41542 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
41543 sh_find_extending_set_of_reg, sh_split_tst_subregs,
41544 sh_extending_set_of_reg::use_as_extended_reg): New functions.
41545 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
41546 convert to insn_and_split and use new function sh_split_tst_subregs.
41548 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
41550 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
41552 (Optimization Options): Move -fuse-ld documentation to...
41553 (Link Options): ...here.
41555 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41557 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
41559 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
41560 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
41561 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
41562 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
41563 instead of ZR for the memory operand of LL/SC.
41564 (compare_and_swap_12, sync_add<mode>): Likewise.
41565 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
41566 (sync_new_<optab>_12, sync_nand_12): Likewise.
41567 (sync_old_nand_12, sync_new_nand_12): Likewise.
41568 (sync_sub<mode>, sync_old_add<mode>): Likewise.
41569 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
41570 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
41571 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
41572 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
41573 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
41574 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
41575 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
41576 * doc/md.texi (ZC): Update description.
41578 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41580 * builtins.c (expand_builtin_atomic_exchange): Remove error when
41581 memory model is CONSUME.
41582 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
41583 expand_builtin_atomic_store): Change invalid memory model errors to
41585 (expand_builtin_atomic_clear): Change invalid model errors to warnings
41586 and issue warning for CONSUME.
41588 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
41590 * lto-cgraph: Update function comments for
41591 lto_symtab_encoder_encode_*.
41593 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41595 * Makefile.in (site.exp): Do not set ENABLE_LTO.
41597 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41599 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
41600 * lto-cgraph.c (select_what_to_stream): Remove argument, use
41601 lto_stream_offload_p instead.
41602 * lto-streamer.h (select_what_to_stream): Remove argument.
41603 * passes.c (ipa_write_summaries): Likewise.
41604 * tree-pass.h (ipa_write_summaries): Likewise.
41606 2015-01-14 Richard Biener <rguenther@suse.de>
41608 PR tree-optimization/59354
41609 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
41610 groups larger than the slp group size as having gaps.
41612 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41614 PR middle-end/59448
41615 * builtins.c (get_memmodel): Promote consume to acquire always.
41617 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41620 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
41623 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41626 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
41628 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
41629 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
41630 AVX512VBMI, as it implies AVX512BW.
41632 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41635 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
41636 (vec_unpacks_hi_v16sf): Ditto.
41638 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41640 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
41643 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41645 * doc/invoke.texi (mapcs): Mention deprecation.
41646 (mapcs-frame): Likewise.
41648 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
41651 * config/arm/arm.c (callee_saved_reg_p): Define.
41652 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
41653 register is callee saved instead of !call_used_regs[reg].
41654 (thumb1_compute_save_reg_mask): Likewise.
41656 2015-01-14 Hale Wang <hale.wang@arm.com>
41658 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
41661 2015-01-14 Richard Biener <rguenther@suse.de>
41664 * tree-inline.c (insert_debug_decl_map): Check destination
41665 function MAY_HAVE_DEBUG_STMTS.
41666 (insert_init_debug_bind): Likewise.
41667 (insert_init_stmt): Remove redundant check.
41668 (remap_gimple_stmt): Drop debug stmts if the destination
41669 function has var-tracking assignments disabled.
41671 2015-01-14 Martin Liska <mliska@suse.cz>
41673 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
41674 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
41676 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41679 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
41680 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
41682 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41684 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
41685 level from an ARCH; do not inject the default.
41686 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
41687 MIPS_ISA_LEVEL_SPEC.
41688 (MIPS_ISA_NAN2008_SPEC): Update comment.
41689 (BASE_DRIVER_SELF_SPECS): Likewise.
41690 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
41691 MIPS_DEFAULT_ISA_LEVEL_SPEC.
41692 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
41693 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
41694 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
41696 2015-01-14 Richard Biener <rguenther@suse.de>
41698 PR tree-optimization/64493
41699 PR tree-optimization/64495
41700 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
41701 assign the proper vectorized PHI to the inner loop exit PHIs.
41703 2015-01-14 Joey Ye <joey.ye@arm.com>
41705 * config/arm/arm.c (arm_compute_save_reg_mask):
41706 Do not save lr in case of tail call.
41707 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
41709 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
41711 * tree-vrp.c (check_array_ref): Emit more warnings
41712 for warn_array_bounds >= 2.
41713 * common.opt: New option -Warray-bounds=.
41714 * doc/invoke.texi: Document -Warray-bounds=.
41716 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
41718 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
41719 (mforbid-fp-as-gp): Remove.
41721 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
41722 (nds32_symbol_load_store_p): Remove.
41723 (nds32_fp_as_gp_check_available): Clean up implementation.
41724 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
41726 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
41727 fp-as-gp and ex9 cases.
41729 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41731 * tree-profile.c (init_ic_make_global_vars): Drop workaround
41732 for bintuils bug 14342.
41733 (init_ic_make_global_vars): Likewise.
41734 (gimple_init_edge_profiler): Likewise.
41735 (gimple_gen_ic_func_profiler): Likewise.
41737 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
41739 * ipa-inline.c (inline_small_functions): Swap the operands in
41742 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41745 * ipa-inline-analysis.c (node_growth_cache): Remove.
41746 (initialize_growth_caches): Do not initialize it.
41747 (free_growth_caches): Do not free it.
41748 (do_estimate_growth): Rename to ...
41749 (estimate_growth): ... this one; drop growth cache code.
41750 (growth_likely_positive): Always go the heuristics way.
41751 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
41752 (reset_edge_caches): Do not reset node growth.
41753 (heap_edge_removal_hook): Do not maintain cache.
41754 (inline_small_functions): Likewise; strenghten sanity check.
41755 (ipa_inline): Do not maintain caches.
41756 * ipa-inline.h (node_growth_cache): Remove.
41757 (do_estimate_growth): Remove to ...
41758 (estimate_growth): this one; remove inline version.
41759 (reset_node_growth_cache): Remove.
41761 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41764 * ipa-inline.c (inline_small_functions): Update callee keys after
41765 resolving speculation
41766 (inline_small_functions): Always check monotonicity of the queue.
41768 2015-01-13 Marek Polacek <polacek@redhat.com>
41770 PR middle-end/64391
41771 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
41773 2015-01-13 Jakub Jelinek <jakub@redhat.com>
41775 PR rtl-optimization/64286
41776 * ree.c (combine_reaching_defs): Move part of comment earlier,
41777 remove !SCALAR_INT_MODE_P check.
41778 (add_removable_extension): Don't add vector mode
41779 extensions if all uses of the source register aren't the same
41782 2015-01-13 Renlin Li <renlin.li@arm.com>
41784 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
41785 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
41787 2015-01-13 Martin Liska <mliska@suse.cz>
41789 * ipa-icf.c (sem_function::equals_private): Call new functions
41790 cl_target_option_print_diff and cl_optimization_print_diff.
41791 * optc-save-gen.awk (cl_target_option_print_diff): New function.
41792 (cl_optimization_print_diff): Likewise.
41793 * opth-gen.awk: Likewise.
41795 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
41797 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
41798 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
41799 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
41800 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
41801 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
41802 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
41804 2015-01-13 Andrew Pinski <apinski@cavium.com>
41806 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
41807 instead of src mode.
41809 2015-01-13 Richard Biener <rguenther@suse.de>
41812 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
41815 2015-01-13 Andrew Pinski <apinski@cavium.com>
41817 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
41819 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
41821 2015-01-13 Jakub Jelinek <jakub@redhat.com>
41823 PR middle-end/63974
41824 * cfgexpand.c (expand_computed_goto): Don't call
41825 convert_memory_address here.
41827 2015-01-13 Richard Biener <rguenther@suse.de>
41829 PR tree-optimization/64406
41830 * tree-loop-distibution.c (pass_loop_distribution::execute):
41831 Reset the SCEV hashtable if we distributed anything.
41833 2015-01-13 Richard Biener <rguenther@suse.de>
41835 PR tree-optimization/64404
41836 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
41837 SLP types for CSEd loads.
41839 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
41841 PR tree-optimization/64436
41842 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
41843 merge of two symbolic numbers for a bitwise OR to ...
41844 (perform_symbolic_merge): This. Also fix computation of the range and
41845 end of the symbolic number corresponding to the result of a bitwise OR.
41847 2015-01-13 Richard Biener <rguenther@suse.de>
41849 PR tree-optimization/64568
41850 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
41851 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
41853 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41855 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
41856 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
41858 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41860 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
41861 target-specific symbol_ref flag.
41862 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
41863 resides in rodata section.
41864 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
41865 (nds32_encode_section_info): New function.
41867 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41869 * config/nds32/nds32.md (call): Use pseudo instruction bal which
41870 clobbers TA_REGNUM if large code model is specified.
41871 (call_register): Likewise.
41872 (call_immediate): Likewise.
41873 (call_value): Likewise.
41874 (call_value_register): Likewise.
41875 (call_value_immediate): Likewise.
41877 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41879 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
41880 (TARGET_CMODEL_MEDIUM): New macro.
41881 (TARGET_CMODEL_LARGE): New macro.
41882 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
41883 code model setting in assembly code.
41885 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41887 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
41888 Remove MASK_GP_DIRECT flag.
41889 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
41890 one of the multilib default options.
41891 * config/nds32/nds32.opt (mgp-direct): Remove.
41892 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
41893 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
41895 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41897 * config/nds32/nds32.opt (mcmodel): Add new option.
41898 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
41899 to describe code model.
41901 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
41904 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
41906 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
41908 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
41909 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
41910 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
41911 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
41912 __builtin_sh_set_fpscr.
41914 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
41916 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
41917 after a funtion name just to indicate it is a function.
41918 ([-fsanitize-undefined-trap-on-error]): Likewise.
41919 ([-fdbg-cnt=]): Likewise.
41920 ([-mmemcpy]): Likewise.
41921 ([-mflush-func]): Likewise.
41922 ([-msynci]): Likewise.
41924 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
41926 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
41929 2015-01-12 Jakub Jelinek <jakub@redhat.com>
41931 PR tree-optimization/64563
41932 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
41933 instead of != VR_VARYING.
41936 * config/i386/i386.c (ix86_expand_prologue): Add
41937 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
41939 PR tree-optimization/64454
41940 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
41941 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
41942 for signed or [0, op1 - 1] for unsigned modulo.
41943 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
41944 even if op1 does not satisfy integer_pow2p.
41947 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
41949 2015-01-12 Jeff Law <law@redhat.com>
41952 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
41953 (trunchiqi2, truncsihi2): Similarly.
41955 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
41956 rather than calling F.
41958 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
41960 * tsan.c (instrument_expr): Use force_gimple_operand.
41961 Use may_be_nonaddressable_p instead of is_gimple_addressable.
41963 2015-01-12 Richard Biener <rguenther@suse.de>
41965 PR tree-optimization/64530
41966 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
41969 2015-01-12 Richard Biener <rguenther@suse.de>
41971 PR middle-end/64357
41972 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
41975 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41977 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
41978 Cortex-A17 tuning parameters.
41979 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
41981 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41983 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
41984 * config/arm/arm.c (arm_macro_fusion_p): New function.
41985 (arm_macro_fusion_pair_p): Likewise.
41986 (TARGET_SCHED_MACRO_FUSION_P): Define.
41987 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
41988 (ARM_FUSE_NOTHING): Likewise.
41989 (ARM_FUSE_MOVW_MOVT): Likewise.
41990 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
41991 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
41992 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
41993 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
41994 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
41995 arm_cortex_a5_tune): Specify fuseable_ops value.
41997 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
42000 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
42001 test for PIE with copy reloc.
42002 * configure: Regenerated.
42004 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42006 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
42008 (arm_tls_descseq_addr): Likewise.
42009 (arm_gen_movmemqi): Likewise.
42010 (arm_expand_epilogue_apcs_frame): Likewise.
42011 (arm_expand_epilogue): Likewise.
42012 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
42015 2015-01-12 Martin Liska <mliska@suse.cz>
42018 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
42019 volatility for correct operands.
42021 2015-01-12 Martin Liska <mliska@suse.cz>
42023 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
42024 indication that a function is not leaf.
42025 (sem_function::compare_polymorphic_p): Likewise.
42027 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42029 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
42030 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
42031 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
42032 fold-const.h, tree-check.h.
42034 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
42038 * ipa-inline.c (compute_uninlined_call_time,
42039 compute_inlined_call_time): Use counts for extra precision when
42041 (big_speedup_p): Fix formating.
42042 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
42043 (relative_time_benefit): Remove.
42044 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
42045 merge guessed and read profile paths.
42046 (inline_small_functions): Count only !optimize_size functions into
42047 initial size; be more lax about sanity check when profile is used;
42048 be sure to update inlined function profile when profile is read.
42050 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
42053 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
42054 cost when edge becomes direct.
42055 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
42056 is resolved or when introducing new speculation.
42058 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
42062 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
42063 '||' to fix typo issue.
42065 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
42066 accept and return NULL.
42068 2015-01-12 Martin Liska <mliska@suse.cz>
42070 * cgraph.c (cgraph_edge::remove_callee): Move function to header
42071 file for being inlined.
42072 (cgraph_set_edge_callee): Delete.
42073 (cgraph_edge::redirect_callee): Move function to header file
42075 (cgraph_edge::make_direct): Use new function.
42076 (cgraph_edge::dump_edge_flags): New function created from
42077 static dump_edge_flags function.
42078 (cgraph_node::dump): Use new function.
42079 (cgraph_edge::verify_count_and_frequency): New function created
42080 from verify_edge_count_and_frequency.
42081 (cgraph_edge::verify_corresponds_to_fndecl): New function created
42082 from verify_edge_corresponds_to_fndecl.
42083 (verify_edge_corresponds_to_fndecl): Delete.
42084 (cgraph_node::verify_node): Use new function.
42085 * cgraph.h (cgraph_edge::set_callee): New function.
42086 (cgraph_edge::dump_edge_flags): Likewise.
42087 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
42089 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
42091 * ipa-utils.c (estimate_function_body_sizes): Do not
42092 free node params when called late with early=true.
42094 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
42096 * doc/md.texi (Instruction Patterns): Rewrite text for
42098 (Example): Likewise.
42100 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
42102 * doc/invoke.texi (Option Summary): Break long lines.
42103 [(-fdiagnostics-color)]: Put long literal in @smallexample
42105 [(-fsanitize-recover)]: Likewise.
42106 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
42107 [(-ffast-math)]: Likewise.
42108 [(--param max-inline-insns-recursive)]: Likewise.
42109 [(--param max-inline-recursive-depth)]: Likewise.
42110 [(-mno-text-section-literals)]: Likewise.
42112 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
42114 * doc/install.texi: Update for libgomp being renamed from "GNU
42115 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
42117 * doc/sourcebuild.texi: Likewise.
42119 2015-01-10 Anthony Green <green@moxielogic.com>
42121 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
42122 mul.x availability for moxiebox configuration.
42124 2015-01-09 Anthony Green <green@moxielogic.com>
42126 * config/moxie/moxie.md: Tabify assembly output.
42128 2015-01-09 Anthony Green <green@moxielogic.com>
42130 * config/moxie/moxie.md (CC_REG): Correct register definition.
42132 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
42134 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
42135 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
42138 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
42140 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
42142 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
42143 Jakub Jelinek <jakub@redhat.com>
42145 PR middle-end/64412
42146 * lto-streamer.h (lto_stream_offload_p): New declaration.
42147 * lto-streamer.c (lto_stream_offload_p): New variable.
42148 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
42149 at the same time as section_name_prefix.
42150 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
42151 if lto_stream_offload_p.
42152 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
42153 stream TREE_TARGET_OPTION if lto_stream_offload_p.
42154 (write_ts_function_decl_tree_pointers): Don't
42155 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
42156 * tree-streamer-in.c (unpack_value_fields): Don't stream
42157 TREE_TARGET_OPTION in if ACCEL_COMPILER.
42158 (lto_input_ts_function_decl_tree_pointers): Don't stream
42159 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
42160 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
42161 instead of section_name_prefix string comparisons.
42163 2015-01-09 Jakub Jelinek <jakub@redhat.com>
42165 PR rtl-optimization/64536
42166 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
42169 2015-01-09 Michael Collison <michael.collison@linaro.org>
42171 PR tree-optimization/64322
42172 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
42173 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
42175 2015-01-09 Tom de Vries <tom@codesourcery.com>
42177 PR rtl-optimization/64539
42178 * regcprop.c (kill_clobbered_values): Factor out of ...
42179 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
42180 instead of note_stores with kill_clobbered_value.
42182 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
42184 * ginclude/unwind-arm-common.h: Revert previous commit.
42186 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
42188 * config.gcc (arm*-*-freebsd*): New configuration.
42189 * config/arm/freebsd.h: New file.
42190 * config.host: Add extra components for arm*-*-freebsd*.
42191 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
42192 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
42194 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42196 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
42198 * config/rs6000/t-rtems: Add e6500 multilibs.
42200 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42202 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
42205 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42207 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
42208 MULTILIB_EXCEPTIONS.
42210 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42212 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
42213 MULTILIB_EXCEPTIONS.
42215 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42217 * config/arm/t-rtems-eabi: Rename to...
42218 * config/arm/t-rtems: ...this.
42219 * config/arm/rtems-eabi.h: Rename to...
42220 * config/arm/rtems.h: ...this.
42221 * config.gcc (arm*-*-rtems*): Reflect changes above.
42223 2015-01-09 Richard Biener <rguenther@suse.de>
42225 PR tree-optimization/64410
42226 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
42228 (execute_update_addresses_taken): Deal with that.
42229 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
42230 loads/stores for complex variables.
42232 2015-01-09 Martin Liska <mliska@suse.cz>
42234 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
42236 (func_checker::compare_memory_operand): New function.
42237 (func_checker::compare_operand): Split case to newly
42239 (func_checker::compare_cst_or_decl): New function.
42240 (func_checker::compare_gimple_call): Identify
42242 (func_checker::compare_gimple_assign): Likewise.
42243 * ipa-icf-gimple.h: New function.
42245 2015-01-09 Martin Liska <mliska@suse.cz>
42248 * sreal.c (sreal::dump): Change unsigned format to signed for
42250 (sreal::to_double): Replace exp2 with scalbln.
42252 2015-01-09 Martin Liska <mliska@suse.cz>
42254 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
42255 * ipa-icf.c (sem_function::equals_private): Add support for target and
42256 (sem_item_optimizer::merge_classes): Remove redundant function
42257 optimization flags comparison.
42258 * tree.h (target_opts_for_fn): New function.
42260 2015-01-09 Tom de Vries <tom@codesourcery.com>
42262 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
42264 2015-01-09 Kito Cheng <kito@0xlab.org>
42266 PR rtl-optimization/64348
42267 * lra-constraints.c (split_reg): Fix caller-save store/restore
42268 instruction generation.
42270 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
42272 PR gcov-profile/61790
42273 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
42274 long long. Fallback to int64_t if host doesn't have long long and
42275 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
42277 2015-01-08 Jakub Jelinek <jakub@redhat.com>
42279 PR tree-optimization/63989
42280 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
42281 from 1000 to 10000.
42282 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
42283 (get_stridx): If we don't have a record for certain SSA_NAME,
42284 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
42285 constant offset, call get_stridx_plus_constant.
42286 (get_stridx_plus_constant): New function.
42287 (zero_length_string): Don't use get_stridx here.
42290 PR middle-end/64388
42291 * dse.c (struct insn_info): Mention frame_read set also
42292 before reload for tail calls on some targets.
42293 (scan_insn): Revert 2014-12-22 change. Set frame_read
42294 also before reload for tail calls if
42295 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
42296 instead of add_non_frame_wild_read for non-const/memset
42297 tail calls after reload.
42299 2015-01-08 Jason Merrill <jason@redhat.com>
42301 * ubsan.c (do_ubsan_in_current_function): New.
42302 (pass_ubsan::gate): Use it.
42303 * ubsan.h: Declare it.
42304 * convert.c (convert_to_integer): Use it.
42306 2015-01-08 Jakub Jelinek <jakub@redhat.com>
42309 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
42310 compare_code when it is unconditionally overwritten afterwards.
42311 Use ix86_reverse_condition instead of reverse_condition. Don't
42312 change code if *reverse_condition* returned UNKNOWN and don't
42313 swap ct/cf and negate diff in that case.
42315 2015-01-08 Mike Stump <mikestump@comcast.net>
42317 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
42318 (pass_tsan_O0::gate): Likewise.
42319 * extend.texi (Function Attributes): Add no_sanitize_thread
42322 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
42324 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
42325 for registering builtins.
42326 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
42327 add -fopenmp to the argv_obstack used when invoking
42328 compile_for_target.
42330 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
42331 add "-m32" or "-m64" to argv_obstack.
42332 (generate_host_descr_file): Likewise, when invoking host_compiler.
42333 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
42336 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
42338 * config/sh/sh-mem.cc: Use constant as second operand when emitting
42341 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
42344 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
42345 constant load if constant operand fits into I08.
42347 2015-01-08 Jakub Jelinek <jakub@redhat.com>
42350 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
42351 and TREE_THIS_VOLATILE for MEM_REFs.
42352 (build5_stat): Fix up initialization of TREE_READONLY and
42353 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
42355 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
42358 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
42359 of r for the second alternative of the destination operand.
42361 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
42364 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
42366 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
42368 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
42370 ([-fivar-visibility], [-fvisibility]): Likewise.
42372 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
42374 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
42375 the file where @code, @command, etc is more appropriate.
42377 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
42379 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
42380 of -mrecip= documentation.
42382 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
42385 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
42386 correct reload handler if -m32 -mpowerpc64 is used.
42388 2015-01-06 Tom de Vries <tom@codesourcery.com>
42390 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
42392 2015-01-08 Christian Bruel <christian.bruel@st.com>
42395 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
42397 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
42399 PR tree-optimization/63259
42400 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
42401 if optab exists for 16bit byteswap.
42403 2015-01-06 Jakub Jelinek <jakub@redhat.com>
42405 * opts.c (common_handle_option): Add support for
42406 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
42407 * doc/invoke.texi: Document -fno-sanitize=all,
42408 -f{,no-}sanitize-recover=all. Document that
42409 -fsanitize=float-cast-overflow is not enabled
42410 by -fsanitize=undefined. Fix up documentation
42411 of -f{,no-}sanitize-recover.
42413 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
42415 * config.gcc: Add Visium support.
42416 * configure.ac: Likewise.
42417 * configure: Regenerate.
42418 * doc/extend.texi (interrupt attribute): Add Visium.
42419 * doc/invoke.texi: Document Visium options.
42420 * doc/install.texi: Document Visium target.
42421 * doc/md.texi: Document Visium constraints.
42422 * common/config/visium: New directory.
42423 * config/visium: Likewise.
42425 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
42427 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
42428 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
42430 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
42432 * combine.c (combine_validate_cost): Do not count the cost of a
42433 split I2 twice. Do not display it twice in the dump, either.
42435 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
42437 Revert parts of r219199.
42438 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
42440 ([-Wtraditional]): Restore markup on <limits.h>.
42442 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
42445 * doc/invoke.texi: Document -Wsuggest-override.
42447 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
42449 PR rtl-optimization/64287
42450 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
42451 (process_options): Disable flag_ipa_ra if profiling.
42453 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
42455 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
42457 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
42459 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
42460 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
42461 put under #if TARGET_LOOPS guard.
42463 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
42465 * config/i386/i386.c (output_387_binary_op): Use std::swap.
42467 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
42469 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
42470 * rtl.h (refers_to_regno_p): Add overload.
42472 * bt-load.c: Likewise.
42473 * combine.c: Likewise.
42474 * df-scan.c: Likewise.
42475 * sched-deps.c: Likewise.
42476 * config/s390/s390.c: Likewise.
42477 * config/m32r/m32r.c: Likewise.
42478 * config/rs6000/spe.md: Likewise.
42479 * config/rs6000/rs6000.c: Likewise.
42480 * config/pa/pa.c: Likewise.
42481 * config/stormy16/stormy16.c: Likewise.
42482 * config/cris/cris.c: Likewise.
42483 * config/arc/arc.md: Likewise.
42484 * config/arc/arc.c: Likewise.
42485 * config/sh/sh.md: Likewise.
42486 * config/sh/sh.c: Likewise.
42487 * config/frv/frv.c: Likewise.
42489 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42492 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
42493 call as cleanup of the whole body.
42494 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
42495 * tsan.c (replace_func_exit): New function.
42496 (instrument_func_exit): Moved earlier.
42497 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
42498 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
42500 (tsan_pass): Don't call instrument_func_exit.
42501 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
42502 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
42506 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
42507 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
42508 it to libubsan handler instead of EXPR. Fold comparisons earlier,
42509 if the result is integer_zerop, return NULL_TREE.
42510 * convert.c (convert_to_integer): Pass expr as ARG.
42512 PR tree-optimization/64465
42513 * tree-inline.c (redirect_all_calls): During inlining
42514 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
42515 changed the stmt to a non-throwing call.
42517 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
42519 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
42520 etc markup throughout the file.
42522 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
42524 Enable experimental TSAN support for Ada.
42525 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
42527 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42529 PR tree-optimization/64494
42530 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
42531 clear SSA_NAME_ANTI_RANGE_P flag.
42533 2015-01-05 Marek Polacek <polacek@redhat.com>
42535 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
42537 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42539 Update copyright years.
42541 * gcc.c (process_command): Update copyright notice dates.
42542 * gcov-dump.c: Ditto.
42544 * doc/cpp.texi: Bump @copying's copyright year.
42545 * doc/cppinternals.texi: Ditto.
42546 * doc/gcc.texi: Ditto.
42547 * doc/gccint.texi: Ditto.
42548 * doc/gcov.texi: Ditto.
42549 * doc/install.texi: Ditto.
42550 * doc/invoke.texi: Ditto.
42552 * auto-profile.c, auto-profile.h: Fix up Copyright line.
42554 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
42556 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
42558 ([-fvtable-verify], [-fvtv-debug]): Likewise.
42559 ([-Wabi]): Likewise.
42560 ([-fmessage-length]): Likewise.
42561 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
42562 ([-Wno-discarded-qualifiers]): Likewise.
42563 ([-Wnodiscarded-array-qualifiers]): Likewise.
42564 ([-Wno-virtual-move-assign]): Likewise.
42565 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
42566 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
42567 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
42568 ([-fsanitize-undefined-trap-on-error]): Likewise.
42569 ([-floop-interchange]): Likewise.
42570 ([-ftree-coalesce-inlined-vars]): Likewise.
42571 ([-fvect-cost-model]): Likewise.
42572 ([-flto]): Likewise.
42573 ([--param]): Likewise.
42574 (Spec Files): Likewise.
42575 ([-mstrict-align]): Likewise.
42576 ([-mfix-cortex-a53-835769]): Likewise.
42577 ([-march], [-mtune]): Likewise.
42578 ([-mpic-register]): Likewise.
42579 ([-munaligned-access]): Likewise.
42580 ([-msp8]): Likewise.
42581 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
42582 (AVR Built-in Macros): Likewise.
42583 ([-mpreferred-stack-boundary]): Likewise.
42584 ([-mtune-crtl]): Likewise.
42585 ([-mashf]): Likewise.
42586 ([-mmcu=]): Likewise.
42587 ([-minrt]): Likewise.
42588 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
42589 ([-mupper-regs]): Likewise.
42590 ([-matomic-model]): Likewise.
42591 ([-mdiv]): Likewise.
42592 ([-mzdcbranch]): Likewise.
42593 ([-mdisable-callt]): Likewise.
42594 ([-msoft-float]): Likewise.
42595 ([-m8byte-align]): Likewise.
42596 ([-fstack-reuse]): Likewise.
42598 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42600 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
42601 Fix markup, light copy-editing.
42602 ([-fauto-profile]): Rewrite to fix formatting and content
42605 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42607 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
42608 Copy-edit description.
42609 ([-fisolate-erroneous-paths-attribute]): Likewise.
42610 * common.opt (fisolate-erroneous-paths-dereference):
42611 Copy-edit description.
42612 (fisolate-erroneous-paths-attribute): Likewise.
42614 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42616 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
42619 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42621 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
42622 ([-fvtv-debug]): Likewise.
42623 ([-Wc++-compat]): Likewise.
42624 ([-Wc++11-compat]): Likewise.
42625 ([-Wc++14-compat]): Likewise.
42626 ([-Wno-sized-deallocation]): Likewise.
42627 ([-femit-class-debug-always]): Likewise.
42628 ([-femit-struct-debug-detailed]): Likewise.
42629 ([-fno-keep-inline-dllexport]): Likewise.
42630 ([-fira-algorithm]): Likewise.
42631 ([-fira-region]): Likewise.
42632 ([-flra-remat]): Likewise.
42633 ([-fipa-ra]): Likewise.
42634 ([-fhoist-adjacent-loads]): Likewise.
42635 ([-fisolate-erroneous-paths-dereference]): Likewise.
42636 ([-fisolate-erroneous-paths-attribute]): Likewise.
42637 ([-ftree-switch-conversion]): Likewise.
42638 ([-ftree-tail-merge]): Likewise.
42639 ([-ftree-loop-if-convert]): Likewise.
42640 ([-ftree-loop-if-convert-stores]): Likewise.
42641 ([-ftree-loop-distribution]): Likewise.
42642 ([-ftree-loop-distribute-patterns]): Likewise.
42643 ([-flto-compression-level]): Likewise.
42644 ([-flto-report]): Likewise.
42645 ([-flto-report-wpa]): Likewise.
42646 ([-fuse-linker-plugin]): Likewise.
42647 ([-mfix-cortex-a53-835769]): Likewise.
42648 ([-mno-fix-cortex-a53-835769]): Likewise.
42649 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
42650 explicit listing; add a note to the discussion indicating they
42651 exist. Reorder table to group similar options. Add missing
42652 @opindex entries. Add @need commands throughout the table to
42653 allow it to be split across multiple pages.
42654 ([-m8bit-idiv]): Fix @opindex.
42655 ([-mavx256-split-unaligned-load]): Likewise.
42656 ([-mavx256-split-unaligned-store]): Likewise.
42657 ([-mstack-protector-guard]): Likewise.
42658 ([-mcpu=]): Likewise.
42659 ([-mcpu]): Likewise.
42660 ([-mpointer-size=]): Likewise.
42662 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
42664 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
42665 instead of `m' constraint. Likewise for unnamed movb comparison
42666 patterns using reg_before_reload_operand predicate.
42667 * config/pa/predicates.md (reg_before_reload_operand): Tighten
42668 predicate to reject register index and LO_SUM DLT memory forms
42671 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
42673 * doc/invoke.texi (Option Summary): Fix spelling of
42674 -fdevirtualize-at-ltrans.
42675 ([-fdevirtualize]): Fix markup.
42676 ([-fdevirtualize-speculatively]): Fix typo.
42677 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
42678 implementor-speaky.
42679 * common.opt (fdevirtualize-at-ltrans): Likewise.
42680 * ipa-devirt.c: Fix typos in comments throughout the file.
42681 (ipa_devirt): Fix typos in format strings for dump output.
42683 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
42685 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
42686 discussion of defaults, light copy-editing.
42688 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
42690 * tsan.c (instrument_expr): corrected previous checkin.
42692 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
42694 Instrument bit field and unaligned accesses for TSAN.
42695 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
42696 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
42697 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
42698 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
42699 unaligned memory regions.
42701 2015-01-01 Anthony Green <green@moxielogic.com>
42703 * config/moxie/predicates.md (moxie_general_movsrc_operand):
42704 Restrict move source register offsets to 16 bits.
42706 Copyright (C) 2015 Free Software Foundation, Inc.
42708 Copying and distribution of this file, with or without modification,
42709 are permitted in any medium without royalty provided the copyright
42710 notice and this notice are preserved.